Are you setting the DB variables as shell environment variables? Before running the script, you should run the export commands in your shell.
Are you setting the DB variables as shell environment variables? Before running the script, you should run the export commands in your shell.