gpt4 book ai didi

oracle - 导入 oracle 转储时出错

转载 作者:行者123 更新时间:2023-12-02 15:42:58 25 4
gpt4 key购买 nike

我正在尝试将转储导入同一个 Oracle 数据库中的两个模式。按照解决方法执行此操作。

我正在尝试使用 INDEXFILE 选项运行 imp 命令,以便能够修改 sql 中的表空间名称。这就是我得到的:

E:\oracle_10_2\BIN>imp atlantis/atlantis@orcl file=ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp indexfile=index.sql full=y log=imp.log

Import: Release 10.2.0.1.0 - Production on Thu Mar 12 15:31:44 2009

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc tion With the Partitioning, OLAP and Data Mining options

IMP-00002: failed to open ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp for read Import file: EXPDAT.DMP >

我觉得像是文件权限问题,所以我尝试更改它。

E:\oracle_10_2\BIN>cacls E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp /p atlantis:F

Are you sure (Y/N)?y

processed file: E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp

E:\oracle_10_2\BIN>cacls E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp

E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp CORP\atlantis:F

但问题依旧。

最佳答案

如果您使用的是 Oracle 10g,请考虑使用新的导出/导入工具 Oracle Data Pump您可以在其中使用 REMAP_TABLESPACE参数。

无论如何,您错过了导出文件的路径(基于授予权限的命令)。然后你写道:

file=ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp

代替

file=E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp

然后,要工作的结果导出命令是:

imp atlantis/atlantis@orcl file=E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp indexfile=index.sql full=y log=imp.log

关于oracle - 导入 oracle 转储时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/638091/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com