卸载oracle 11g数据库软件

卸载oracle,从11g开始使用deinstall卸载数据库软件可以干净卸掉oracle

  1. $ cd $ORACLE_HOME/deinstall
  2. $ ls -l
  3. total 152
  4. -rwxr-xr-x   1 oracle     oinstall      9780 May 10  2011 bootstrap.pl
  5. -rwxr-xr-x   1 oracle     oinstall      9648 Jun 24 16:30 deinstall
  6. -rwxr-xr-x   1 oracle     oinstall     18475 Jun  9  2011 deinstall.pl
  7. -rw-r--r--   1 oracle     oinstall      3466 Aug 18  2010 deinstall.xml
  8. drwxr-xr-x   2 oracle     oinstall        96 Jun 24 16:21 jlib
  9. -rw-r--r--   1 oracle     oinstall       409 Aug 18  2010 readme.txt
  10. drwxr-xr-x   2 oracle     oinstall        96 Jun 24 16:21 response
  11. -rwxr-xr-x   1 oracle     oinstall     32343 Dec 16  2009 sshUserSetup.sh
  12. $ ./deinstall
  13. Checking for required files and bootstrapping ...
  14. Please wait ...
  15. Location of logs /oracle/app/oraInventory/logs/
  16. ############ ORACLE DEINSTALL & DECONFIG TOOL START ############
  17. ######################### CHECK OPERATION START #########################
  18. ## [START] Install check configuration ##
  19. Checking for existence of the Oracle home location /oracle/app/11.2.0/oracle
  20. Oracle Home type selected for deinstall is: Oracle Single Instance Database
  21. Oracle Base selected for deinstall is: /oracle/app/11.2.0
  22. Checking for existence of central inventory location /oracle/app/oraInventory
  23. Checking for sufficient temp space availability on node(s) : 'OFCS2BJ'
  24. ## [END] Install check configuration ##
  25. Network Configuration check config START
  26. Network de-configuration trace file location: /oracle/app/oraInventory/logs/netdc_check2015-06-25_09-22-51-AM.log
  27. Network Configuration check config END
  28. Database Check Configuration START
  29. Database de-configuration trace file location: /oracle/app/oraInventory/logs/databasedc_check2015-06-25_09-22-54-AM.log
  30. Use comma as separator when specifying list of values as input
  31. Specify the list of database names that are configured in this Oracle home []: OFCS2BJ1
  32. ###### For Database 'OFCS2BJ1' ######
  33. Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [1]:
  34. Specify the diagnostic destination location of the database [/oracle/app/11.2.0/diag/rdbms/ofcs2bj1]:
  35. Specify the storage type used by the Database ASM|FS []: ASM
  36. Database Check Configuration END
  37. Enterprise Manager Configuration Assistant START
  38. EMCA de-configuration trace file location: /oracle/app/oraInventory/logs/emcadc_check2015-06-25_09-24-08-AM.log
  39. Checking configuration for database OFCS2BJ1
  40. Enterprise Manager Configuration Assistant END
  41. Oracle Configuration Manager check START
  42. OCM check log file location : /oracle/app/oraInventory/logs//ocm_check3994.log
  43. Oracle Configuration Manager check END
  44. ######################### CHECK OPERATION END #########################
  45. ####################### CHECK OPERATION SUMMARY #######################
  46. Oracle Home selected for deinstall is: /oracle/app/11.2.0/oracle
  47. Inventory Location where the Oracle home registered is: /oracle/app/oraInventory
  48. The following databases were selected for de-configuration : OFCS2BJ1
  49. Database unique name : OFCS2BJ1
  50. Storage used : ASM
  51. No Enterprise Manager configuration to be updated for any database(s)
  52. No Enterprise Manager ASM targets to update
  53. No Enterprise Manager listener targets to migrate
  54. Checking the config status for CCR
  55. Oracle Home exists with CCR directory, but CCR is not configured
  56. CCR check is finished
  57. Do you want to continue (y - yes, n - no)? [n]: y
  58. A log of this session will be written to: '/oracle/app/oraInventory/logs/deinstall_deconfig2015-06-25_09-22-46-AM.out'
  59. Any error messages from this session will be written to: '/oracle/app/oraInventory/logs/deinstall_deconfig2015-06-25_09-22-46-AM.err'
  60. ######################## CLEAN OPERATION START ########################
  61. Enterprise Manager Configuration Assistant START
  62. EMCA de-configuration trace file location: /oracle/app/oraInventory/logs/emcadc_clean2015-06-25_09-24-08-AM.log
  63. Updating Enterprise Manager ASM targets (if any)
  64. Updating Enterprise Manager listener targets (if any)
  65. Enterprise Manager Configuration Assistant END
  66. Database de-configuration trace file location: /oracle/app/oraInventory/logs/databasedc_clean2015-06-25_09-24-13-AM.log
  67. Database Clean Configuration START OFCS2BJ1
  68. This operation may take few minutes.
  69. Database Clean Configuration END OFCS2BJ1
  70. Network Configuration clean config START
  71. Network de-configuration trace file location: /oracle/app/oraInventory/logs/netdc_clean2015-06-25_09-24-52-AM.log
  72. De-configuring backup files...
  73. Backup files de-configured successfully.
  74. The network configuration has been cleaned up successfully.
  75. Network Configuration clean config END
  76. Oracle Configuration Manager clean START
  77. OCM clean log file location : /oracle/app/oraInventory/logs//ocm_clean3994.log
  78. Oracle Configuration Manager clean END
  79. Setting the force flag to false
  80. Setting the force flag to cleanup the Oracle Base
  81. Oracle Universal Installer clean START
  82. Detach Oracle home '/oracle/app/11.2.0/oracle' from the central inventory on the local node : Done
  83. Delete directory '/oracle/app/11.2.0/oracle' on the local node : Done
  84. The 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'.
  85. Oracle Universal Installer cleanup was successful.
  86. Oracle Universal Installer clean END
  87. ## [START] Oracle install clean ##
  88. Clean install operation removing temporary directory '/oracle/tmp/deinstall2015-06-25_09-22-06AM' on node 'OFCS2BJ'
  89. ## [END] Oracle install clean ##
  90. ######################### CLEAN OPERATION END #########################
  91. ####################### CLEAN OPERATION SUMMARY #######################
  92. Successfully de-configured the following database instances : OFCS2BJ1
  93. Cleaning the config for CCR
  94. As CCR is not configured, so skipping the cleaning of CCR configuration
  95. CCR clean is finished
  96. Successfully detached Oracle home '/oracle/app/11.2.0/oracle' from the central inventory on the local node.
  97. Successfully deleted directory '/oracle/app/11.2.0/oracle' on the local node.
  98. Oracle Universal Installer cleanup was successful.
  99. Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'OFCS2BJ' at the end of the session.
  100. Oracle deinstall tool successfully cleaned up temporary directories.
  101. #######################################################################
  102. ############# ORACLE DEINSTALL & DECONFIG TOOL END #############
  103. $ exit
  104. logout
  105. OFCS2BJ[/]#rm -rf /opt/ORCLfmap




原文地址:https://www.cnblogs.com/haoxiaoyu/p/b29e3ae697c61bdb54bb9bb53368d461.html