Linux下解除安裝Weblogic
1、進入解除安裝指令碼所在目錄
[weblogic@linuxserver ~]$ pwd
/home/weblogic
[weblogic@linuxserver ~]$ cd Oracle/Middleware/wlserver_10.3/uninstall/
[weblogic@linuxserver uninstall]$ ls
uninstall.sh wls_uninstall.xml
2、執行解除安裝指令碼
[weblogic@linuxserver uninstall]$ ./uninstall.sh
/home/weblogic/Oracle/Middleware/utils/uninstall/uninstall.sh: line 11: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64/bin/java: No such file or directory
提示不存在相應版本的java,檢視當前環境變數配置檔案,與解除安裝指令碼中的java版本不一致。
[weblogic@linuxserver uninstall]$ cat /home/weblogic/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
JAVA_HOME=/usr/java/jdk1.8.0_45
CLASSPATH=.:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
[weblogic@linuxserver uninstall]$ cat /home/weblogic/Oracle/Middleware/utils/uninstall/uninstall.sh
#!/bin/sh
# This script assumes WL_HOME is set to the product directory which is the
# target of the uninstall before this script it called.
# Set JAVA Home
JAVA_HOME="/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64"
# Set BEA Home
BEAHOME="/home/weblogic/Oracle/Middleware"
"${JAVA_HOME}/bin/java" ${JAVA_VM} -Xmx256m -Djava.library.path="${BEAHOME}/utils/uninstall" -Dhome.dir="${BEAHOME}" -Dinstall.dir="${WL_HOME}" -jar "${BEAHOME}/utils/uninstall/uninstall.jar" $*
exit $?
修改解除安裝指令碼中的java,與當前環境一致。
[weblogic@linuxserver uninstall]$ vim /home/weblogic/Oracle/Middleware/utils/uninstall/uninstall.sh
重新執行解除安裝指令碼
[weblogic@linuxserver uninstall]$ ./uninstall.sh
Unable to instantiate GUI, defaulting to console mode.
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/weblogic/Oracle/Middleware/utils/uninstall/libjni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly
recommended that you fix the library with 'execstack -c
Welcome:
Welcome to the WebLogic Platform 10.3.6.0 uninstaller. If
you wish to proceed with the uninstallation type Next,
otherwise, please type Exit to cancel.
Enter [Exit][Next]> next
Choose Products and Components to uninstall:
--------------------------------------------
Check the components you want to uninstall.
Release 10.3.6.0
|_____WebLogic Server [1] x
| |_____Core Application Server [1.1] x
| |_____Administration Console [1.2] x
| |_____Configuration Wizard and Upgrade Framework [1.3] x
| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
| |_____WebLogic SCA [1.5] x
| |_____WebLogic JDBC Drivers [1.6] x
| |_____Third Party JDBC Drivers [1.7] x
| |_____WebLogic Server Clients [1.8] x
| |_____WebLogic Web Server Plugins [1.9] x
| |_____UDDI and Xquery Support [1.10] x
| |_____Evaluation Database [1.11] x
|_____Oracle Coherence [2] x
|_____Coherence Product Files [2.1] x
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Next]> next
Setting Up
Removing Files
Removing registry entries
Uninstall Completed Successfully!
Uninstallation Complete
Uninstallation of selected components has completed successfully.
Press [Enter] to continue
最後刪除安裝目錄。
[weblogic@linuxserver uninstall]$ cd
[weblogic@linuxserver ~]$ rm -fr Oracle/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28536251/viewspace-1714213/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux下jdk的安裝解除安裝切換LinuxJDK
- linux 安裝weblogic12.1.3.0LinuxWeb
- Linux安裝解除安裝MySQLLinuxMySql
- Linux下Mysql5.7.19解除安裝方法LinuxMySql
- Linux下Go的安裝、配置 、升級和解除安裝LinuxGo
- linux解除安裝anocondaLinux
- Linux 解除安裝openjdk 安裝oraclejdkLinuxJDKOracle
- linux 解除安裝jdk和安裝LinuxJDK
- Linux-Ubuntu-mysql-安裝&解除安裝LinuxUbuntuMySql
- Linux(以CentOS 7為例)下安裝、解除安裝、啟動OpenOfficeLinuxCentOS
- linux環境下解除安裝oracle11gLinuxOracle
- Oracle Linux 7.1 靜默安裝Weblogic 12.2.1.3OracleLinuxWeb
- 【轉載】Linux下徹底解除安裝mysql詳解LinuxMySql
- linux 解除安裝node 並重灌Linux
- Linux環境下達夢資料庫安裝及解除安裝手冊Linux資料庫
- Linux裝置掛載和解除安裝Linux
- window下安裝並使用nvm(含解除安裝node、解除安裝nvm、全域性安裝npm)NPM
- Linux rpm -e --nodeps rpm解除安裝Linux
- linux磁碟掛載與解除安裝Linux
- linux解除安裝軟體的命令Linux
- linux-原始碼的編譯安裝和解除安裝Linux原始碼編譯
- Linux RPM包安裝、解除安裝、升級命令講解Linux
- window下徹底解除安裝mysqlMySql
- [Linux]檔案掛載和解除安裝Linux
- linux如何解除安裝python3.5LinuxPython
- Ubuntu下 解除安裝protobuf並安裝指定版本的protobufUbuntu
- weblogic 12 補丁安裝Web
- linux下安裝snap安裝工具Linux
- Mac 下 brew的解除安裝 外掛Mac
- Linux系統下無法解除安裝掛載的解決辦法Linux
- Ubuntu解除安裝和安裝Ubuntu
- cocoapods安裝/解除安裝/使用
- JDK安裝和解除安裝JDK
- docker安裝及解除安裝Docker
- Linux下安裝pymysqlLinuxMySql
- Linux下安裝jiebaLinuxJieba
- Linux下安裝GensimLinux
- Linux下SuperLU安裝Linux
- Linux下安裝GitLinuxGit