Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: setting DbName in SQL*PLUS
I got this from Charlie. Add this to you glogin.sql and this will work.
set termout off
define new_prompt='nolog'
column value new_value new_prompt
select username || ': ' || global_name
value from user_users, global_name;
set sqlprompt "&new_prompt>"
set termout on
Also since it is setup when you start Sql*Plus the prompt would remain the same even if you reconnect to different database in the same Sql*Plus session.
Shailesh
-----Original Message-----
Sent: Monday, July 23, 2001 2:20 PM
To: Multiple recipients of list ORACLE-L
I looked at rtfm and found sqlprompt will only work if sqlnumber is off.
Added that line to the script, still doesn't work. Looks like it is not
picking glogin.sql. Anyone has any idea what else I need to do?
Thank you.
Lyuda
-----Original Message-----
Sent: Monday, July 23, 2001 1:17 PM
To: Lyuda Hoska
I looked at rtfm and found sqlprompt will only work if sqlnumber is off.
Added that line to the script, still doesn't work. Looks like it is not
picking glogin.sql. Anyone has any idea what else I need to do?
Thank you.
Lyuda
-----Original Message-----
Sent: Monday, July 23, 2001 12:59 PM
To: 'ORACLE-L_at_fatcity.com'
I changed my glogin.sql logged out, logged back on to sqlplus and ....
nothing happened...
Is there anything else I need to do?
-----Original Message-----
Sent: Monday, July 23, 2001 12:26 PM
To: Multiple recipients of list ORACLE-L
Try this link: http://www.iherve.com/oracle/prompt_sqlplus.htm Script and explaination included.
> Has anyone ever worked on setting the DbName as the sqlprompt in SQL*PLUS
> thru glogin.sql?
>
> Shailesh
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Yadav, Shailesh
> INET: NDASY3_at_labor.state.ny.us
>
> 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).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Andrew Lieu INET: list_application_at_yahoo.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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: lhoska_at_calibresys.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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Yadav, Shailesh INET: NDASY3_at_labor.state.ny.us 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 Mon Jul 23 2001 - 13:28:22 CDT
![]() |
![]() |