12.2C集群清理环境

有套12.2C rac环境一直未使用,因12c已停产,客户要求重新部署成19c集群,正好有个机会做个清理过程

MOS文件: 如何(Deconfigure)解除配置/(Reconfigure)重新配置(重建 OCR)或卸载 GI (Doc ID 2016852.1)

步骤
1  使用dbca删除实例
2  节点一上使用oracle用户执行$ORACLE_HOME/deinstall/deinstall
3  节点一上使用grid用户执行$ORACLE_HOME/deinstall/deinstall

[oracle@hydb1 ~]$ srvctl config database -d nyudb
Database unique name: nyudb
Database name: nyudb
Oracle home: /u01/app/oracle/product/12.2.0/db_1
Oracle user: oracle
Spfile: +DATA/NYUDB/PARAMETERFILE/spfile.272.1098361415
Password file: +DATA/NYUDB/PASSWORD/pwdnyudb.256.1098360805
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools:
Disk Groups: FRA,DATA
Mount point paths:
Services:
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: dba
OSOPER group: oper
Database instances: nyudb1,nyudb2
Configured nodes: hydb1,hydb2
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services:
Database is administrator managed
[oracle@hydb1 ~]$

-----------------------------------------------------------------------------
[oracle@hydb1 ~]$ dbca -silent -deleteDatabase -sourceDB nyudb  -nodeinfo hydb1,hydb2
Enter SYS user password:

Connecting to database
9% complete
14% complete
19% complete
23% complete
28% complete
33% complete
38% complete
47% complete
Updating network configuration files
48% complete
52% complete
Deleting instances and datafiles
66% complete
80% complete
95% complete
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/nyudb.log" for further details.
[oracle@hydb1 ~]$

[oracle@hydb1 ~]$ $ORACLE_HOME/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/12.2.0/db_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/12.2.0/grid
The following nodes are part of this cluster: hydb1,hydb2
Active Remote Nodes are hydb2
Checking for sufficient temp space availability on node(s) : 'hydb1,hydb2'

## [END] Install check configuration ##


Network Configuration check config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2023-05-24_01-44-53-PM.log

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_check2023-05-24_01-44-56-PM.log

Use comma as separator when specifying list of values as input

Specify the list of database names that are configured in this Oracle home []:
Database Check Configuration END
Oracle Configuration Manager check START
OCM check log file location : /u01/app/oraInventory/logs//ocm_check5834.log
Oracle Configuration Manager check END

######################### DECONFIG CHECK OPERATION END #########################


####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/12.2.0/grid
The following nodes are part of this cluster: hydb1,hydb2
Active Remote Nodes are hydb2
The cluster node(s) on which the Oracle home deinstallation will be performed are:hydb1,hydb2
Oracle Home selected for deinstall is: /u01/app/oracle/product/12.2.0/db_1
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Checking the config status for CCR
hydb1 : Oracle Home exists with CCR directory, but CCR is not configured
hydb2 : Oracle Home exists with CCR directory, but CCR is not configured
CCR check is finished
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_deconfig2023-05-24_01-44-40-PM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2023-05-24_01-44-40-PM.err'

######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_clean2023-05-24_01-47-02-PM.log

Network Configuration clean config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean2023-05-24_01-47-02-PM.log

De-configuring Listener configuration file on all nodes...
Listener configuration file de-configured successfully.

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

Oracle Configuration Manager clean START
OCM clean log file location : /u01/app/oraInventory/logs//ocm_clean5834.log
Oracle Configuration Manager clean END

######################### DECONFIG CLEAN OPERATION END #########################


####################### DECONFIG CLEAN OPERATION SUMMARY #######################
Cleaning the config for CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
#######################################################################


############# ORACLE DECONFIG TOOL END #############

Using properties file /tmp/deinstall2023-05-24_01-44-27PM/response/deinstall_2023-05-24_01-44-40-PM.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_deconfig2023-05-24_01-44-40-PM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2023-05-24_01-44-40-PM.err'

######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to hydb1
Setting REMOTE_NODES to hydb2
Setting CLUSTER_NODES to hydb1,hydb2
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2023-05-24_01-44-27PM/oraInst.loc
Setting oracle.installer.local to false

## [END] Preparing for Deinstall ##

Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START

