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下安裝、解除安裝mysqlLinuxMySql
- linux下解除安裝oracleLinuxOracle
- Linux下解除安裝MySQLLinuxMySql
- linux下mysql解除安裝LinuxMySql
- Linux下JDK安裝與解除安裝LinuxJDK
- Linux下解除安裝GoldenGateLinuxGo
- Linux下jdk的安裝解除安裝切換LinuxJDK
- [linux]ubuntu下解除安裝openjdk並安裝sunjdkLinuxUbuntuJDK
- linux下解除安裝自帶mysqlLinuxMySql
- Linux平臺下解除安裝ORACLELinuxOracle
- 【解除安裝】在LINUX/UNIX環境下解除安裝Oracle的OLAP元件LinuxOracle元件
- Linux下軟體的基本安裝和解除安裝Linux
- Linux下軟體的安裝與解除安裝(轉)Linux
- Linux安裝解除安裝MySQLLinuxMySql
- Linux下Go的安裝、配置 、升級和解除安裝LinuxGo
- linux 下虛擬機器的安裝與解除安裝Linux虛擬機
- linux下軟體的基本安裝和解除安裝(轉)Linux
- linux 解除安裝jdk和安裝LinuxJDK
- Linux 解除安裝openjdk 安裝oraclejdkLinuxJDKOracle
- 在Linux操作下解除安裝,安裝redhat自帶的JDKLinuxRedhatJDK
- Linux下Mysql5.7.19解除安裝方法LinuxMySql
- Linux解除安裝MySQLLinuxMySql
- 解除安裝websphere for linuxWebLinux
- Windows下解除安裝OracleWindowsOracle
- aix下hacmp解除安裝AIACM
- Linux 圖形介面安裝解除安裝Linux
- Linux-Ubuntu-mysql-安裝&解除安裝LinuxUbuntuMySql
- linux環境下解除安裝oracle11gLinuxOracle
- linux下如何完全解除安裝mysql資料庫LinuxMySql資料庫
- Linux下掛載及解除安裝ISO檔案Linux
- 轉linux部署安裝weblogicLinuxWeb
- window下安裝並使用nvm(含解除安裝node、解除安裝nvm、全域性安裝npm)NPM
- Linux解除安裝jdk方法LinuxJDK
- 解除安裝Linux版OracleDatabaseLinuxOracleDatabase
- Linux 完全解除安裝mysqlLinuxMySql
- linux解除安裝anocondaLinux
- Linux(以CentOS 7為例)下安裝、解除安裝、啟動OpenOfficeLinuxCentOS
- Solaris 下解除安裝程式 pkgrm