dbTalk Databases Forums  

Avoid displaying connect messages in SQL*Plus

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss Avoid displaying connect messages in SQL*Plus in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Juan Carlos Pe?uela
 
Posts: n/a

Default Avoid displaying connect messages in SQL*Plus - 02-25-2004 , 06:19 AM






'Hi!,

I need suppress the "Conectado" (connect) message which is displayed
when I use the CONN command in SQL*Plus.

I tried with FEEDBACK, ECHO, PAGESIZE..... etc. Is there any way to
"connected" message not to be displayed.

Thanks a lot.

P.D.: Sorry for my english! :-)

Reply With Quote
  #2  
Old   
Volker Hetzer
 
Posts: n/a

Default Re: Avoid displaying connect messages in SQL*Plus - 02-25-2004 , 06:56 AM







"Juan Carlos Pe?uela" <jcpenuela (AT) supercable (DOT) es> schrieb im Newsbeitrag news:7345dcbf.0402250419.68f1f139 (AT) posting (DOT) google.com...
Quote:
'Hi!,

I need suppress the "Conectado" (connect) message which is displayed
when I use the CONN command in SQL*Plus.

I tried with FEEDBACK, ECHO, PAGESIZE..... etc. Is there any way to
"connected" message not to be displayed.
sqlplus -S ... suppresses all output. Might be too quiet for you.

Lots of Greetings!
Volker


Reply With Quote
  #3  
Old   
Mark C. Stock
 
Posts: n/a

Default Re: Avoid displaying connect messages in SQL*Plus - 02-25-2004 , 08:02 AM




"Juan Carlos Pe?uela" <jcpenuela (AT) supercable (DOT) es> wrote

Quote:
'Hi!,

I need suppress the "Conectado" (connect) message which is displayed
when I use the CONN command in SQL*Plus.

I tried with FEEDBACK, ECHO, PAGESIZE..... etc. Is there any way to
"connected" message not to be displayed.

Thanks a lot.

P.D.: Sorry for my english! :-)
if you want to suppress if from displaying on the screen (or to piped
output), use SET TERMOUT OFF. ie:

reconnect.sql script:
-----------------------------
set termout off
connect &1
set termout on
set heading off
set pause off
select
'Currently connect as '
Quote:
| user
| ' at '
|global_name
from global_name;
set heading on

-----------------------------

SQL> @reconnect scott/tiger

Currently connect as SCOTT at DEV01.US.ORACLE.COM

SQL> @reconnect bad/credentials
SP2-0640: Not connected

(of course, it sounds like you would not want any validation message at all,
so just leave out the SELECT ... FROM GLOBAL_NAME)


if you want to 'suppress' it from a spool file, don't open the spool file
until you issue the connect


does this cover your scenarios?

;-{ mcs




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.