Detach Oracle home '/u01/app/oracle/product/12.2.0/db_1' from the central inventory on the local node : Done

Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-48-13/machine-readable'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-48-13/.tmp'. Either user has no permission to delete or it is in use.
Failed to delete the file '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-48-13/log.txt'. Either the file is in use or there are not enough permissions to delete the file.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-48-13'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-48-56/machine-readable'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-48-56/.tmp'. Either user has no permission to delete or it is in use.
Failed to delete the file '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-48-56/log.txt.lck'. Either the file is in use or there are not enough permissions to delete the file.
Failed to delete the file '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-48-56/log.txt'. Either the file is in use or there are not enough permissions to delete the file.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-48-56'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1'. The directory is not empty.
Delete directory '/u01/app/oracle/product/12.2.0/db_1' on the local node : Failed <<<<

Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-48-13/machine-readable'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-48-13/.tmp'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-48-56/machine-readable'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-48-56/.tmp'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-48-13/machine-readable'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-48-13/.tmp'. Either user has no permission to delete or it is in use.
Failed to delete the file '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-48-13/log.txt'. Either the file is in use or there are not enough permissions to delete the file.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-48-13'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-48-56/machine-readable'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-48-56/.tmp'. Either user has no permission to delete or it is in use.
Failed to delete the file '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-48-56/log.txt.lck'. Either the file is in use or there are not enough permissions to delete the file.
Failed to delete the file '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-48-56/log.txt'. Either the file is in use or there are not enough permissions to delete the file.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-48-56'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle/product/12.2.0/db_1'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle/product/12.2.0'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle/product'. The directory is not empty.
Failed to delete the directory '/u01/app/oracle'. The directory is not empty.
Delete directory '/u01/app/oracle' on the local node : Failed <<<<

Detach Oracle home '/u01/app/oracle/product/12.2.0/db_1' from the central inventory on the remote nodes 'hydb2' : Done

Delete directory '/u01/app/oracle/product/12.2.0/db_1' on the remote nodes 'hydb2' : Failed <<<<

Could not remove listed directories based on '/tmp/OraInstall2023-05-24_01-47-07-PM/installRemoveDirFile.lst' from nodes 'hydb2'. [PRKC-1083 : Failed to remove listed directory in "/tmp/OraInstall2023-05-24_01-47-07-PM/installRemoveDirFile.lst" to any of the given nodes "hydb2 ".
Error on node hydb2:/bin/rm: cannot remove ‘/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-52-10/machine-readable’: Permission denied
/bin/rm: cannot remove ‘/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-52-10/.tmp’: Permission denied
/bin/rm: cannot remove ‘/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/driver/2022-03-03-11-52-10/log.txt’: Permission denied
/bin/rm: cannot remove ‘/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-52-31/machine-readable’: Permission denied
/bin/rm: cannot remove ‘/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-52-31/.tmp’: Permission denied
/bin/rm: cannot remove ‘/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-52-31/log.txt.lck’: Permission denied
/bin/rm: cannot remove ‘/u01/app/oracle/product/12.2.0/db_1/cfgtoollogs/opatchautodb/2022-03-03-11-52-31/log.txt’: Permission denied]

Delete directory '/u01/app/oracle' on the remote nodes 'hydb2' : Failed <<<<

The directory '/u01/app/oracle' could not be deleted on the nodes 'hydb2'.
Oracle Universal Installer cleanup completed with errors.

Oracle Universal Installer clean END


## [START] Oracle install clean ##

Clean install operation removing temporary directory '/tmp/deinstall2023-05-24_01-44-27PM' on node 'hydb2'

## [END] Oracle install clean ##


######################### DEINSTALL CLEAN OPERATION END #########################


####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/u01/app/oracle/product/12.2.0/db_1' from the central inventory on the local node.
Failed to delete directory '/u01/app/oracle/product/12.2.0/db_1' on the local node.
Failed to delete directory '/u01/app/oracle' on the local node.
Successfully detached Oracle home '/u01/app/oracle/product/12.2.0/db_1' from the central inventory on the remote nodes 'hydb2'.
Failed to delete directory '/u01/app/oracle/product/12.2.0/db_1' on the remote nodes 'hydb2'.
Failed to delete directory '/u01/app/oracle' on the remote nodes 'hydb2'.
Oracle Universal Installer cleanup completed with errors.

