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 -> Direct vs. Embedded call to SQL script

Direct vs. Embedded call to SQL script

From: Ariel Kirson <arielk_at_exlibris.co.il>
Date: Thu, 06 Aug 1998 12:22:08 +0300
Message-ID: <35C975C0.7EF153EC@exlibris.co.il>


Hello all,

I have a SQL script named "script1.sql" which expects to receive 2 parameters (&1,&2).

I have noticed that when running the script directly from the command prompt (AIX Unix Environment), i.e. :

    sqlplus usr/pwd @script1 val1 val2

The results differ in comparison with embedding the following statement in "script2.sql":

    @script1 val1 val2

(in this case, running sqlplus usr/pwd @script2 produces various errors, which I do not know the reasoning for, such as ERROR, found DROP when expecting to find BEGIN...)

I would greatly appreciate any insights as to why this happens.

Many thanks,

Ariel Kirson
Ex Libris. Received on Thu Aug 06 1998 - 04:22:08 CDT

Original text of this message

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