PDA

View Full Version : supress connected message


Paul
09-19-2005, 12:00 AM
Hi,

I'd like to supress the "Connected." message after connecting to a db.
This is because I use a script like:

spool myoutput.txt
connect scott@mydb1/tiger
select instance_name, version from v$instance;
connect scott@mydb2/tiger
select instance_name, version from v$instance;
connect scott@mydb3/tiger
select instance_name, version from v$instance;
spool off

I don't want the lines 'Connected.' in between my output.

How to accomplish this? Thanks for any help.

Noel
09-19-2005, 01:40 AM
Użytkownik alsemgeest@it4us.nl napisał:
Hi, I'd like to supress the "Connected." message after connecting to a db. This is because I use a script like: spool myoutput.txt connect scott@mydb1/tiger select instance_name, version from v$instance; connect scott@mydb2/tiger select instance_name, version from v$instance; connect scott@mydb3/tiger select instance_name, version from v$instance; spool off I don't want the lines 'Connected.' in between my output. How to accomplish this? Thanks for any help.

You could try SET TERMOUT OFF after spool command.

--
Noel

Maxim Demenko
09-19-2005, 03:45 AM
Noel schrieb: Użytkownik alsemgeest@it4us.nl napisał: Hi, I'd like to supress the "Connected." message after connecting to a db. This is because I use a script like: spool myoutput.txt connect scott@mydb1/tiger select instance_name, version from v$instance; connect scott@mydb2/tiger select instance_name, version from v$instance; connect scott@mydb3/tiger select instance_name, version from v$instance; spool off I don't want the lines 'Connected.' in between my output. How to accomplish this? Thanks for any help. You could try SET TERMOUT OFF after spool command.
TERMOUT OFF doesn't suppress "connected" message if you connect from
within sqlplus. You can consider to connect from the commandline
instead, then "SILENT" option will suppress this message ( sqlplus -s
scott/tiger@mydb )

Best regards

Maxim


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service