ORACLE SPOOL

If you want the result show in file:

SQL> spool <path>
SQL > <sql script>
SQL > spool off;

Example:
SQL> spool c:\1.txt
SQL> select host_name,instance_name from v$instance;
SQL> spool off;

If you want the result show in file and not show on screen:

SQL>set termout off;
SQL>spool <path>
SQL > <sql script>
SQL > spool off;

Example:
SQL> set termout off;
SQL> spool c:\1.txt
SQL> select host_name,instance_name from v$instance;
SQL> spool off;

Comments

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error