数据库中不同版本exp/imp使用注意事项有哪些

56次阅读
没有评论

共计 3068 个字符,预计需要花费 8 分钟才能阅读完成。

丸趣 TV 小编给大家分享一下数据库中不同版本 exp/imp 使用注意事项有哪些,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!

 
  使用不同版本的 exp/imp
      无论在什么时候,在不同版本的 oracle 数据库中迁移数据时,都必须要遵守如下的基本规则

   1.  imp 工具的版本必须和目标库的版本相同。例如,使用版本为 9.2.0.7 的 imp 工具导入到版本为 9.2.0.8 的数据库中,会遇到错误。

   2. exp 工具的版本必须与源库或者目标库中版本较低的相同。

  例如,从低版本的源库 exp 导出数据,imp 导入到高本版目标库,那么 exp 的版本必须要和源库相同。同理,
    从高版本的源库 exp 导出数据,imp 导入到低版本目标库,那么 exp 的版本必须和目标库相同。
   
  使用不同版本的 exp/imp 的约束  

    1. exp 工具导出的 dmp 文件,只能用 imp 工具导入。也就是说 exp/imp 配对使用,expdp/impdp 配对使用  。exp 导出的 dmp 文件无法用 impdp 导入。

    2. 任何 exp 导出的文件,都可以 imp 到高版本的数据库中。也就是说,exp/imp 向下兼容。

    3.  低版本的 imp 工具无法读取高版本的 exp 导出的文件。例如 9.2 exp 导出的 dmp 文件无法用 9.0.1 版本的 imp 工具导入。

    4. whenever a lower version of the Export utility runs with a later release of the Oracle database, categories of database objects that did not exist in the earlier release are excluded from the export.

 
  不同版本 exp/imp 迁移数据参照表  ,参见文章末尾处 表 21-5

 
Using Different Releases of Export and Import

This section describes compatibility issues that relate to using different releases of Export and the Oracle database.

Whenever you are moving data between different releases of the Oracle database, the following basic rules apply:

The Import utility and the database to which data is being imported (the target database) must be the same release. For example, if you try to use the Import utility 9.2.0.7 to import into a 9.2.0.8 database, then you may encounter errors.

The version of the Export utility must be equal to the release of either the source or target database, whichever is earlier.

For example, to create an export file for an import into a later release database, use a version of the Export utility that equals the source database. Conversely, to create an export file for an import into an earlier release database, use a version of the Export utility that equals the release of the target database.

In general, you can use the Export utility from any Oracle8 release to export from an Oracle9i server and create an Oracle8 export file.

Restrictions When Using Different Releases of Export and Import

The following restrictions apply when you are using different releases of Export and Import:

Export dump files can be read only by the Import utility because they are stored in a special binary format.

Any export dump file can be imported into a later release of the Oracle database.

The Import utility cannot read export dump files created by the Export utility of a later maintenance release. For example, a release 9.2 export dump file cannot be imported by a release 9.0.1 Import utility.

Whenever a lower version of the Export utility runs with a later release of the Oracle database, categories of database objects that did not exist in the earlier release are excluded from the export.

Export files generated by Oracle9i Export, either direct path or conventional path, are incompatible with earlier releases of Import and can be imported only with Oracle9i Import. When backward compatibility is an issue, use the earlier release or version of the Export utility against the Oracle9idatabase.

Examples of Using Different Releases of Export and Import

Table 21-5 shows some examples of which Export and Import releases to use when moving data between different releases of the Oracle database.

Table 21-5 Using Different Releases of Export and Import

Export from- Import to
Use Export Release
Use Import Release

8.1.6 – 8.1.6

8.1.6

8.1.6

8.1.5 – 8.0.6

8.0.6

8.0.6

8.1.7 – 8.1.6

8.1.6

8.1.6

9.0.1 – 8.1.6

8.1.6

8.1.6

9.0.1 – 9.0.2

9.0.1

9.0.2

9.0.2 – 10.1.0

9.0.2

10.1.0

10.1.0 – 9.0.2

9.0.2

9.0.2

看完了这篇文章,相信你对“数据库中不同版本 exp/imp 使用注意事项有哪些”有了一定的了解,如果想了解更多相关知识,欢迎关注丸趣 TV 行业资讯频道,感谢各位的阅读!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-24发表,共计3068字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)