Linux 环境卸载Oracle11g
1,切换到Oracle用户:su - oracle2,进入指定目录运行脚本[oracle]# cd /u01/app/oracle/product/11.2.0/db_1/oui/bin[oracle]# ./runInstaller输入y后弹出界面如下:3,点击Deinstall Products 弹出对话框,选择要删除的产品,点击remove,如下图:4,点击Re...
1,切换到Oracle用户:su - oracle
2,进入指定目录运行脚本
[oracle]# cd /u01/app/oracle/product/11.2.0/db_1/oui/bin
[oracle]# ./runInstaller
输入y后弹出界面如下:
3,点击Deinstall Products 弹出对话框,选择要删除的产品,点击remove,如下图:
4,点击Remove后弹出对话框点击OK
5,根据4对话框的提示到指定目录去运行脚本,如下:
[oracle@10-19-67-227 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2019-05-11_09-19-33-AM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################## CHECK OPERATION START ########################
Install check configuration START
Checking for existence of the Oracle home location /home/oracle/app/oracle/product/11.2.0/dbhome_1
Oracle Home type selected for de-install is: SIDB
Oracle Base selected for de-install is: /home/oracle/app
Checking for existence of central inventory location /home/oracle/oraInventory
Install check configuration END
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2019-05-11_09-19-33-AM/logs/netdc_check2974380811987220214.log
Specify all Single Instance listeners that are to be de-configured [LISTENER]:
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /tmp/deinstall2019-05-11_09-19-33-AM/logs/databasedc_check6570659099005624559.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 [/home/oracle/app/diag/rdbms/orcl]:
Specify the storage type used by the Database ASM|FS []:
Specify the storage type used by the Database ASM|FS []:
Specify the storage type used by the Database ASM|FS []:
Specify the storage type used by the Database ASM|FS []:
Specify the storage type used by the Database ASM|FS []:
Specify the storage type used by the Database ASM|FS []:
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 [ ]:
Specify the flash recovery area location, if it is configured on the file system. If 'orcl' subdirectory is found, then it will be deleted. []: /home/oracle/app/oradata/orcl
Specify the database spfile location [ ]: /home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/spfileorcl.ora
Database Check Configuration END
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /tmp/deinstall2019-05-11_09-19-33-AM/logs/emcadc_check.log
Checking configuration for database orcl
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /tmp/deinstall2019-05-11_09-19-33-AM/logs//ocm_check1840.log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for de-install is: /home/oracle/app/oracle/product/11.2.0/dbhome_1
Inventory Location where the Oracle home registered is: /home/oracle/oraInventory
Following Single Instance listener(s) will be de-configured: LISTENER
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/deinstall2019-05-11_09-19-33-AM/logs/deinstall_deconfig2019-05-11_09-21-03-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2019-05-11_09-19-33-AM/logs/deinstall_deconfig2019-05-11_09-21-03-AM.err'
######################## CLEAN OPERATION START ########################
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /tmp/deinstall2019-05-11_09-19-33-AM/logs/emcadc_clean.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/deinstall2019-05-11_09-19-33-AM/logs/databasedc_clean4725997934425081819.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/deinstall2019-05-11_09-19-33-AM/logs/netdc_clean6981404337205512064.log
De-configuring Single Instance listener(s): LISTENER
De-configuring listener: LISTENER
Stopping listener: LISTENER
Listener stopped successfully.
Deleting listener: LISTENER
Listener deleted successfully.
Listener de-configured successfully.
De-configuring Local Net Service Names configuration file...
Local Net Service Names configuration file de-configured successfully.
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/deinstall2019-05-11_09-19-33-AM/logs//ocm_clean1840.log
Oracle Configuration Manager clean END
Oracle Universal Installer clean START
Detach Oracle home '/home/oracle/app/oracle/product/11.2.0/dbhome_1' from the central inventory on the local node : Done
Delete directory '/home/oracle/app/oracle/product/11.2.0/dbhome_1' on the local node : Done
Delete directory '/home/oracle/oraInventory' on the local node : Done
Delete directory '/home/oracle/app' on the local node : Done
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
Oracle install clean START
Clean install operation removing temporary directory '/tmp/install' on node 'localhost'
Oracle install clean END
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : orcl
Following Single Instance listener(s) were de-configured successfully: LISTENER
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 '/home/oracle/app/oracle/product/11.2.0/dbhome_1' from the central inventory on the local node.
Successfully deleted directory '/home/oracle/app/oracle/product/11.2.0/dbhome_1' on the local node.
Successfully deleted directory '/home/oracle/oraInventory' on the local node.
Successfully deleted directory '/home/oracle/app' 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.
Oracle install successfully cleaned up the temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
在删除的过程中有以下几点需要确认的
Specify the list of database names that are configured in this Oracle home [orcl]:
指定需要删除的数据库名称,默认即可,直接回车。
The details of database(s) orcl have been discovered automatically. Do you still want to modify the details of orcl database(s)? [n]:
是否需要修改数据库的详细信息,默认n,直接回车。
Do you want to continue (y - yes, n - no)? [n]: y
是否继续,填写y,回车
脚本结尾,提示需要使用root用户删除如下三个脚本。
rm -rf /etc/oraInst.loc
至此,Oracle删除完毕。
更多推荐
所有评论(0)