fb4d02f3-2413-47ca-8584-a768e23ec2e7 ee12db 12.1.0.2 false
(Continued)
Class Shape Storage Status
------ ------- -------- ----------
OLTP odb1 ACFS Configured
IMDB odb1 ASM Configured
odacli delete-database
Use the odacli delete-database command to delete a database.
File Path
$ORACLE_HOME/opt/oracle/dcs/bin/odacli
Syntax
To delete a database:
odacli delete-database -i dbid [-h] [-j]
Parameters
Parameter Description
--dbid
,
-i
Identifies the database home identifier (ID) to display.
Use the
odacli list-databases
command to obtain the
--
dbid
.
--help
,
-h
(Optional) Displays help for using the command.
--json
,
-j
(Optional) Displays JSON output.
Usage
Note:
The delete-database command deletes the database, the file system,
and the underlying
advm
volumes assigned to the database. For example,
deleting a database named
hrdb
also deletes the file system
/u02/app/
oracle/oradata/hrdb
. Do not keep any other files on this database file
location.
Example 13-64 Deleting a Database Named
hrmsdb
In this example we want to delete a database named
hrmsdb
. Before we can delete the
database, we need to know the database home identifier (dbid). This example shows
how to run the odacli list-databases command to list the databases and their
associated dbid, then how to delete database
hrmsdb
.
# odacli list-databases
Chapter 13
odacli Database Commands
13-69