Desinstalación Oracle Database 18.3.0
Desinstalación Oracle 18.3.0
Generamos un response file:
[oracle@suez
18.3.0]$ id
uid=501(oracle)
gid=502(oinstall) groups=502(oinstall),501(dba),503(asmdba),504(asmadmin)
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[oracle@suez
18.3.0]$ cd deinstall/
[oracle@suez
deinstall]$ ./deinstall -checkonly
Checking
for required files and bootstrapping ...
Please wait
...
Location of
logs /tmp/deinstall2018-07-26_03-39-35PM/logs/
############
ORACLE DECONFIG TOOL START ############
#########################
DECONFIG CHECK OPERATION START #########################
## [START]
Install check configuration ##
Checking
for existence of the Oracle home location /u01/app/oracle/product/18.3.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
## [END]
Install check configuration ##
Network
Configuration check config START
Network
de-configuration trace file location: /tmp/deinstall2018-07-26_03-39-35PM/logs/netdc_check2018-07-26_03-40-34PM.log
Network
Configuration check config END
Database
Check Configuration START
Database
de-configuration trace file location:
/tmp/deinstall2018-07-26_03-39-35PM/logs/databasedc_check2018-07-26_03-40-34PM.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
#########################
DECONFIG CHECK OPERATION END #########################
#######################
DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Home
selected for deinstall is: /u01/app/oracle/product/18.3.0
Inventory
Location where the Oracle home registered is: /u01/app/oraInventory
Location of response file generated:
'/tmp/deinstall2018-07-26_03-39-35PM/response/deinstall_OraDB18Home1.rsp'
A log of
this session will be written to:
'/tmp/deinstall2018-07-26_03-39-35PM/logs/deinstall_deconfig2018-07-26_03-40-32-PM.out'
Any error
messages from this session will be written to:
'/tmp/deinstall2018-07-26_03-39-35PM/logs/deinstall_deconfig2018-07-26_03-40-32-PM.err'
#############
ORACLE DECONFIG TOOL END #############
[oracle@suez
deinstall]$
Ejecutamos la desintalación:
/u01/app/oracle/product/18.3.0/deinstall/deinstall -paramfile
/home/oracle/deinstall_OraDB18Home1.rsp
Checking
for required files and bootstrapping ...
Please wait
...
Using
properties file /home/oracle/deinstall_OraDB18Home1.rsp
Location of
logs /tmp/deinstall2018-07-26_03-39-35PM/logs/
############
ORACLE DECONFIG TOOL START ############
#########################
DECONFIG CHECK OPERATION START #########################
## [START]
Install check configuration ##
Checking
for existence of the Oracle home location /u01/app/oracle/product/18.3.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
## [END]
Install check configuration ##
Network
Configuration check config START
Network
de-configuration trace file location:
/tmp/deinstall2018-07-26_03-39-35PM/logs/netdc_check2018-07-26_03-50-31PM.log
Network
Configuration check config END
Database Check
Configuration START
Database
de-configuration trace file location:
/tmp/deinstall2018-07-26_03-39-35PM/logs/databasedc_check2018-07-26_03-50-31PM.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
#########################
DECONFIG CHECK OPERATION END #########################
#######################
DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Home
selected for deinstall is: /u01/app/oracle/product/18.3.0
Inventory
Location where the Oracle home registered is: /u01/app/oraInventory
Do you want to continue (y - yes, n - no)? [n]:
y
A log of
this session will be written to: '/tmp/deinstall2018-07-26_03-39-35PM/logs/deinstall_deconfig2018-07-26_03-50-27-PM.out'
Any error
messages from this session will be written to:
'/tmp/deinstall2018-07-26_03-39-35PM/logs/deinstall_deconfig2018-07-26_03-50-27-PM.err'
########################
DECONFIG CLEAN OPERATION START ########################
Database
de-configuration trace file location:
/tmp/deinstall2018-07-26_03-39-35PM/logs/databasedc_clean2018-07-26_03-50-31PM.log
Network
Configuration clean config START
Network
de-configuration trace file location: /tmp/deinstall2018-07-26_03-39-35PM/logs/netdc_clean2018-07-26_03-50-31PM.log
De-configuring
backup files...
Backup
files de-configured successfully.
The network
configuration has been cleaned up successfully.
Network
Configuration clean config END
#########################
DECONFIG CLEAN OPERATION END #########################
#######################
DECONFIG CLEAN OPERATION SUMMARY #######################
#######################################################################
#############
ORACLE DECONFIG TOOL END #############
Using
properties file /home/oracle/deinstall_OraDB18Home1.rsp
Location of
logs /tmp/deinstall2018-07-26_03-39-35PM/logs/
############
ORACLE DEINSTALL TOOL START ############
#######################
DEINSTALL CHECK OPERATION SUMMARY #######################
A log of
this session will be written to:
'/tmp/deinstall2018-07-26_03-39-35PM/logs/deinstall_deconfig2018-07-26_03-50-27-PM.out'
Any error
messages from this session will be written to: '/tmp/deinstall2018-07-26_03-39-35PM/logs/deinstall_deconfig2018-07-26_03-50-27-PM.err'
########################
DEINSTALL CLEAN OPERATION START ########################
## [START]
Preparing for Deinstall ##
Setting
LOCAL_NODE to suez
Setting
CRS_HOME to false
Setting oracle.installer.invPtrLoc
to /tmp/deinstall2018-07-26_03-49-53PM/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/app/oracle/product/18.3.0' from the central inventory on the local node :
Done
Delete directory
'/u01/app/oracle/product/18.3.0' 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. User needs to
manually cleanup this directory.
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 '/u01/app/oracle/tfa/suez/tfa_home/bin/tfactl
uninstall' as root to uninstall tfa.
Successfully
detached Oracle home '/u01/app/oracle/product/18.3.0' from the central
inventory on the local node.
Successfully
deleted directory '/u01/app/oracle/product/18.3.0' on the local node.
Successfully
deleted directory '/u01/app/oraInventory' on the local node.
Oracle
Universal Installer cleanup was successful.
Run 'rm -r /etc/oraInst.loc' as root on node(s)
'suez' at the end of the session.
Run 'rm -r /opt/ORCLfmap' as root on node(s)
'suez' at the end of the session.
Run 'rm -r /etc/oratab' as root on node(s)
'suez' at the end of the session.
Review the permissions and contents of
'/u01/app/oracle' on nodes(s) 'suez'.
If there are no Oracle home(s) associated with
'/u01/app/oracle', manually delete '/u01/app/oracle' and its contents.
Oracle deinstall tool successfully cleaned up
temporary directories.
#######################################################################
#############
ORACLE DEINSTALL TOOL END #############
Como root,
desinstalo tfa:
[root@suez
~]# /u01/app/oracle/tfa/suez/tfa_home/bin/tfactl uninstall
WARNING -
TFA Software is older than 180 days. Please consider upgrading TFA to the
latest version.
TFA will be
uninstalled on node suez :
Removing
TFA from suez...
Stopping
TFA Support Tools...
Stopping
TFA in suez...
Shutting
down TFA
oracle-tfa
stop/waiting
. . . . .
Killing TFA
running with pid 11404
. . .
Successfully
shutdown TFA..
TFA-00002
Oracle Trace File Analyzer (TFA) is not running
Deleting
TFA support files on suez:
Removing /u01/app/oracle/tfa/suez/database...
Removing /u01/app/oracle/tfa/suez/log...
Removing /u01/app/oracle/tfa/suez/output...
Removing /u01/app/oracle/tfa/suez...
Removing /u01/app/oracle/tfa...
Removing /etc/rc.d/rc0.d/K17init.tfa
Removing
/etc/rc.d/rc1.d/K17init.tfa
Removing
/etc/rc.d/rc2.d/K17init.tfa
Removing
/etc/rc.d/rc4.d/K17init.tfa
Removing
/etc/rc.d/rc6.d/K17init.tfa
Removing /etc/init.d/init.tfa...
Y elimino los directorios:
[root@suez ~]# rm -r /etc/oraInst.loc
rm: remove
regular file `/etc/oraInst.loc'? y
[root@suez
~]# rm -r /opt/ORCLfmap
rm: descend
into directory `/opt/ORCLfmap'? y
rm: descend
into directory `/opt/ORCLfmap/prot1_64'? y
rm: remove
directory `/opt/ORCLfmap/prot1_64/log'? y
rm: descend
into directory `/opt/ORCLfmap/prot1_64/bin'? y
rm: remove
regular file `/opt/ORCLfmap/prot1_64/bin/fmputlhp'? a
rm: remove
regular file `/opt/ORCLfmap/prot1_64/bin/fmputl'? ay
rm: remove
directory `/opt/ORCLfmap/prot1_64/bin'? y
rm: cannot
remove `/opt/ORCLfmap/prot1_64/bin': Directory not empty
rm: descend
into directory `/opt/ORCLfmap/prot1_64/etc'? y
rm: remove
regular file `/opt/ORCLfmap/prot1_64/etc/filemap.ora'? y
rm: remove
directory `/opt/ORCLfmap/prot1_64/etc'? y
[root@suez
~]# rm -r /opt/ORCLfmap
rm: descend
into directory `/opt/ORCLfmap'? y
rm: descend
into directory `/opt/ORCLfmap/prot1_64'? y
rm: descend
into directory `/opt/ORCLfmap/prot1_64/bin'? y
rm: remove
regular file `/opt/ORCLfmap/prot1_64/bin/fmputlhp'? y
rm: remove
regular file `/opt/ORCLfmap/prot1_64/bin/fmputl'? y
rm: remove
directory `/opt/ORCLfmap/prot1_64/bin'? y
rm: remove
directory `/opt/ORCLfmap/prot1_64'? y
rm: remove
directory `/opt/ORCLfmap'? y
[root@suez
~]# y
-bash: y:
command not found
[root@suez
~]# rm -r /opt/ORCLfmap
rm: cannot
remove `/opt/ORCLfmap': No such file or directory
[root@suez ~]# rm -r /etc/oratab
rm: remove regular file `/etc/oratab'? y
Comentarios