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: Problem executing file with more than one statement in SqlPlus

Re: Problem executing file with more than one statement in SqlPlus

From: fumi <fumi_at_tpts5.seed.net.tw>
Date: 16 Sep 1999 16:13:57 GMT
Message-ID: <7rr505$8vg$1@news.seed.net.tw>

<svedloff_at_ix.netcom.com> wrote in message news:37de9651.10921083_at_nntp.ix.netcom.com...
> I am using Personal Oracle 8 and I am having problem executing a file
> with more than one SQL statement in SqlPlus. My file looks like this:
>
> delete from Event;
> insert into Event (EventID, EventType) values(1, 'test');
> insert into Event (EventID, EventType) values(2, 'test');
>
> When i execute it I get this:
>
> SQL>
> 1 delete from Event;
> 2 insert into Event (EventID, EventType) values(1, 'test');
> 3* insert into Event (EventID, EventType) values(2, 'test');
> 4 /
> delete from Event;
> *
> ERROR at line 1:
> ORA-00911: invalid character

[snip]

Hi, svedloff,

Do not use GET to get the contents of a file and then run it, unless the file contains only 1 statement. Just use START or @ to run the file. Received on Thu Sep 16 1999 - 11:13:57 CDT

Original text of this message

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