Fixes to Linux SQL Scripts

These changes fix Linux shell script errors for the Oracle and PostgreSQL versions of the shell scripts.