4.3.9.3 DELETE DATABASEHOME
This command removes an existing Oracle database home.
Syntax
DELETE DATABASEHOME
WHERE
{ ID=database_home_id |
CLUSTERNUMBER=cluster_number DBHOMELOC=database_home_path |
CLUSTERNAME=cluster_name DBHOMELOC=database_home_path |
CLUSTERID=cluster_id DBHOMELOC=database_home_path }
Arguments
The following arguments are available in the WHERE
clause:
-
ID
: Specifies thees.xml
ID for the database home -
CLUSTERNUMBER
: Specifies the cluster number in thees.xml
, starting at 1 -
CLUSTERNAME
: Specifies the name of the cluster -
CLUSTERID
: Specifies thees.xml
ID of the cluster -
DBHOMELOC
: Specifies the path for the database home directory.
Usage Notes
The database home you are deleting must not contain any dependent databases.
Example 4-19 Removing an Existing Oracle Database Home
This example shows how to delete an existing Oracle Database home directory.
oedacli> LOAD FILE NAME=Oracle-test12.xml
SUCCESS - file loaded OK
Customer : ora07adm01 - Oracle
oedacli> DELETE DATABASEHOME WHERE id='c0_databaseHome1'
oedacli> SAVE ACTION
oedacli> MERGE ACTIONS
processMerge
processMergeActions
Merging Action : delete databasehome where id='c0_databaseHome1'
Merging DELETE DATABASEHOME
Action Validated and Merged OK
oedacli> DEPLOY ACTIONS
Deploying Action ID : 3 delete databasehome where id='c0_databaseHome1'
Deploying DELETE DATABASEHOME
Validating Oracle home..
Deinstalling database home c0_DbHome_1
Unmounting file system..
Updating /etc/fstab entries...
Done...
Done
Parent topic: DATABASEHOME