1

I have sql script "example.sql":

SPOOL &1
Select '<.TR>'||'<.TD align="left">'||column_name||'<./TD>'||'<.TR>' from table1;
spool off

which dumps it contents to cshell script "getdata.csh" this is how i get data from sql script to csh script

sqlplus $ORA_UID/$ORA_PSWD @${SQL}example.sql ${DATA}${ext}

My problem is when I run my job to do this it dumbs all data extracted from sql query in log file too.. How can I avoid dumbing data into log files. What do I have to do in this code to do so? thank you

1 Answer 1

2

Look here for information about your issue: sqlplus spool

Essentially, you will need to add these two settings:

set echo off
set termout off
Sign up to request clarification or add additional context in comments.

2 Comments

if i do termout off can i retrive output in ${DATA}${ext} or it will completely stop dumping query output
please read that link, it answers the question directly, with links to explain both of these.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.