LRM-00116: syntax error at 'DIRECTORY' following '='
<p>Hi I'm creating a script to refresh oracle schema. While trying to backup the schema I kept getting the error below.</p>

<p>I have searched everywhere and no one seems to be having this same exact error. Any advise?</p>

<pre><code>#!/bin/ksh
systemPwd=pwd
srcSID=src
tarSID=tar
srcSCHEMA=A
tarSCHEMA=A

export_source_schema(){
echo
echo -------------------------
echo "EXPORTING SOURCE SCHEMA"
echo -------------------------
expdp system/${systemPwd}@${srcSID} SCHEMAS=${srcSCHEMA} DIRECTORY=EXP_IMP_DIR DUMPFILE=${taskNo}_${srcSID}_${srcSCHEMA}_export.dmp  LOGFILE=${taskNo}_${srcSID}_${srcSCHEMA}_export.log
}

    ./export_schema.ksh 


    -------------------------
    EXPORTING SOURCE SCHEMA
    -------------------------
    LRM-00116: syntax error at 'DIRECTORY' following '='

    ./export_schema.ksh[502]: break: cannot break
</code></pre>