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: Who knows the answer?

Re: Who knows the answer?

From: THenderAAA <thenderaaa_at_aol.com>
Date: 23 Sep 1999 22:31:32 GMT
Message-ID: <19990923183132.06676.00002194@ng-ch1.aol.com>


This method requires no access to any v$ tables .. can be used by anyone connected to oracle. This will set the prompt to the dbname and the user id.

set termout off

column sprompt noprint new_value s_prompt

select substr(global_name,1,(instr(global_name,'.') - 1))||'('||user||')'||'>' sprompt
  from global_name,

       (select user from dual);

set sqlprompt &s_prompt

set termout on Received on Thu Sep 23 1999 - 17:31:32 CDT

Original text of this message

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