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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Oracle 12.2c 是Oracle公司推出的一款关系数据库管理系统(RDBMS),它是目前世界上使用最广泛的商业数据库之一。Oracle 12.2c的安装包是指用于安装和部署Oracle 12.2c软件的程序文件集合。 Oracle 12.2c安装包提供了一系列的安装程序和必要的文件,用于在计算机系统上创建和配置Oracle数据库。在安装过程中,用户需要根据自己的操作系统和硬件环境选择合适的安装包版本,并按照安装向导的指示逐步进行安装。 在安装过程中,用户需要注意以下几点: 1. 确保操作系统和硬件环境满足Oracle 12.2c的最低系统要求; 2. 下载合适的安装包,根据操作系统的位数选择32位或64位版本; 3. 解压安装包,运行安装程序; 4. 根据安装向导的指示,选择安装类型(如标准安装或高级安装)、数据库配置(如数据库名称、字符集等)等选项; 5. 按照提示输入必要的信息,如管理员账户和密码等; 6. 等待安装程序完成,执行必要的配置和初始化操作; 7. 完成安装后,可以通过命令行工具或Oracle图形界面工具进行数据库管理和操作。 值得注意的是,安装Oracle 12.2c需要具备一定的计算机操作和数据库知识,对于没有经验的用户来说,最好参考官方的安装文档和教程,或者寻求专业人士的帮助。 总体而言,Oracle 12.2c安装包是用于安装和部署Oracle 12.2c数据库的一套程序文件,它的安装过程需要按照指示进行,同时需要了解一些数据库相关的知识。通过正确的安装和配置,用户可以使用Oracle 12.2c来构建强大和可靠的数据库系统,满足各种企业和个人的需求。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值