Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> SQL*Plus Worksheet Question
Version 9.2
I am monitoring several databases and have several SQL*Plus Worksheet sessions open. I would like to display the connected user name and instance as the prompt associated w/ the appropriate session. Per Metalink Note:120664.1 I added the following lines to the login.sql:
set termout off
spool set_prompt.sql
select 'set sqlprompt '||instance||'>'
from sys.v_$thread;
spool off
start set_prompt.sql
set termout on
This does successfully change the prompt to the instance name for SQL*Plus but not SQL*Plus Worksheet. What am I missing? Is there another way to accomplish this?
Eric Harrington
State of Maine
Bureau of Motor Vehicles
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Harrington, Eric
INET: Eric.Harrington_at_maine.gov
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------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 Fri Jan 31 2003 - 09:29:30 CST
![]() |
![]() |