Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: UNIX-like prompt in SQL*PLUS
Here is a login.sql script that I use:
set pause off
set pause "..................... MORE"set pagesize 24
Thomas.Meyer wrote:
>
> Dear oraculars,
>
> I sometimes get confused when I have several SQL*PLUS sessions open,
> some connected to different instances on one host, some connected to a
> specific SQL*NET service.
>
> I would like to have the database/service that I'm connected to displayed in the SQL*PLUS prompt, like having the UNIX host name displayed in, say, the ksh prompt.
>
> Do you see a way of bringing the output of "select * from global_name" into the SQL*PROMPT, ideally whenever I do a new "connect"?
>
> When answering, please do a "CC" to Thomas.Meyer_at_dla-marbach.de
>
> Regards,
>
> --
>
> Thomas Meyer, EDV-Systemadministrator
> email: Thomas.Meyer_at_dla-marbach.de
> smail: Deutsches Literaturarchiv Marbach
> Schillerhoehe 8-10
> D-71672 Marbach
> Telefon: +49-7144-848-141
> Fax: ...-387
> WWW: http://www.dla-marbach.de
-- John P. Higgins Voice: (309)765-7868 Deere & Company Fax: (309)765-7800 John Deere Road Internet: jh33378nospam_at_deere.com Moline, IL 61265 Opinions: My OwnReceived on Sun Sep 28 1997 - 00:00:00 CDT