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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Enhancement SQL*Plus (prev.: Re: Fixing a little problem in the login.sql script found in Tom Kyte's book)

Re: Enhancement SQL*Plus (prev.: Re: Fixing a little problem in the login.sql script found in Tom Kyte's book)

From: Galen Boyer <galenboyer_at_hotpop.com>
Date: 18 Jan 2003 20:21:09 -0600
Message-ID: <uu1g57lkc.fsf@hotpop.com>


On 15 Jan 2003, yf110_at_vtn1.victoria.tc.ca wrote:

> set prompt can be used to show your USER/DBNAME/SID, but if you change
> the database to which you are connected and forget to run the set
> prompt command then the prompt will be misleading.

Have a conn.sql in your SQLPATH which runs conn XX/YY_at_ZZ and then runs the query which sets your sqlprompt.

Then, never run
  SQL> conn XX/YY_at_ZZ
but instead run
  SQL>@conn XX/YY_at_ZZ

-- 
Galen deForest Boyer
Sweet dreams and flying machines in pieces on the ground.
Received on Sat Jan 18 2003 - 20:21:09 CST

Original text of this message

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