卸载oracle 12C
参考文档:
[oracle@my2950 ~]$ cd /var/ftp/pub/software/oracle12c/database/
[oracle@my2950 database]$ ls
install/ response/ rpm/ runInstaller* sshsetup/ stage/ welcome.html*
[oracle@my2950 database]$
[oracle@my2950 deinstall]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.1.0 Production on Tue May 13 12:51:01 2014
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> shutdown abort
ORACLE instance shut down.
SQL>
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
[oracle@my2950 deinstall]$
[oracle@my2950 deinstall]$ ps -eaf|grep oracle
oracle 522 28714 0 12:51 pts/1 00:00:00 ps -eaf
oracle 523 28714 0 12:51 pts/1 00:00:00 grep oracle
root 2911 1787 0 11:01 pts/1 00:00:00 su - oracle
oracle 2912 2911 0 11:01 pts/1 00:00:00 -bash
oracle 23595 1 0 11:39 ? 00:00:00 /u01/app/oracle/product/11.2.3/db_1/bin/tnslsnr LISTENER -inherit
root 28713 3000 0 11:18 pts/1 00:00:00 su - oracle
oracle 28714 28713 0 11:18 pts/1 00:00:00 -bash
[oracle@my2950 deinstall]$ lsnrctl stop
LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 13-MAY-2014 12:51:20
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=my2950.momo.org)(PORT=1521)))
The command completed successfully
[oracle@my2950 deinstall]$
[oracle@my2950 deinstall]$ ps -eaf|grep oracle
oracle 537 28714 0 12:51 pts/1 00:00:00 ps -eaf
oracle 538 28714 0 12:51 pts/1 00:00:00 grep oracle
root 2911 1787 0 11:01 pts/1 00:00:00 su - oracle
oracle 2912 2911 0 11:01 pts/1 00:00:00 -bash
root 28713 3000 0 11:18 pts/1 00:00:00 su - oracle
oracle 28714 28713 0 11:18 pts/1 00:00:00 -bash
[oracle@my2950 deinstall]$
[oracle@my2950 database]$ ./runInstaller -deinstall -home /u01/app/oracle/product/11.2.3/db_1
Checking for required space in /tmp directory ...
Please wait ...
./runInstaller: line 167: [: 7%: integer expression expected
Space check on /tmp directory passed...
Bootstrapping the deinstall components...Done
Location of logs /tmp/deinstall_bootstrap/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.3/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) : 'my2950'
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall_bootstrap/logs/netdc_check2014-05-13_12-57-33-PM.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/deinstall_bootstrap/logs/databasedc_check2014-05-13_12-57-40-PM.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 []:
Database Check Configuration END
Oracle Configuration Manager check START
OCM check log file location : /tmp/deinstall_bootstrap/logs//ocm_check8323.log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /u01/app/oracle/product/11.2.3/db_1
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following Single Instance listener(s) will be de-configured: LISTENER
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/deinstall_bootstrap/logs/deinstall_deconfig2014-05-13_12-57-30-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall_bootstrap/logs/deinstall_deconfig2014-05-13_12-57-30-PM.err'
######################## CLEAN OPERATION START ########################
Database de-configuration trace file location: /tmp/deinstall_bootstrap/logs/databasedc_clean2014-05-13_12-57-59-PM.log
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall_bootstrap/logs/netdc_clean2014-05-13_12-57-59-PM.log
De-configuring Single Instance listener(s): LISTENER
De-configuring listener: LISTENER
Stopping listener: LISTENER
Warning: Failed to stop listener. Listener may not be running.
Deleting listener: LISTENER
Listener deleted successfully.
Listener de-configured successfully.
De-configuring Listener configuration file...
Listener configuration file 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/deinstall_bootstrap/logs//ocm_clean8323.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.3/db_1' from the central inventory on the local node : Done
Delete directory '/u01/app/oracle/product/11.2.3/db_1' on the local node : Done
Delete directory '/u01/app/oraInventory' on the local node : Done
The Oracle Base directory '/u01/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 ##
Clean install operation removing temporary directory '/tmp/deinstall_bootstrap' on node 'my2950'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
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 '/u01/app/oracle/product/11.2.3/db_1' from the central inventory on the local node.
Successfully deleted directory '/u01/app/oracle/product/11.2.3/db_1' on the local node.
Successfully deleted directory '/u01/app/oraInventory' on the local node.
Oracle Universal Installer cleanup was successful.
Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'my2950' at the end of the session.
Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'my2950' at the end of the session.
Run 'rm -rf /etc/oratab' as root on node(s) 'my2950' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
[oracle@my2950 database]$
[oracle@my2950 database]$ pwd
/var/ftp/pub/software/oracle12c/database
[oracle@my2950 database]$ ls /u01/app/oracle/
admin/
[oracle@my2950 database]$ ls /u01/app/oracle/admin/
mydb1/
[oracle@my2950 database]$
[oracle@my2950 database]$ ls /u01/app/oracle/admin/mydb1/
xdb_wallet/
[oracle@my2950 database]$ ls /u01/app/oracle/admin/mydb1/xdb_wallet/
cwallet.sso ewallet.p12
[oracle@my2950 database]$ ls /u01/
app/
[oracle@my2950 database]$ ls /u01/app/
oracle/
[oracle@my2950 database]$ ls /u01/app/oracle/
admin/
[oracle@my2950 database]$ rm -rf /u01/app/oracle/*
[oracle@my2950 database]$
[oracle@my2950 database]$ ls /u01/app/oracle/
admin/
[oracle@my2950 database]$ ls /u01/app/oracle/admin/
mydb1/
[oracle@my2950 database]$
[oracle@my2950 database]$ ls /u01/app/oracle/admin/mydb1/
xdb_wallet/
[oracle@my2950 database]$ ls /u01/app/oracle/admin/mydb1/xdb_wallet/
cwallet.sso ewallet.p12
[oracle@my2950 database]$ ls /u01/
app/
[oracle@my2950 database]$ ls /u01/app/
oracle/
[oracle@my2950 database]$ ls /u01/app/oracle/
admin/
[oracle@my2950 database]$ rm -rf /u01/app/oracle/*
[oracle@my2950 database]$
[oracle@my2950 database]$
[oracle@my2950 database]$ more /etc/ora
oraInst.loc oratab
[oracle@my2950 database]$ more /etc/ora
oraInst.loc oratab
[oracle@my2950 database]$ more /etc/oraInst.loc
inventory_loc=/u01/app/oraInventory
inst_group=oinstall
[oracle@my2950 database]$
[oracle@my2950 database]$ su
Password:
su: incorrect password
[oracle@my2950 database]$ su
Password:
[root@my2950 database]# rm -rf /etc/oraInst.loc
[root@my2950 database]# rm -rf /opt/ORCLfmap
[root@my2950 database]# rm -rf /etc/oratab
[root@my2950 database]#
[root@my2950 database]# rm -f /usr/local/bin/dbhome
[root@my2950 database]# rm -f /usr/local/bin/oraenv
[root@my2950 database]# rm -f /usr/local/bin/coraenv
[root@my2950 database]#
#end