oracle 11g rac 靜默解除安裝
由於需要修改ASM儲存方式,所以需要解除安裝oracle資料庫,重新安裝。
1、首先檢查rac狀態
[grid@RAC-2 ~]$ crsctl status res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.BACKUP.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.CRS.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.DATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.LISTENER.lsnr
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.MEM_DATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.RACDATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.asm
ONLINE ONLINE rac-1 Started
ONLINE ONLINE rac-2 Started
ora.gsd
ONLINE OFFLINE rac-1
ONLINE OFFLINE rac-2
ora.net1.network
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.ons
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac-1
ora.cvu
1 ONLINE ONLINE rac-1
ora.oc4j
1 ONLINE ONLINE rac-1
ora.oralnx.db
1 ONLINE ONLINE rac-1 Open
2 ONLINE ONLINE rac-2 Open
ora.rac-1.vip
1 ONLINE ONLINE rac-1
ora.rac-2.vip
1 ONLINE ONLINE rac-2
ora.scan1.vip
1 ONLINE ONLINE rac-1
2、進入oracle_home目錄下,執行deinstall。
cd $ORACLE_HOME/deinstall
[oracle@RAC-1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /oracle/app/oraInventory/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /oracle/app/oracle/product/11.2/db_1
Oracle Home type selected for deinstall is: Oracle Real Application Cluster Database
Oracle Base selected for deinstall is: /oracle/app/oracle
Checking for existence of central inventory location /oracle/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /oracle/app/11.2/grid
The following nodes are part of this cluster: rac-1,rac-2
Checking for sufficient temp space availability on node(s) : 'rac-1,rac-2'
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /oracle/app/oraInventory/logs/netdc_check2014-04-08_10-35-56-AM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /oracle/app/oraInventory/logs/databasedc_check2014-04-08_10-35-59-AM.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 [oralnx]: 此處預設,回車即可
###### For Database 'oralnx' ######
RAC Database
The nodes on which this database has instances: [rac-1, rac-2]
The instance names: [oralnx1, oralnx2]
The local instance name on node: oralnx1
The diagnostic destination location of the database: /oracle/app/oracle/diag/rdbms/oralnx
Storage type used by the Database: ASM
The details of database(s) oralnx have been discovered automatically. Do you still want to modify the details of oralnx database(s)? [n]: 此處預設,回車即可
Database Check Configuration END
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /oracle/app/oraInventory/logs/emcadc_check2014-04-08_10-36-59-AM.log
Checking configuration for database oralnx
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /oracle/app/oraInventory/logs//ocm_check5383.log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /oracle/app/11.2/grid
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac-1,rac-2
Oracle Home selected for deinstall is: /oracle/app/oracle/product/11.2/db_1
Inventory Location where the Oracle home registered is: /oracle/app/oraInventory
The following databases were selected for de-configuration : oralnx
Database unique name : oralnx
Storage used : ASM
No Enterprise Manager configuration to be updated for any database(s)
No Enterprise Manager ASM targets to update
No Enterprise Manager listener targets to migrate
Checking the config status for CCR
rac-1 : Oracle Home exists with CCR directory, but CCR is not configured
rac-2 : 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 此處輸入y 回車
A log of this session will be written to: '/oracle/app/oraInventory/logs/deinstall_deconfig2014-04-08_10-35-48-AM.out'
Any error messages from this session will be written to: '/oracle/app/oraInventory/logs/deinstall_deconfig2014-04-08_10-35-48-AM.err'
######################## CLEAN OPERATION START ########################
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /oracle/app/oraInventory/logs/emcadc_clean2014-04-08_10-36-59-AM.log
Updating Enterprise Manager ASM targets (if any)
Updating Enterprise Manager listener targets (if any)
Enterprise Manager Configuration Assistant END
Database de-configuration trace file location: /oracle/app/oraInventory/logs/databasedc_clean2014-04-08_10-37-24-AM.log
Database Clean Configuration START oralnx
This operation may take few minutes.
Database Clean Configuration END oralnx
Network Configuration clean config START
Network de-configuration trace file location: /oracle/app/oraInventory/logs/netdc_clean2014-04-08_10-40-25-AM.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 : /oracle/app/oraInventory/logs//ocm_clean5383.log
Oracle Configuration Manager clean END
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START
Detach Oracle home '/oracle/app/oracle/product/11.2/db_1' from the central inventory on the local node : Done
Delete directory '/oracle/app/oracle/product/11.2/db_1' on the local node : Done
The Oracle Base directory '/oracle/app/oracle' will not be removed on local node. The directory is not empty.
Detach Oracle home '/oracle/app/oracle/product/11.2/db_1' from the central inventory on the remote nodes 'rac-2' : Done
Delete directory '/oracle/app/oracle/product/11.2/db_1' on the remote nodes 'rac-2' : Done
The Oracle Base directory '/oracle/app/oracle' will not be removed on node 'rac-2'. The directory is not empty.
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2014-04-08_10-35-37AM' on node 'RAC-1'
Clean install operation removing temporary directory '/tmp/deinstall2014-04-08_10-35-37AM' on node 'rac-2'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : oralnx
Cleaning the config for CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
Successfully detached Oracle home '/oracle/app/oracle/product/11.2/db_1' from the central inventory on the local node.
Successfully deleted directory '/oracle/app/oracle/product/11.2/db_1' on the local node.
Successfully detached Oracle home '/oracle/app/oracle/product/11.2/db_1' from the central inventory on the remote nodes 'rac-2'.
Successfully deleted directory '/oracle/app/oracle/product/11.2/db_1' on the remote nodes 'rac-2'.
Oracle Universal Installer cleanup was successful.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
過程很簡單,幾分鐘搞定。
3、檢查rac狀態,一切正常。
[grid@RAC-2 ~]$ crsctl status res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.BACKUP.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.CRS.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.DATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.LISTENER.lsnr
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.MEM_DATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.RACDATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.asm
ONLINE ONLINE rac-1 Started
ONLINE ONLINE rac-2 Started
ora.gsd
ONLINE OFFLINE rac-1
ONLINE OFFLINE rac-2
ora.net1.network
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.ons
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac-1
ora.cvu
1 ONLINE ONLINE rac-1
ora.oc4j
1 ONLINE ONLINE rac-1
ora.rac-1.vip
1 ONLINE ONLINE rac-1
ora.rac-2.vip
1 ONLINE ONLINE rac-2
ora.scan1.vip
1 ONLINE ONLINE rac-1
[grid@RAC-2 ~]$
1、首先檢查rac狀態
[grid@RAC-2 ~]$ crsctl status res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.BACKUP.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.CRS.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.DATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.LISTENER.lsnr
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.MEM_DATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.RACDATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.asm
ONLINE ONLINE rac-1 Started
ONLINE ONLINE rac-2 Started
ora.gsd
ONLINE OFFLINE rac-1
ONLINE OFFLINE rac-2
ora.net1.network
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.ons
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac-1
ora.cvu
1 ONLINE ONLINE rac-1
ora.oc4j
1 ONLINE ONLINE rac-1
ora.oralnx.db
1 ONLINE ONLINE rac-1 Open
2 ONLINE ONLINE rac-2 Open
ora.rac-1.vip
1 ONLINE ONLINE rac-1
ora.rac-2.vip
1 ONLINE ONLINE rac-2
ora.scan1.vip
1 ONLINE ONLINE rac-1
2、進入oracle_home目錄下,執行deinstall。
cd $ORACLE_HOME/deinstall
[oracle@RAC-1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /oracle/app/oraInventory/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /oracle/app/oracle/product/11.2/db_1
Oracle Home type selected for deinstall is: Oracle Real Application Cluster Database
Oracle Base selected for deinstall is: /oracle/app/oracle
Checking for existence of central inventory location /oracle/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /oracle/app/11.2/grid
The following nodes are part of this cluster: rac-1,rac-2
Checking for sufficient temp space availability on node(s) : 'rac-1,rac-2'
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /oracle/app/oraInventory/logs/netdc_check2014-04-08_10-35-56-AM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /oracle/app/oraInventory/logs/databasedc_check2014-04-08_10-35-59-AM.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 [oralnx]: 此處預設,回車即可
###### For Database 'oralnx' ######
RAC Database
The nodes on which this database has instances: [rac-1, rac-2]
The instance names: [oralnx1, oralnx2]
The local instance name on node: oralnx1
The diagnostic destination location of the database: /oracle/app/oracle/diag/rdbms/oralnx
Storage type used by the Database: ASM
The details of database(s) oralnx have been discovered automatically. Do you still want to modify the details of oralnx database(s)? [n]: 此處預設,回車即可
Database Check Configuration END
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /oracle/app/oraInventory/logs/emcadc_check2014-04-08_10-36-59-AM.log
Checking configuration for database oralnx
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /oracle/app/oraInventory/logs//ocm_check5383.log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /oracle/app/11.2/grid
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac-1,rac-2
Oracle Home selected for deinstall is: /oracle/app/oracle/product/11.2/db_1
Inventory Location where the Oracle home registered is: /oracle/app/oraInventory
The following databases were selected for de-configuration : oralnx
Database unique name : oralnx
Storage used : ASM
No Enterprise Manager configuration to be updated for any database(s)
No Enterprise Manager ASM targets to update
No Enterprise Manager listener targets to migrate
Checking the config status for CCR
rac-1 : Oracle Home exists with CCR directory, but CCR is not configured
rac-2 : 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 此處輸入y 回車
A log of this session will be written to: '/oracle/app/oraInventory/logs/deinstall_deconfig2014-04-08_10-35-48-AM.out'
Any error messages from this session will be written to: '/oracle/app/oraInventory/logs/deinstall_deconfig2014-04-08_10-35-48-AM.err'
######################## CLEAN OPERATION START ########################
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /oracle/app/oraInventory/logs/emcadc_clean2014-04-08_10-36-59-AM.log
Updating Enterprise Manager ASM targets (if any)
Updating Enterprise Manager listener targets (if any)
Enterprise Manager Configuration Assistant END
Database de-configuration trace file location: /oracle/app/oraInventory/logs/databasedc_clean2014-04-08_10-37-24-AM.log
Database Clean Configuration START oralnx
This operation may take few minutes.
Database Clean Configuration END oralnx
Network Configuration clean config START
Network de-configuration trace file location: /oracle/app/oraInventory/logs/netdc_clean2014-04-08_10-40-25-AM.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 : /oracle/app/oraInventory/logs//ocm_clean5383.log
Oracle Configuration Manager clean END
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START
Detach Oracle home '/oracle/app/oracle/product/11.2/db_1' from the central inventory on the local node : Done
Delete directory '/oracle/app/oracle/product/11.2/db_1' on the local node : Done
The Oracle Base directory '/oracle/app/oracle' will not be removed on local node. The directory is not empty.
Detach Oracle home '/oracle/app/oracle/product/11.2/db_1' from the central inventory on the remote nodes 'rac-2' : Done
Delete directory '/oracle/app/oracle/product/11.2/db_1' on the remote nodes 'rac-2' : Done
The Oracle Base directory '/oracle/app/oracle' will not be removed on node 'rac-2'. The directory is not empty.
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2014-04-08_10-35-37AM' on node 'RAC-1'
Clean install operation removing temporary directory '/tmp/deinstall2014-04-08_10-35-37AM' on node 'rac-2'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : oralnx
Cleaning the config for CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
Successfully detached Oracle home '/oracle/app/oracle/product/11.2/db_1' from the central inventory on the local node.
Successfully deleted directory '/oracle/app/oracle/product/11.2/db_1' on the local node.
Successfully detached Oracle home '/oracle/app/oracle/product/11.2/db_1' from the central inventory on the remote nodes 'rac-2'.
Successfully deleted directory '/oracle/app/oracle/product/11.2/db_1' on the remote nodes 'rac-2'.
Oracle Universal Installer cleanup was successful.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
過程很簡單,幾分鐘搞定。
3、檢查rac狀態,一切正常。
[grid@RAC-2 ~]$ crsctl status res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.BACKUP.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.CRS.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.DATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.LISTENER.lsnr
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.MEM_DATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.RACDATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.asm
ONLINE ONLINE rac-1 Started
ONLINE ONLINE rac-2 Started
ora.gsd
ONLINE OFFLINE rac-1
ONLINE OFFLINE rac-2
ora.net1.network
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.ons
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac-1
ora.cvu
1 ONLINE ONLINE rac-1
ora.oc4j
1 ONLINE ONLINE rac-1
ora.rac-1.vip
1 ONLINE ONLINE rac-1
ora.rac-2.vip
1 ONLINE ONLINE rac-2
ora.scan1.vip
1 ONLINE ONLINE rac-1
[grid@RAC-2 ~]$
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22969361/viewspace-1137616/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rac靜默安裝
- 【11g 單庫解除安裝、靜默安裝】實驗
- CentOS 7.5靜默安裝Oracle 11gCentOSOracle
- 靜默安裝Oracle資料庫11gOracle資料庫
- 靜默方式安裝oracle 11g 完整攻略Oracle
- Oracle Linux 7.1 靜默安裝Oracle 18c RACOracleLinux
- Oracle靜默安裝Oracle
- centos 7.4靜默安裝oracle 19.3CentOSOracle
- oracle 19C 靜默安裝Oracle
- 靜默安裝oracle時報錯Oracle
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- 【靜默】在RHEL 6.5上靜默安裝Oracle 18cOracle
- 靜默安裝19C RAC的指令碼指令碼
- 靜默方式安裝、升級oracle(一): 安裝oracle軟體Oracle
- Oracle Linux 7.1 靜默安裝Weblogic 12.2.1.3OracleLinuxWeb
- Oracle RAC叢集解除安裝步驟Oracle
- linux7 靜默安裝 11GR2 RACLinux
- Oracle 11G RAC叢集安裝(2)——安裝gridOracle
- RedHat上靜默安裝Oracle11gRedhatOracle
- CentOS 7.2靜默安裝Oracle11gCentOSOracle
- redhat7.2靜默安裝Oracle11.2.0.4RedhatOracle
- Oracle:Redhat 7 + Oracle RAC 11g 安裝 bug 總結OracleRedhat
- 【配置上線】Oracle靜默建庫 for 11gOracle
- Oracle Linux 6.7 靜預設安裝Oracle 11gOracleLinux
- 靜默安裝Oracle11g資料庫Oracle資料庫
- oracle11g客戶端靜默安裝Oracle客戶端
- oracle 11g RAC 安裝前準備指令碼Oracle指令碼
- 通過ORACLE VM virtualbox環境安裝oracle 11G RAC(ASM)OracleASM
- Oracle 11G RAC叢集安裝(1)——安裝前的準備Oracle
- 靜默方式安裝、升級oracle(二): 建立資料庫Oracle資料庫
- RedHat 7 靜默安裝Oracle11g的補充RedhatOracle
- Linux下利用指令碼靜默安裝Oracle11GLinux指令碼Oracle
- Linux下靜默安裝OraceLinux
- 靜默升級oracle 11g (從11.2.0.1升級到11.2.0.4)Oracle
- oracle 19c dataguard silent install (oracle 19c dataguard 靜默安裝)Oracle
- Oracle 19C的下載和安裝部署(圖形安裝和靜默安裝)Oracle
- 靜默安裝Oracle建庫時報Template General Purpose does not existOracle
- 【配置安裝】Oracle靜默建庫for 12c&19c CDBOracle
- 阿里雲伺服器靜默安裝Oracle 11.2.0.4.0 -64bit阿里伺服器Oracle