1 描述
测试完了RAC 环境的安装,升级。本节测试21cRAC 环境的卸载。 根据官档中描述。 使用deinstall 命令进行软件的卸载。
https://docs.oracle.com/en/database/oracle/oracle-database/21/cwlin/removing-oracle-database-software.html#GUID-5619EBF0-C89E-4349-AE6F-A8F8B3B06BD1
如下软件可以使用deinstall 卸载。
Oracle Database
Oracle Grid Infrastructure, which includes Oracle Clusterware and Oracle Automatic Storage Management (Oracle ASM)
Oracle Real Application Clusters (Oracle RAC)
Grid Infrastructure Management Repository (GIMR)
Oracle Database Client
deinstall 脚本放在 $ORACLE_HOME/deinstall 目录中。 可以到对应版本的 ORACLE_HOME 下寻找。
deinstall 脚本将根据 oraInventory 中的内容,删除 ORACLE_BASE 中如下文件或目录:
admin
cfgtoollogs
checkpoints
diag
oradata
fast_recovery_area
注意fast_recovery_area 即使不在ORACLE_BASE 目录下,其中的内容也会被deinstall 清空。
2 操作环境
OEL8.6_21cRAC1
3 详细步骤操作
3.1 交互式卸载
3.1.1 交互式卸载oracle database
在rac1 结点的oracle 用户下,运行deinstall 会卸载database software, 注意会连同database (包括数据)一起删掉。
[oracle@rac1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/app/oraInventory/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/oracle/product/21/dbhome_1
Oracle Home type selected for deinstall is: Oracle Real Application Cluster Database
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/21.0.0/grid
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
Checking for sufficient temp space availability on node(s) : 'rac1,rac2'
## [END] Install check configuration ##
## [START] GIMR check configuration ##
Checking for existence of GIMR
GIMR Home not detected
## [END] GIMR check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2022-10-20_ 11-09-31AM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_check2022- 10-20_11-09-31AM.log
Oracle Grid Management database was not found in this Oracle home
Use comma as separator when specifying list of values as input
Specify the list of database names that are configured in this Oracle home [R21300C]:
###### For Database 'R21300C' ######
RAC Database
The nodes on which this database has instances: [rac1, rac2]
The instance names: [R21300C1, R21300C2]
The local instance name on node: R21300C1
The diagnostic destination location of the database: /u01/app/oracle/diag/rdbms/r21300c
Storage type used by the Database: ASM
The details of database(s) R21300C have been discovered automatically. Do you still want to mod ify the details of R21300C database(s)? [n]:
Database Check Configuration END
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/21.0.0/grid
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac1,rac2
Oracle Home selected for deinstall is: /u01/app/oracle/product/21/dbhome_1
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
The following databases were selected for de-configuration. The databases will be deleted and w ill not be useful upon de-configuration : R21300C
Database unique name : R21300C
Storage used : ASM
Oracle Grid Management database was not found in this Oracle home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2022-10 -20_11-09-16-AM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_ deconfig2022-10-20_11-09-16-AM.err'
######################## DECONFIG CLEAN OPERATION START ########################
## [START] GIMR configuration update ##
## [END] GIMR configuration update ##
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_clean2022- 10-20_11-09-31AM.log
Database Clean Configuration START R21300C
This operation may take few minutes.
Database Clean Configuration END R21300C
Network Configuration clean config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean2022-10-20_11-09-31AM.log
The network configuration has been cleaned up successfully.
Network Configuration clean config END
######################### DECONFIG CLEAN OPERATION END #########################
####################### DECONFIG CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : R21300C
There is no Oracle Grid Management database to de-configure in this Oracle home
#######################################################################
############# ORACLE DECONFIG TOOL END #############
Using properties file /tmp/deinstall2022-10-20_11-08-39AM/response/deinstall_2022-10-20_11-09-16-AM.rsp
Location of logs /u01/app/oraInventory/logs/
############ ORACLE DEINSTALL TOOL START ############
####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2022-10-20_11-09-16-AM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2022-10-20_11-09-16-AM.err'
######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to rac1
Setting REMOTE_NODES to rac2
Setting CLUSTER_NODES to rac1,rac2
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2022-10-20_11-08-39AM/oraInst.loc
Setting oracle.installer.local to false
Removing directory '/u01/app/oracle/homes/OraDB21Home1' on node(s) 'rac1'
Removing directory '/u01/app/oracle/homes/OraDB21Home1' on node(s) 'rac2'
## [END] Preparing for Deinstall ##
Oracle Universal Installer clean START
Detach Oracle home '/u01/app/oracle/product/21/dbhome_1' from the central inventory on the remote nodes 'rac2' : Done
Delete directory '/u01/app/oracle/product/21/dbhome_1' on the remote nodes 'rac2' : Done
The Oracle Base directory '/u01/app/oracle' will not be removed on node 'rac2'. The directory is not empty.
Detach Oracle home 'OraDB21Home1' from the central inventory on the local node : Done
Delete directory '/u01/app/oracle/product/21/dbhome_1' on the local node : Done
The Oracle Base directory '/u01/app/oracle' will not be removed on local node. The directory is not empty. User needs to manually cleanup this directory.
You can find a log of this session at:
'/u01/app/oraInventory/logs//Cleanup2022-10-20_11-13-47AM.log'
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2022-10-20_11-08-39AM' on node 'rac2'
## [END] Oracle install clean ##
######################### DEINSTALL CLEAN OPERATION END #########################
####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/u01/app/oracle/product/21/dbhome_1' from the central inventory on the remote nodes 'rac2'.
Successfully deleted directory '/u01/app/oracle/product/21/dbhome_1' on the remote nodes 'rac2'.
Successfully detached Oracle home 'OraDB21Home1' from the central inventory on the local node.
Successfully deleted directory '/u01/app/oracle/product/21/dbhome_1' on the local node.
Oracle Universal Installer cleanup was successful.
Review the permissions and contents of '/u01/app/oracle' on nodes(s) 'rac1,rac2'.
If there are no Oracle home(s) associated with '/u01/app/oracle', manually delete '/u01/app/oracle' and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL TOOL END #############
[oracle@rac1 deinstall]$
运行完成后检查环境
[oracle@rac1 oracle]$ echo $ORACLE_HOME
/u01/app/oracle/product/21/dbhome_1
[oracle@rac1 oracle]$ echo $ORACLE_BASE
/u01/app/oracle
[oracle@rac1 oracle]$ ls -l $ORACLE_HOME
ls: cannot access '/u01/app/oracle/product/21/dbhome_1': No such file or directory
[oracle@rac1 oracle]$ ls -l $ORACLE_BASE
total 0
drwxr-xr-x 3 oracle oinstall 18 Sep 6 22:17 crsdata
[oracle@rac1 oracle]$
可以发现rac2 oracle 用户 $ORACLE_HOME 目录已经不在了。 $ORACLE_BASE 目录下面仅剩下crsdata 目录
rac2 结点目录删除后情况:
[oracle@rac2 oracle]$ echo $ORACLE_HOME
/u01/app/oracle/product/21/dbhome_1
[oracle@rac2 oracle]$ echo $ORACLE_BASE
/u01/app/oracle
[oracle@rac2 oracle]$ ls -l $ORACLE_HOME
ls: cannot access '/u01/app/oracle/product/21/dbhome_1': No such file or directory
[oracle@rac2 oracle]$ ls -l $ORACLE_BASE
total 0
drwxr-x---. 2 oracle oinstall 54 Oct 20 11:13 dbs
[oracle@rac2 oracle]$
rac2 oracle 用户$ORACLE_HOME 目录也不在了。$ORACLE_BASE 目录下面仅剩下dbs 目录
3.1.2 交互卸载GI 集群软件
3.1.2.1 节点rac1 终端1 以grid 用户执行deinstall 命令
[grid@rac1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2022-10-20_12-34-56PM/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/21.0.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /u01/app/grid
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/21.0.0/grid
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
Checking for sufficient temp space availability on node(s) : 'rac1,rac2'
## [END] Install check configuration ##
Traces log file: /tmp/deinstall2022-10-20_12-34-56PM/logs//crsdc_2022-10-20_12-35-08-PM.log
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2022-10-20_12-34-56PM/logs/netdc_check2022-10-20_12-35-09PM.log
Specify all RAC listeners (do not include SCAN listener) that are to be de-configured. Enter .(dot) to deselect all. [LISTENER]:
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /tmp/deinstall2022-10-20_12-34-56PM/logs/asmcadc_check2022-10-20_12-35-09PM.log
Automatic Storage Management (ASM) instance is detected in this Oracle home /u01/app/21.0.0/grid.
ASM Diagnostic Destination : /u01/app/grid
ASM Diskgroups : +DATA,+OV
ASM diskstring : /dev/sd*,AFD:*
Diskgroups will be dropped and all ASM filter driver labels will be cleared
De-configuring ASM will drop all the diskgroups and their contents at cleanup time. Also ASM filter driver labels will be cleared. This will affect all of the databases and ACFS that use this ASM instance(s).
If you want to retain the existing diskgroups and associated ASM filter driver labels or if any of the information detected is incorrect, you can modify by entering 'y'. Do you want to modify above information (y|n) [n]:
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/21.0.0/grid
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac1,rac2
Oracle Home selected for deinstall is: /u01/app/21.0.0/grid
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following RAC listener(s) will be de-configured: LISTENER
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/deinstall2022-10-20_12-34-56PM/logs/deinstall_deconfig2022-10-20_12-35-02-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2022-10-20_12-34-56PM/logs/deinstall_deconfig2022-10-20_12-35-02-PM.err'
######################## DECONFIG CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2022-10-20_12-34-56PM/logs/asmcadc_clean2022-10-20_12-35-09PM.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2022-10-20_12-34-56PM/logs/netdc_clean2022-10-20_12-35-09PM.log
De-configuring RAC listener(s): LISTENER
De-configuring listener: LISTENER
Stopping listener: LISTENER
Listener stopped successfully.
Unregistering listener: LISTENER
Listener unregistered successfully.
Listener de-configured successfully.
The network configuration has been cleaned up successfully.
Network Configuration clean config END
---------------------------------------->
The deconfig command below can be executed in parallel on all the remote nodes. Execute the command on the local node after the execution completes on all the remote nodes.
Run the following command as the root user or the administrator on node "rac2".
/u01/app/21.0.0/grid/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2022-10-20_12-34-56PM/response/deinstall_OraGI21Home1.rsp"
Run the following command as the root user or the administrator on node "rac1".
/u01/app/21.0.0/grid/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2022-10-20_12-34-56PM/response/deinstall_OraGI21Home1.rsp" -lastnode
Press Enter after you finish running the above commands
<----------------------------------------
看到提示, 需要到其他的远程结点以root 用户运行脚本。 然后再回到节点1 接着运行。
3.1.2.2 节点rac2 终端1 以root 用户运行rootcrs.sh -force -deconfig 命令
rootcrs.sh -force -deconfig 为集群配置清空命令
可参考官档说明:https://docs.oracle.com/en/database/oracle/oracle-database/21/cwlin/unconfiguring-oracle-clusterware-without-removing-binaries.html#GUID-0227CF72-BF1D-4BBA-9C47-934DCD2EC5A8
[root@rac2 ~]# /u01/app/21.0.0/grid/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2022-10-20_12-34-56PM/response/deinstall_OraGI21Home1.rsp"
Using configuration parameter file: /tmp/deinstall2022-10-20_12-34-56PM/response/deinstall_OraGI21Home1.rsp
2022-10-20 12:38:16: Got permissions of file /tmp/deinstall2022-10-20_12-34-56PM/logs: 0775
2022-10-20 12:38:16: Got permissions of file /u01/app/grid/crsdata: 0775
2022-10-20 12:38:16: Got permissions of file /u01/app/grid/crsdata/rac2: 0775
The log of current session can be found at:
/tmp/deinstall2022-10-20_12-34-56PM/logs/crsdeconfig_rac2_2022-10-20_12-38-16AM.log
Redirecting to /bin/systemctl restart rsyslog.service
2022/10/20 12:39:27 CLSRSC-4006: Removing Oracle Autonomous Health Framework (AHF).
2022/10/20 12:41:35 CLSRSC-4007: Successfully removed Oracle Autonomous Health Framework (AHF).
2022/10/20 12:41:38 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node
[root@rac2 ~]#
[root@rac2 ~]# ps -ef |grep grid
root 139487 133505 0 12:54 pts/1 00:00:00 grep --color=auto grid
[root@rac2 ~]#
3.1.2.3 节点rac1 终端2 以root 用户运行rootcrs.sh -force -deconfig 命令
[root@rac1 ~]# /u01/app/21.0.0/grid/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/d einstall2022-10-20_12-34-56PM/response/deinstall_OraGI21Home1.rsp" -lastnode
Using configuration parameter file: /tmp/deinstall2022-10-20_12-34-56PM/response/deinstall_OraG I21Home1.rsp
The log of current session can be found at:
/tmp/deinstall2022-10-20_12-34-56PM/logs/crsdeconfig_rac1_2022-10-20_12-46-29AM.log
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded
Redirecting to /bin/systemctl restart rsyslog.service
2022/10/20 12:50:28 CLSRSC-4006: Removing Oracle Autonomous Health Framework (AHF).
2022/10/20 12:52:34 CLSRSC-4007: Successfully removed Oracle Autonomous Health Framework (AHF).
2022/10/20 12:52:37 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node
2022/10/20 12:52:37 CLSRSC-559: Ensure that the GPnP profile data under the 'gpnp' directory in /u01/app/21.0.0/grid is deleted on each node before using the software in the current Grid Infrastructure home for reconfiguration.
[root@rac1 ~]# ps -ef |grep grid
grid 3759 1 0 09:55 ? 00:00:00 /usr/lib/systemd/systemd --user
grid 3762 3759 0 09:55 ? 00:00:00 (sd-pam)
grid 4049 3759 0 09:55 ? 00:00:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root 82480 9356 0 12:31 pts/0 00:00:00 su - grid
grid 82481 82480 0 12:31 pts/0 00:00:00 -bash
root 83129 990 0 12:33 ? 00:00:00 sshd: grid [priv]
root 83188 990 0 12:33 ? 00:00:00 sshd: grid [priv]
grid 83189 83129 0 12:33 ? 00:00:00 sshd: grid@pts/1
grid 83191 83189 0 12:33 pts/1 00:00:00 -bash
grid 83225 83188 0 12:33 ? 00:00:00 sshd: grid@notty
grid 83226 1 0 12:33 ? 00:00:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 6 --print-address 8 --session
grid 83228 1 0 12:33 ? 00:00:00 /bin/bash /usr/libexec/dbus-1/dbus-kill-process-with-session 83226
grid 83231 83228 0 12:33 ? 00:00:00 gio monitor -f /run/systemd/sessions/12
grid 83242 1 0 12:33 ? 00:00:00 /usr/libexec/gvfsd
grid 83243 83225 0 12:33 ? 00:00:00 /usr/libexec/openssh/sftp-server
grid 83270 1 0 12:33 ? 00:00:00 /usr/libexec/gvfsd-fuse /run/user/54322/gvfs -f -o big_writes
grid 86954 83191 0 12:34 pts/1 00:00:00 /bin/sh ./deinstall
grid 89478 86954 0 12:35 pts/1 00:00:00 /tmp/deinstall2022-10-20_12-34-56PM/perl/bin/perl /tmp/deinstall2022-10-20_12-34-56PM/deinstall.pl 0 1 /tmp/deinstall2022-10-20_12-34-56PM /tmp/deinstall2022-10-20_12-34-56PM -d64 /u01/app/21.0.0/grid
grid 89483 89478 1 12:35 pts/1 00:00:15 /tmp/deinstall2022-10-20_12-34-56PM/jdk/bin/java -d64 -DNOHOME=false -Dpid=89478 -Doracle.installer.jre_loc=/tmp/deinstall2022-10-20_12-34-56PM/jdk -DLOGDIR= -Djava.io.tmpdir=/tmp/deinstall2022-10-20_12-34-56PM -DBOOTSTRAP_DIR=/tmp/deinstall2022-10-20_12-34-56PM -DUSER=grid -DHOME_OPT=0 -Doracle.installer.oui_loc=/tmp/deinstall2022-10-20_12-34-56PM/oui -Doracle.installer.timeStamp=2022-10-20_12-35-02-PM -DisNextGen=false -classpath /tmp/deinstall2022-10-20_12-34-56PM/jlib/deinstall_wrapper.jar:/tmp/deinstall2022-10-20_12-34-56PM/install/jlib/instcommon.jar:/tmp/deinstall2022-10-20_12-34-56PM/install/jlib/installcommons_1.0.0b.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/crsdc.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/vipca.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/cvu.jar:/tmp/deinstall2022-10-20_12-34-56PM/oui/jlib/orai18n-mapping.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/srvm.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/srvmhas.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/mgmtca.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/deinstall_core.jar:/tmp/deinstall2022-10-20_12-34-56PM/oui/jlib/OraInstaller.jar:/tmp/deinstall2022-10-20_12-34-56PM/oui/jlib/OraCheckPoint.jar:/tmp/deinstall2022-10-20_12-34-56PM/oui/jlib/OraPrereq.jar:/tmp/deinstall2022-10-20_12-34-56PM/oui/jlib/share.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/ewt3.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/help4.jar:/tmp/deinstall2022-10-20_12-34-56PM/oui/jlib/xmlparserv2.jar:/tmp/deinstall2022-10-20_12-34-56PM/assistants/jlib/assistantsCommon.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/dbca.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/dbma.jar:/tmp/deinstall2022-10-20_12-34-56PM/oui/jlib/OraPrereqChecks.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/srvmasm.jar:/tmp/deinstall2022-10-20_12-34-56PM/assistants/netca/jlib/netca.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/netcam.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/netcfg.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/ldapjclnt.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/srvmasm.jar:/tmp/deinstall2022-10-20_12-34-56PM/oui/jlib/xmlparserv2.jar:/tmp/deinstall2022-10-20_12-34-56PM/assistants/jlib/assistantsCommon.jar:/tmp/deinstall2022-10-20_12-34-56PM/oui/jlib/share.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/emConfigInstall.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/emCORE.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/emca.jar:/tmp/deinstall2022-10-20_12-34-56PM/oui/jlib/http_client.jar:/tmp/deinstall2022-10-20_12-34-56PM/jlib/deconfigCCR.jar:/tmp/deinstall2022-10-20_12-34-56PM/oui/jlib/srvm.jar:/tmp/deinstall2022-10-20_12-34-56PM/ext/jlib/cvu.jar oracle.install.db.deinstall.wrapper.Deinstall -deConfig -home /u01/app/21.0.0/grid
root 107492 95366 0 12:55 pts/2 00:00:00 grep --color=auto grid
[root@rac1 ~]#
3.1.2.4 节点rac1 终端1 继续未完成的deinstall
---------------------------------------->
The deconfig command below can be executed in parallel on all the remote nodes. Execute the command on the local node after the execution completes on all the remote nodes.
Run the following command as the root user or the administrator on node "rac2".
/u01/app/21.0.0/grid/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2022-10-20_12-34-56PM/response/deinstall_OraGI21Home1.rsp"
Run the following command as the root user or the administrator on node "rac1".
/u01/app/21.0.0/grid/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2022-10-20_12-34-56PM/response/deinstall_OraGI21Home1.rsp" -lastnode
Press Enter after you finish running the above commands
<----------------------------------------
###### 注意按照上面的提示成功运行以上两个章节命令后,按回车后,会继续输出以下内容
######################### DECONFIG CLEAN OPERATION END #########################
####################### DECONFIG CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Following RAC listener(s) were de-configured successfully: LISTENER
Oracle Clusterware is stopped and successfully de-configured on node "rac1"
Oracle Clusterware is stopped and successfully de-configured on node "rac2"
Oracle Clusterware is stopped and de-configured successfully.
#######################################################################
############# ORACLE DECONFIG TOOL END #############
Using properties file /tmp/deinstall2022-10-20_12-34-56PM/response/deinstall_2022-10-20_12-35-02-PM.rsp
Location of logs /tmp/deinstall2022-10-20_12-34-56PM/logs/
############ ORACLE DEINSTALL TOOL START ############
####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/tmp/deinstall2022-10-20_12-34-56PM/logs/deinstall_deconfig2022-10-20_12-35-02-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2022-10-20_12-34-56PM/logs/deinstall_deconfig2022-10-20_12-35-02-PM.err'
######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to rac1
Setting REMOTE_NODES to rac2
Setting CLUSTER_NODES to rac1,rac2
Setting CRS_HOME to true
Setting oracle.installer.invPtrLoc to /tmp/deinstall2022-10-20_12-34-56PM/oraInst.loc
Setting oracle.installer.local to false
Checking if Oracle Autonomous Health Framework(AHF)/Oracle Trace File Analyzer(TFA) is configured
AHF/TFA is not configured
## [END] Preparing for Deinstall ##
Oracle Universal Installer clean START
Detach Oracle home '/u01/app/21.0.0/grid' from the central inventory on the remote nodes 'rac2' : Done
Delete directory '/u01/app/21.0.0/grid' on the remote nodes 'rac2' : Done
Delete directory '/u01/app/oraInventory' on the remote nodes 'rac2' : Done
Delete directory '/u01/app/grid' on the remote nodes 'rac2' : Done
Detach Oracle home 'OraGI21Home1' from the central inventory on the local node : Done
Delete directory '/u01/app/21.0.0/grid' on the local node : Done
Delete directory '/u01/app/oraInventory' on the local node : Done
Delete directory '/u01/app/grid' on the local node : Done
You can find a log of this session at:
'/tmp/deinstall2022-10-20_12-34-56PM/logs//Cleanup2022-10-20_12-58-34PM.log'
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2022-10-20_12-34-56PM' on node 'rac2'
## [END] Oracle install clean ##
######################### DEINSTALL CLEAN OPERATION END #########################
####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/u01/app/21.0.0/grid' from the central inventory on the remote nodes 'rac2'.
Successfully deleted directory '/u01/app/21.0.0/grid' on the remote nodes 'rac2'.
Successfully deleted directory '/u01/app/oraInventory' on the remote nodes 'rac2'.
Successfully deleted directory '/u01/app/grid' on the remote nodes 'rac2'.
Successfully detached Oracle home 'OraGI21Home1' from the central inventory on the local node.
Successfully deleted directory '/u01/app/21.0.0/grid' on the local node.
Successfully deleted directory '/u01/app/oraInventory' on the local node.
Successfully deleted directory '/u01/app/grid' on the local node.
Run rm -r /etc/oraInst.loc as root on node(s) rac1 at the end of the session.
Oracle Universal Installer cleanup was successful.
Run 'rm -r /opt/ORCLfmap' as root on node(s) 'rac1,rac2' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL TOOL END #############
[grid@rac1 deinstall]$
看提示,最后还有两个操作:
[root@rac1 ~]# rm -r /etc/oraInst.loc
rm: remove regular file '/etc/oraInst.loc'? y
[root@rac1 ~]# rm -r /opt/ORCLfmap
rm: descend into directory '/opt/ORCLfmap'? y
rm: descend into directory '/opt/ORCLfmap/prot1_64'? y
rm: descend into directory '/opt/ORCLfmap/prot1_64/bin'? y
rm: remove regular file '/opt/ORCLfmap/prot1_64/bin/fmputl'? y
rm: remove regular file '/opt/ORCLfmap/prot1_64/bin/fmputlhp'? y
rm: remove directory '/opt/ORCLfmap/prot1_64/bin'? y
rm: descend into directory '/opt/ORCLfmap/prot1_64/etc'? y
rm: remove regular file '/opt/ORCLfmap/prot1_64/etc/filemap.ora'? y
rm: remove directory '/opt/ORCLfmap/prot1_64/etc'? y
rm: remove directory '/opt/ORCLfmap/prot1_64/log'? y
rm: remove directory '/opt/ORCLfmap/prot1_64'? y
rm: remove directory '/opt/ORCLfmap'? y
[root@rac1 ~]#
[root@rac2 ~]# rm -r /opt/ORCLfmap
rm: descend into directory '/opt/ORCLfmap'? y
rm: descend into directory '/opt/ORCLfmap/prot1_64'? y
rm: descend into directory '/opt/ORCLfmap/prot1_64/bin'? y
rm: remove regular file '/opt/ORCLfmap/prot1_64/bin/fmputl'? y
rm: remove regular file '/opt/ORCLfmap/prot1_64/bin/fmputlhp'? y
rm: remove directory '/opt/ORCLfmap/prot1_64/bin'? y
rm: descend into directory '/opt/ORCLfmap/prot1_64/etc'? y
rm: remove regular file '/opt/ORCLfmap/prot1_64/etc/filemap.ora'? y
rm: remove directory '/opt/ORCLfmap/prot1_64/etc'? y
rm: remove directory '/opt/ORCLfmap/prot1_64/log'? y
rm: remove directory '/opt/ORCLfmap/prot1_64'? y
rm: remove directory '/opt/ORCLfmap'? y
[root@rac2 ~]#
3.1.2.5 查看文件存在情况
[grid@rac1 ~]$ echo $ORACLE_HOME
/u01/app/21.0.0/grid
[grid@rac1 ~]$ echo $ORACLE_BASE
/u01/app/grid
[grid@rac1 ~]$ ls -l $ORACLE_HOME
ls: cannot access '/u01/app/21.0.0/grid': No such file or directory
[grid@rac1 ~]$ ls -l $ORACLE_BASE
ls: cannot access '/u01/app/grid': No such file or directory
[grid@rac1 ~]$ ls -l /u01/app
total 0
drwxr-xr-x 2 grid oinstall 6 Oct 20 12:58 21.0.0
drwxrwxr-x 3 grid oinstall 21 Oct 20 11:14 oracle
[grid@rac1 ~]$
[grid@rac2 ~]$ echo $ORACLE_HOME
/u01/app/21.0.0/grid
[grid@rac2 ~]$ echo $ORACLE_BASE
/u01/app/grid
[grid@rac2 ~]$ ls -l $ORACLE_HOME
ls: cannot access '/u01/app/21.0.0/grid': No such file or directory
[grid@rac2 ~]$ ls -l $ORACLE_BASE
ls: cannot access '/u01/app/grid': No such file or directory
[grid@rac2 ~]$ ls -l /u01/app
total 0
drwxrwxr-x. 2 grid oinstall 6 Oct 20 12:58 21.0.0
drwxrwxr-x. 3 oracle oinstall 17 Oct 20 11:14 oracle
[grid@rac2 ~]$
3.2 静默卸载
静默卸载需要使用参数文件,所以先交互式生成参数文件, 然后再执行卸载命令。不使用交互生成,也可以直接编辑参数样例文件 $ORACLE_HOME/deinstall/response/deinstall.rsp.tmpl
(样例中的内容不容易填,建议直接交互生成参数文件)
3.2.1 交互式生成卸载oracle database 软件参数文件
[oracle@rac1 deinstall]$ ./deinstall -checkonly
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/app/oraInventory/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/oracle/product/21/dbhome_1
Oracle Home type selected for deinstall is: Oracle Real Application Cluster Database
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/21.0.0/grid
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
Checking for sufficient temp space availability on node(s) : 'rac1,rac2'
## [END] Install check configuration ##
## [START] GIMR check configuration ##
Checking for existence of GIMR
GIMR Home not detected
## [END] GIMR check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2022-10-20_02-08-18PM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_check2022-10-20_02-08-18PM.log
Oracle Grid Management database was not found in this Oracle home
Use comma as separator when specifying list of values as input
Specify the list of database names that are configured in this Oracle home [R21300C]:
###### For Database 'R21300C' ######
RAC Database
The nodes on which this database has instances: [rac1, rac2]
The instance names: [R21300C1, R21300C2]
The local instance name on node: R21300C1
The diagnostic destination location of the database: /u01/app/oracle/diag/rdbms/r21300c
Storage type used by the Database: ASM
The details of database(s) R21300C have been discovered automatically. Do you still want to modify the details of R21300C database(s)? [n]:
Database Check Configuration END
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/21.0.0/grid
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac1,rac2
Oracle Home selected for deinstall is: /u01/app/oracle/product/21/dbhome_1
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
The following databases were selected for de-configuration. The databases will be deleted and will not be useful upon de-configuration : R21300C
Database unique name : R21300C
Storage used : ASM
Oracle Grid Management database was not found in this Oracle home
Location of response file generated: '/tmp/deinstall2022-10-20_02-07-42PM/response/deinstall_OraDB21Home1.rsp'
A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2022-10-20_02-08-07-PM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2022-10-20_02-08-07-PM.err'
############# ORACLE DECONFIG TOOL END #############
[oracle@rac1 deinstall]$
注意到生成的参数文件提示在 /tmp/deinstall2022-10-20_02-07-42PM/response/deinstall_OraDB21Home1.rsp 。 具体文件内容在下一章节单。
3.2.2 静默卸载oracle database 软件
使用参数文件后,不用再交互输入参数了。
[oracle@rac1 deinstall]$ ./deinstall -silent -paramfile /tmp/deinstall2022-10-20_02-07-42PM/response/deinstall_OraDB21Home1.rsp
Checking for required files and bootstrapping ...
Please wait ...
Using properties file /tmp/deinstall2022-10-20_02-07-42PM/response/deinstall_OraDB21Home1.rsp
Location of logs /u01/app/oraInventory/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/oracle/product/21/dbhome_1
Oracle Home type selected for deinstall is: Oracle Real Application Cluster Database
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/21.0.0/grid
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
Checking for sufficient temp space availability on node(s) : 'rac1,rac2'
## [END] Install check configuration ##
## [START] GIMR check configuration ##
Checking for existence of GIMR
GIMR Home not detected
## [END] GIMR check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2022-10-20_02-24-28PM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_check2022-10-20_02-24-28PM.log
Oracle Grid Management database was not found in this Oracle home
###### For Database 'R21300C' ######
RAC Database
The nodes on which this database has instances: [rac1, rac2]
The instance names: [R21300C1, R21300C2]
The local instance name on node: R21300C1
The diagnostic destination location of the database: /u01/app/oracle/diag/rdbms/r21300c
Storage type used by the Database: ASM
Database Check Configuration END
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/21.0.0/grid
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac1,rac2
Oracle Home selected for deinstall is: /u01/app/oracle/product/21/dbhome_1
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
The following databases were selected for de-configuration. The databases will be deleted and will not be useful upon de-configuration : R21300C
Database unique name : R21300C
Storage used : ASM
Oracle Grid Management database was not found in this Oracle home
A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2022-10-20_02-24-15-PM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2022-10-20_02-24-15-PM.err'
######################## DECONFIG CLEAN OPERATION START ########################
## [START] GIMR configuration update ##
## [END] GIMR configuration update ##
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_clean2022-10-20_02-24-28PM.log
Database Clean Configuration START R21300C
This operation may take few minutes.
Database Clean Configuration END R21300C
Network Configuration clean config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean2022-10-20_02-24-28PM.log
The network configuration has been cleaned up successfully.
Network Configuration clean config END
######################### DECONFIG CLEAN OPERATION END #########################
####################### DECONFIG CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : R21300C
There is no Oracle Grid Management database to de-configure in this Oracle home
#######################################################################
############# ORACLE DECONFIG TOOL END #############
Using properties file /tmp/deinstall2022-10-20_02-07-42PM/response/deinstall_OraDB21Home1.rsp
Location of logs /u01/app/oraInventory/logs/
############ ORACLE DEINSTALL TOOL START ############
####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2022-10-20_02-24-15-PM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2022-10-20_02-24-15-PM.err'
######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to rac1
Setting REMOTE_NODES to rac2
Setting CLUSTER_NODES to rac1,rac2
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2022-10-20_02-23-40PM/oraInst.loc
Setting oracle.installer.local to false
Removing directory '/u01/app/oracle/homes/OraDB21Home1' on node(s) 'rac1'
Removing directory '/u01/app/oracle/homes/OraDB21Home1' on node(s) 'rac2'
## [END] Preparing for Deinstall ##
Oracle Universal Installer clean START
Detach Oracle home '/u01/app/oracle/product/21/dbhome_1' from the central inventory on the remote nodes 'rac2' : Done
Delete directory '/u01/app/oracle/product/21/dbhome_1' on the remote nodes 'rac2' : Done
The Oracle Base directory '/u01/app/oracle' will not be removed on node 'rac2'. The directory is not empty.
Detach Oracle home 'OraDB21Home1' from the central inventory on the local node : Done
Delete directory '/u01/app/oracle/product/21/dbhome_1' on the local node : Done
The Oracle Base directory '/u01/app/oracle' will not be removed on local node. The directory is not empty. User needs to manually cleanup this directory.
You can find a log of this session at:
'/u01/app/oraInventory/logs//Cleanup2022-10-20_02-25-54PM.log'
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2022-10-20_02-23-40PM' on node 'rac2'
## [END] Oracle install clean ##
######################### DEINSTALL CLEAN OPERATION END #########################
####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/u01/app/oracle/product/21/dbhome_1' from the central inventory on the remote nodes 'rac2'.
Successfully deleted directory '/u01/app/oracle/product/21/dbhome_1' on the remote nodes 'rac2'.
Successfully detached Oracle home 'OraDB21Home1' from the central inventory on the local node.
Successfully deleted directory '/u01/app/oracle/product/21/dbhome_1' on the local node.
Oracle Universal Installer cleanup was successful.
Review the permissions and contents of '/u01/app/oracle' on nodes(s) 'rac1,rac2'.
If there are no Oracle home(s) associated with '/u01/app/oracle', manually delete '/u01/app/oracle' and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL TOOL END #############
[oracle@rac1 deinstall]$
3.2.3 交互式生成卸载GI 集群软件参数文件
[grid@rac1 deinstall]$ ./deinstall -checkonly
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2022-10-20_02-37-25PM/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/21.0.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /u01/app/grid
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/21.0.0/grid
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
Checking for sufficient temp space availability on node(s) : 'rac1,rac2'
## [END] Install check configuration ##
Traces log file: /tmp/deinstall2022-10-20_02-37-25PM/logs//crsdc_2022-10-20_02-37-43-PM.log
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2022-10-20_02-37-25PM/logs/netdc_check2022-10-20_02-37-44PM.log
Specify all RAC listeners (do not include SCAN listener) that are to be de-configured. Enter .(dot) to deselect all. [LISTENER]:
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /tmp/deinstall2022-10-20_02-37-25PM/logs/asmcadc_check2022-10-20_02-37-44PM.log
Automatic Storage Management (ASM) instance is detected in this Oracle home /u01/app/21.0.0/grid.
ASM Diagnostic Destination : /u01/app/grid
ASM Diskgroups : +DATA,+OV
ASM diskstring : /dev/sd*,AFD:*
Diskgroups will be dropped and all ASM filter driver labels will be cleared
De-configuring ASM will drop all the diskgroups and their contents at cleanup time. Also ASM filter driver labels will be cleared. This will affect all of the databases and ACFS that use this ASM instance(s).
If you want to retain the existing diskgroups and associated ASM filter driver labels or if any of the information detected is incorrect, you can modify by entering 'y'. Do you want to modify above information (y|n) [n]:
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/21.0.0/grid
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac1,rac2
Oracle Home selected for deinstall is: /u01/app/21.0.0/grid
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following RAC listener(s) will be de-configured: LISTENER
ASM instance will be de-configured from this Oracle home
Location of response file generated: '/tmp/deinstall2022-10-20_02-37-25PM/response/deinstall_OraGI21Home1.rsp'
A log of this session will be written to: '/tmp/deinstall2022-10-20_02-37-25PM/logs/deinstall_deconfig2022-10-20_02-37-37-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2022-10-20_02-37-25PM/logs/deinstall_deconfig2022-10-20_02-37-37-PM.err'
############# ORACLE DECONFIG TOOL END #############
[grid@rac1 deinstall]$
3.2.4 节点rac1 grid 用户静默卸载GI 集群软件
[grid@rac1 deinstall]$ ./deinstall -silent -paramfile /tmp/deinstall2022-10-20_02-37-25PM/response/deinstall_OraGI21Home1.rsp
Checking for required files and bootstrapping ...
Please wait ...
Using properties file /tmp/deinstall2022-10-20_02-37-25PM/response/deinstall_OraGI21Home1.rsp
Location of logs /tmp/deinstall2022-10-20_02-37-25PM/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/21.0.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /u01/app/grid
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/21.0.0/grid
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
Checking for sufficient temp space availability on node(s) : 'rac1,rac2'
## [END] Install check configuration ##
Traces log file: /tmp/deinstall2022-10-20_02-37-25PM/logs//crsdc_2022-10-20_02-56-47-PM.log
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2022-10-20_02-37-25PM/logs/netdc_check2022-10-20_02-56-47PM.log
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /tmp/deinstall2022-10-20_02-37-25PM/logs/asmcadc_check2022-10-20_02-56-47PM.log
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/21.0.0/grid
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac1,rac2
Oracle Home selected for deinstall is: /u01/app/21.0.0/grid
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following RAC listener(s) will be de-configured: LISTENER
ASM instance will be de-configured from this Oracle home
A log of this session will be written to: '/tmp/deinstall2022-10-20_02-37-25PM/logs/deinstall_deconfig2022-10-20_02-56-41-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2022-10-20_02-37-25PM/logs/deinstall_deconfig2022-10-20_02-56-41-PM.err'
######################## DECONFIG CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2022-10-20_02-37-25PM/logs/asmcadc_clean2022-10-20_02-56-47PM.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2022-10-20_02-37-25PM/logs/netdc_clean2022-10-20_02-56-47PM.log
De-configuring RAC listener(s): LISTENER
De-configuring listener: LISTENER
Stopping listener: LISTENER
Listener stopped successfully.
Unregistering listener: LISTENER
Listener unregistered successfully.
Listener de-configured successfully.
The network configuration has been cleaned up successfully.
Network Configuration clean config END
<----------------------------------------
As the privileged user, Execute "/u01/app/21.0.0/grid/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2022-10-20_02-56-29PM/response/deinstall_OraGI21Home1.rsp"" on every node in this cluster except for this node, and then execute "/tmp/deinstall2022-10-20_02-56-29PM/rootdeinstall.sh" on this node to remove the configuration of the Oracle Clusterware and to completely remove the Oracle software
<----------------------------------------
######################### DECONFIG CLEAN OPERATION END #########################
####################### DECONFIG CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Following RAC listener(s) were de-configured successfully: LISTENER
As the privileged user, Execute "/u01/app/21.0.0/grid/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2022-10-20_02-56-29PM/response/deinstall_OraGI21Home1.rsp"" on every node in this cluster except for this node, and then execute "/tmp/deinstall2022-10-20_02-56-29PM/rootdeinstall.sh" on this node to remove the configuration of the Oracle Clusterware and to completely remove the Oracle software
Oracle Clusterware is stopped and de-configured successfully.
#######################################################################
############# ORACLE DECONFIG TOOL END #############
[grid@rac1 deinstall]$
看提示说明:还需要执行两个步骤
在其他的节点(除本节点外)运行 "/u01/app/21.0.0/grid/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2022-10-20_02-56-29PM/response/deinstall_OraGI21Home1.rsp""
其他节点运行完上面的命令行, 再回到本节点运行下面的命令,以完成卸载。
"/tmp/deinstall2022-10-20_02-56-29PM/rootdeinstall.sh"
3.2.5 节点rac2 以root 用户运行rootcrs.sh -force -deconfig 命令
[root@rac2 ~]# /u01/app/21.0.0/grid/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2022-10-20_02-56-29PM/response/deinstall_OraGI21Home1.rsp" Using configuration parameter file: /tmp/deinstall2022-10-20_02-56-29PM/response/deinstall_OraGI21Home1.rsp 2022-10-20 15:11:13: Got permissions of file /tmp/deinstall2022-10-20_02-37-25PM/logs: 0775 2022-10-20 15:11:13: Got permissions of file /u01/app/grid/crsdata: 0775 2022-10-20 15:11:13: Got permissions of file /u01/app/grid/crsdata/rac2: 0775 The log of current session can be found at: /tmp/deinstall2022-10-20_02-37-25PM/logs/crsdeconfig_rac2_2022-10-20_03-11-13PM.log Redirecting to /bin/systemctl restart rsyslog.service 2022/10/20 15:12:12 CLSRSC-4006: Removing Oracle Autonomous Health Framework (AHF). 2022/10/20 15:14:20 CLSRSC-4007: Successfully removed Oracle Autonomous Health Framework (AHF). 2022/10/20 15:14:22 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node [root@rac2 ~]#
3.2.6 节点rac1 以root 运行rootdeinstall.sh 完成卸载
[root@rac1 ~]# /tmp/deinstall2022-10-20_02-56-29PM/rootdeinstall.sh Using configuration parameter file: /tmp/deinstall2022-10-20_02-56-29PM/response/deinstall_OraGI21Home1.rsp The log of current session can be found at: /tmp/deinstall2022-10-20_02-37-25PM/logs/crsdeconfig_rac1_2022-10-20_03-18-52PM.log CRS-2673: Attempting to stop 'ora.crsd' on 'rac1' CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded Redirecting to /bin/systemctl restart rsyslog.service 2022/10/20 15:23:03 CLSRSC-4006: Removing Oracle Autonomous Health Framework (AHF). 2022/10/20 15:25:08 CLSRSC-4007: Successfully removed Oracle Autonomous Health Framework (AHF). 2022/10/20 15:25:12 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node 2022/10/20 15:25:12 CLSRSC-559: Ensure that the GPnP profile data under the 'gpnp' directory in /u01/app/21.0.0/grid is deleted on each node before using the software in the current Grid Infrastructure home for reconfiguration. Checking for required files and bootstrapping ... Please wait ... Using properties file /tmp/deinstall2022-10-20_02-56-29PM/response/deinstall_OraGI21Home1.rsp Location of logs /tmp/deinstall2022-10-20_02-37-25PM/logs/ ############ ORACLE DEINSTALL TOOL START ############ A log of this session will be written to: '/tmp/deinstall2022-10-20_02-37-25PM/logs/deinstall_deconfig2022-10-20_03-25-14-PM.out' Any error messages from this session will be written to: '/tmp/deinstall2022-10-20_02-37-25PM/logs/deinstall_deconfig2022-10-20_03-25-14-PM.err' ######################## DEINSTALL CLEAN OPERATION START ######################## ## [START] Preparing for Deinstall ## Setting LOCAL_NODE to rac1 Setting REMOTE_NODES to rac2 Setting CLUSTER_NODES to rac1,rac2 Setting CRS_HOME to true Setting oracle.installer.invPtrLoc to /tmp/deinstall2022-10-20_02-56-29PM/oraInst.loc Setting oracle.installer.local to false Checking if Oracle Autonomous Health Framework(AHF)/Oracle Trace File Analyzer(TFA) is configured AHF/TFA is not configured ## [END] Preparing for Deinstall ## Oracle Universal Installer clean START Detach Oracle home '/u01/app/21.0.0/grid' from the central inventory on the remote nodes 'rac2' : Done Delete directory '/u01/app/21.0.0/grid' on the remote nodes 'rac2' : Done Delete directory '/u01/app/oraInventory' on the remote nodes 'rac2' : Done Delete directory '/u01/app/grid' on the remote nodes 'rac2' : Done Detach Oracle home 'OraGI21Home1' from the central inventory on the local node : Done Delete directory '/u01/app/21.0.0/grid' on the local node : Done Delete directory '/u01/app/oraInventory' on the local node : Done The Oracle Base directory '/u01/app/grid' will not be removed on local node. The directory is not empty. User needs to manually cleanup this directory. You can find a log of this session at: '/tmp/deinstall2022-10-20_02-37-25PM/logs//Cleanup2022-10-20_03-25-15PM.log' Oracle Universal Installer clean END ## [START] Oracle install clean ## Clean install operation removing temporary directory '/tmp/deinstall2022-10-20_02-56-29PM' on node 'rac2' ## [END] Oracle install clean ## ######################### DEINSTALL CLEAN OPERATION END ######################### ####################### DEINSTALL CLEAN OPERATION SUMMARY ####################### Successfully detached Oracle home '/u01/app/21.0.0/grid' from the central inventory on the remote nodes 'rac2'. Successfully deleted directory '/u01/app/21.0.0/grid' on the remote nodes 'rac2'. Successfully deleted directory '/u01/app/oraInventory' on the remote nodes 'rac2'. Successfully deleted directory '/u01/app/grid' on the remote nodes 'rac2'. Successfully detached Oracle home 'OraGI21Home1' from the central inventory on the local node. Successfully deleted directory '/u01/app/21.0.0/grid' on the local node. Successfully deleted directory '/u01/app/oraInventory' on the local node. Run rm -r /etc/oraInst.loc as root on node(s) rac1 at the end of the session. Oracle Universal Installer cleanup was successful. Run 'rm -r /opt/ORCLfmap' as root on node(s) 'rac1,rac2' at the end of the session. Review the permissions and contents of '/u01/app/grid' on nodes(s) 'rac1'. If there are no Oracle home(s) associated with '/u01/app/grid', manually delete '/u01/app/grid' and its contents. Oracle deinstall tool successfully cleaned up temporary directories. ####################################################################### ############# ORACLE DEINSTALL TOOL END ############# [root@rac1 ~]#
[root@rac1 ~]# rm -r /etc/oraInst.loc rm: remove regular file '/etc/oraInst.loc'? y [root@rac1 ~]# rm -r /opt/ORCLfmap rm: descend into directory '/opt/ORCLfmap'? y rm: descend into directory '/opt/ORCLfmap/prot1_64'? y rm: descend into directory '/opt/ORCLfmap/prot1_64/bin'? y rm: remove regular file '/opt/ORCLfmap/prot1_64/bin/fmputl'? y rm: remove regular file '/opt/ORCLfmap/prot1_64/bin/fmputlhp'? y rm: remove directory '/opt/ORCLfmap/prot1_64/bin'? y rm: descend into directory '/opt/ORCLfmap/prot1_64/etc'? y rm: remove regular file '/opt/ORCLfmap/prot1_64/etc/filemap.ora'? y rm: remove directory '/opt/ORCLfmap/prot1_64/etc'? y rm: remove directory '/opt/ORCLfmap/prot1_64/log'? y rm: remove directory '/opt/ORCLfmap/prot1_64'? y rm: remove directory '/opt/ORCLfmap'? y [root@rac1 ~]# [root@rac2 ~]# rm -r /opt/ORCLfmap rm: descend into directory '/opt/ORCLfmap'? y rm: descend into directory '/opt/ORCLfmap/prot1_64'? y rm: descend into directory '/opt/ORCLfmap/prot1_64/bin'? y rm: remove regular file '/opt/ORCLfmap/prot1_64/bin/fmputl'? y rm: remove regular file '/opt/ORCLfmap/prot1_64/bin/fmputlhp'? y rm: remove directory '/opt/ORCLfmap/prot1_64/bin'? y rm: descend into directory '/opt/ORCLfmap/prot1_64/etc'? y rm: remove regular file '/opt/ORCLfmap/prot1_64/etc/filemap.ora'? y rm: remove directory '/opt/ORCLfmap/prot1_64/etc'? y rm: remove directory '/opt/ORCLfmap/prot1_64/log'? y rm: remove directory '/opt/ORCLfmap/prot1_64'? y rm: remove directory '/opt/ORCLfmap'? y [root@rac2 ~]#
4 其他文件
4.1 交互时节点1运行rootcrs.sh -force -deconfig时自动使用的参数文件
[root@rac1 ~]# cat /tmp/deinstall2022-10-20_12-34-56PM/response/deinstall_OraGI21Home1.rsp
# Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
ORACLE_HOME=/u01/app/21.0.0/grid
CDATA_AUSIZE=4
BIG_CLUSTER=true
ISROLLING=true
LOCAL_NODE=rac1
OCR_VD_DISKGROUPS="+DATA,+OV"
ObaseCleanupPtrLoc=/tmp/deinstall2022-10-20_12-34-56PM/utl/orabase_cleanup.lst
EXTENDED_CLUSTER=false
SINGLE_NETWORK=false
LISTENER_USERNAME=grid
local=false
inventory_loc=/u01/app/oraInventory
ORACLE_HOME=/u01/app/21.0.0/grid
ASM_HOME=/u01/app/21.0.0/grid
ASM_DISK_GROUPS="+DATA,+OV"
HUB_NODE_VIPS=rac1-vip,rac2-vip
ORA_DBA_GROUP=oinstall
ASM_DISCOVERY_STRING=/dev/sd*
CDATA_DISKS=/dev/sda1,/dev/sdb1,/dev/sdc1
MinimumSupportedVersion=11.2.0.1.0
ORACLE_HOME_VERSION=21.0.0.0.0
ASM_DISKSTRING=/dev/sd*,AFD:*
AHF_INSTALL_LOC=/opt/oracle.ahf
CRS_HOME=true
USER_IGNORED_PREREQ=false
RHP_CONF=false
GIMR_SERVICE_STATUS=NOT_CONFIGURED
CRS_STORAGE_OPTION=1
GIMR_CONFIG=no
CDATA_BACKUP_SIZE=0
GPNPGCONFIGDIR=$ORACLE_HOME
CDATA_DISK_GROUP=OV
LANGUAGE_ID=AMERICAN_AMERICA.AL32UTF8
CRS_NODEVIPS='rac1-vip/255.255.255.0/ens214,rac2-vip/255.255.255.0/ens214'
ORACLE_OWNER=grid
silent=true
INSTALL_NODE=rac1
ORACLE_HOME_VERSION_VALID=true
inst_group=oinstall
LOGDIR=/tmp/deinstall2022-10-20_12-34-56PM/logs/
EXTENDED_CLUSTER_SITES=rac-cluster
CDATA_REDUNDANCY=EXTERNAL
HUB_NODE_LIST=rac1,rac2
NODE_NAME_LIST=rac1,rac2
ORA_CRS_HOME=/u01/app/21.0.0/grid
ASM_LOCAL_SID=+ASM1
ORACLE_BASE=/u01/app/grid
GNS_CONF=false
CLUSTER_CLASS=STANDALONE
ORACLE_BINARY_OK=true
ASM_CONFIG=near
ASM_ORACLE_BASE=/u01/app/grid
GPNPCONFIGDIR=$ORACLE_HOME
ORA_ASM_GROUP=asmadmin
CDATA_BACKUP_AUSIZE=1
ASM_UPGRADE=false
NETCA_LISTENERS_REGISTERED_WITH_CRS=LISTENER
CLUSTER_NODES=rac1,rac2
ASM_DIAGNOSTIC_DEST=/u01/app/grid
AFD_CONFIGURED=true
MGMT_DB=false
SCAN_PORT=1521
ASM_DROP_DISKGROUPS=true
CLUSTER_TYPE=DB
NETWORKS="ens213"/192.168.12.0:asm,"ens213"/192.168.12.0:cluster_interconnect,"ens214"/192.168.13.0:public,"ens212"/192.168.12.0:asm,"ens212"/192.168.12.0:cluster_interconnect
OCR_VOTINGDISK_IN_ASM=true
HUB_SIZE=32
CDATA_SIZE=0
REUSEDG=false
ASM_IN_HOME=true
HOME_TYPE=CRS
AFD_CONF=true
CLUSTER_NAME=rac-cluster
SILENT=false
TZ=Asia/Shanghai
SCAN_TYPE=LOCAL
DC_HOME=/tmp/deinstall2022-10-20_12-34-56PM/logs/
CSS_LEASEDURATION=400
REMOTE_NODES=rac2
AHF_REPOS_LOC=/u01/app/grid/data/repository
SCAN_NAME=rac-cluster-scan
INVENTORY_LOCATION=/u01/app/oraInventory
[root@rac1 ~]#
4.2 交互时节点2运行rootcrs.sh -force -deconfig时自动使用的参数文件
节点2 的参数文件,已经在命令运行完成后,被自动删除。后续待补充。
[root@rac2 ~]# cat /tmp/deinstall2022-10-20_12-34-56PM/response/deinstall_OraGI21Home1.rsp
cat: /tmp/deinstall2022-10-20_12-34-56PM/response/deinstall_OraGI21Home1.rsp: No such file or directory
[root@rac2 ~]#
4.3 静默卸载oracle software时交互生成的参数文件
[oracle@rac1 deinstall]$ cat /tmp/deinstall2022-10-20_02-07-42PM/response/deinstall_OraDB21Home1.rsp
# Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
ORACLE_HOME=/u01/app/oracle/product/21/dbhome_1
LOCAL_NODE=rac1
HOME_TYPE=RACDB
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME_VERSION=21.0.0.0.0
MGMTDB_PWDFILE=
ObaseCleanupPtrLoc=/tmp/deinstall2022-10-20_02-07-42PM/utl/orabase_cleanup.lst
EMCA_LOG.R21300C=/u01/app/oracle/cfgtoollogs/emca/R21300C
MGMTDB_DB_UNIQUE_NAME=
MGMTDB_ORACLE_BASE=/u01/app/oracle
silent=false
ORA_CRS_HOME=/u01/app/21.0.0/grid
MinimumSupportedVersion=11.2.0.1.0
DROP_MGMTDB=false
LOGDIR=/u01/app/oraInventory/logs/
ORACLE_HOME_VERSION_VALID=true
DATAFILE_LOC.R21300C=
LOCAL_SID.R21300C=R21300C1
ORACLE_BASE.R21300C=/u01/app/oracle
ORACLE_BINARY_OK=true
MGMTDB_SID=""
DBCA_LOG.R21300C=/u01/app/oracle/cfgtoollogs/dbca/R21300C
MGMTDB_SPFILE=""
FLASH_RECOVERY_LOC.R21300C=
inst_group=oinstall
RAW_MAPPING_FILE.R21300C=
ARCHIVE_LOG_MODE_ENABLED.R21300C=false
MGMTDB_DIAG=
CLUSTER_NODES=rac1,rac2
inventory_loc=/u01/app/oraInventory
REMOTE_NODES=rac2
MGMTDB_NODE_LIST=
DUMP_DESTINATION_LOC.R21300C=/u01/app/oracle/admin/R21300C
STORAGE_TYPE.R21300C=ASM
SID_LIST.R21300C=R21300C1,R21300C2
SPFILE_LOC.R21300C=+DATA/R21300C/PARAMETERFILE/spfile.257.1114726165
DB_TYPE.R21300C=RAC_DB
CONFIGFILE_LOC.R21300C=+DATA/R21300C/CONTROLFILE/current.271.1114725781,/u01/app/oracle/homes/OraDB21Home1/dbs/dr1R21300C.dat,/u01/app/oracle/homes/OraDB21Home1/dbs/dr2R21300C.dat
local=false
INVENTORY_LOCATION=/u01/app/oraInventory
UNIFIED_AUDIT_LOC.R21300C=/u01/app/oracle/audit
OPERATION_TYPE.R21300C=DELETEDB
MGMTDB_IN_HOME=false
MGMTDB_DATAFILE=
ORACLE_BASE_HOME=/u01/app/oracle/homes/OraDB21Home1
ORACLE_HOME=/u01/app/oracle/product/21/dbhome_1
CRS_HOME=false
ORACLE_BASE_CONFIG.R21300C=/u01/app/oracle/dbs
DIAG_DEST.R21300C=/u01/app/oracle/diag/rdbms/r21300c
CREATION_MODE.R21300C=y
MGMTDB_NODE=
NODE_LIST.R21300C=rac1,rac2
DB_UNIQUE_NAME_LIST=R21300C
[oracle@rac1 deinstall]$
4.4 静默卸载GI集群软件生成的参数文件
[grid@rac1 deinstall]$ cat /tmp/deinstall2022-10-20_02-37-25PM/response/deinstall_OraGI21Home1.rsp
# Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
ORACLE_HOME=/u01/app/21.0.0/grid
CDATA_AUSIZE=4
BIG_CLUSTER=true
ISROLLING=true
LOCAL_NODE=rac1
OCR_VD_DISKGROUPS="+DATA,+OV"
ObaseCleanupPtrLoc=/tmp/deinstall2022-10-20_02-37-25PM/utl/orabase_cleanup.lst
CDATA_BACKUP_QUORUM_GROUPS=
ASM_CREDENTIALS=
EXTENDED_CLUSTER=false
SINGLE_NETWORK=false
LISTENER_USERNAME=grid
local=false
inventory_loc=/u01/app/oraInventory
ORACLE_HOME=/u01/app/21.0.0/grid
ASM_HOME=/u01/app/21.0.0/grid
ASM_DISK_GROUPS="+DATA,+OV"
HUB_NODE_VIPS=rac1-vip,rac2-vip
PING_TARGETS=
ORA_DBA_GROUP=oinstall
ASM_DISCOVERY_STRING=/dev/sd*
CDATA_DISKS=/dev/sda1,/dev/sdb1,/dev/sdc1
MinimumSupportedVersion=11.2.0.1.0
ORACLE_HOME_VERSION=21.0.0.0.0
ASM_DISKSTRING=/dev/sd*,AFD:*
CDATA_QUORUM_GROUPS=
AHF_INSTALL_LOC=/opt/oracle.ahf
CRS_HOME=true
ODA_CONFIG=
USER_IGNORED_PREREQ=false
RHP_CONF=false
HAS_NOMULTICAST_ENV=
GIMR_SERVICE_STATUS=NOT_CONFIGURED
GNS_TYPE=
CRS_STORAGE_OPTION=1
CDATA_SITES=
GIMR_CONFIG=no
CDATA_BACKUP_SIZE=0
GPNPGCONFIGDIR=$ORACLE_HOME
CDATA_DISK_GROUP=OV
LANGUAGE_ID=AMERICAN_AMERICA.AL32UTF8
CDATA_BACKUP_FAILURE_GROUPS=
RHP_PROVISIONED=
CRS_NODEVIPS='rac1-vip/255.255.255.0/ens214,rac2-vip/255.255.255.0/ens214'
ORACLE_OWNER=grid
GNS_ALLOW_NET_LIST=
silent=false
INSTALL_NODE=rac1
ORACLE_HOME_VERSION_VALID=true
inst_group=oinstall
LOGDIR=/tmp/deinstall2022-10-20_02-37-25PM/logs/
CDATA_EXC_VAULT=
EXTENDED_CLUSTER_SITES=rac-cluster
CDATA_REDUNDANCY=EXTERNAL
CDATA_BACKUP_DISK_GROUP=
APPLICATION_VIP=
HUB_NODE_LIST=rac1,rac2
GNS_DENY_ITF_LIST=
NODE_NAME_LIST=rac1,rac2
ORA_CRS_HOME=/u01/app/21.0.0/grid
ASM_LOCAL_SID=+ASM1
ORACLE_BASE=/u01/app/grid
GNS_CONF=false
CLUSTER_CLASS=STANDALONE
ORACLE_BINARY_OK=true
ASM_CONFIG=near
CDATA_BACKUP_REDUNDANCY=
CDATA_FAILURE_GROUPS=
OCR_LOCATIONS=
GIMR_CREDENTIALS=
ASM_ORACLE_BASE=/u01/app/grid
GPNPCONFIGDIR=$ORACLE_HOME
ORA_ASM_GROUP=asmadmin
GNS_CREDENTIALS=
CDATA_BACKUP_AUSIZE=1
GNS_DENY_NET_LIST=
OLD_CRS_HOME=
GNS_DOMAIN_LIST=
ASM_UPGRADE=false
NETCA_LISTENERS_REGISTERED_WITH_CRS=LISTENER
CDATA_BACKUP_DISKS=
ASMCA_ARGS=
CLUSTER_NODES=rac1,rac2
ASM_DIAGNOSTIC_DEST=/u01/app/grid
AFD_LABELS_NO_DG=
AFD_CONFIGURED=true
MGMT_DB=false
SCAN_PORT=1521
ASM_DROP_DISKGROUPS=true
OPC_NAT_ADDRESS=
CLUSTER_TYPE=DB
NETWORKS="ens213"/192.168.12.0:asm,"ens213"/192.168.12.0:cluster_interconnect,"ens214"/192.168.13.0:public,"ens212"/192.168.12.0:asm,"ens212"/192.168.12.0:cluster_interconnect
OCR_VOTINGDISK_IN_ASM=true
HUB_SIZE=32
CDATA_BACKUP_SITES=
CDATA_SIZE=0
REUSEDG=false
ASM_IN_HOME=true
ORACLE_SVCUSER=
HOME_TYPE=CRS
GNS_ADDR_LIST=
CLUSTER_NAME=rac-cluster
AFD_CONF=true
OPC_CLUSTER_TYPE=
VOTING_DISKS=
SILENT=false
SCAN_CREDENTIALS=
TZ=Asia/Shanghai
SCAN_TYPE=LOCAL
GPNP_PA=
DC_HOME=/tmp/deinstall2022-10-20_02-37-25PM/logs/
CSS_LEASEDURATION=400
REMOTE_NODES=rac2
ASM_SPFILE=
AHF_REPOS_LOC=/u01/app/grid/data/repository
SCAN_NAME=rac-cluster-scan
RIM_NODE_LIST=
EXTENDED_CLUSTER_SITE_GUIDS=
INVENTORY_LOCATION=/u01/app/oraInventory
FASTDEPLOY_MODE=
[grid@rac1 deinstall]$
4.5 静默时节点2运行rootcrs.sh -force -deconfig使用的参数文件
[root@rac2 ~]# cat /tmp/deinstall2022-10-20_02-56-29PM/response/deinstall_OraGI21Home1.rsp
# Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
ORACLE_HOME=/u01/app/21.0.0/grid
CDATA_AUSIZE=4
BIG_CLUSTER=true
ISROLLING=true
LOCAL_NODE=rac1
OCR_VD_DISKGROUPS="+DATA,+OV"
ObaseCleanupPtrLoc=/tmp/deinstall2022-10-20_02-56-29PM/utl/orabase_cleanup.lst
CDATA_BACKUP_QUORUM_GROUPS=
ASM_CREDENTIALS=
EXTENDED_CLUSTER=false
SINGLE_NETWORK=false
LISTENER_USERNAME=grid
local=false
inventory_loc=/u01/app/oraInventory
ORACLE_HOME=/u01/app/21.0.0/grid
ASM_HOME=/u01/app/21.0.0/grid
ASM_DISK_GROUPS="+DATA,+OV"
HUB_NODE_VIPS=rac1-vip,rac2-vip
PING_TARGETS=
ORA_DBA_GROUP=oinstall
ASM_DISCOVERY_STRING=/dev/sd*
CDATA_DISKS=/dev/sda1,/dev/sdb1,/dev/sdc1
MinimumSupportedVersion=11.2.0.1.0
ORACLE_HOME_VERSION=21.0.0.0.0
ASM_DISKSTRING=/dev/sd*,AFD:*
CDATA_QUORUM_GROUPS=
AHF_INSTALL_LOC=/opt/oracle.ahf
CRS_HOME=true
ODA_CONFIG=
USER_IGNORED_PREREQ=false
RHP_CONF=false
HAS_NOMULTICAST_ENV=
GIMR_SERVICE_STATUS=NOT_CONFIGURED
GNS_TYPE=
CRS_STORAGE_OPTION=1
CDATA_SITES=
GIMR_CONFIG=no
CDATA_BACKUP_SIZE=0
GPNPGCONFIGDIR=$ORACLE_HOME
CDATA_DISK_GROUP=OV
LANGUAGE_ID=AMERICAN_AMERICA.AL32UTF8
CDATA_BACKUP_FAILURE_GROUPS=
RHP_PROVISIONED=
CRS_NODEVIPS='rac1-vip/255.255.255.0/ens214,rac2-vip/255.255.255.0/ens214'
ORACLE_OWNER=grid
GNS_ALLOW_NET_LIST=
silent=true
INSTALL_NODE=rac1
ORACLE_HOME_VERSION_VALID=true
inst_group=oinstall
LOGDIR=/tmp/deinstall2022-10-20_02-37-25PM/logs/
CDATA_EXC_VAULT=
EXTENDED_CLUSTER_SITES=rac-cluster
CDATA_REDUNDANCY=EXTERNAL
CDATA_BACKUP_DISK_GROUP=
APPLICATION_VIP=
HUB_NODE_LIST=rac1,rac2
GNS_DENY_ITF_LIST=
NODE_NAME_LIST=rac1,rac2
ORA_CRS_HOME=/u01/app/21.0.0/grid
ASM_LOCAL_SID=+ASM1
ORACLE_BASE=/u01/app/grid
GNS_CONF=false
CLUSTER_CLASS=STANDALONE
ORACLE_BINARY_OK=true
ASM_CONFIG=near
CDATA_BACKUP_REDUNDANCY=
CDATA_FAILURE_GROUPS=
OCR_LOCATIONS=
GIMR_CREDENTIALS=
ASM_ORACLE_BASE=/u01/app/grid
GPNPCONFIGDIR=$ORACLE_HOME
ORA_ASM_GROUP=asmadmin
GNS_CREDENTIALS=
GNS_DENY_NET_LIST=
OLD_CRS_HOME=
CDATA_BACKUP_AUSIZE=1
GNS_DOMAIN_LIST=
ASM_UPGRADE=false
CDATA_BACKUP_DISKS=
NETCA_LISTENERS_REGISTERED_WITH_CRS=LISTENER
ASMCA_ARGS=
CLUSTER_NODES=rac1,rac2
ASM_DIAGNOSTIC_DEST=/u01/app/grid
AFD_LABELS_NO_DG=
AFD_CONFIGURED=true
MGMT_DB=false
SCAN_PORT=1521
ASM_DROP_DISKGROUPS=true
OPC_NAT_ADDRESS=
CLUSTER_TYPE=DB
NETWORKS="ens213"/192.168.12.0:asm,"ens213"/192.168.12.0:cluster_interconnect,"ens214"/192.168.13.0:public,"ens212"/192.168.12.0:asm,"ens212"/192.168.12.0:cluster_interconnect
OCR_VOTINGDISK_IN_ASM=true
HUB_SIZE=32
CDATA_BACKUP_SITES=
CDATA_SIZE=0
REUSEDG=false
ORACLE_SVCUSER=
HOME_TYPE=CRS
ASM_IN_HOME=true
GNS_ADDR_LIST=
AFD_CONF=true
CLUSTER_NAME=rac-cluster
OPC_CLUSTER_TYPE=
VOTING_DISKS=
SCAN_CREDENTIALS=
SILENT=false
TZ=Asia/Shanghai
GPNP_PA=
SCAN_TYPE=LOCAL
DC_HOME=/tmp/deinstall2022-10-20_02-37-25PM/logs/
CSS_LEASEDURATION=400
REMOTE_NODES=rac2
ASM_SPFILE=
AHF_REPOS_LOC=/u01/app/grid/data/repository
RIM_NODE_LIST=
SCAN_NAME=rac-cluster-scan
EXTENDED_CLUSTER_SITE_GUIDS=
INVENTORY_LOCATION=/u01/app/oraInventory
FASTDEPLOY_MODE=
[root@rac2 ~]#
5 个人总结
如果GI 卸载时,仍有数据库软件在其上运行,则GI 不能卸载,必须先将Oracle database 软件卸载后,才能装GI 卸载。
6 资料参考引用
https://docs.oracle.com/en/database/oracle/oracle-database/21/cwlin/removing-oracle-database-software.html#GUID-5619EBF0-C89E-4349-AE6F-A8F8B3B06BD1
