linux 卸载oracle11g

使用oracle自带的runInstaller卸载

[oracle@oracletest1 dbhome_1]$ pwd
/opt/11g/oracle/product/11.2.0/dbhome_1
[oracle@oracletest1 dbhome_1]$ cd deinstall/
[oracle@oracletest1 deinstall]$ ls
bootstrap.pl  deinstall  deinstall.pl  deinstall.xml  jlib  readme.txt  response  sshUserSetup.sh
[oracle@oracletest1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2022-07-14_10-45-51AM/logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############


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


Checking for existence of the Oracle home location /opt/11g/oracle/product/11.2.0/dbhome_1
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /opt/11g/oracle
Checking for existence of central inventory location /opt/11g/oraInventory
Checking for sufficient temp space availability on node(s) : 'oracletest1'

## [END] Install check configuration ##


Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2022-07-14_10-45-51AM/logs/netdc_check2022-07-14_10-47-04-AM.log

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /tmp/deinstall2022-07-14_10-45-51AM/logs/databasedc_check2022-07-14_10-47-04-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 [orcl]: 

###### For Database 'orcl' ######

Single Instance Database
The diagnostic destination location of the database: /opt/11g/oracle/diag/rdbms/orcl
Storage type used by the Database: FS
Database file location: /oradata/orcl,/opt/11g/data,/opt/11g/oracle/product/11.2.0/dbhome_1/dbs/oradata/orcl
Fast recovery area location: Does not exist
database spfile location: /opt/11g/oracle/product/11.2.0/dbhome_1/dbs/spfileorcl.ora

The details of database(s) orcl have been discovered automatically. Do you still want to modify the details of orcl database(s)? [n]: n

Database Check Configuration END

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /tmp/deinstall2022-07-14_10-45-51AM/logs/emcadc_check2022-07-14_10-48-40-AM.log 

Checking configuration for database orcl
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /tmp/deinstall2022-07-14_10-45-51AM/logs//ocm_check456.log
Oracle Configuration Manager check END

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


####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /opt/11g/oracle/product/11.2.0/dbhome_1
Inventory Location where the Oracle home registered is: /opt/11g/oraInventory
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/deinstall2022-07-14_10-45-51AM/logs/deinstall_deconfig2022-07-14_10-47-01-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2022-07-14_10-45-51AM/logs/deinstall_deconfig2022-07-14_10-47-01-AM.err'

######################## CLEAN OPERATION START ########################

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /tmp/deinstall2022-07-14_10-45-51AM/logs/emcadc_clean2022-07-14_10-48-40-AM.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/deinstall2022-07-14_10-45-51AM/logs/databasedc_clean2022-07-14_10-49-29-AM.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/deinstall2022-07-14_10-45-51AM/logs/netdc_clean2022-07-14_10-50-09-AM.log

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/deinstall2022-07-14_10-45-51AM/logs//ocm_clean456.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 '/opt/11g/oracle/product/11.2.0/dbhome_1' from the central inventory on the local node : Done

Delete directory '/opt/11g/oracle/product/11.2.0/dbhome_1' on the local node : Done

Delete directory '/opt/11g/oraInventory' on the local node : Done

Failed to delete the directory '/opt/11g/oracle'. The directory is in use.
Delete directory '/opt/11g/oracle' on the local node : Failed <<<<

Oracle Universal Installer cleanup completed with errors.

Oracle Universal Installer clean END


## [START] Oracle install clean ##

Clean install operation removing temporary directory '/tmp/deinstall2022-07-14_10-45-51AM' on node 'oracletest1'

## [END] Oracle install clean ##


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


####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : orcl
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 '/opt/11g/oracle/product/11.2.0/dbhome_1' from the central inventory on the local node.
Successfully deleted directory '/opt/11g/oracle/product/11.2.0/dbhome_1' on the local node.
Successfully deleted directory '/opt/11g/oraInventory' on the local node.
Failed to delete directory '/opt/11g/oracle' on the local node.
Oracle Universal Installer cleanup completed with errors.


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

Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'oracletest1' at the end of the session.
Run 'rm -rf /etc/oratab' as root on node(s) 'oracletest1' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################


############# ORACLE DEINSTALL & DECONFIG TOOL END #############

[oracle@oracletest1 deinstall]$ 

 

posted @ 2022-07-14 11:00  尘世间一个迷途小书童  阅读(453)  评论(0编辑  收藏  举报