Review the permissions and contents of '/u01/app/oracle' on nodes(s) 'hydb1,hydb2'.
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@hydb1 ~]$

----------------------------------------------------------------------------------
[root@hydb1 ~]#  su - grid
[grid@hydb1 ~]$  crsctl status res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.FRA.dg
               ONLINE  ONLINE       hydb1                    STABLE
               ONLINE  ONLINE       hydb2                    STABLE
ora.ASMNET1LSNR_ASM.lsnr
               ONLINE  ONLINE       hydb1                    STABLE
               ONLINE  ONLINE       hydb2                    STABLE
ora.CRS.dg
               ONLINE  ONLINE       hydb1                    STABLE
               ONLINE  ONLINE       hydb2                    STABLE
ora.DATA.dg
               ONLINE  ONLINE       hydb1                    STABLE
               ONLINE  ONLINE       hydb2                    STABLE
ora.LISTENER.lsnr
               ONLINE  ONLINE       hydb1                    STABLE
               ONLINE  ONLINE       hydb2                    STABLE
ora.chad
               ONLINE  ONLINE       hydb1                    STABLE
               ONLINE  ONLINE       hydb2                    STABLE
ora.net1.network
               ONLINE  ONLINE       hydb1                    STABLE
               ONLINE  ONLINE       hydb2                    STABLE
ora.ons
               ONLINE  ONLINE       hydb1                    STABLE
               ONLINE  ONLINE       hydb2                    STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       hydb2                    STABLE
ora.MGMTLSNR
      1        ONLINE  ONLINE       hydb2                    169.254.59.183 10.10
                                                             .101.202,STABLE
ora.asm
      1        ONLINE  ONLINE       hydb1                    Started,STABLE
      2        ONLINE  ONLINE       hydb2                    Started,STABLE
ora.cvu
      1        ONLINE  ONLINE       hydb2                    STABLE
ora.mgmtdb
      1        ONLINE  ONLINE       hydb2                    Open,STABLE
ora.hydb1.vip
      1        ONLINE  ONLINE       hydb1                    STABLE
ora.hydb2.vip
      1        ONLINE  ONLINE       hydb2                    STABLE
ora.qosmserver
      1        ONLINE  ONLINE       hydb2                    STABLE
ora.scan1.vip
      1        ONLINE  ONLINE       hydb2                    STABLE
--------------------------------------------------------------------------------
[grid@hydb1 ~]$


[grid@hydb1 ~]$  $ORACLE_HOME/deinstall/deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2023-05-24_01-53-13PM/logs/

############ ORACLE DECONFIG TOOL START ############


######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##


Checking for existence of the Oracle home location /u01/app/12.2.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/12.2.0/grid
The following nodes are part of this cluster: hydb1,hydb2
Active Remote Nodes are hydb2
Checking for sufficient temp space availability on node(s) : 'hydb1,hydb2'

## [END] Install check configuration ##

Traces log file: /tmp/deinstall2023-05-24_01-53-13PM/logs//crsdc_2023-05-24_01-53-39-PM.log

Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2023-05-24_01-53-13PM/logs/netdc_check2023-05-24_01-53-41-PM.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/deinstall2023-05-24_01-53-13PM/logs/asmcadc_check2023-05-24_01-54-59-PM.log

Automatic Storage Management (ASM) instance is detected in this Oracle home /u01/app/12.2.0/grid.
ASM Diagnostic Destination : /u01/app/grid
ASM Diskgroups : +FRA,+CRS,+DATA
ASM diskstring : /dev/mapper/asm*
Diskgroups will be dropped
De-configuring ASM will drop all the diskgroups and their contents at cleanup time. This will affect all of the databases and ACFS that use this ASM instance(s).
 If you want to retain the existing diskgroups 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]:
Database Check Configuration START

Database de-configuration trace file location: /tmp/deinstall2023-05-24_01-53-13PM/logs/databasedc_check2023-05-24_01-55-40-PM.log

Oracle Grid Management database was found in this Grid Infrastructure home

Database Check Configuration END

######################### DECONFIG CHECK OPERATION END #########################


