0

I'm using sqlplus to run a complex sql script and I'd like to be able to see the actual sql statement being run at the time along with the rest of the output. I've tried setting options such as 'set serveroutput' but I can't find the option that causes the sql being run to be written to stdout with the result.

0

1 Answer 1

0
SQL> set echo on
SQL> @C:\AKS\aks_scripts\test.sql
SQL>
SQL>
SQL> select count(*) from user_objects;

  COUNT(*)
----------
       110

SQL>
SQL> select count(*) from emp;

  COUNT(*)
----------
        14

SQL>
SQL> select count(*) from testemp2;

  COUNT(*)
----------
    851968
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.