我可以使用 imp/exp 工具将数据库从 Oracle 9 迁移到 Oracle 10

发布于 2024-08-26 04:40:49 字数 301 浏览 8 评论 0原文

我是分包商,我的客户想要将 Oracle 数据库从 9 升级到 10。其他供应商将执行升级过程,我被要求在升级之前创建所需的任何备份,然后在 Oracle 10 中重新创建环境。我的所有数据都存储在单个模式中的单独数据库中。没有花哨的关系、脚本或类似的东西(实际应用程序支持不同的数据库:Oracle、SQL Server、Postgres,因此我们希望避免任何特定于数据库的代码)。

我希望使用 imp/exp 但我不确定 imp/exp 是否向后兼容(exp 从 O9 和 imp 到 O10)?

如果有更好/推荐的方法来处理类似的情况,我将不胜感激。

I'm subcontractor and my client wants to upgrade Oracle database from 9 to 10. Other vendor is going to perform the upgrade process, and I was asked to create whatever backup I need before the upgrade, and then recreate the environment in Oracle 10. All my data is stored in a separate database in a single schema. No fancy relations, scripts or anything like this (actual app supports different dbs: Oracle, SQL Server, Postgres so we want to avoid any DB-specific code).

I was hoping to use imp/exp but I'm not sure if imp/exp are backward compatible (exp from O9 and imp to O10)?

If there is a better/recommended way of dealing with similar situation, I'll be grateful for any advice.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

夜司空 2024-09-02 04:40:49

Yes, you can use imp/exp to achieve that. And when you are on Oracle10, use Oracle's new Data Pump utilities instead of imp/exp.

寒江雪… 2024-09-02 04:40:49

您当然可以使用 exp 工具导出数据库,然后使用 imp 工具将其导入到新数据库。

可以在不同版本的 Oracle 之间导入/导出吗?

不同版本的导入
实用程序向上兼容。这
意味着可以导出文件
从旧的导出版本创建,
并使用更高版本导入它
导入实用程序。这是一个相当
升级数据库的有效方法
从 Oracle 的一个版本到
接下来。

Oracle 还提供了一些以前的
catexpX.sql 脚本可以
以用户 SYS 身份执行,启用旧版本
imp/exp 版本可以工作(对于
向后兼容性)。例如,
一个人可以跑
$ORACLE_HOME/rdbms/admin/catexp7.sql
在 Oracle 8 数据库上允许
要运行的 Oracle 7.3 exp/imp 实用程序
针对 Oracle 8 数据库。

有关此问题的更多信息,请查看导入导出常见问题解答

You can for sure use the exp tool to export your database and then use the imp tool to import it to the new database.

Can one import/export between different versions of Oracle?

Different versions of the import
utility are upwards compatible. This
means that one can take an export file
created from an old export version,
and import it using a later version of
the import utility. This is quite an
effective way of upgrading a database
from one release of Oracle to the
next.

Oracle also ships some previous
catexpX.sql scripts that can be
executed as user SYS enabling older
imp/exp versions to work (for
backwards compatibility). For example,
one can run
$ORACLE_HOME/rdbms/admin/catexp7.sql
on an Oracle 8 database to allow the
Oracle 7.3 exp/imp utilities to run
against an Oracle 8 database.

For more information on this matter, take a look at Import Export FAQ.

很酷不放纵 2024-09-02 04:40:49

虽然您可以使用 exp/imp 从旧版本“升级”,但我不会这样做!

通过使用 exp/imp 您可以有效地创建一个新数据库。您将丢失所有表统计信息。当然,您可以重新创建它们。但为什么?您还需要创建新的登录名/密码。确保不涉及用于查询数据库的第 3 方工具。也许与此同时,已经创建了第二个模式(例如,用于报告生成),该模式对“您的”应用程序表进行了授权。

我认为最好安装oracle 10软件,然后升级现有数据库。 Oracle提供了足够的迁移工具。

无论您选择哪条路,都应该使用全部“生产”数据在集成服务器上进行彻底测试。另请注意,导入时间可能比导出时间长得多。

While you can use exp/imp to "upgrade" from an older version, i wouldn't do it!

By using exp/imp you are effectively creating a new database. You are going to loose all table statistics. Sure, you can recreate them. But why? You will also need to create new logins/passwords. Make sure, that there are no 3-rd party tools involved, which are used for querying the database. Perhaps in the meantime, a second schema (eg. for report generation) has been created which has grants on "your" application tables.

In my opinion it would be better to install the oracle 10 software and then to upgrade the existing database. Oracle provides sufficient migration tools.

No matter what road you are choosing, you should test it throroughly on an intergration server using the full volume of the "production" data. Also be aware, that the import can take much much longer than the export did.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文