remote dba support
    HomeOracle DBA TipsRecover database from dump File

    Recover database from dump File

    Detail explanation and step by step guide for how to recover database using import dump file manually.

    How To Recover Database From Dumpfile

    Sometimes we only have Oracle dump as the only backup available, and it looks easy to restore the entire database, and it’s easy to, but it requires following
    restoration steps sequentially, otherwise restoration will end with a bunch of errors.

    BACKUP USE : full_dump.dmp

    - Advertisement -

    Create tablespace with minimum size by deriving tablespace DDL from the below statement as any database needs tablespace first using the following commands…

    impdp system/password FULL=Y include=TABLESPACE directory=DATA_PUMP_DIR dumpfile=full_dump.dmp logfile=full_dump_tablespace.log sqlfile=full_dump_tablespace.sql

    Create profiles by deriving profile DDL from the below statement…

    impdp system/password FULL=Y include=PROFILE directory=DATA_PUMP_DIR dumpfile=full_dump.dmp logfile=full_dump_profile.log sqlfile=full_dump_profile.sql

    - Advertisement -

    Create a user by deriving user DDL from the below statement…

    impdp system/password FULL=Y include=USER directory=DATA_PUMP_DIR dumpfile=full_dump.dmp logfile=full_dump_user.log sqlfile=full_dump_user.sql

    Create a role by deriving role DDL from the below statement…

    impdp system/password FULL=Y include=ROLE directory=DATA_PUMP_DIR dumpfile=full_dump.dmp logfile=full_dump_role.log sqlfile=full_dump_role.sql

    System grant by deriving system_grant DDL from the below statement…

    impdp system/password FULL=Y include=SYSTEM_GRANT directory=DATA_PUMP_DIR dumpfile=full_dump.dmp logfile=full_dump_system_grant.log sqlfile=full_dump_system_grant.sql

    Grant roles by deriving role_grant DDL from the below statement…

    impdp system/password FULL=Y include=ROLE_GRANT directory=DATA_PUMP_DIR dumpfile=full_dump.dmp logfile=full_dump_role_grant.log sqlfile=full_dump_role_grant.sql

    Create dblink (system and public user’s link)…

    impdp system/password FULL=Y include=DB_LINK directory=DATA_PUMP_DIR dumpfile=full_dump.dmp logfile=full_dump_dblink.log sqlfile=full_dump_dblink.sql

    Now Recreate Materialized View...

    impdp system/password FULL=Y include=MATERIALIZED_VIEW directory=DATA_PUMP_DIR dumpfile=full_dump.dmp logfile=full_dump_mv.log sqlfile=full_dump_mv.sql

    After the above step, you should need to recreate Refresh Group…

    impdp system/password FULL=Y include=REFRESH_GROUP directory=DATA_PUMP_DIR dumpfile=full_dump.dmp logfile=full_dump_refresh_grp.log sqlfile=full_dump_refresh_grp.sql

    Now Import data for all schema (Import data for the full database)

    impdp system/password FULL=Y directory=DATA_PUMP_DIR dumpfile=full_dump.dmp logfile=full_dump.log

    Grant privileges (Import grant for the full database)…

    impdp system/password INCLUDE=GRANT Full=Y directory=DATA_PUMP_DIR dumpfile=full_dump.dmp logfile=full_dump_ALL_schema_grant.log

    Finally, Count objects if you would miss anything, check and investigate.

    select c.OWNER,c.object_type,count(1)
    from dba_objects c
    where 1=1 and c.CREATED < trunc(sysdate)
    and c.owner in (select username from DBA_USERS where default_tablespace not in ('SYSAUX','SYSTEM'))
    group by OWNER,object_type
    order by


    Production database recovery is most important. If you are having backup then you can manage very easily. But if you do not have a backup, then it is a problem and an issue.

    When you want to make a strong Oracle DBA career then you should be aware of database services and other database technology. Without having knowledge of Oracle internals, Oracle performance tuning, and skill of Oracle database troubleshooting you can’t be an Oracle DBA expert. This expert DBA Team club blog always provides you latest technology news and database news to keep yourself up to date. You should need to be aware of Cloud database technology like DBaaS. All Oracle DBA tips are available in a single unique resource at our orageek. Meanwhile, we are also providing some sql tutorials for Oracle DBA. This is the part of Dbametrix Group and you would enjoy more advanced topics from our partner resource.

    - Advertisement -
    - Advertisment -
    remote dba services

    Most Popular