on 06-12-2008 8:46 AM
Hi everybody,
I've a question regarding Oracle and SQLPlus on Windows OS. I hope somebody can help me.
I need to schedule a batch file that execute 2 queries everyday.
exemple :
SQLPLUS "/as sysdba" @d:\script1.sql
SQLPLUS "/as sysdba" @d:\script2.sql
Those queries takes around 3 or 4mn to run but after that the output takes 15 mn.
The goal of this batch is to put the execution plan in the cache of Oracle, so i don't need to display queries results.
Is there a way to prevent SQLPlus displaying query result?
Thanks a lot,
Hello Alexandre,
to be honest this way of keeping execution plans in the library cache is a little bit "strange".. but to answer your question "Is there a way to prevent SQLPlus displaying query result?".
If you want only to see no results you have to put the following line at the beginning of your sql script:
> set termout off;
If you also don't want to see the SQLPLUS banner, you have to call the sqlplus with the silent option as well:
> sqlplus -s "/as sysdba" @d:\script1.sql
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.