How To Uninstall Deinstall Oracle Home 12c in linux
Deinsatll / Uninstall Oracle Software from Linux Process
Login in Server as Oracle user and run deinstall under ORACLE_HOME/deinstall destination as mentioned below.
While deinstall the software it prompt you about your databases and db related information, provide accordingly to continue the software uninstall.
[root@dbsrv1 ~]# su - oracle
[oracle@dbsrv1 ~]$ cd $ORACLE_HOME
[oracle@dbsrv1 12.1.0]$ ls
addnode bin clone cv deinstall dv instantclient jdk log nls OPatch ord plsql R root.sh sqlj sysman wwg
admin ccr crs dbhadoop demo has inventory jlib md oc4j opmn oui plugins racg scheduler sqlpatch ucp xdk
apex cdata css dbs diagnostics hs javavm ldap mgw odbc oracore owm precomp rdbms slax sqlplus usm
assistants cfgtoollogs ctx dc_ocm dmu install jdbc lib network olap oraInst.loc perl QOpatch relnotes sqldeveloper srvm utl
[oracle@dbsrv1 12.1.0]$ cd deinstall/
[oracle@dbsrv1 deinstall]$ ls
bootstrap_files.lst bootstrap.pl deinstall deinstall.pl deinstall.xml jlib readme.txt response sshUserSetup.sh utl
[oracle@dbsrv1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/app/oraInventory/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/12.1.0
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) : 'dbsrv1.testdbsrv1.com'
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2018-06-13_09-37-04-PM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_check2018-06-13_09-37-05-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 [testdb,asmdb1]: testdb,asmdb1
###### For Database 'testdb' ######
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 [/u01/app/oracle/diag/rdbms/testdb]:
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 'testdb' 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/oradata/testdb
Specify the fast recovery area location, if it is configured on the file system. If 'testdb' subdirectory is found, then it will be deleted. []:
Specify the database spfile location [ ]:
###### For Database 'asmdb1' ######
Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [2]: 1
Specify the diagnostic destination location of the database [/u01/app/oracle/diag/rdbms/asmdb1]:
Specify the storage type used by the Database ASM|FS []: ASM
Database Check Configuration END
Oracle Configuration Manager check START
OCM check log file location : /u01/app/oraInventory/logs//ocm_check2459.log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /u01/app/oracle/product/12.1.0
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
The following databases were selected for de-configuration : testdb,asmdb1
Database unique name : testdb
Storage used : FS
Database unique name : asmdb1
Storage used : ASM
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: '/u01/app/oraInventory/logs/deinstall_deconfig2018-06-13_09-36-57-PM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2018-06-13_09-36-57-PM.err'
######################## CLEAN OPERATION START ########################
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_clean2018-06-13_09-45-56-PM.log
Database Clean Configuration START testdb
This operation may take few minutes.
Database Clean Configuration END testdb
Database Clean Configuration START asmdb1
This operation may take few minutes.
Database Clean Configuration END asmdb1
Network Configuration clean config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean2018-06-13_09-46-41-PM.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 : /u01/app/oraInventory/logs//ocm_clean2459.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/12.1.0' from the central inventory on the local node : Done
Delete directory '/u01/app/oracle/product/12.1.0' 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/deinstall2018-06-13_09-36-18PM' on node 'dbsrv1'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : testdb,asmdb1
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/12.1.0' from the central inventory on the local node.
Successfully deleted directory '/u01/app/oracle/product/12.1.0' on the local node.
Successfully deleted directory '/u01/app/oracle' on the local node.
Oracle Universal Installer cleanup was successful.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
[oracle@dbsrv1 deinstall]$
Login in Server as Oracle user and run deinstall under ORACLE_HOME/deinstall destination as mentioned below.
While deinstall the software it prompt you about your databases and db related information, provide accordingly to continue the software uninstall.
[root@dbsrv1 ~]# su - oracle
[oracle@dbsrv1 ~]$ cd $ORACLE_HOME
[oracle@dbsrv1 12.1.0]$ ls
addnode bin clone cv deinstall dv instantclient jdk log nls OPatch ord plsql R root.sh sqlj sysman wwg
admin ccr crs dbhadoop demo has inventory jlib md oc4j opmn oui plugins racg scheduler sqlpatch ucp xdk
apex cdata css dbs diagnostics hs javavm ldap mgw odbc oracore owm precomp rdbms slax sqlplus usm
assistants cfgtoollogs ctx dc_ocm dmu install jdbc lib network olap oraInst.loc perl QOpatch relnotes sqldeveloper srvm utl
[oracle@dbsrv1 12.1.0]$ cd deinstall/
[oracle@dbsrv1 deinstall]$ ls
bootstrap_files.lst bootstrap.pl deinstall deinstall.pl deinstall.xml jlib readme.txt response sshUserSetup.sh utl
[oracle@dbsrv1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/app/oraInventory/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/12.1.0
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) : 'dbsrv1.testdbsrv1.com'
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2018-06-13_09-37-04-PM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_check2018-06-13_09-37-05-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 [testdb,asmdb1]: testdb,asmdb1
###### For Database 'testdb' ######
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 [/u01/app/oracle/diag/rdbms/testdb]:
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 'testdb' 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/oradata/testdb
Specify the fast recovery area location, if it is configured on the file system. If 'testdb' subdirectory is found, then it will be deleted. []:
Specify the database spfile location [ ]:
###### For Database 'asmdb1' ######
Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [2]: 1
Specify the diagnostic destination location of the database [/u01/app/oracle/diag/rdbms/asmdb1]:
Specify the storage type used by the Database ASM|FS []: ASM
Database Check Configuration END
Oracle Configuration Manager check START
OCM check log file location : /u01/app/oraInventory/logs//ocm_check2459.log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /u01/app/oracle/product/12.1.0
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
The following databases were selected for de-configuration : testdb,asmdb1
Database unique name : testdb
Storage used : FS
Database unique name : asmdb1
Storage used : ASM
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: '/u01/app/oraInventory/logs/deinstall_deconfig2018-06-13_09-36-57-PM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2018-06-13_09-36-57-PM.err'
######################## CLEAN OPERATION START ########################
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_clean2018-06-13_09-45-56-PM.log
Database Clean Configuration START testdb
This operation may take few minutes.
Database Clean Configuration END testdb
Database Clean Configuration START asmdb1
This operation may take few minutes.
Database Clean Configuration END asmdb1
Network Configuration clean config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean2018-06-13_09-46-41-PM.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 : /u01/app/oraInventory/logs//ocm_clean2459.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/12.1.0' from the central inventory on the local node : Done
Delete directory '/u01/app/oracle/product/12.1.0' 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/deinstall2018-06-13_09-36-18PM' on node 'dbsrv1'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : testdb,asmdb1
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/12.1.0' from the central inventory on the local node.
Successfully deleted directory '/u01/app/oracle/product/12.1.0' on the local node.
Successfully deleted directory '/u01/app/oracle' on the local node.
Oracle Universal Installer cleanup was successful.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
[oracle@dbsrv1 deinstall]$