Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what does this statement do ?

Status
Not open for further replies.

Striker99

Programmer
Oct 31, 2001
34
UA
All,

Could any explain to me what this sql statemene does please.

sqlplus -s system/manager >/dev/null <set echo on

Thanks,
striker99
 
Found a script with the following comment - hope this helps.
Its the most similar thing I could find since I was curious and echo on also displays on the screen.

# Note: To diagnose problems in the following PL/SQL script, change the
# following sqlplus invocation line to: sqlplus $USERPW <<!EOD
# in order to display any error messages to the screen. Note that you will
# also see a log of line continuation counters - This is normal when running
# SQL*Plus via a Unix &quot;here document&quot;.
#
sqlplus -s $USERPW >/dev/null<<!EOD
 
hope this helps.
Did you pull this command out of an existing script?
Breaking it down - it calls sqlplus and the -s is
-S[ILENT]
Suppresses all SQL*Plus information and prompt
messages, including the command prompt, the
echoing of commands, and the banner normally
displayed when you start SQL*Plus.
Use SILENT to invoke SQL*Plus within another program so
that use of SQL*Plus is invisible to the user.

then the dev/null sends it to nowhere land and the set echo on would display information to the screen.

found this in a script from the web:
# Note: To diagnose problems in the following PL/SQL script, change the
# following sqlplus invocation line to: sqlplus $USERPW <<!EOD
# in order to display any error messages to the screen. Note that you will
# also see a log of line continuation counters - This is normal when running
# SQL*Plus via a Unix &quot;here document&quot;.
#
sqlplus -s $USERPW >/dev/null<<!EOD
 

This will run your sqlplus script without echoing anything in the screen.


Robbie

&quot;The rule is, not to besiege walled cities if it can possibly be avoided&quot; -- Art of War
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top