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
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