Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » oracle l »

Re: Dynamic prompt in SQL*PLUS

Tanel Poder

2004-02-24

Replies:

Hi!

In 10g you can use _USER and _CONNECT_IDENTIFIER sqlplus variables, for
example:

SET SQLPROMPT _USER'@(protected)>

Before 10g you can't have dynamic prompt inside sqlplus.

Tanel.

----- Original Message -----
From: "Naveen, Nahata (IE10)" <Naveen.Nahata@(protected)>
To: <oracle-l@(protected)>
Sent: Tuesday, February 24, 2004 9:14 AM
Subject: Dynamic prompt in SQL*PLUS


> Hi All,
>
> A simple SQL*PLUS question. How to get a dynamic prompt in SQL*PLUS?
>
> I have put the code to set prompt as "Username@(protected),
> the prompt is stationary. It doesn't change if I connect as a different
> user. How to make it dynamic?
>
> Regards,
> Naveen Nahata
> |=====================================|
> | Honeywell Technology Solutions Labs |
> | 151/1, Doraisanipalya,         |
> | Bannerghatta Road,            |
> | Bangalore - 560 076           |
> | Phone: 6588360, 51197222        |
> | Fax : 6584750, 51109907        |
> | Email: naveen.nahata@(protected) |
> |=====================================|
>
> Winning is not everything,
> It's the only thing!!!
>
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to: oracle-l-request@(protected)
> 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
> -----------------------------------------------------------------
>


----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request@(protected)
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
-----------------------------------------------------------------


©2008 dba.5341.com - Jax Systems, LLC, U.S.A.