您好,登錄后才能下訂單哦!
Oracle 11g 安裝完畢后,如果有卸載的需要??梢杂腥缦路椒ǎ?/p>
手工刪除Oracle安裝時建立的各目錄、文件等。這種方法對于Linux還算可行,但是Window版中涉及到服務、注冊表等等。往往刪除不干凈。
使用安裝目錄$ORACLE_HOME/deinstall/下的 deinstall腳本。
[oracle@localhost deinstall]$ ./deinstall Checking for required files and bootstrapping ... Please wait ... Location of logs /tmp/deinstall2015-08-22_00-06-37AM/logs/ ############ ORACLE DEINSTALL & DECONFIG TOOL START ############ ######################### CHECK OPERATION START ######################### ## [START] Install check configuration ## Checking for existence of the Oracle home location /u01/app/oracle/product/11.2.0/db_1 Oracle Home type selected for deinstall is: Oracle Single Instance Database Oracle Base selected for deinstall is: /u01/app/oracle Checking for existence of central inventory location /u01/app/oraInventory Checking for sufficient temp space availability on node(s) : 'localhost.localdomain' ## [END] Install check configuration ## Network Configuration check config START Network de-configuration trace file location: /tmp/deinstall2015-08-22_00-06-37AM/logs/netdc_check2015-08-22_12-06-57-AM.log Network Configuration check config END Database Check Configuration START Database de-configuration trace file location: /tmp/deinstall2015-08-22_00-06-37AM/logs/databasedc_check2015-08-22_12-07-12-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 [orcl]: ###### For Database 'orcl' ###### Single Instance Database The diagnostic destination location of the database: /u01/app/oracle/diag/rdbms/orcl Storage type used by the Database: FS Database file location: /u01/app/oracle/oradata/orcl,/u01/app/oracle/fast_recovery_area/orcl Fast recovery area location: /u01/app/oracle/fast_recovery_area/ORCL database spfile location: /u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora The details of database(s) orcl have been discovered automatically. Do you still want to modify the details of orcl database(s)? [n]: Database Check Configuration END Enterprise Manager Configuration Assistant START EMCA de-configuration trace file location: /tmp/deinstall2015-08-22_00-06-37AM/logs/emcadc_check2015-08-22_12-07-52-AM.log Checking configuration for database orcl Enterprise Manager Configuration Assistant END Oracle Configuration Manager check START OCM check log file location : /tmp/deinstall2015-08-22_00-06-37AM/logs//ocm_check446.log Oracle Configuration Manager check END ######################### CHECK OPERATION END ######################### ####################### CHECK OPERATION SUMMARY ####################### Oracle Home selected for deinstall is: /u01/app/oracle/product/11.2.0/db_1 Inventory Location where the Oracle home registered is: /u01/app/oraInventory The following databases were selected for de-configuration : orcl Database unique name : orcl Storage used : FS 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 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: '/tmp/deinstall2015-08-22_00-06-37AM/logs/deinstall_deconfig2015-08-22_12-06-51-AM.out' Any error messages from this session will be written to: '/tmp/deinstall2015-08-22_00-06-37AM/logs/deinstall_deconfig2015-08-22_12-06-51-AM.err' ######################## CLEAN OPERATION START ######################## Enterprise Manager Configuration Assistant START EMCA de-configuration trace file location: /tmp/deinstall2015-08-22_00-06-37AM/logs/emcadc_clean2015-08-22_12-07-52-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: /tmp/deinstall2015-08-22_00-06-37AM/logs/databasedc_clean2015-08-22_12-08-27-AM.log Database Clean Configuration START orcl This operation may take few minutes. Database Clean Configuration END orcl Network Configuration clean config START Network de-configuration trace file location: /tmp/deinstall2015-08-22_00-06-37AM/logs/netdc_clean2015-08-22_12-09-31-AM.log De-configuring backup files... 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 : /tmp/deinstall2015-08-22_00-06-37AM/logs//ocm_clean446.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 '/u01/app/oracle/product/11.2.0/db_1' from the central inventory on the local node : Done Delete directory '/u01/app/oracle/product/11.2.0/db_1' on the local node : Done Delete directory '/u01/app/oraInventory' on the local node : Done Delete directory '/u01/app/oracle' on the local node : Done Oracle Universal Installer cleanup was successful. Oracle Universal Installer clean END ## [START] Oracle install clean ## Clean install operation removing temporary directory '/tmp/deinstall2015-08-22_00-06-37AM' on node 'localhost' ## [END] Oracle install clean ## ######################### CLEAN OPERATION END ######################### ####################### CLEAN OPERATION SUMMARY ####################### Successfully de-configured the following database instances : orcl 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 '/u01/app/oracle/product/11.2.0/db_1' from the central inventory on the local node. Successfully deleted directory '/u01/app/oracle/product/11.2.0/db_1' on the local node. Successfully deleted directory '/u01/app/oraInventory' on the local node. Successfully deleted directory '/u01/app/oracle' on the local node. Oracle Universal Installer cleanup was successful. Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'localhost' at the end of the session. Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'localhost' at the end of the session. Run 'rm -rf /etc/oratab' as root on node(s) 'localhost' at the end of the session. Oracle deinstall tool successfully cleaned up temporary directories. ####################################################################### ############# ORACLE DEINSTALL & DECONFIG TOOL END #############
在刪除的過程中有以下幾點需要確認的
Specify the list of database names that are configured in this Oracle home [orcl]:
指定需要刪除的數(shù)據(jù)庫名稱,默認即可,直接回車。
The details of database(s) orcl have been discovered automatically. Do you still want to modify the details of orcl database(s)? [n]:
是否需要修改數(shù)據(jù)庫的詳細信息,默認n,直接回車。
Do you want to continue (y - yes, n - no)? [n]: y
是否繼續(xù),填寫y,回車
腳本結尾,提示需要使用root用戶刪除如下三個腳本。
rm -rf /etc/oraInst.loc rm -rf /opt/ORCLfmap rm -rf /etc/oratab
至此,Oracle刪除完畢。
將Oracle軟件再次安裝
./runInstaller -silent -responseFile /home/oracle/etc/install_software_only.rsp
3. 使用專用工具
Oracle官方推薦使用專門的刪除工具。原因是內置的deinstall工具腳本中常常帶有很多bug,很多時候不能完全的將其刪除干凈。特別是Windows環(huán)境下的卸載工具,不能正常工作的場景很多。
上傳工具包至服務器,直接解壓,解壓完畢后即可直接使用。
[oracle@localhost ~]$ unzip p13390677_112040_Linux-x86-64_7of7.zip
[oracle@localhost ~]$ cd deinstall/ [oracle@localhost deinstall]$ ./deinstall -help deinstall -home <Complete path of Oracle home> [ -silent ] [ -checkonly ] [ -local ] [ -paramfile <complete path of input parameter properties file> ] [ -params <name1=value[ name2=value name3=value ...]> ] [ -o <complete path of directory for saving files> ] [ -tmpdir <complete path of temporary directory to use> ] [ -logdir <complete path of log directory to use> ] [ -help : Type -help to get more information on each of the above options. ]
刪除Oracle
[oracle@localhost deinstall]$ ./deinstall -home $ORACLE_HOME Location of logs /home/oracle/deinstall/./logs/ ############ ORACLE DEINSTALL & DECONFIG TOOL START ############ ######################### CHECK OPERATION START ######################### ## [START] Install check configuration ## Checking for existence of the Oracle home location /u01/app/oracle/product/11.2.0/db_1 Oracle Home type selected for deinstall is: Oracle Single Instance Database Oracle Base selected for deinstall is: /u01/app/oracle Checking for existence of central inventory location /u01/app/oraInventory Checking for sufficient temp space availability on node(s) : 'localhost.localdomain' ## [END] Install check configuration ## Network Configuration check config START Network de-configuration trace file location: /home/oracle/deinstall/./logs/netdc_check2015-08-22_12-34-54-AM.log Network Configuration check config END Database Check Configuration START Database de-configuration trace file location: /home/oracle/deinstall/./logs/databasedc_check2015-08-22_12-35-03-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 []: orcl ###### For Database 'orcl' ###### Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [1]: Specify the diagnostic destination location of the database [/u01/app/oracle/diag/rdbms/orcl]: Specify the storage type used by the Database ASM|FS []: FS Specify the list of directories if any database files exist on a shared file system. If 'orcl' subdirectory is found, then it will be deleted. Otherwise, the specified directory will be deleted. Alternatively, you can specify list of database files with full path [ ]: /u01/app/oracle/oradata Specify the fast recovery area location, if it is configured on the file system. If 'orcl' subdirectory is found, then it will be deleted. []: /u01/app/oracle/fast_recovery_area Specify the database spfile location [ ]: /u01/app/oracle/product/11.2.0/db_1/dbs/ Database Check Configuration END Enterprise Manager Configuration Assistant START EMCA de-configuration trace file location: /home/oracle/deinstall/./logs/emcadc_check2015-08-22_12-42-35-AM.log Checking configuration for database orcl Enterprise Manager Configuration Assistant END Oracle Configuration Manager check START OCM check log file location : /home/oracle/deinstall/./logs//ocm_check_2015-08-22_12-42-35-AM.log Oracle Configuration Manager check END ######################### CHECK OPERATION END ######################### ####################### CHECK OPERATION SUMMARY ####################### Oracle Home selected for deinstall is: /u01/app/oracle/product/11.2.0/db_1 Inventory Location where the Oracle home registered is: /u01/app/oraInventory The following databases were selected for de-configuration : orcl Database unique name : orcl Storage used : FS 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 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: '/home/oracle/deinstall/./logs/deinstall_deconfig2015-08-22_12-34-51-AM.out' Any error messages from this session will be written to: '/home/oracle/deinstall/./logs/deinstall_deconfig2015-08-22_12-34-51-AM.err' ######################## CLEAN OPERATION START ######################## Enterprise Manager Configuration Assistant START EMCA de-configuration trace file location: /home/oracle/deinstall/./logs/emcadc_clean2015-08-22_12-42-35-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: /home/oracle/deinstall/./logs/databasedc_clean2015-08-22_12-42-38-AM.log Database Clean Configuration START orcl This operation may take few minutes. Database Clean Configuration END orcl Network Configuration clean config START Network de-configuration trace file location: /home/oracle/deinstall/./logs/netdc_clean2015-08-22_12-43-44-AM.log De-configuring backup files... 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 : /home/oracle/deinstall/./logs//ocm_clean_2015-08-22_12-42-35-AM.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 '/u01/app/oracle/product/11.2.0/db_1' from the central inventory on the local node : Done Delete directory '/u01/app/oracle/product/11.2.0/db_1' on the local node : Done Delete directory '/u01/app/oraInventory' on the local node : Done Delete directory '/u01/app/oracle' on the local node : Done Oracle Universal Installer cleanup was successful. Oracle Universal Installer clean END ## [START] Oracle install clean ## Clean install operation removing temporary directory '/tmp/deinstall2015-08-22_00-34-49AM' on node 'localhost' ## [END] Oracle install clean ## ######################### CLEAN OPERATION END ######################### ####################### CLEAN OPERATION SUMMARY ####################### Successfully de-configured the following database instances : orcl 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 '/u01/app/oracle/product/11.2.0/db_1' from the central inventory on the local node. Successfully deleted directory '/u01/app/oracle/product/11.2.0/db_1' on the local node. Successfully deleted directory '/u01/app/oraInventory' on the local node. Successfully deleted directory '/u01/app/oracle' on the local node. Oracle Universal Installer cleanup was successful. Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'localhost' at the end of the session. Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'localhost' at the end of the session. Run 'rm -rf /etc/oratab' as root on node(s) 'localhost' at the end of the session. Oracle deinstall tool successfully cleaned up temporary directories. ####################################################################### ############# ORACLE DEINSTALL & DECONFIG TOOL END #############
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內容。