我正在尝试将备份导入另一个数据库。
这是我的“ 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;
通过 SQL 在源目录上显示目录为:
DIRECTORY_NAME DIRECTORY_PATH
BACKUPS /oradata2/backups
为什么我有这个错误?