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: How to set SQLPROMPT

Re: How to set SQLPROMPT

From: Chris Boyle <cboyle_at_no.spam.hargray.com>
Date: Wed, 10 Oct 2001 10:56:28 -0400
Message-ID: <9q1nib$5flc$1@news3.infoave.net>


This is in my glogin.sql file.

set termout off
spool temp_prompt.sql
select 'set sqlprompt '||''''||upper(user)||'@'||upper(name)||'> '||''''||chr(10)
from v$database;
spool off
start temp_prompt.sql
set termout on

set heading off
select 'Currently logged in to '||name||' database' from v$database;
set heading on

Mimmo Sime1 <csime1_at_xxx.it> wrote in message news:9q1d4q$al6$1_at_pegasus.tiscalinet.it...
> Hello everyone!
> I've got a quick question for you all:
>
> How can i set "SQLPROMPT" (from login.sql) with a variable valorized with
a
> query?
> In a few words: i'd like tu set SQLPROMPT with the result of "select
> global_name from global_name"...
>
>
> TIA! :)
>
>
Received on Wed Oct 10 2001 - 09:56:28 CDT

Original text of this message

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