Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> SQL*Plus Worksheet Question

SQL*Plus Worksheet Question

From: Harrington, Eric <Eric.Harrington_at_maine.gov>
Date: Fri, 31 Jan 2003 07:29:30 -0800
Message-ID: <F001.00540676.20030131072930@fatcity.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US