My Oracle Support Banner

SQL Statements not Displayed in the Output File Running from .cmd file (Doc ID 258610.1)

Last updated on NOVEMBER 12, 2019

Applies to:

SQL*Plus - Version and later
Information in this document applies to 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 ?


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.