I'm trying to import a backup onto another database.
Here's my "imp_schema.sh" file:
impdp userid=system/admin2018@NODO1 content=data_only full=n schemas=prueba directory=BACKUPS dumpfile=full_import.dmp logfile=prueba.log
So, I log in (On the source server) as oracle/oracle and do the following:
$ 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$
The .dmp and .sh file are both inside "/oradata2/backups/"
Doing a
SELECT DIRECTORY_NAME, DIRECTORY_PATH FROM DBA_DIRECTORIES;
on the Source Directory through SQL shows the directory as:
DIRECTORY_NAME DIRECTORY_PATH
BACKUPS /oradata2/backups
Why am I having this error?