Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Is there a DBA Setting that turns off SQL Plus "echo" Command

Is there a DBA Setting that turns off SQL Plus "echo" Command

Is there a DBA Setting that turns off SQL Plus "echo" Command

I am running a file in SQL Plus and can only get the "feedback" (how many rows updated or whatever).  Can the DBA's turn off the "set echo on" command?  The code I am running is:

set linesize 80
set pagesize 0
set echo on
set feedback on
set termout on
set heading on
set verify on

spool /home/walterg5/BetaFlows/data/BackupCOLI_Tables.txt

UPDATE portfolio_dm_owner.jctl_cycle_date
  SET curr_cycle_date = '01-MAY-2012';

spool off

My results are:

1 row updated.

RE: Is there a DBA Setting that turns off SQL Plus "echo" Command

To get the "set echo on" command to display the SQL code on the screen during execution, you must run the code from a SQL*Plus script file. For example:




1 row selected.

SQL> select sysdate from dual;


1 row selected.
Let us know if you have follow-up questions.

(aka Dave of Sandy, Utah, USA)
"People may forget what you say, but they will never forget how you made them feel."

RE: Is there a DBA Setting that turns off SQL Plus "echo" Command

Thanks for the response.  I apologize for not being more specific in the request.  I am running from a SQL*Plus script file, but am not running interactively.  I was running a batch command from an UNIX script:

   echo "${UID}"
   echo "@/home/walterg5/BetaFlows/data/NDWBTACPOSQL.sql "
   } | sqlplus -s >> $HOME/log/NDWBTACPOSQL.sqlout 2>&1

The documentation I have listed the "-s" command as only suppressing the listing of the Username/Password.  While writing this response, I decided to try the batch run without the "-s".  I got what I needed and can not find anywhere where the Username/Password was displayed.  The log does have a line for the Username/Password, but the value is blank, so this does give me what I want.  

Again, thanks for your response.  Sorry I did not provide the right details in the original request.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close