Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Dynamic prompt in SQL*PLUS
Yes, you can put it into glogin sql.
You don't have to set the variables yourself, sqlplus will populate these
itself upon any change to username or connect string. Also, you could use
another variable _DATE for having current time information in your prompt
(it didn't work in my 10g beta on windows).
Tanel.
> Hi Tanel , thanx for letting me know that.
> I missed the word "dynamic" in Naveen's mail.
>
> BTW,where i do set the variables u said ?
> SET SQLPROMPT _USER'@'_CONNECT_IDENTIFIER>
>
> can i put this is in glogin.sql ?
>
> Regards,
> Prem.
>
> >>-----Original Message-----
> >>From: Tanel Poder
> >>Prem,
> >>
> >>This doesn't work "dynamicly", e.g. when you issue a connect clause to
> >>another user/connect string from inside sqlplus, then the
> >>prompt will retain
> >>the old values. But these new sqlplus variables I posted, will work
> >>dynamicly as well.
> >>
> >>Tanel.
>
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to: oracle-l-request_at_freelists.org
> put 'unsubscribe' in the subject line.
> --
> Archives are at http://www.freelists.org/archives/oracle-l/
> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------
>
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Tue Feb 24 2004 - 02:13:15 CST
![]() |
![]() |