impdp 报ORA-06512: at "SYS.UTL_FILE", line 488 ORA-29283: invalid file operation

 
  
  1: sql>show user
  2: USER is "SYS"
  3: sql>create or replace  directory dump_dir as '/ccas/dmp';
  4: Directory created.
  5: sql>grant all on directory dump_dir to ccas;
  6: Grant succeeded.
  7: sh>impdp ccas/password directory=dump_dir dumpfile=ccasdb%u.dmp parallel=5
  8: Import: Release 10.2.0.4.0 - 64bit Production on Saturday, 04 June, 2011 9:38:19
  9: 
 10: Copyright (c) 2003, 2007, Oracle.  All rights reserved.
 11: 
 12: Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
 13: With the Partitioning, OLAP, Data Mining and Real Application Testing options
 14: ORA-39002: invalid operation
 15: ORA-39070: Unable to open the log file.
 16: ORA-29283: invalid file operation
 17: ORA-06512: at "SYS.UTL_FILE", line 488
 18: ORA-29283: invalid file operation
 19: 
 20: sh>/ccas/dmp>id
 21: uid=110(ccas) gid=107(ccas) groups=1024(dba), 400(mqm), 108(fmcgrp)
 22: sh>ls -la
 23: [SHPA8402:ccas]/ccas/dmp>ls -la
 24: 总数 52029404
 25: drwxr-xr-x   2 ccas       ccas          1024 6月 2日 15:58 .
 26: drwxr-xr-x  17 ccas       ccas          1024 6月 4日 08:43 ..
 27: 
因/ccas/dmp目录的权限为drwxr-xr-x,其它用户没有写权限,而impdp运行时的权限是oracle用户的权限,而不是当前登录用户的权限,impdp不能写dmp目录,所以需将
dmp目录加上o+w权限。
sh>chmod 777 /ccas/dmp
sh>ls –l /ccas
drwxrwxrwx   2 ccas       ccas          1024 6月 4日 09:40 dmp
重新运行impdp后成功。

你可能感兴趣的:(Oracle)