SQLPLUS command line with DOS batch file - Stack Overflow
What about native Sql*plus spooling? run.bat: sqlplus hr/hr@sandbox @d:\run.sql run.sql: spool d:\run.log set echo on select * from dual / exit run.log: 01:50:20 HR@sandbox> 01:50:20 HR@sandbox> select * from dual 01:50:20 2 / D - X Elapsed: 00:00
stackoverflow.com |