我试图将备份导入另一个数据库。
在这里" imp_schema.sh
"文件:
impdp userid=system/admin2018@NODO1 content=data_only full=n schemas=prueba directory=BACKUPS dumpfile=full_import.dmp logfile=prueba.log
因此,我以oracle / oracle身份登录(在源服务器上)并执行以下操作:
$ bash
bash-3.00$ cd /oradata2/backups/
bash-3.00$ ./imp_schema.sh
Import: Release 11.2.0.1.0 - Production on Tue Feb 6 11:10:36 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
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
bash-3.00$
.dmp和.sh文件都在" / oradata2 / backups /"
做一个
SELECT DIRECTORY_NAME, DIRECTORY_PATH FROM DBA_DIRECTORIES;
将目录显示为:
DIRECTORY_NAME DIRECTORY_PATH
BACKUPS /oradata2/backups
为什么会出现此错误?