hok1man
Technical User
- Feb 16, 2008
- 102
Hi guys,
I would like to print out the sql query before execute it
here's part of my code :
the code above doesn't work, but if I changed the red line with this :
it works..
because I print output from oracle command,
is there anyway put some unix command in the middle of sqlplus buffer?
Thanks guys,
I would like to print out the sql query before execute it
here's part of my code :
Code:
sqlplus -s $userID/$PASS@$oracle_sid << SQL
[red]echo "SELECT Count(*),in_process FROM TABLE;" [/red]
SELECT Count(*),in_process FROM TABLE;
exit
SQL
the code above doesn't work, but if I changed the red line with this :
Code:
SET SERVEROUTPUT ON
DBMS_OUTPUT.PUT_LINE('SELECT Count(*),in_process FROM TABLE;')
it works..
because I print output from oracle command,
is there anyway put some unix command in the middle of sqlplus buffer?
Thanks guys,