日期:2014-05-17  浏览次数:20986 次

oracle11g数据库泵expdp与impdp导出导入问题!40分
在导入的时候,如下:
create or replace directory impdir as 'F:\jhfund';

grant read,write on directory impdir to jhfund;

C:\Documents and Settings\Administrator>impdp jhfund/jhfund directory=IMPDIR du
pfile=funddacc201001210030_%U.dmp REMAP_SCHEMA=jhfund REMAP_TABLESPACE=fundacc:
hfundspa full=y logfile=DATA_PUMP_DIR:jhfund.log

Import: Release 11.1.0.6.0 - Production on 星期日, 19 9月, 2010 17:12:39

Copyright (c) 2003, 2007, Oracle.  All rights reserved.

连接到: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: 参数值无效
ORA-39000: 转储文件说明错误
ORA-31640: 无法打开要读取的转储文件 "F:\jhfund\funddacc201001210030_01.dmp"
ORA-27041: 无法打开文件
OSD-04002: 无法打开文件
O/S-Error: (OS 2) 系统找不到指定的文件。
请问是什么原因?
------最佳解决方案--------------------
引用:
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>impdp jhfund/jhfund directory=dump_dir d
umpfile=funddacc201001210030_%U.dmp REMAP_S……


"f:\jhfund\funddacc201001210030_01.dmp这个文件是否存在,有无被破坏?
看到你下面的回复,似乎有成功开始导入的情况?使用的是怎样的命令?

另外对于下面报的ORA-04030,通常都是内存不足导致的,先确定下pga+sga的设置是否超过了限制
1. 32位系统,SGA不能超过1.7G
2. pga+sga不能超过物理内存+swap空间(windows也就是虚拟内存)

另外,你可以在导入的时候通过如下语句查看impdp session使用的内存,进一步分析原因

SELECT server,name,value/1024/1024,s.sid,s.serial#
FROM v$session s, v$sesstat st,v$statname sn
WHERE  st.sid = s.sid
and st.statistic# = sn.statistic#
and sn.name LIKE 'session pga memory'
and s.sid = impdp的sid(可以从DBA_DATAPUMP_SESSIONS视图查到)

引用:
. . 导入了 "JHFUND"."ZCCODEDZB"                            0 KB       0 行
. . 导入了 "JHFUND"."ZQLTYW"                               0 KB       0 行
处理对象类型 SCHEMA_EXPORT/TABLE/INDEX/INDEX
ORA-39097: 数据泵作……

------其他解决方案--------------------
把你的dumpfile文件名funddacc201001210030_%U.dmp,先换成funddacc201001210030.dmp
试一下这个:
impdp jhfund/jhfund directory=dump_dir schemas=fundacc dumpfile=funddacc201001210030.dmp REMAP_SCHEMA=fundacc:jhfund REMAP_TABLESPACE
=FUNDACC:JHFUND  logfile=jhfund.log
------其他解决方案--------------------
impdp jhfund/jhfund directory=dump_f_dir dumpfile=fundacc201001210030_%U.dmp REMAP_SCHEMA=fundacc:jhfund REMAP_TABLESPACE=fundacc:ysstech full=y logfile=jhfund.log

create or replace directory dump_f_dir as 'f:\jhfund';

grant read,write on directory dump_f_dir to&n