dbTalk Databases Forums  

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

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss SQLPLUS fails when there is an extra line in the sql ? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John
 
Posts: n/a

Default SQLPLUS fails when there is an extra line in the sql ? - 02-15-2008 , 01:14 PM







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@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

Reply With Quote
  #2  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: SQLPLUS fails when there is an extra line in the sql ? - 02-15-2008 , 01:25 PM






On Feb 15, 1:14*pm, John <chunj... (AT) gmail (DOT) com> wrote:
Quote:
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@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
It isn't a problem. A blank line in a SQL statement terminates that
statement:

SQL> select empno, empname,
2 deptno,
3 hiredate
4
SQL> from emp;
SP2-0042: unknown command "from emp" - rest of line ignored.
SQL>

And it isn't a bug. It's the accepted behaviour SQL*Plus has been
exhibiting for years.


David Fitzjarrell


Reply With Quote
  #3  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: SQLPLUS fails when there is an extra line in the sql ? - 02-15-2008 , 01:25 PM



On Feb 15, 1:14*pm, John <chunj... (AT) gmail (DOT) com> wrote:
Quote:
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@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
It isn't a problem. A blank line in a SQL statement terminates that
statement:

SQL> select empno, empname,
2 deptno,
3 hiredate
4
SQL> from emp;
SP2-0042: unknown command "from emp" - rest of line ignored.
SQL>

And it isn't a bug. It's the accepted behaviour SQL*Plus has been
exhibiting for years.


David Fitzjarrell


Reply With Quote
  #4  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: SQLPLUS fails when there is an extra line in the sql ? - 02-15-2008 , 01:25 PM



On Feb 15, 1:14*pm, John <chunj... (AT) gmail (DOT) com> wrote:
Quote:
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@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
It isn't a problem. A blank line in a SQL statement terminates that
statement:

SQL> select empno, empname,
2 deptno,
3 hiredate
4
SQL> from emp;
SP2-0042: unknown command "from emp" - rest of line ignored.
SQL>

And it isn't a bug. It's the accepted behaviour SQL*Plus has been
exhibiting for years.


David Fitzjarrell


Reply With Quote
  #5  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: SQLPLUS fails when there is an extra line in the sql ? - 02-15-2008 , 01:25 PM



On Feb 15, 1:14*pm, John <chunj... (AT) gmail (DOT) com> wrote:
Quote:
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@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
It isn't a problem. A blank line in a SQL statement terminates that
statement:

SQL> select empno, empname,
2 deptno,
3 hiredate
4
SQL> from emp;
SP2-0042: unknown command "from emp" - rest of line ignored.
SQL>

And it isn't a bug. It's the accepted behaviour SQL*Plus has been
exhibiting for years.


David Fitzjarrell


Reply With Quote
  #6  
Old   
John
 
Posts: n/a

Default Re: SQLPLUS fails when there is an extra line in the sql ? - 02-15-2008 , 01:35 PM



On Feb 15, 11:25*am, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net>
wrote:
Quote:
On Feb 15, 1:14*pm, John <chunj... (AT) gmail (DOT) com> wrote:





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@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

It isn't a problem. *A *blank line in a SQL statement terminates that
statement:

SQL> select empno, empname,
* 2 * deptno,
* 3 *hiredate
* 4
SQL> from emp;
SP2-0042: unknown command "from emp" - rest of line ignored.
SQL

And it isn't a bug. *It's the accepted behaviour SQL*Plus has been
exhibiting for years.

David Fitzjarrell- Hide quoted text -

- Show quoted text -
Can you try the sql I gave, to see if the data is being created ?



Jone



Reply With Quote
  #7  
Old   
John
 
Posts: n/a

Default Re: SQLPLUS fails when there is an extra line in the sql ? - 02-15-2008 , 01:35 PM



On Feb 15, 11:25*am, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net>
wrote:
Quote:
On Feb 15, 1:14*pm, John <chunj... (AT) gmail (DOT) com> wrote:





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@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

It isn't a problem. *A *blank line in a SQL statement terminates that
statement:

SQL> select empno, empname,
* 2 * deptno,
* 3 *hiredate
* 4
SQL> from emp;
SP2-0042: unknown command "from emp" - rest of line ignored.
SQL

And it isn't a bug. *It's the accepted behaviour SQL*Plus has been
exhibiting for years.

David Fitzjarrell- Hide quoted text -

- Show quoted text -
Can you try the sql I gave, to see if the data is being created ?



Jone



Reply With Quote
  #8  
Old   
John
 
Posts: n/a

Default Re: SQLPLUS fails when there is an extra line in the sql ? - 02-15-2008 , 01:35 PM



On Feb 15, 11:25*am, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net>
wrote:
Quote:
On Feb 15, 1:14*pm, John <chunj... (AT) gmail (DOT) com> wrote:





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@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

It isn't a problem. *A *blank line in a SQL statement terminates that
statement:

SQL> select empno, empname,
* 2 * deptno,
* 3 *hiredate
* 4
SQL> from emp;
SP2-0042: unknown command "from emp" - rest of line ignored.
SQL

And it isn't a bug. *It's the accepted behaviour SQL*Plus has been
exhibiting for years.

David Fitzjarrell- Hide quoted text -

- Show quoted text -
Can you try the sql I gave, to see if the data is being created ?



Jone



Reply With Quote
  #9  
Old   
John
 
Posts: n/a

Default Re: SQLPLUS fails when there is an extra line in the sql ? - 02-15-2008 , 01:35 PM



On Feb 15, 11:25*am, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net>
wrote:
Quote:
On Feb 15, 1:14*pm, John <chunj... (AT) gmail (DOT) com> wrote:





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@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

It isn't a problem. *A *blank line in a SQL statement terminates that
statement:

SQL> select empno, empname,
* 2 * deptno,
* 3 *hiredate
* 4
SQL> from emp;
SP2-0042: unknown command "from emp" - rest of line ignored.
SQL

And it isn't a bug. *It's the accepted behaviour SQL*Plus has been
exhibiting for years.

David Fitzjarrell- Hide quoted text -

- Show quoted text -
Can you try the sql I gave, to see if the data is being created ?



Jone



Reply With Quote
  #10  
Old   
John
 
Posts: n/a

Default Re: SQLPLUS fails when there is an extra line in the sql ? - 02-15-2008 , 01:37 PM



On Feb 15, 11:25*am, "fitzjarr... (AT) cox (DOT) net" <fitzjarr... (AT) cox (DOT) net>
wrote:
Quote:
On Feb 15, 1:14*pm, John <chunj... (AT) gmail (DOT) com> wrote:





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@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

It isn't a problem. *A *blank line in a SQL statement terminates that
statement:

SQL> select empno, empname,
* 2 * deptno,
* 3 *hiredate
* 4
SQL> from emp;
SP2-0042: unknown command "from emp" - rest of line ignored.
SQL

And it isn't a bug. *It's the accepted behaviour SQL*Plus has been
exhibiting for years.

David Fitzjarrell- Hide quoted text -

- Show quoted text -
Hi David
Can you try the sql that I gave, to see if the table is being
created ?


John.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.