ORA-01003: no statement parsed on CREATE TABLE [message #443867] |
Wed, 17 February 2010 13:36  |
dolot
Messages: 11 Registered: July 2009
|
Junior Member |
|
|
I have the following create table statement:
create table SELECTION_BOOKMARK(
INSTALLATION_ID SMALLINT NOT NULL,
BOOKMARK_ID SMALLINT NOT NULL,
NAME VARCHAR2(50) NOT NULL,
SORT_ORDER SMALLINT NULL
);
When I execute this statement as part of a SQL script, it throws the error "ORA-01003: no statement parsed". If I execute it as a stand alone sql command, it returns no error.
Here's the strange thing, though. Even when it throws the error message the table is created. Later on in the script, I execute the following command:
alter table SELECTION_BOOKMARK add primary key(INSTALLATION_ID,BOOKMARK_ID);
This command also throws the above mentioned error, but once again the command executes - the primary key is created.
So you may say "what's the problem?" Well, I don't like having a script that throws errors. Eventually I'll have to give this script to a dba in another organization and I don't want my script to be throwing errors - even if it's apparently working correctly despite the errors.
Thanks for any help you can give.
|
|
|
|
|
|
|
|
|
Re: ORA-01003: no statement parsed on CREATE TABLE [message #443890 is a reply to message #443874] |
Wed, 17 February 2010 22:00   |
 |
ramoradba
Messages: 2457 Registered: January 2009 Location: AndhraPradesh,Hyderabad,I...
|
Senior Member |
|
|
This kind of error may Occur if the user (executing the script) does not have sufficient privileges.....(explicit "create table" privilege ).
But this is not your case as the table created...
Why can`t you show us the screen shot or any spooled file of the out put you have.....
And the privileges granted to the user
Because the script which you have sent/attached works perfect(without no such errors)....
sriram
[Updated on: Wed, 17 February 2010 22:01] Report message to a moderator
|
|
|
|
|
|
|
|