简体   繁体   English

PL/SQL 开发人员导入转储

[英]PL/SQL developer import dump

I have a dump file which includes two tables.我有一个包含两个表的转储文件。 Now I need to import this dump file.现在我需要导入这个转储文件。 I was instructed to create two tablespaces beforehands.Now how do I import this dump file to these tablespaces.我被指示事先创建两个表空间。现在如何将此转储文件导入这些表空间。 I'm using PL/SQL developer.我正在使用 PL/SQL 开发人员。

You cannot import a dump file from PL/SQL developer.您不能从 PL/SQL 开发人员导入转储文件。 Instead, you have to do it from the command line.相反,您必须从命令行执行此操作。 Furthermore, you need access to the file system of the database server since you have to put the dump file in a directory directly accessible by Oracle.此外,您需要访问数据库服务器的文件系统,因为您必须将转储文件放在 Oracle 可直接访问的目录中。

The tool to import the dump file is called impdp (in earlier version, it was imp ).导入转储文件的工具称为impdp (在早期版本中,它是imp )。

My experience is that you need information how the dump file was created so you can use the correct import mode:我的经验是,您需要了解如何创建转储文件,以便使用正确的导入模式:

  • Is it a dump of the full database or just a single user/schema?它是完整数据库的转储还是单个用户/模式?
  • Does it include the table schema or just the table data?它是否包含表模式或仅包含表数据?
  • What's the schema/user name if a single schema was exported?如果导出单个架构,架构/用户名是什么?
  • etc.等等

You'll find more information about impdp on this PSOUG web page .您可以在此PSOUG web 页面上找到有关impdp的更多信息。

You CAN import a dump file from PL/SQL developer.您可以从 PL/SQL 开发人员处导入转储文件。 Tools -> Import Tables... -> (at the botton of the popup screen) select the file and click in "Import".工具 -> 导入表... ->(在弹出屏幕的底部)select 文件并单击“导入”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM