Bootstrap

oracle expdp 39002,expdp 导入数据时ORA-39002、ORA-39070错误排查

今天用expdp的时候,报错

[oracle@jcy2 exped]$ expdp \'/as sysdba\' directory=c1 dumpfile=full.dmp full=y logfile=full.log;

Export: Release 11.2.0.4.0 - Production on Sat Feb 22 21:15:01 2020

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

ORA-39002: invalid operation

ORA-39070: Unable to open the log file.

ORA-29283: invalid file operation

ORA-06512: at "SYS.UTL_FILE", line 536

ORA-29283: invalid file operation

看到这个错误后,先想到的权限的问题,以为是数据库内的directory的权限没有赋给相关的用户,但是经过查询后发现已经给相关的用户赋予了read,write权限了。

目录下是否生成了导入log文件,如果没有,就肯定是目录读写权限问题。

折腾了很久后发现原来是由于在数据库内创建directory时有个字母写错了

;