如果想要卸载,可以使用【runInstaller】,具体如下:

删除前,先查看下当前的情况:

[oracle@ora12c-1 ~]$ env | grep HOME
HOME=/home/oracle
ORACLE_HOME=/home/app/oracle/12c/release_2/db_1
[oracle@ora12c-1 ~]$ du -sh $ORACLE_HOME
7.2G    /home/app/oracle/12c/release_2/db_1
[oracle@ora12c-1 ~]$ 

进入安装介质的目录,运行【runInstaller】:

[root@ora12c-1 ~]# su - oracle
Last login: Wed Mar  8 11:00:11 CST 2017 on pts/0
[oracle@ora12c-1 ~]$ cd /software/oracle/database/
[oracle@ora12c-1 database]$ 

[oracle@ora12c-1 database]$ ./runInstaller -deinstall -home $ORACLE_HOME
Checking for required space in /tmp directory ...
Space check on /tmp directory passed
Bootstrapping the deinstall components
Please wait ...
Bootstrapping completed
Location of logs /tmp/deinstall2017-03-08_11-11-08AM/logs/

############ ORACLE DECONFIG TOOL START ############


######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##


Checking for existence of the Oracle home location /home/app/oracle/12c/release_2/db_1
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /home/app/oracle
Checking for existence of central inventory location /home/app/oraInventory

## [END] Install check configuration ##


Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2017-03-08_11-11-08AM/logs/netdc_check2017-03-08_11-11-30-AM.log

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /tmp/deinstall2017-03-08_11-11-08AM/logs/databasedc_check2017-03-08_11-11-30-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 []: smoking

###### For Database 'smoking' ######

Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [1]: 1
Specify the diagnostic destination location of the database [/home/app/oracle/diag/rdbms/smoking]: 
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 'smoking' 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 fast recovery area location, if it is configured on the file system. If 'smoking' subdirectory is found, then it will be deleted. []: 

Specify the database spfile location [ ]: 

Specify if database Archive Mode is Enabled. y/n [n]: y
Database Check Configuration END
Oracle Configuration Manager check START
OCM check log file location : /tmp/deinstall2017-03-08_11-11-08AM/logs//ocm_check6805.log
Oracle Configuration Manager check END

######################### DECONFIG CHECK OPERATION END #########################


####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /home/app/oracle/12c/release_2/db_1
Inventory Location where the Oracle home registered is: /home/app/oraInventory
The following databases were selected for de-configuration : smoking
Database unique name : smoking
Storage used : FS
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/deinstall2017-03-08_11-11-08AM/logs/deinstall_deconfig2017-03-08_11-11-26-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2017-03-08_11-11-08AM/logs/deinstall_deconfig2017-03-08_11-11-26-AM.err'

######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /tmp/deinstall2017-03-08_11-11-08AM/logs/databasedc_clean2017-03-08_11-14-30-AM.log
Database Clean Configuration START smoking
This operation may take few minutes.


Database Clean Configuration END smoking

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2017-03-08_11-11-08AM/logs/netdc_clean2017-03-08_11-14-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 : /tmp/deinstall2017-03-08_11-11-08AM/logs//ocm_clean6805.log
Oracle Configuration Manager clean END

######################### DECONFIG CLEAN OPERATION END #########################


####################### DECONFIG CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : smoking
Cleaning the config for CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
#######################################################################


############# ORACLE DECONFIG TOOL END #############

Using properties file /tmp/deinstall2017-03-08_11-11-08AM/response/deinstall_2017-03-08_11-11-26-AM.rsp
Location of logs /tmp/deinstall2017-03-08_11-11-08AM/logs/

############ ORACLE DEINSTALL TOOL START ############





####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/tmp/deinstall2017-03-08_11-11-08AM/logs/deinstall_deconfig2017-03-08_11-11-26-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2017-03-08_11-11-08AM/logs/deinstall_deconfig2017-03-08_11-11-26-AM.err'

######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to ora12c-1
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2017-03-08_11-11-08AM/oraInst.loc
Setting oracle.installer.local to false

## [END] Preparing for Deinstall ##

Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START

Detach Oracle home '/home/app/oracle/12c/release_2/db_1' from the central inventory on the local node : Done

Delete directory '/home/app/oracle/12c/release_2/db_1' on the local node : Done

Delete directory '/home/app/oraInventory' on the local node : Done

Failed to delete the directory '/home/app/oracle/tfa/ora12c-1/output/dbzip'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/home/app/oracle/tfa/ora12c-1/output/tracefiles'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/home/app/oracle/tfa/ora12c-1/diagnostics_to_collect'. Either user has no permission to delete or it is in use.
The Oracle Base directory '/home/app/oracle' will not be removed on local node. The directory is not empty.

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END


## [START] Oracle install clean ##


## [END] Oracle install clean ##


######################### DEINSTALL CLEAN OPERATION END #########################


####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Run '/home/app/oracle/tfa/ora12c-1/tfa_home/bin/tfactl uninstall' as root to uninstall tfa.

Successfully detached Oracle home '/home/app/oracle/12c/release_2/db_1' from the central inventory on the local node.
Successfully deleted directory '/home/app/oracle/12c/release_2/db_1' on the local node.
Successfully deleted directory '/home/app/oraInventory' on the local node.
Oracle Universal Installer cleanup was successful.


Run 'rm -r /etc/oraInst.loc' as root on node(s) 'ora12c-1' at the end of the session.

Run 'rm -r /opt/ORCLfmap' as root on node(s) 'ora12c-1' at the end of the session.
Run 'rm -r /etc/oratab' as root on node(s) 'ora12c-1' at the end of the session.
Review the permissions and contents of '/home/app/oracle' on nodes(s) 'ora12c-1'.
If there are no Oracle home(s) associated with '/home/app/oracle', manually delete '/home/app/oracle' and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################


############# ORACLE DEINSTALL TOOL END #############

[oracle@ora12c-1 database]$ 
[oracle@ora12c-1 database]$ 

——————————————————————————
Done。

说点什么

avatar

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

  Subscribe  
提醒