Dropping an Application Seed
You can use the DROP
PLUGGABLE
DATABASE
statement to drop an application seed. You can drop an application seed when you no longer need it.
When you drop an application seed, the control file of the CDB is modified to eliminate all references to the dropped application seed. Archived redo log files and backups associated with the application seed are not removed, but you can use Oracle Recovery Manager (RMAN) to remove them.
When dropping an application seed, you can either keep or delete the application seed’s data files by using one of the following clauses:
-
KEEP DATAFILES
, the default, retains the data files.The application seed’s temp file is removed even when
KEEP DATAFILES
is specified because the temp file is no longer needed. -
INCLUDING DATAFILES
removes the data files from disk.If an application seed was created with the
SNAPSHOT COPY
clause, then you must specifyINCLUDING DATAFILES
when you drop the application seed.
The following prerequisites must be met:
-
The application seed must be in mounted mode, or it must be unplugged.
-
The current user must have
SYSDBA
orSYSOPER
administrative privilege, and the privilege must be either commonly granted or locally granted in the application container. The user must exercise the privilege usingAS SYSDBA
orAS SYSOPER
at connect time.
Note:
This operation is destructive.
To drop an application seed:
-
In SQL*Plus, ensure that the current container is the application root of the application container to which the application seed belongs.
-
Run the
DROP PLUGGABLE DATABASE
statement and specify the application seed.
Example 14-12 Dropping Application Seed salesact$SEED While Keeping Its Data Files
DROP PLUGGABLE DATABASE salesact$SEED
KEEP DATAFILES;
Example 14-13 Dropping Application Seed salesact$SEED and Its Data Files
DROP PLUGGABLE DATABASE saleact$SEED
INCLUDING DATAFILES;
Parent topic: Creating and Removing Application Containers and Seeds