####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/12.2.0/grid
The following nodes are part of this cluster: hydb1,hydb2
Active Remote Nodes are hydb2
The cluster node(s) on which the Oracle home deinstallation will be performed are:hydb1,hydb2
Oracle Home selected for deinstall is: /u01/app/12.2.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
Oracle Grid Management database was found in this Grid Infrastructure home
Oracle Grid Management database will be de-configured from this Grid Infrastructure home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/tmp/deinstall2023-05-24_01-53-13PM/logs/deinstall_deconfig2023-05-24_01-53-26-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2023-05-24_01-53-13PM/logs/deinstall_deconfig2023-05-24_01-53-26-PM.err'

######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /tmp/deinstall2023-05-24_01-53-13PM/logs/databasedc_clean2023-05-24_01-55-58-PM.log
This operation may take few minutes.
 ASM de-configuration trace file location: /tmp/deinstall2023-05-24_01-53-13PM/logs/asmcadc_clean2023-05-24_01-56-06-PM.log
ASM Clean Configuration START
ASM Clean Configuration END

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2023-05-24_01-53-13PM/logs/netdc_clean2023-05-24_01-56-34-PM.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.

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


---------------------------------------->

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 "hydb2".

/u01/app/12.2.0/grid/crs/install/rootcrs.sh -force  -deconfig -paramfile "/tmp/deinstall2023-05-24_01-53-13PM/response/deinstall_OraGI12Home1.rsp"

Run the following command as the root user or the administrator on node "hydb1".

/u01/app/12.2.0/grid/crs/install/rootcrs.sh -force  -deconfig -paramfile "/tmp/deinstall2023-05-24_01-53-13PM/response/deinstall_OraGI12Home1.rsp" -lastnode

Press Enter after you finish running the above commands

<----------------------------------------

以下部分是分别在2个主机上执行删除后回车后的结果


######################### DECONFIG CLEAN OPERATION END #########################


####################### DECONFIG CLEAN OPERATION SUMMARY #######################
Successfully de-configured Oracle Grid Management database
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 "hydb2"
Oracle Clusterware is stopped and successfully de-configured on node "hydb1"
Oracle Clusterware is stopped and de-configured successfully.
#######################################################################


############# ORACLE DECONFIG TOOL END #############

Using properties file /tmp/deinstall2023-05-24_01-53-13PM/response/deinstall_2023-05-24_01-53-26-PM.rsp
Location of logs /tmp/deinstall2023-05-24_01-53-13PM/logs/

############ ORACLE DEINSTALL TOOL START ############

####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/tmp/deinstall2023-05-24_01-53-13PM/logs/deinstall_deconfig2023-05-24_01-53-26-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2023-05-24_01-53-13PM/logs/deinstall_deconfig2023-05-24_01-53-26-PM.err'

######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to hydb1
Setting REMOTE_NODES to hydb2
Setting CLUSTER_NODES to hydb1,hydb2
Setting CRS_HOME to true
Setting oracle.installer.invPtrLoc to /tmp/deinstall2023-05-24_01-53-13PM/oraInst.loc
Setting oracle.installer.local to false

## [END] Preparing for Deinstall ##

Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START

Detach Oracle home '/u01/app/12.2.0/grid' from the central inventory on the local node : Done

Delete directory '/u01/app/12.2.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.

Detach Oracle home '/u01/app/12.2.0/grid' from the central inventory on the remote nodes 'hydb2' : Done

Delete directory '/u01/app/12.2.0/grid' on the remote nodes 'hydb2' : Done

Delete directory '/u01/app/oraInventory' on the remote nodes 'hydb2' : Done
Oracle Universal Installer cleanup was successful.


Run 'rm -r /etc/oraInst.loc' as root on node(s) 'hydb1,hydb2' at the end of the session.

