How to determine the Schemas inside an Oracle Data Pump Export file

后端 未结 8 425
梦谈多话
梦谈多话 2021-01-30 13:28
  • I have an Oracle database backup file (.dmp) that was created with expdp.
  • The .dmp file was an export of an entire database.
  • I need to resto
8条回答
  •  伪装坚强ぢ
    2021-01-30 13:41

    The running the impdp command to produce an sqlfile, you will need to run it as a user which has the DATAPUMP_IMP_FULL_DATABASE role.

    Or... run it as a low privileged user and use the MASTER_ONLY=YES option, then inspect the master table. e.g.

    select value_t 
    from SYS_IMPORT_TABLE_01 
    where name = 'CLIENT_COMMAND' 
    and process_order = -59;
    
    col object_name for a30
    col processing_status head STATUS for a6
    col processing_state head STATE for a5
    select distinct
      object_schema,
      object_name,
      object_type,
      object_tablespace,
      process_order,
      duplicate,
      processing_status,
      processing_state
    from sys_import_table_01
    where process_order > 0
    and object_name is not null
    order by object_schema, object_name
    /
    

    http://download.oracle.com/otndocs/products/database/enterprise_edition/utilities/pdf/oow2011_dp_mastering.pdf

提交回复
热议问题