Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQLPlus prompt
Hi,
On 11 May 1998 08:55:39 GMT, "Sbaiz" <pierluigi.sbaiz_at_elsag.it> wrote:
>Hi all
>
>I'd like to change the prompt SQL> of SQLPlus. So I want to visualize the
>prompt SQL_<istance_name> instead of SQL>.
>There's somebody that know how help me.
>
>Thanks in advance
>
>Sbaiz P.
>
Put these lines in your glogin.sql file:
define NewPrompt='unknown'
column ui new_value NewPrompt
set term off
select user || ' @ ' || global_name ui from global_name;
set sqlprompt '&NewPrompt> '
set term on
grtnx,
Richard
![]() |
![]() |