473,386 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ORA-00922 Missing or Invalid Option

23
Hi,

Does anyone know why I get this error when I run this script.
Expand|Select|Wrap|Line Numbers
  1.  
  2. Create table ROOM
  3. (ROOM_ID number(4),
  4. PROPERTY_ID number(4) Not Null,
  5. ROOM_TYPE char(15) Not Null,
  6. HEATING char(3) Not Null,
  7. FURNISHED char(3) Not Null,
  8. DIMENSIONS char(11) Not Null,
  9. SPECIAL_FEATURES char(30) Null,
  10. Primary Key(ROOM_ID,PROPERTY_ID),
  11. Constraint PROPERTY_ID_FK Foreign Key(PROPERTY_ID) References PROPERTY(PROPERTY_ID),
  12. Constraint Room_Type_CK Check(ROOM_TYPE in('Reception room','Bathroom','Bedroom','Utility','Kitchen')),
  13. COnstraint Heating_CK Check(HEATING in('Yes','No')),
  14. Constraint Furnished_CK Check(FURNISHED in('Yes','No')));
  15.  
Thanks very much in advance.
Mar 14 '08 #1
6 15752
amitpatel66
2,367 Expert 2GB
I do not face any issue:

Expand|Select|Wrap|Line Numbers
  1.  
  2. SQL> Create table ROOM
  3.   2  (ROOM_ID number(4),
  4.   3  PROPERTY_ID number(4) Not Null,
  5.   4  ROOM_TYPE char(15) Not Null,
  6.   5  HEATING char(3) Not Null,
  7.   6  FURNISHED char(3) Not Null,
  8.   7  DIMENSIONS char(11) Not Null,
  9.   8  SPECIAL_FEATURES char(30) Null,
  10.   9  Primary Key(ROOM_ID,PROPERTY_ID),
  11.  10  Constraint PROPERTY_ID_FK Foreign Key(PROPERTY_ID) References PROPERTY(PROPERTY_ID),
  12.  11  Constraint Room_Type_CK Check(ROOM_TYPE in('Reception room','Bathroom','Bedroom','Utility','Kit')),
  13.  12  COnstraint Heating_CK Check(HEATING in('Yes','No')),
  14.  13  Constraint Furnished_CK Check(FURNISHED in('Yes','No')))
  15.  14  /
  16.  
  17. Table created.
  18.  
  19. SQL> 
  20.  
  21.  
  22.  
  23.  
Mar 14 '08 #2
Yew12
23
Thank you for your response we know think its the order in which we have created the tables.

Thanks
Mar 14 '08 #3
amitpatel66
2,367 Expert 2GB
Thank you for your response we know think its the order in which we have created the tables.

Thanks
You need to have your property table in palce before creating ROOM table. But this does not display error like invalid option or something, it will say property table or view does not exist.
Mar 14 '08 #4
Hi ,

I have got the same Error.
ORA-00922 Missing or invalid option .
While creating first database while installation.
Will you please assist me on this error?

Thanks in advance.

Regards,
Priyanka
Aug 20 '08 #5
debasisdas
8,127 Expert 4TB
Kindly Post Your Code That You Are Working On.
Aug 20 '08 #6
Hi ,

I have got the same Error.
ORA-00922 Missing or invalid option .
While creating first database while installation.
Will you please assist me on this error?

Thanks in advance.

Regards,
Priyanka


Hi Priyanka.

i m confused that u got the error while installation.
as i know

ORA-00922 Missing or invalid option, causes due to syntax error.

specifying a maximum length on a date or long datatype also
causes this error.

or like Yew12's case where Yew12 was trying to create the ROOM table first before creating PROPERTY table also causes this error.


Correcting the syntax may help u to overcome from the error.
Aug 22 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Galina | last post by:
Hello I have created a trigger not to let records with certain fields null to be inserted into the table: BEGIN IF :new.RUL_CODE is null or :new.FES_UINS_CODE is null or :new.FES_UIO_CALOCC is...
1
by: Park Yeon Jo | last post by:
About Error : ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor I installed Oracle 8.1.7 on Windows XP Professional. and I wanto connect to that server...
1
by: Adam Ruth | last post by:
I'm using OCI on Mac OS X and I've run into a strange problem with my TNSNAMES.ORA file. My TNSNAMES.ORA file has one entry INV4II and it works fine. However, it will only work if that is the...
6
by: bdj | last post by:
Hello! I have at set of tnsnames.ora. I wich to make an union, e.g. a single file of it. How can I do that easy? Greetings Bjørn
2
by: mpatel6 | last post by:
I had this error in alert log and my instance was down, anybody can help me? Errors in file /u01/app/oracle/admin/sotstest/bdump/sotstest_p004_626740.trc: ORA-07445: exception encountered: core...
2
by: Dwie | last post by:
Dear All, I'm a new in Oracle DB. I'm using Windows 2000 as server and Windows XP as client. I installed Oracle Enterprise on server and Oracle 8.1 on clients. I have some client with 2 different...
5
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point,...
1
by: michael ngong | last post by:
michael.john@gmx.at (Michael John) wrote in message news:<90cc4edd.0306230900.28075193@posting.google.com>... MIchael I you stated the OS and platform that could make it easier to address your...
1
by: hoonig | last post by:
I have this traditional error "ORA-12560:TNS:Protocol Adapter Error" when trying to connect to my Oracle 8i databases on Netware (i.e when i load svrmgr31, plus81, etc...) Listener seems to work...
0
by: wolfee | last post by:
I'm running 10gR2 RAC in Prod, Test and DEV and after doing a clone to the DEV environment I'm getting a wierd ORA-12514 error for only one node. I can tnsping the node and it comes back fine. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.