You must create an script to logon like that for example:
connect &1/&2
set sqlprompt="&1 $ORACLE_SID SQL>"
When you connect like username you must use script.sql so:
SQL> @script username/password
username OPTO SQL>
if we suppose you are working on UNIX with instance name OPTO.
HTH
> -----Mensaje original-----
> De: salu Ullah [SMTP:salu_ullah_at_hotmail.com]
> Enviado el: martes 6 de junio de 2000 23:50
> Para: Multiple recipients of list ORACLE-L
> Asunto: SQL-Plus
>
> Hello,
>
> Is there a script or code that i can add in my glogin file so that when
> ever
> i connect to sql plus shows both the user name & database name.
> Thanks in advance.
>
> Salu
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
> --
> Author: salu Ullah
> INET: salu_ullah_at_hotmail.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
Received on Wed Jun 07 2000 - 05:35:23 CDT