904 Bedford St, New York NY 10014

(+1) 5184-453-1514

Dropping a PDB- Large Objects

Occasionally, you may need to drop a PDB. You may want to do so because you do not need the PDB anymore or because you are transferring (unplugging/plugging) to a different CDB and you want to drop the PDB from the original CDB.

If you need to remove a PDB, you can do it in two ways:

•     Drop the PDB and its data files.

•     Drop the PDB and leave its data files in place.

If you never plan on using the PDB again, then you can drop it and specify that the data files also be removed.

If you plan on plugging the PDB into a different CDB, then (of course) don’t drop the data files, as doing so removes them from disk.

To drop a PDB, first connect to the root container as a privileged account, and close the PDB:

SQL> alter pluggable database mmpdb close immediate;

This example drops the PDB and its data files:

SQL> drop pluggable database mmpdb including datafiles;

If successful, you should see this message:

Pluggable database dropped.

This next example drops a PDB without removing the data files. You may want to do this if you’re moving the pluggable database to a different CDB:

SQL> drop pluggable database mmpdb;

In this manner, the PDB is disassociated from the CDB, but its data files remain intact on disk.

Search

Popular Posts

  • Recovery Catalog Versions – RMAN Backups and Reporting
    Recovery Catalog Versions – RMAN Backups and Reporting

    I recommend that you create a recovery catalog for each version of the target databases that you are backing up. Doing so will save you some headaches with compatibility issues and upgrades. I have found it easier to use a recovery catalog when the database version of the rman client is the same version used…

  • Registering a Target Database – RMAN Backups and Reporting
    Registering a Target Database – RMAN Backups and Reporting

    Now, you can register a target database with the recovery catalog. Log in to the target database server. Ensure that you can establish connectivity to the recovery catalog database. For instance, one approach is to populate the TNS_ADMIN/tnsnames.ora file with an entry that points to the remote database. On the target database server, register the…

  • Creating a Recovery Catalog – RMAN Backups and Reporting
    Creating a Recovery Catalog – RMAN Backups and Reporting

    When I use a recovery catalog, I prefer to have a dedicated database that is used only for the recovery catalog. This ensures that the recovery catalog is not affected by any maintenance or downtime required by another application (and vice versa). Listed next are the steps for creating a recovery catalog: 1. Create a…

Tags