Use the cleanup deploy script tool to perform clean up tasks.
Use the Oracle Database Appliance cleanup deploy script, cleanup.pl
for the following activities:
Uninstall Oracle Auto Service Request (Oracle ASR)
Uninstall Oracle Trace File Analyzer (TFA)
Delete Oracle Database Console (dbconsole) files
Uninstall GI and Oracle stack
Reset the Oracle Linux udev
rules
Delete Oracle Linux udev
rules
Delete users and groups that were created when the appliance was created. For default users and groups, use the DROP USER
statement. If you used a custom user name and group name when you deployed the appliance, use -griduser
, -dbuser
, -groups
arguments to pass to the cleanup.pl
script.
The script removes the firstnet config
and the client access VLAN UNIX_DB, but does not delete any other VLANs.
File Path
$ORACLE_HOME/opt/oracle/oak/onecmd/
Syntax
# ./cleanup.pl [-griduser grid_user] [-dbuser db_user] [-groups comma separated list of groups]
Parameters
Parameter | Description |
---|---|
|
Defines the grid user name. The default user is |
|
Defines the database user name. The default user is |
|
Lists the groups in a comma separated list. The default groups are |
Usage
When the grid_user
and db_user
are the same (roleSeparation=false), you must still run the script for each user (-gridUser
and -dbUser
).
As part of the cleanup script, any disabled CPU cores are reset and all of the cores are re-enabled.
Example D-1 Cleanup Script to Delete the Grid and Database Users
Run the following command to delete the grid user and database user when both are named oracle
:
# cleanup.pl -griduser oracle -dbuser oracle
If you encounter problems with a Virtualized Platform deployment, clean up the existing deployment before starting a new ODA_BASE deployment.
For Oracle Database Appliance X7-2 models, only use this cleanup deploy script tool to clean up a Virtualized Platform deployment on Oracle Database Appliance X7-2-HA.
The script removes the initial network configuration (firstnet config) and the client access VLAN UNIX_DB, but does not delete any other VLANs. The script also resets any disabled CPU cores and enables all of the cores.
Run the following command from dom0
on Node 0 to remove ODA_BASE and the initial network configuration.
/opt/oracle/oak/tools/cleanOdabase.py