Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Setting prompt in SQL*Plus
Hi,
I read somewhere that the following (when included in glogin.sql) sets the prompt of sqlplus to the instance I am connecting to:
select lower(substr(global_name,1,(instr(global_name,'.')-1))) sid from
global_name;
set sqlprompt 'SQL &osid>'
It works fine, but when I do a 'connect' again, it will not reflect the new instance.
Is there a way around this? I want the prompt to show the correct instance that I am connected to.
Thanks.
Regards,
Tse Chong
Received on Sat Apr 25 1998 - 01:42:23 CDT
![]() |
![]() |