|
|
Re: which database i connected? [message #104274 is a reply to message #104174] |
Wed, 08 September 2004 03:26 |
Andy Black
Messages: 6 Registered: August 2004
|
Junior Member |
|
|
Hi,
The following SQL will show what database you are connected to (see the second returned field):
select * from v$instance;
You can set the SQL*Plus prompt by editing file login.sql in your SQLPATH to contain the lines:
-- Set the SQL*Plus prompt
define prompt = 'SQL'
column prompt new_value prompt
set termout off
select lower(instance_name)||':'||lower(host_name) prompt from v$instance;
set termout on
set sqlprompt '&&prompt> '
Regards, Andy
|
|
|