Run 'rm -r /opt/ORCLfmap' as root on node(s) 'hydb1,hydb2' at the end of the session.
Review the permissions and contents of '/u01/app/grid' on nodes(s) 'hydb1,hydb2'.
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@hydb2 ~]#  /u01/app/12.2.0/grid/crs/install/rootcrs.sh -force  -deconfig -paramfile "/tmp/deinstall2023-05-24_01-53-13PM/response/deinstall_OraGI12Home1.rsp"
Using configuration parameter file: /tmp/deinstall2023-05-24_01-53-13PM/response/deinstall_OraGI12Home1.rsp
The log of current session can be found at:
  /tmp/deinstall2023-05-24_01-53-13PM/logs/crsdeconfig_hydb2_2023-05-24_01-57-49PM.log
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'hydb2'
CRS-2673: Attempting to stop 'ora.crsd' on 'hydb2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on server 'hydb2'
CRS-2673: Attempting to stop 'ora.CRS.dg' on 'hydb2'
CRS-2673: Attempting to stop 'ora.chad' on 'hydb2'
CRS-2677: Stop of 'ora.CRS.dg' on 'hydb2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'hydb2'
CRS-2677: Stop of 'ora.asm' on 'hydb2' succeeded
CRS-2673: Attempting to stop 'ora.ASMNET1LSNR_ASM.lsnr' on 'hydb2'
CRS-2677: Stop of 'ora.chad' on 'hydb2' succeeded
CRS-2677: Stop of 'ora.ASMNET1LSNR_ASM.lsnr' on 'hydb2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'hydb2' has completed
CRS-2677: Stop of 'ora.crsd' on 'hydb2' succeeded
CRS-2673: Attempting to stop 'ora.storage' on 'hydb2'
CRS-2673: Attempting to stop 'ora.crf' on 'hydb2'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'hydb2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'hydb2'
CRS-2677: Stop of 'ora.crf' on 'hydb2' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'hydb2' succeeded
CRS-2677: Stop of 'ora.storage' on 'hydb2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'hydb2'
CRS-2677: Stop of 'ora.mdnsd' on 'hydb2' succeeded
CRS-2677: Stop of 'ora.asm' on 'hydb2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'hydb2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'hydb2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'hydb2'
CRS-2673: Attempting to stop 'ora.evmd' on 'hydb2'
CRS-2677: Stop of 'ora.ctssd' on 'hydb2' succeeded
CRS-2677: Stop of 'ora.evmd' on 'hydb2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'hydb2'
CRS-2677: Stop of 'ora.cssd' on 'hydb2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'hydb2'
CRS-2677: Stop of 'ora.gipcd' on 'hydb2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'hydb2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2023/05/24 13:59:53 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node
------------------------------------------------------------------------
[root@hydb1 ~]# /u01/app/12.2.0/grid/crs/install/rootcrs.sh -force  -deconfig -paramfile "/tmp/deinstall2023-05-24_01-53-13PM/response/deinstall_OraGI12Home1.rsp" -lastnode
Using configuration parameter file: /tmp/deinstall2023-05-24_01-53-13PM/response/deinstall_OraGI12Home1.rsp
The log of current session can be found at:
  /tmp/deinstall2023-05-24_01-53-13PM/logs/crsdeconfig_hydb1_2023-05-24_02-00-37PM.log
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'hydb1'
CRS-2673: Attempting to stop 'ora.crsd' on 'hydb1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on server 'hydb1'
CRS-2673: Attempting to stop 'ora.CRS.dg' on 'hydb1'
CRS-2677: Stop of 'ora.CRS.dg' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'hydb1'
CRS-2677: Stop of 'ora.asm' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.ASMNET1LSNR_ASM.lsnr' on 'hydb1'
CRS-2677: Stop of 'ora.ASMNET1LSNR_ASM.lsnr' on 'hydb1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'hydb1' has completed
CRS-2677: Stop of 'ora.crsd' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.storage' on 'hydb1'
CRS-2673: Attempting to stop 'ora.crf' on 'hydb1'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'hydb1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'hydb1'
CRS-2677: Stop of 'ora.crf' on 'hydb1' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'hydb1' succeeded
CRS-2677: Stop of 'ora.storage' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'hydb1'
CRS-2677: Stop of 'ora.mdnsd' on 'hydb1' succeeded
CRS-2677: Stop of 'ora.asm' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'hydb1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'hydb1'
CRS-2673: Attempting to stop 'ora.evmd' on 'hydb1'
CRS-2677: Stop of 'ora.ctssd' on 'hydb1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'hydb1'
CRS-2677: Stop of 'ora.cssd' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'hydb1'
CRS-2677: Stop of 'ora.gipcd' on 'hydb1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'hydb1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2672: Attempting to start 'ora.evmd' on 'hydb1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'hydb1'
CRS-2676: Start of 'ora.evmd' on 'hydb1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'hydb1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'hydb1'
CRS-2676: Start of 'ora.gpnpd' on 'hydb1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'hydb1'
CRS-2672: Attempting to start 'ora.gipcd' on 'hydb1'
CRS-2676: Start of 'ora.cssdmonitor' on 'hydb1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'hydb1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'hydb1'
CRS-2672: Attempting to start 'ora.diskmon' on 'hydb1'
CRS-2676: Start of 'ora.diskmon' on 'hydb1' succeeded
CRS-2676: Start of 'ora.cssd' on 'hydb1' succeeded
CRS-2672: Attempting to start 'ora.crf' on 'hydb1'
CRS-2672: Attempting to start 'ora.ctssd' on 'hydb1'
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'hydb1'
CRS-2676: Start of 'ora.crf' on 'hydb1' succeeded
CRS-2676: Start of 'ora.ctssd' on 'hydb1' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'hydb1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'hydb1'
CRS-2676: Start of 'ora.asm' on 'hydb1' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'hydb1'
CRS-2676: Start of 'ora.storage' on 'hydb1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'hydb1'
CRS-2676: Start of 'ora.crsd' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.crsd' on 'hydb1'
CRS-2677: Stop of 'ora.crsd' on 'hydb1' succeeded
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'hydb1'
CRS-2673: Attempting to stop 'ora.evmd' on 'hydb1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'hydb1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'hydb1'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'hydb1'
CRS-2677: Stop of 'ora.ctssd' on 'hydb1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.storage' on 'hydb1'
CRS-2677: Stop of 'ora.storage' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'hydb1'
CRS-2677: Stop of 'ora.mdnsd' on 'hydb1' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'hydb1' succeeded
CRS-2677: Stop of 'ora.asm' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'hydb1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'hydb1'
CRS-2677: Stop of 'ora.cssd' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'hydb1'
CRS-2677: Stop of 'ora.crf' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'hydb1'
CRS-2677: Stop of 'ora.gipcd' on 'hydb1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'hydb1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2672: Attempting to start 'ora.evmd' on 'hydb1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'hydb1'
CRS-2676: Start of 'ora.mdnsd' on 'hydb1' succeeded
CRS-2676: Start of 'ora.evmd' on 'hydb1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'hydb1'
CRS-2676: Start of 'ora.gpnpd' on 'hydb1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'hydb1'
CRS-2672: Attempting to start 'ora.gipcd' on 'hydb1'
CRS-2676: Start of 'ora.cssdmonitor' on 'hydb1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'hydb1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'hydb1'
CRS-2672: Attempting to start 'ora.diskmon' on 'hydb1'
CRS-2676: Start of 'ora.diskmon' on 'hydb1' succeeded
CRS-2676: Start of 'ora.cssd' on 'hydb1' succeeded
ASM de-configuration trace file location: /tmp/deinstall2023-05-24_01-53-13PM/logs/asmcadc_clean2023-05-24_02-04-10-PM.log
ASM Clean Configuration START
ASM Clean Configuration END

ASM instance deleted successfully. Check /tmp/deinstall2023-05-24_01-53-13PM/logs/asmcadc_clean2023-05-24_02-04-10-PM.log for details.

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'hydb1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'hydb1'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'hydb1'
CRS-2673: Attempting to stop 'ora.evmd' on 'hydb1'
CRS-2677: Stop of 'ora.mdnsd' on 'hydb1' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'hydb1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'hydb1'
CRS-2677: Stop of 'ora.cssd' on 'hydb1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'hydb1'
CRS-2677: Stop of 'ora.gipcd' on 'hydb1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'hydb1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2023/05/24 14:05:39 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node
2023/05/24 14:05:39 CLSRSC-559: Ensure that the GPnP profile data under the 'gpnp' directory in /u01/app/12.2.0/grid is deleted on each node before using the software in the current Grid Infrastructure home for reconfiguration.
[root@hydb1 ~]#

两个节点需要执行

# rm -rf /etc/oraInst.loc
# rm -rf /opt/ORCLfmap

你可能感兴趣的:(OracleDB,oracle,数据库)