<<Back to DB Administration Main Page
Deinstalling oracle database 12c
Step1> Perform Database BackupPerform the backup of the database running from the home if required before deleting the database
Step2> Delete All the database running from the oracle_home
$ dbca -silent -deleteDatabase -sourceDB TST1T -forceArchiveLogDeletion -sysDBAPassword xxxxxx -sysDBAUserName sys
Connecting to database
4% complete
9% complete
14% complete
19% complete
23% complete
28% complete
47% complete
Updating network configuration files
48% complete
52% complete
Deleting instance and datafiles
76% complete
100% complete
Look at the log file "/u01/dbatst1/cfgtoollogs/dbca/TST1T0.log" for further details.
Step3> Deinstall oracle database software
cd $ORACLE_HOME
$ cd deinstall/
$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/orainventory/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/dbatst1/12.2.0.1/dbp1
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /u01/dbatst1
Checking for existence of central inventory location /u01/orainventory
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /u01/orainventory/logs/netdc_check2019-02-11_01-57-02-PM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /u01/orainventory/logs/databasedc_check2019-02-11_01-57-03-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 []: TST1T
###### For Database 'TST1T' ######
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/dbatst1/diag/rdbms/tst1t]:
Specify the storage type used by the Database ASM|FS []: ASM
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 : /u01/orainventory/logs//ocm_check1140.log
Oracle Configuration Manager check END
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /u01/dbatst1/12.2.0.1/dbp1
Inventory Location where the Oracle home registered is: /u01/orainventory
The following databases were selected for de-configuration : TST1T
Database unique name : TST1T
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/orainventory/logs/deinstall_deconfig2019-02-11_01-57-01-PM.out'
Any error messages from this session will be written to: '/u01/orainventory/logs/deinstall_deconfig2019-02-11_01-57-01-PM.err'
######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /u01/orainventory/logs/databasedc_clean2019-02-11_02-07-04-PM.log
Database Clean Configuration START TST1T
This operation may take few minutes.
Database Clean Configuration END TST1T
Network Configuration clean config START
Network de-configuration trace file location: /u01/orainventory/logs/netdc_clean2019-02-11_02-07-23-PM.log
De-configuring Naming Methods configuration file...
Naming Methods 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 : /u01/orainventory/logs//ocm_clean1140.log
Oracle Configuration Manager clean END
######################### DECONFIG CLEAN OPERATION END #########################
####################### DECONFIG CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : TST1T
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/deinstall2019-02-11_01-56-00PM/response/deinstall_2019-02-11_01-57-01-PM.rsp
Location of logs /u01/orainventory/logs/
############ ORACLE DEINSTALL TOOL START ############
####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/u01/orainventory/logs/deinstall_deconfig2019-02-11_01-57-01-PM.out'
Any error messages from this session will be written to: '/u01/orainventory/logs/deinstall_deconfig2019-02-11_01-57-01-PM.err'
######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to test1
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2019-02-11_01-56-00PM/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 '/u01/dbatst1/12.2.0.1/dbp1' from the central inventory on the local node : Done
Delete directory '/u01/dbatst1/12.2.0.1/dbp1' on the local node : Done
The Oracle Base directory '/u01/dbatst1' 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 #######################
Successfully detached Oracle home '/u01/dbatst1/12.2.0.1/dbp1' from the central inventory on the local node.
Successfully deleted directory '/u01/dbatst1/12.2.0.1/dbp1' on the local node.
Oracle Universal Installer cleanup was successful.
Review the permissions and contents of '/u01/dbatst1' on nodes(s) 'test1'.
If there are no Oracle home(s) associated with '/u01/dbatst1', manually delete '/u01/dbatst1' and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL TOOL END #############
Comments
Post a Comment