Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

SPOOL only DBMS_OUTPUT and display only oracle error

$
0
0
Hi All,

I have a very simple requirement.

I want to spool only the output of DBMS_OUTPUT.PUT_LINE to a file but the same shouldn't be displayed on the screen.

I have already achieved this by using the following configuration:
set termout off
set serveroutput on

But the problem with the above configuration is that, it'll suppress the oracle error also if any.
I mean oracle errors will not be displayed on the console and I'm not able to capture them.

If I set termout on, then it would give me the dbms_output as well on the console, which I don't want.

How can I capture the oracle errors on the console if any and the dbms_output in a file?
Is there any configuration that could give me the desired result?

Can I make use of SHOW ERRORS somewhere in this case?

Thanks in advance for your feedback.

Regards,
Supreeth K

Viewing all articles
Browse latest Browse all 13329

Trending Articles