プラガブル・データベースの切断および削除

PDBを切断して削除するには、次のステップを実行します。

  1. 前提条件を満たします。

    PDBの切断および削除の前提条件の詳細は、プラガブル・データベースを切断および削除するための前提条件を参照してください。

  2. OMSホストで次のコマンドを実行して、EM CLIにログインします。
    $<OMS_HOME>/bin/emcli login -username=<name_of_user> -password=<password>
    
  3. 次のコマンドを実行して、動詞unplug_pluggable_databaseのヘルプ・ファイルを表示します。
    $<OMS_HOME>/bin/emcli help unplug_pluggable_database
    
  4. 動詞unplug_pluggable_databaseを実行します。
    $<OMS_HOME>/bin/emcli unplug_pluggable_database
    -cdbTargetName=<Specify the CDB target name from which PDB needs to be unplugged>
    -cdbTargetType=<Specify the CDB target type - oracle_database, rac_database>
    -cdbHostCreds=<Specify the host credentials on which the CDB target is located>
    -cdbTargetCreds=<Specify the credentials of container database on which the PDB will be unplugged.>
    -pdbName=<Specify name of the PDB that needs to be unplugged>
    [-unplugPDBToSWLIB=<Specifies that unplugged PDB should be uploaded to Software Library (SWLIB)>]
    [-pdbTemplateNameInSWLIB=<If -unplugPDBToSWLIB, specify the name to be used for PDB Template component in SWLIB.>]
    [-tempStagingLocation=<If -unplugPDBToSWLIB, specify a temporary working directory for copying staging SWLIB files.>]
    -unplugPDBTemplateType=<Specify the PDB template type -  ARCHIVE, RMAN, XML.>
    [-pdbArchiveLocation=<If -unplugPDBTemplateType=ARCHIVE, this is fully qualified archive location with file name>]
    [-pdbMetadataFile=<If -unplugPDBTemplateType=RMAN or XML, this is fully qualified path for the PDB metadata file>]
    [-pdbDatabackup=<If -unplugPDBTemplateType=RMAN, this is fully qualified path for the PDB datafile backup>]
    
    

    たとえば、次のコマンドを実行してPDBを切断および削除できます。

    $<OMS_HOME>/bin/emcli unplug_pluggable_database -cdbTargetName=db -cdbTargetType=oracle_database -cdbHostCreds=HOST_CREDS -cdbTargetCreds=CDB_CREDS -pdbName=db_pdb -unplugPDBTemplateType=ARCHIVE -pdbArchiveLocation=/u01/app/unplugged/db_pdb.tar.gz