Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: invoking login.sql from connect ?
On Tue, 29 Sep 1998 14:16:14 GMT, learmog_at_my-dejanews.com wrote:
>Is it possible to automatically invoke a sql script e.g. login.sql when using
>the connect command within SQL*Plus ? I currently have a login.sql that sets
>my prompt based on the v$database.name. The only problem is once logged in if
>I re-connect to another DB, the prompt doesn't get changed accordingly. Any
>ideas ?
Create another SQL*Plus script which will actualy execut the connect and will also call login.sql. Then instead of using CONNECT command use the CONNECT.SQL script
Example of CONNECT.SQL:
Usage:
HTH,
--
Jurij Modic <jmodic_at_src.si>
Certified Oracle7 DBA (OCP)