exp using sys userid in a Korn shell

exp using sys userid in a Korn shell

 

  

Hello All,

I am trying to execute the exp utility using the following command.
I am only exporting the sys.aud$ table/data. Anyway, the environment
security is such that I have to be the sys user to do this exp utility.
Referring to the Oracle documentation, I think I have this coded
correctly, However, when I run the following, I still get prompted to
enter the user/pass info. Ultimately, this exp utility will be in a
Korn shell that gets executed. Any suggestions on how to make this
work? Thanks in advance.

Dan

exp \'sys/<password>@${ORACLE_SID} AS SYSDBA\'
parfile=exp_audit_data.par file=$SID_PIPE log=$EXP_LOG

Oracle LazyDBA home page