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: Running a .sql program using SQLPLUS

Re: Running a .sql program using SQLPLUS

From: Sarah Yaksich <say_at_qld.mim.com.au>
Date: 1998/02/20
Message-ID: <34ed17ad.26685577@news.bne.aone.net.au>#1/1

"Kevin Bass" <akil1_at_mindspring.com> wrote:

>How can I run a .sql program from the command line (in Unix) using SQLPLUS?
>Please supply syntax and en example.
>
>Kevin
>
>

You use the following syntax:

sqlplus username/password @file.sql

eg.,

sqlplus scott/tiger @test.sql

If you put exit as the last line in test.sql, it will log out of sql when it has finished Received on Fri Feb 20 1998 - 00:00:00 CST

Original text of this message

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