sed command not working

Hello There -

Iam trying to get this expdp running for oracle backup.

And this is the code below:

### Run the export.
          ### Comment out any LOGFILE parameters in the .par file.
          if grep -i "Logfile" /<Path>$1_$2_$3.par; then
              ## Comment out any LOGFILE parameters found in the par file.I=Ignore case.
              sed -i -e "s/Logfile/#LOGFILE/Ig" /<Path>/$1_$2_$3.par
          fi
          $ORACLE_HOME/bin/expdp" logfile=$1_$2_$3.log parfile=/<Path>/$1_$2_$3.par >> ${JOBLOG} 2>&1

May have to rewrite the sed to have the code worked out?

Error:

LRM-00112: multiple values not allowed for parameter 'logfile'
LRM-00113: error when processing file '/<Path>/exp.par'

Any help is appreciated.

Thanks

Please show /<Path>/$1_$2_$3.par before and after sed execution.

Hi Rudi -

This is where it is getting error: i know the path i didn't mention.

/scripts/denom/dba/Auto/exp.par - this is where the par file located.

and this is where the log file is located:

/scripts/denom/dba/Auto/Logs

Thanks for your help.

This is not what I asked for nor what oracle complained about.

Sorry. How do we work the code format?

It is explained just above the "Quick Reply" Editor text box.
Select/highlight the code or data text and click the "code" button.

Please show/<Path>/$1_$2_$3.par before and after sed execution.?

Post output of

cat /<Path>/$1_$2_$3.par
sed '...' /<Path>/$1_$2_$3.par
cat /<Path>/$1_$2_$3.par