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

后端 未结 8 580
梦谈多话
梦谈多话 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:56

    You need to search for OWNER_NAME.

    cat -v dumpfile.dmp | grep -o '.*' | uniq -u
    

    cat -v turn the dumpfile into visible text.

    grep -o shows only the match so we don't see really long lines

    uniq -u removes duplicate lines so you see less output.

    This works pretty well, even on large dump files, and could be tweaked for usage in a script.

提交回复
热议问题