#!/bin/sh ### change the following to valid user and password dbuser=system dbpassword=***** echo "connect $dbuser/$dbpassword;" > sql echo "select * from tab;" >> sql echo "exit;" >> sql $ORACLE_HOME/perl/bin/perl runSQLScript.pl $ORACLE_HOME $ORACLE_SID < sql