Oracle 10g 数据库导入工具impdp使用Windows的网络驱动器 ORA-31640

Oracle 10g 数据库导入工具impdp使用网络驱动器,网络共享路径或映射远程驱动器

 

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-39001: 参数值无效
ORA-39000: 转储文件说明错误
ORA-31640: 无法打开要读取的转储文件 "y:\P2PDB_BAK\p2pdb_2009-06-05.dmp"
ORA-27041: 无法打开文件
OSD-04002: 无法打开文件
O/S-Error: (OS 3) 系统找不到指定的路径。

 

是windows2003企业版数据库测试成功,Oracle 10g 数据库导入工具impdp使用网络驱动器,网络共享路径或映射远程驱动器

 

1. Use UNC naming convention (\\\) on CREATE DIRECTORY command.
For example: CREATE DIRECTORY dump_dir AS '\\mk0510backup\dumpRAC$\DUMPS\DP';
2. Shut down the database.
3. Stop the listener.
4. Modify the instance service (OracleService) to run as OS account that has the appropriate privileges to access the mapped network disk.
5. Modify the listener service to run as the same account.
6. Start the instance service and the database.
7. Start the listener service.
If after 7, the DB or the listener didn't start appropriately, then Reboot the machine.

To identify that the OS account has the appropriate privileges to access the mapped network disk, copy a file to that directory from the command prompt:
copy

-----------------------------------------------------------------------
SQL> create or replace directory dir_expdp as '\\192.168.0.127\p2pdb_bak\p2pdb_bak';

目录已创建。

SQL> grant read , write on directory dir_expdp to p2pdb;

授权成功。

SQL> hosat
SP2-0042: 未知命令 "hosat" - 其余行忽略。
SQL> host
Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.

C:\>Impdp p2pdb/gd#p2p DIRECTORY=dir_expdp DUMPFILE=p2pdb_2009-06-05.dmp nologfile=y sqlfile=p2pdb_20090605.sql

Import: Release 10.2.0.1.0 - Production on 星期六, 06 6月, 2009 16:06:22

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

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
已成功加载/卸载了主表 "P2PDB"."SYS_SQL_FILE_FULL_01"
启动 "P2PDB"."SYS_SQL_FILE_FULL_01":  p2pdb/******** DIRECTORY=dir_expdp DUMPFILE=p2pdb_2009-06-05.dmp nologfile=y sqlfi
le=p2pdb_20090605.sql
处理对象类型 SCHEMA_EXPORT/USER
处理对象类型 SCHEMA_EXPORT/SYSTEM_GRANT
处理对象类型 SCHEMA_EXPORT/ROLE_GRANT
处理对象类型 SCHEMA_EXPORT/DEFAULT_ROLE
处理对象类型 SCHEMA_EXPORT/TABLESPACE_QUOTA

 

关键提示:

SQL> create or replace directory dir_expdp as '\\192.168.0.127\p2pdb_bak\p2pdb_bak';


这个路径是关键,使用administrator用户运行Oracle的服务,导入完后再改回来

 

 

 

附加:

impdp能否将不同路径下的dump文件同时导入

建立目录后

like this:
impdp user/pass directory=d1 dumpfile=d0:d0.dmp,d1:d1.dmp,d2:d2.dmp ....

d1,d2是提前建立好的目录 Directory,impdp的dumpfile不指定目录时从directory目录读取

 

你可能感兴趣的:(Oracle)