Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: [Oracle 10g] Can't run SQL Scripts. Why?
Brian Peasland skrev:
> > 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).
>
> > 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.
>
> > 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).
> > Cheers, > Brian > >