dbTalk Databases Forums  

[Oracle 10g] Can't run SQL Scripts. Why?

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


Discuss [Oracle 10g] Can't run SQL Scripts. Why? in the comp.databases.oracle.misc forum.



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

Default [Oracle 10g] Can't run SQL Scripts. Why? - 05-05-2006 , 04:43 AM






Hi all


I am in the process of porting an application to Oracle and have as a
start downloaded 10g.
I have been able to run scripts for a while, but now I am unable to run
anything - no matter what user I login as. The errorcode is as follows:

ORA-01400: cannot insert NULL into
("FLOWS_020100"."WWV_FLOW_SW_RESULTS"."FILE_ID" )

Unable to submit the script to run.

(If I instead of the script try to run my code as a SQL Command, the
result is: "The requested URL /apex/wwv_flow.show was not found on this
server ").

Can anyone help me to get on my feet again?

Kind regards
Peter Koch Larsen


Reply With Quote
  #2  
Old   
Brian Peasland
 
Posts: n/a

Default Re: [Oracle 10g] Can't run SQL Scripts. Why? - 05-05-2006 , 09:29 AM






Quote:
ORA-01400: cannot insert NULL into
("FLOWS_020100"."WWV_FLOW_SW_RESULTS"."FILE_ID" )
Without having seen your script, it is obvious that you are inserting a
record in to the FLOWS_020100.WWV_FLOW_SW_RESULTS table. The FILE_ID
column has a NOT NULL constraint and you are attempting to insert a
record with NULL in that column.

You'll have to do some debugging of your script to find out why you are
attempting to insert NULL into this column when that operation is not
allowed.

HTH,
Brian

--
================================================== =================

Brian Peasland
oracle_dba (AT) nospam (DOT) peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown


Reply With Quote
  #3  
Old   
gazzag
 
Posts: n/a

Default Re: [Oracle 10g] Can't run SQL Scripts. Why? - 05-05-2006 , 10:09 AM



peter.koch.larsen (AT) gmail (DOT) com wrote:
Quote:
I have been able to run scripts for a while, but now I am unable to run
anything - no matter what user I login as. The errorcode is as follows:

ORA-01400: cannot insert NULL into
("FLOWS_020100"."WWV_FLOW_SW_RESULTS"."FILE_ID" )

Unable to submit the script to run.

(If I instead of the script try to run my code as a SQL Command, the
result is: "The requested URL /apex/wwv_flow.show was not found on this
server ").

How were you running the scripts before? Via SQL*Plus? The error you
mention seems to point to a munged HTMLDB/Apex install. When did it
all stop working?



Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: [Oracle 10g] Can't run SQL Scripts. Why? - 05-08-2006 , 05:09 AM




gazzag wrote:
Quote:
peter.koch.larsen (AT) gmail (DOT) com wrote:
I have been able to run scripts for a while, but now I am unable to run
anything - no matter what user I login as. The errorcode is as follows:

ORA-01400: cannot insert NULL into
("FLOWS_020100"."WWV_FLOW_SW_RESULTS"."FILE_ID" )

Unable to submit the script to run.

(If I instead of the script try to run my code as a SQL Command, the
result is: "The requested URL /apex/wwv_flow.show was not found on this
server ").


How were you running the scripts before? Via SQL*Plus? The error you
mention seems to point to a munged HTMLDB/Apex install. When did it
all stop working?
Hi Gazzag

Well... I ran the scripts via the HTML-interface. Why/when it stopped
working, I do not really know. Even after reinstalls (where I had to
manually remove files entries from the installed directory and entries
in registry in order to properly remove the product), I have not been
able to run scripts. Also, even simple SQL can not run from the SQL
Commands dialog. As an example,

CREATE TABLE ttt
(
id int NOT NULL,
PRIMARY KEY
(
id
)
)

gives the error "ORA-00911: invalid character"..

I also tried to use SQL*Plus, but initially the only command I could
make work was "EXIT". Not even HELP worked. Removing the "/nolog"
option from the startup line did make SQL*Plus perform without any
problems (so far!).

All in all my new meeting with Oracle (last visit was version 7.x) has
been disappointing. I'm quite confident that Oracle basically is a nice
and stable product, but what I've met with 10g simply is so sloppy I'd
never recommend it to others.

Kind regards
Peter



Reply With Quote
  #5  
Old   
Brian Peasland
 
Posts: n/a

Default Re: [Oracle 10g] Can't run SQL Scripts. Why? - 05-08-2006 , 10:59 AM



Quote:
CREATE TABLE ttt
(
id int NOT NULL,
PRIMARY KEY
(
id
)
)

gives the error "ORA-00911: invalid character"..
It should not be be a surprise that the above throws an error as this is
invalid syntax. Try the following instead:

CREATE TABLE ttt
(
id NUMBER NOT NULL PRIMARY KEY
);


Quote:
I also tried to use SQL*Plus, but initially the only command I could
make work was "EXIT". Not even HELP worked. Removing the "/nolog"
option from the startup line did make SQL*Plus perform without any
problems (so far!).
If you have not installed help, then it will not work. You will receive
the following:

SP2-0171: HELP not accessible.

Quote:
All in all my new meeting with Oracle (last visit was version 7.x) has
been disappointing. I'm quite confident that Oracle basically is a nice
and stable product, but what I've met with 10g simply is so sloppy I'd
never recommend it to others.
From what I've seen above, the problem is not Oracle 10g, but rather
the usage of it.

Cheers,
Brian


--
================================================== =================

Brian Peasland
oracle_dba (AT) nospam (DOT) peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown


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

Default Re: [Oracle 10g] Can't run SQL Scripts. Why? - 05-08-2006 , 05:49 PM




Brian Peasland skrev:

Quote:
CREATE TABLE ttt
(
id int NOT NULL,
PRIMARY KEY
(
id
)
)

gives the error "ORA-00911: invalid character"..

It should not be be a surprise that the above throws an error as this is
invalid syntax. Try the following instead:

CREATE TABLE ttt
(
id NUMBER NOT NULL PRIMARY KEY
);

This is not true. All our DDL-statements are autogenerated following my
original scheme. Also, Oracle accepts my original statement when i
"fix" my SQL*PLUS command-line - a quite strong indication that you are
mistaken ;-)
(int is accepted, of course - it is ANSI syntax).

Quote:
I also tried to use SQL*Plus, but initially the only command I could
make work was "EXIT". Not even HELP worked. Removing the "/nolog"
option from the startup line did make SQL*Plus perform without any
problems (so far!).

If you have not installed help, then it will not work. You will receive
the following:

SP2-0171: HELP not accessible.
My original problem using SQL*PLUS came from using the shortcut
installed via the default installation. If was my accidental usage of
sql*plus from the command line that made me discover what the problem
was. I also have help available - when not starting with the /nolog
option.
Quote:
All in all my new meeting with Oracle (last visit was version 7.x) has
been disappointing. I'm quite confident that Oracle basically is a nice
and stable product, but what I've met with 10g simply is so sloppy I'd
never recommend it to others.

From what I've seen above, the problem is not Oracle 10g, but rather
the usage of it.
As you might guess, I have another opinion of this matter. Let me add,
that I have installed and used Microsoft SQL Server, Ingres and Sybase
without any problems (well... not entirely true, but they certainly
were minor compared to Oracle).
Quote:
Cheers,
Brian


/Peter



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 - 2010, Jelsoft Enterprises Ltd.