Hi,
Does anyone know why I get this error when I run this script. -
-
Create table ROOM
-
(ROOM_ID number(4),
-
PROPERTY_ID number(4) Not Null,
-
ROOM_TYPE char(15) Not Null,
-
HEATING char(3) Not Null,
-
FURNISHED char(3) Not Null,
-
DIMENSIONS char(11) Not Null,
-
SPECIAL_FEATURES char(30) Null,
-
Primary Key(ROOM_ID,PROPERTY_ID),
-
Constraint PROPERTY_ID_FK Foreign Key(PROPERTY_ID) References PROPERTY(PROPERTY_ID),
-
Constraint Room_Type_CK Check(ROOM_TYPE in('Reception room','Bathroom','Bedroom','Utility','Kitchen')),
-
COnstraint Heating_CK Check(HEATING in('Yes','No')),
-
Constraint Furnished_CK Check(FURNISHED in('Yes','No')));
-
Thanks very much in advance.
6 15752
I do not face any issue: -
-
SQL> Create table ROOM
-
2 (ROOM_ID number(4),
-
3 PROPERTY_ID number(4) Not Null,
-
4 ROOM_TYPE char(15) Not Null,
-
5 HEATING char(3) Not Null,
-
6 FURNISHED char(3) Not Null,
-
7 DIMENSIONS char(11) Not Null,
-
8 SPECIAL_FEATURES char(30) Null,
-
9 Primary Key(ROOM_ID,PROPERTY_ID),
-
10 Constraint PROPERTY_ID_FK Foreign Key(PROPERTY_ID) References PROPERTY(PROPERTY_ID),
-
11 Constraint Room_Type_CK Check(ROOM_TYPE in('Reception room','Bathroom','Bedroom','Utility','Kit')),
-
12 COnstraint Heating_CK Check(HEATING in('Yes','No')),
-
13 Constraint Furnished_CK Check(FURNISHED in('Yes','No')))
-
14 /
-
-
Table created.
-
-
SQL>
-
-
-
-
Thank you for your response we know think its the order in which we have created the tables.
Thanks
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.
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
Kindly Post Your Code That You Are Working On.
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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. ...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
| |