Re: SQLPLUS fails when there is an extra line in the sql ?

From: <fitzjarrell_at_cox.net>
Date: Fri, 15 Feb 2008 12:54:32 -0800 (PST)
Message-ID: <ef3930ed-0192-4a79-81ab-9ade538d9b15@p73g2000hsd.googlegroups.com>


On Feb 15, 2:17 pm, Urs Metzger <u..._at_ursmetzger.de> wrote:
> John schrieb:
>
>
>
> > This may have been reported by someone, but I just want to share it
> > with you, just in case.
>
> > I am using sqlplus ( Release 10.1.0.5.0 - Production), on my linux
> > box. Usually I am using this command to access a databae to execute a
> > "deploy.sql" that invokes another hundreds sql files, such as:
> > "
> > sqlplus username/password_at_mydatabase @deploy.sql
> > ",
>
> > And here is the piece of the sql that gives me the headache.
> > "
> > CREATE TABLE "DM_ENUM"
> >    (    "CLASS_NAME" VARCHAR2(60 BYTE),
> >         "MEMBER_NAME" VARCHAR2(60 BYTE),
> >         "MEMBER_ORDER" NUMBER
>
> >    );
> > ",
> > as you can see there is an extra blank line before the right
> > parenthesis, and because of that, I see such errors in my log file,
> > "
> > SP2-0042: unknown command ") " - rest of line ignored.
> > ".
>
> > But If I manually remove that blank line, everything works fine.
>
> > I wonder if there is a patch, or higher version of sqlplus that have
> > such problem solved ?
>
> > John
>
> John,
>
> please try
>
>     set sqlblanklines on
>
> hth
>
> Urs Metzger- Hide quoted text -
>
> - Show quoted text -

Such a resourceful person. And I've learned something else new today.

Thank you.

David Fitzjarrell Received on Fri Feb 15 2008 - 14:54:32 CST

Original text of this message