Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Dynamic prompt in SQL*PLUS

RE: Dynamic prompt in SQL*PLUS

From: Justin Cave (DDBC) <jcave_at_ddbcinc.com>
Date: Tue, 24 Feb 2004 00:27:33 -0700
Message-ID: <87E9F113CEF1D211A4C3009027301874195C6E@ddbcinc.ddbc.local>


The easiest way is to create a script called connect.sql and then call that rather than the standard connect from the prompt.

Justin Cave
Distributed Database Consulting, Inc.
http://www.ddbcinc.com

-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Naveen, Nahata (IE10) Sent: Tuesday, February 24, 2004 12:14 AM To: oracle-l_at_freelists.org
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_at_Db_name SQL>" in login.sql, 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_at_honeywell.com |
|=====================================|

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_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
-----------------------------------------------------------------


----------------------------------------------------------------
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
-----------------------------------------------------------------
Received on Tue Feb 24 2004 - 01:21:15 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US