SQL Statements not Displayed in the Output File Running from .cmd file

(Doc ID 258610.1)

Last updated on OCTOBER 28, 2016

Applies to:

SQL*Plus - Version:
This problem can occur on any platform.


Running a SQL script from a sqlplus prompt, displays the actual output along with the SQL statements that produced the desired output in the output file.
Running the same script from a .cmd file does not show the SQL statements.  It shows only the actual output.

How to display the select statement along with the results in the output file when running the script
from a .cmd file ?


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms