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