|
|
|
|
|
|
|
|
|
|
|
Re: How to get TRACE for a Sql script which is being called from a shell program [message #239516 is a reply to message #239509] |
Tue, 22 May 2007 10:04 |
tahpush
Messages: 961 Registered: August 2006 Location: Stockholm/Sweden
|
Senior Member |
|
|
Did a small test, works like a charm for me, hmm
create shell script
[/SSW/oracle/script]vi test.sh
export ORACLE_USER=xxx
export ORACLE_PASSWORD=yyy
export DB_NAME=dw
export CONNSTRING=${ORACLE_USER}/${ORACLE_PASSWORD}@${DB_NAME}
$ORACLE_HOME/bin/sqlplus $CONNSTRING @/SSW/oracle/script/myscript.sql
create sql script
[/SSW/oracle/script]vi myscript.sql
set serveroutput on
alter session set sql_trace=true;
select 'x' from dual;
/
exit
Run script
[/SSW/oracle/script]. test.sh
It produces a trace file.
Try something in this size and see if it's working
|
|
|