I have a .sql file, which is a bunch of oracle pl/sql commands and I want to create a shell script to run these commands.
Suppose that user/pass@server
user/pass@server
Wouldn't something akin to this be better, security-wise?:
sqlplus -s /nolog << EOF CONNECT admin/password; whenever sqlerror exit sql.sqlcode; set echo off set heading off @pl_script_1.sql @pl_script_2.sql exit; EOF