[oracle@rhel8619c deinstall]$ ./deinstall -local
Checking for required files and bootstrapping ...
Please wait ...
./deinstall: line 250: ERROR:: command not found
SOLUTION
Download separate de-install utility from OTN
unzip /soft/p13390677_112040_Linux-x86-64_7of7_Deinstall.zip -d $ORACLE_HOME
[oracle@rhel8619c deinstall]$ ./deinstall -local
Tool is being run outside the Oracle Home, -home needs to be set.
deinstall -home <Complete path of Oracle home>
[ -silent ]
[ -checkonly ]
[ -local ]
[ -paramfile <complete path of input parameter properties file> ]
[ -params <name1=value[ name2=value name3=value ...]> ]
[ -o <complete path of directory for saving files> ]
[ -tmpdir <complete path of temporary directory to use> ]
[ -logdir <complete path of log directory to use> ]
[ -help : Type -help to get more information on each of the above options. ]
./deinstall -home /u01/app/oracle/product/11.2/db_1/ -local
Specify the list of database names that are configured in this Oracle home []:【enter】
Do you want to continue (y - yes, n - no)? [n]: 【y】
######################## CLEAN OPERATION START ########################
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /u01/app/oraInventory/logs/emcadc_clean2023-02-12_02-35-41-PM.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: /u01/app/oraInventory/logs/databasedc_clean2023-02-12_02-35-46-PM.log
Network Configuration clean config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean2023-02-12_02-35-46-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_clean3923.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/db_1' from the central inventory on the local node : Done
Failed to delete the directory '/u01/app/oracle/product/11.2/db_1'. The directory is in use.
Delete directory '/u01/app/oracle/product/11.2/db_1' on the local node : Failed <<<<
The Oracle Base directory '/u01/app/oracle' will not be removed on local node. The directory is in use by Oracle Home '/u01/app/oracle/product/19.0/db_1'.
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2023-02-12_02-35-28PM' on node 'rhel8619c'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
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/db_1' from the central inventory on the local node.
Failed to delete directory '/u01/app/oracle/product/11.2/db_1' on the local node.
Oracle Universal Installer cleanup was successful.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
Deinstall Utility Fails with Error -- deinstall[250] ERROR not found (Doc ID 2162060.1)