How to import an Oracle database from dmp file and log file?

前端 未结 3 1628
南笙
南笙 2021-01-29 19:18

How would I go about creating a database from a dump file? I do not have an existing database with the same structure on my system so it has to be complete with jobs, events, ta

3条回答
  •  野性不改
    2021-01-29 19:36

    If you are using impdp command example from @sathyajith-bhat response:

    impdp / directory= dumpfile=.dmp logfile=.log full=y;
    

    you will need to use mandatory parameter directory and create and grant it as:

    CREATE OR REPLACE DIRECTORY DMP_DIR AS 'c:\Users\USER\Downloads';
    GRANT READ, WRITE ON DIRECTORY DMP_DIR TO {USER};
    

    or use one of defined:

    select * from DBA_DIRECTORIES;
    

    My ORACLE Express 11g R2 has default named DATA_PUMP_DIR (located at {inst_dir}\app\oracle/admin/xe/dpdump/) you sill need to grant it for your user.

提交回复
热议问题