卸载oracle,从11g开始使用deinstall卸载数据库软件可以干净卸掉oracle
$ cd $ORACLE_HOME/deinstall$ ls -ltotal 152-rwxr-xr-x 1 oracle oinstall 9780 May 10 2011 bootstrap.pl-rwxr-xr-x 1 oracle oinstall 9648 Jun 24 16:30 deinstall-rwxr-xr-x 1 oracle oinstall 18475 Jun 9 2011 deinstall.pl-rw-r--r-- 1 oracle oinstall 3466 Aug 18 2010 deinstall.xmldrwxr-xr-x 2 oracle oinstall 96 Jun 24 16:21 jlib-rw-r--r-- 1 oracle oinstall 409 Aug 18 2010 readme.txtdrwxr-xr-x 2 oracle oinstall 96 Jun 24 16:21 response-rwxr-xr-x 1 oracle oinstall 32343 Dec 16 2009 sshUserSetup.sh$ ./deinstallChecking 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/11.2.0/oracleOracle Home type selected for deinstall is: Oracle Single Instance DatabaseOracle Base selected for deinstall is: /oracle/app/11.2.0Checking for existence of central inventory location /oracle/app/oraInventoryChecking for sufficient temp space availability on node(s) : ‘OFCS2BJ‘## [END] Install check configuration ##Network Configuration check config STARTNetwork de-configuration trace file location: /oracle/app/oraInventory/logs/netdc_check2015-06-25_09-22-51-AM.logNetwork Configuration check config ENDDatabase Check Configuration STARTDatabase de-configuration trace file location: /oracle/app/oraInventory/logs/databasedc_check2015-06-25_09-22-54-AM.logUse comma as separator when specifying list of values as inputSpecify the list of database names that are configured in this Oracle home []: OFCS2BJ1###### For Database ‘OFCS2BJ1‘ ######Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [1]:Specify the diagnostic destination location of the database [/oracle/app/11.2.0/diag/rdbms/ofcs2bj1]:Specify the storage type used by the Database ASM|FS []: ASMDatabase Check Configuration ENDEnterprise Manager Configuration Assistant STARTEMCA de-configuration trace file location: /oracle/app/oraInventory/logs/emcadc_check2015-06-25_09-24-08-AM.logChecking configuration for database OFCS2BJ1Enterprise Manager Configuration Assistant ENDOracle Configuration Manager check STARTOCM check log file location : /oracle/app/oraInventory/logs//ocm_check3994.logOracle Configuration Manager check END######################### CHECK OPERATION END ################################################ CHECK OPERATION SUMMARY #######################Oracle Home selected for deinstall is: /oracle/app/11.2.0/oracleInventory Location where the Oracle home registered is: /oracle/app/oraInventoryThe following databases were selected for de-configuration : OFCS2BJ1Database unique name : OFCS2BJ1Storage used : ASMNo Enterprise Manager configuration to be updated for any database(s)No Enterprise Manager ASM targets to updateNo Enterprise Manager listener targets to migrateChecking the config status for CCROracle Home exists with CCR directory, but CCR is not configuredCCR check is finishedDo you want to continue (y - yes, n - no)? [n]: yA log of this session will be written to: ‘/oracle/app/oraInventory/logs/deinstall_deconfig2015-06-25_09-22-46-AM.out‘Any error messages from this session will be written to: ‘/oracle/app/oraInventory/logs/deinstall_deconfig2015-06-25_09-22-46-AM.err‘######################## CLEAN OPERATION START ########################Enterprise Manager Configuration Assistant STARTEMCA de-configuration trace file location: /oracle/app/oraInventory/logs/emcadc_clean2015-06-25_09-24-08-AM.logUpdating Enterprise Manager ASM targets (if any)Updating Enterprise Manager listener targets (if any)Enterprise Manager Configuration Assistant ENDDatabase de-configuration trace file location: /oracle/app/oraInventory/logs/databasedc_clean2015-06-25_09-24-13-AM.logDatabase Clean Configuration START OFCS2BJ1This operation may take few minutes.Database Clean Configuration END OFCS2BJ1Network Configuration clean config STARTNetwork de-configuration trace file location: /oracle/app/oraInventory/logs/netdc_clean2015-06-25_09-24-52-AM.logDe-configuring backup files...Backup files de-configured successfully.The network configuration has been cleaned up successfully.Network Configuration clean config ENDOracle Configuration Manager clean STARTOCM clean log file location : /oracle/app/oraInventory/logs//ocm_clean3994.logOracle Configuration Manager clean ENDSetting the force flag to falseSetting the force flag to cleanup the Oracle BaseOracle Universal Installer clean STARTDetach Oracle home ‘/oracle/app/11.2.0/oracle‘ from the central inventory on the local node : DoneDelete directory ‘/oracle/app/11.2.0/oracle‘ on the local node : DoneThe Oracle Base directory ‘/oracle/app/11.2.0‘ will not be removed on local node. The directory is in use by Oracle Home ‘/oracle/app/11.2.0/grid‘.Oracle Universal Installer cleanup was successful.Oracle Universal Installer clean END## [START] Oracle install clean ##Clean install operation removing temporary directory ‘/oracle/tmp/deinstall2015-06-25_09-22-06AM‘ on node ‘OFCS2BJ‘## [END] Oracle install clean ########################### CLEAN OPERATION END ################################################ CLEAN OPERATION SUMMARY #######################Successfully de-configured the following database instances : OFCS2BJ1Cleaning the config for CCRAs CCR is not configured, so skipping the cleaning of CCR configurationCCR clean is finishedSuccessfully detached Oracle home ‘/oracle/app/11.2.0/oracle‘ from the central inventory on the local node.Successfully deleted directory ‘/oracle/app/11.2.0/oracle‘ on the local node.Oracle Universal Installer cleanup was successful.Run ‘rm -rf /opt/ORCLfmap‘ as root on node(s) ‘OFCS2BJ‘ at the end of the session.Oracle deinstall tool successfully cleaned up temporary directories.#################################################################################### ORACLE DEINSTALL & DECONFIG TOOL END #############$ exitlogoutOFCS2BJ[/]#rm -rf /opt/ORCLfmap
原文:http://www.cnblogs.com/haoxiaoyu/p/b29e3ae697c61bdb54bb9bb53368d461.html