impdp或expdp报错ORA-39002: invalid operation,ORA-39070: Unable to open the log file

  [oracle@oracle-rac01 backup]$ cat expdp.par
USERID='/ as sysdba'
DIRECTORY=KMDATA_EXP
job_name=jinky_exp
filesize=5000m
parallel=4
compression=all
DUMPFILE=km_%U.dmp
#LOGFILE=km_exp.log
SCHEMAS=(kmdata)
CONTENT=ALL
CLUSTER=NO

[oracle@oracle-rac01 backup]$ expdp parfile=expdp.par

Export: Release 11.2.0.4.0 - Production on Mon Sep 4 09:20:59 2017

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, Real Application Clusters, Automatic Storage Management, 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

解决:重新创建备份目录
1.1先删除原先创建的备份目录
SQL> drop directory kmdata_exp ;

1.2 重新创建新的备份目录
SQL> create or replace directory kmdata_exp as '/u01/app/oracle/backup ';
Directory created.
SQL> grant read,write on directory kmdata_exp to public ;

1.3 修改备份目录的属主和属组
[root@oracle-rac01 ~]# mkdir /u01/app/backup/
[root@oracle-rac01 ~]# chown -R oracle:oinstall /u01/app/oracle/backup/

猜你喜欢

转载自blog.csdn.net/m0_37814112/article/details/78119212