oracle 11gR2 新增deinstall命令來解除安裝grid和database
在oracle 11gR2以前的版本中,解除安裝CRS和oracle database時需要手工去刪除部分東西,從oracle 11gR2版本開始新增deinstall命令可以解除安裝grid和database,new oui版本中不再支援解除安裝,可以刪除的非常乾淨,需要手工刪除的話,deinstall命令也會有提示出來。
有兩種方法可以刪除oracle home和grid home
1.使用安裝好後的$ORACLE_HOME/deinstall/deinstall命令
2.從oracle官方網站上下載的deinstall工具 介質名稱為aix.ppc64_11gR2_deinstall.zip
下面為第一點的使用方法是互動式的
cd $ORACLE_HOME/deinstall/
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2010-03-05_12-32-34-PM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################## CHECK OPERATION START ########################
Install check configuration START
Checking for existence of the Oracle home location /grid
Oracle Home type selected for de-install is: CRS
Oracle Base selected for de-install is: /oracle
Checking for existence of central inventory location /oracle/oraInventory
Checking for existence of the Oracle Grid Infrastructure home
The following nodes are part of this cluster: p570a,p570b
Install check configuration END
Traces log file: /tmp/deinstall2010-03-05_12-32-34-PM/logs//crsdc.log
Enter an address or the name of the virtual IP used on node "p570a"[p570a-vip]
>
The following information can be collected by running ifconfig -a on node "p570a"
Enter the IP netmask of Virtual IP "192.168.128.12" on node "p570a"[255.255.255.0]
>
Enter the network interface name on which the virtual IP address "192.168.128.12" is active
>
Enter an address or the name of the virtual IP used on node "p570b"[p570b-vip]
>
The following information can be collected by running ifconfig -a on node "p570b"
Enter the IP netmask of Virtual IP "192.168.128.13" on node "p570b"[255.255.255.0]
>
Enter the network interface name on which the virtual IP address "192.168.128.13" is active
>
Enter an address or the name of the virtual IP[]
>
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/netdc_check3943047409382157255.log
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/asmcadc_check8859913828659895984.log
ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: y
Is OCR/Voting Disk placed in ASM y|n [n]: y
Enter the OCR/Voting Disk diskgroup name []:
Specify the ASM Diagnostic Destination [ ]:
Specify the diskgroups that are managed by this ASM instance []:
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is:
The cluster node(s) on which the Oracle home exists are: (Please input nodes seperated by ",", eg: node1,node2,...)p570a,p570b
Oracle Home selected for de-install is: /grid
Inventory Location where the Oracle home registered is: /oracle/oraInventory
ASM instance will be de-configured from this Oracle home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/tmp/deinstall2010-03-05_12-32-34-PM/logs/deinstall_deconfig2010-03-05_12-33-38-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2010-03-05_12-32-34-PM/logs/deinstall_deconfig2010-03-05_12-33-38-PM.err'
######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/asmcadc_clean6608625374089856517.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2010-03-05_12-32-34-PM/logs/netdc_clean5624344075530317905.log
De-configuring Naming Methods configuration file on all nodes...
Naming Methods configuration file de-configured successfully.
De-configuring Local Net Service Names configuration file on all nodes...
Local Net Service Names configuration file de-configured successfully.
De-configuring Directory Usage configuration file on all nodes...
Directory Usage configuration file de-configured successfully.
De-configuring backup files on all nodes...
Backup files de-configured successfully.
The network configuration has been cleaned up successfully.
Network Configuration clean config END
---------------------------------------->
Run the following command as the root user or the administrator on node "p570a".
/tmp/deinstall2010-03-05_12-32-34-PM/perl/bin/perl -I/tmp/deinstall2010-03-05_12-32-34-PM/perl/lib -I/tmp/deinstall2010-03-05_12-32-34-PM/crs/install /tmp/deinstall2010-03-05_12-32-34-PM/crs/install/rootcrs.pl -force -delete -paramfile /tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp
Press Enter after you finish running the above commands
enter
Oracle Universal Installer clean START
Detach Oracle home '/grid' from the central inventory on the local node : Done
Delete directory '/oracle/oraInventory' on the local node : Done
The Oracle Base directory '/oracle' will not be removed on local node. The directory is not empty.
Detach Oracle home '/grid' from the central inventory on the remote nodes 'p570a' : Done
Could not remove listed directories based on '/tmp/OraInstall2010-03-05_12-41-42-PM/installRemoveDirFile.lst' from nodes 'p570a'. [PRKC-1083 : Failed to remove listed directory in "/tmp/OraInstall2010-03-05_12-41-42-PM/installRemoveDirFile.lst" to any of the given nodes "p570a ".
Error on node p570a:null]
Delete directory '/oracle/oraInventory' on the remote nodes 'p570a' : Done
The Oracle Base directory '/oracle' will not be removed on node 'p570a'. The directory is not empty.
Oracle Universal Installer cleanup completed with errors.
Oracle Universal Installer clean END
Oracle install clean START
Clean install operation removing temporary directory '/tmp//install' on node 'p570b'
Clean install operation removing temporary directory '/tmp//install' on node 'p570a'
Oracle install clean END
Moved default properties file /tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp as /tmp/deinstall2010-03-05_12-32-34-PM/response/deinstall_Ora11g_gridinfrahome1.rsp1
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Oracle Clusterware was already stopped and de-configured on node "p570b"
Oracle Clusterware is stopped and successfully de-configured on node "p570a"
Oracle Clusterware is stopped and de-configured successfully.
Successfully detached Oracle home '/grid' from the central inventory on the local node.
Failed to delete directory '/grid' on the local node.
Successfully deleted directory '/oracle/oraInventory' on the local node.
Successfully detached Oracle home '/grid' from the central inventory on the remote nodes 'p570a'.
Failed to delete directory '/grid' on the remote nodes 'p570a'.
Successfully deleted directory '/oracle/oraInventory' on the remote nodes 'p570a'.
Oracle Universal Installer cleanup completed with errors.
Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'p570b,p570a' at the end of the session.
Oracle install successfully cleaned up the temporary directories.
按照提示來做即可,刪除的非常乾淨,然後在這上面重新安裝grid和database時,能夠成功安裝。
參考文件:metalink How To Deinstall Oracle Home In 11GR2? [ID 883743.1]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-628770/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Solaris 10.5 安裝Oracle 11gR2Oracle
- Oracle OCP(35):Database 安裝OracleDatabase
- kangle 解除安裝命令
- oracle 19c 安裝、解除安裝Oracle
- debian軟體解除安裝|deb包解除安裝|dpkg命令
- Ubuntu解除安裝和安裝Ubuntu
- Oracle11g解除安裝Oracle
- 【Oracle】Windows安裝oracle11gR1 database 11.1.0.6OracleWindowsDatabase
- CloudFoundry命令列安裝和解除安裝外掛Cloud命令列
- Oracle Database 19c安裝Sample SchemasOracleDatabase
- linux 解除安裝jdk和安裝LinuxJDK
- Oracle 11G RAC叢集安裝(2)——安裝gridOracle
- 操作規範(四)——Linux 5.4安裝Oracle 11gR2LinuxOracle
- linux解除安裝軟體的命令Linux
- vs2015解除安裝和安裝
- Oracle RAC叢集解除安裝步驟Oracle
- Oracle 11gR2(11.2.0.4)安裝包(7個)作用說明Oracle
- Linux RPM包安裝、解除安裝、升級命令講解Linux
- Ubuntu解除安裝及安裝node和npmUbuntuNPM
- python中的pip的安裝以及通過pip命令對selenium進行解除安裝和安裝Python
- 【BUILD_ORACLE】Oracle 19c RAC搭建(四)Grid軟體安裝UIOracle
- 【配置上線】靜默安裝資料庫Oracle 11gR2資料庫Oracle
- 12.2.0.1.0 Grid RU安裝
- 12.2.0.1 Grid RUR 安裝
- 12.2 Grid RUR 安裝
- linux環境下解除安裝oracle11gLinuxOracle
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.4. Linux命令(1)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.4. Linux命令(2)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.4. Linux命令(3)OracleLinux
- Ubuntu 完全解除安裝軟體常用命令Ubuntu
- 11. Oracle for Linux安裝和配置—11.3. Oracle安裝和配置—11.3.1. Oracle軟體安裝OracleLinux
- webpack全域性和區域性安裝、解除安裝和執行Web
- 靜默方式安裝11gR2
- Linux安裝解除安裝MySQLLinuxMySql
- cocoapods安裝/解除安裝/使用
- JDK安裝和解除安裝JDK
- docker安裝及解除安裝Docker
- 【PSU】Oracle打PSU及解除安裝PSU(單例項)Oracle單例
- 安裝npm 解除安裝npm 安裝apidocNPMAPI