I have wasted a lot of time on this. Any ideas of what I am doing wrong here?
Script in bash
#!/usr/bin/bash . . . /export/home/app/oracle/product/10.2.0/bin/exp $uname/$passw \ FILE="$WORKSPACE"/"$EXP_FILE" \ LOG="$EXP_LOG" \ TABLES=SYSTEM_PARAMETERS\ CONSISTENT=Y \ ROWS=Y \ INDEXES=Y \ CONSTRAINTS=Y \ GRANTS=Y ;
/export/home/app/oracle/admin/ukediuat/exp >./exp_syspar.sh Username: USER Enter DPDADMIN Password: LRM-00116: syntax error at 'TABLES' following '=' EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help EXP-00000: Export terminated unsuccessfully
The issue is with the dollar signs in the export command. By replacing the variables which use the dollar sign with the full path the script runs.
Is there anyway to parse the shell variables into the export command?