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
