ORA-00922
I am getting the following error ORA-00922 when create table with following
CREATE TABLE XX1(
A1 NUMBER ,
A2 VARCHAR2(10)
partition by list (a2)
SUBPARTITION BY HASH(a1)
SUBPARTITIONS 3
partition P1 values ('1-10CSM' ),
partition P2 values ('1-10DML' ),
partition P3 values ('1-10HSH' ))
Thanks,
MR
From oracle docs:--
SUBPARTITIONS quantity Specify the default number of subpartitions in each partition of table, and optionally one or more tablespaces in which they are to be stored.The default value is 1. If you omit both this clause and subpartition_template, then the database will create each partition with one hash subpartition unless you subsequently specify the partition_level_subpartition clause.
Restriction on Hash Subpartitioning
* In addition to the restrictions for composite partitioning in general (see composite_partitioning ), for hash subpartitioning in subpartition_template, you cannot specify the list_values_clause.* >
for hash subpartitioning in subpartition_template, you cannot specify the list_values_clause
Refer to [http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1069995400346377652]
Anand
Edited by: Anand... on Apr 7, 2009 6:28 PM
Added Asktom link
Similar Messages
-
ORA - 00922 Missing or Invalid option error while creating table
I am tryin to create a table with the following syntax
1 CREATE TABLE TEST_FOR_SCRIPT (
2 TEST_A NUMBER NOT NULL
3 ,TEST_B VARCHAR2(30) DEFAULT 'UNDEFINED' NOT NULL
4 )
5* @storage_parms_table_cmn
6 /
@storage_parms_table_cmn
ERROR at line 5:
ORA-00922: missing or invalid option
Here, storage_parms_table_cmn.sql reads like this
tablespace DBK_CMN_DATA
Can anyone please guide me how to overcome this error.What is your Oracle Version?
i can do it exactly what you did without error
sql> CREATE TABLE vd.TEST_FOR_SCRIPT (
2 TEST_A NUMBER NOT NULL
3 ,TEST_B VARCHAR2(30) DEFAULT 'UNDEFINED' NOT NULL
4 )
5 @test1.sql
6 /
Table created.
Cheers
http://fiedizheng.blogspot.com/ -
IFS Install (Config) Fails with "ORA-00922: missing or invalid option"
Greetings:
Thanks for your help in advance...
Towards the end of IFS installation, I get the following error in my
IfsConfigOut.log file (This happens towards the end of the installation). I
am Installing IFS on Oracle 9i (9.0.1.1 version) instance on Win 2K (P-III,
800Mhz, 512Mb) . After this installation error, all the 9iFS directories
and nodes are detected under OEM but when I start the domain I get no
response for the same.
ConfigOut File pasted below
CONFIGURATION: SCHEMA CREATION TYPE
Configuring Oracle Internet File System 9.0.1.1.0 configuration started on:
Mon May 20 09:45:28 GMT+05:30 2002
saving user configuration settings to file:
saving:E:\oracle\ora90\9ifs\settings\oracle\ifs\installer\properties\IfsConf
ig.properties
saving:
E:\oracle\ora90\9ifs\settings\oracle\ifs\server\properties\IfsDefault.proper
ties
Old schema name in IfsDefault.properties file = ifssys
New schema name pointing to now = IFSSYS
Create Schema = true
Upgrading Schema = false
Pointing to same schema as the old entry in IfsDefault.properties file =
true
Checking DC entries
RUN DC = true
Adding section for DC as there does not exist a section already
Checking Node entries
RUN NODE = true
Adding Node section = Node
saving: E:\oracle\ora90\9ifs\settings\Node.def
saving: E:\oracle\ora90\9ifs\settings\HttpNode.def
saving: E:\oracle\ora90\9ifs\settings\DomainController.def
executing command:
Empty command. Not executing
executing command:
Empty command. Not executing
executing command:
Empty command. Not executing
creating database user (schema): IFSSYS
java.sql.SQLException: ORA-00922: missing or invalid option
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, Compiled
Code)
at oracle.jdbc.oci8.OCIDBAccess.executeFetch(OCIDBAccess.java, Compiled
Code)
at oracle.jdbc.oci8.OCIDBAccess.parseExecuteFetch(OCIDBAccess.java,
Compiled Code)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java,
Compiled Code)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java,
Compiled Code)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
, Compiled Code)
at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java,
Compiled Code)
at oracle.ifs.utils.sql.SQLCommands.createUser(SQLCommands.java:352)
at
oracle.ifs.installer.IfsConfiguration$CreateSchemaAction.createIfsSchema(Ifs
Configuration.java:546)
at
oracle.ifs.installer.IfsConfiguration$CreateSchemaAction.perform(IfsConfigur
ation.java:476)
at oracle.ifs.utils.action.ActionQueue.performActions(ActionQueue.java,
Compiled Code)
at oracle.ifs.utils.action.ActionQueue.run(ActionQueue.java:230)
at java.lang.Thread.run(Thread.java:479)
recording that configuration failed
saving:E:\oracle\ora90\9ifs\settings\oracle\ifs\installer\properties\IfsConf
ig.properties
iFS configuration failed; the following error occurred:
oracle.ifs.utils.action.ActionFailedException: java.sql.SQLException:
ORA-00922: missing or invalid option
at
oracle.ifs.installer.IfsConfiguration$CreateSchemaAction.perform(IfsConfigur
ation.java:526)
at oracle.ifs.utils.action.ActionQueue.performActions(ActionQueue.java,
Compiled Code)
at oracle.ifs.utils.action.ActionQueue.run(ActionQueue.java:230)
at java.lang.Thread.run(Thread.java:479)
configuration failed on Mon May 20 09:45:35 GMT+05:30 2002Problem is Fixed !!!
We were having this problem because IFS installation was not recognising a separate tablespace which we created for IFS, so we started using default USERS tablespace after which the installation was successful.
Thanks. -
ORA-00922: missing or invalid option
I am using oracle 10g datbase.
and trying to create a list of tables of 300 tables - a sampel is given below
CREATE TABLE "SCHM1"."HOLIDAYS"
( "DATE" DATE NOT NULL ENABLE,
"DESCR" VARCHAR2(40),
"EXTRA_HOURS" NUMBER(2,0),
"HOLIDAY_GROUP" VARCHAR2(5) NOT NULL ENABLE,
"CREATED_BY" VARCHAR2(12),
"CREATED_ON" DATE,
"AMENDED_BY" VARCHAR2(12),
"AMENDED_ON" DATE,
CONSTRAINT "BANK_HOLIDAYSP1" PRIMARY KEY ("DATE", "HOLIDAY_GROUP")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "SCHM1_REF_INDEXES1" ENABLE
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "SCHM1_REF_DATA1"
CREATE TABLE "SCHM1"."LODGEMENT"
( "BANK_LODGEMENT" NUMBER(10,0) NOT NULL ENABLE,
"LODGEMENT_SLIP" NUMBER(12,0),
"BRANCH" NUMBER(4,0),
"EMPLOYEE" VARCHAR2(12),
"LODGEMENT_DATIM" DATE,
"SYS_DATIM" DATE,
"TILL_DAT" DATE,
"POSTED_FLG" VARCHAR2(1),
"EMERGENCY_FLG" VARCHAR2(1),
"CREATED_BY" VARCHAR2(12),
"CREATED_ON" DATE,
"AMENDED_BY" VARCHAR2(12),
"AMENDED_ON" DATE,
"LODGEMENT_GRP" NUMBER,
CONSTRAINT "BANK_LODGEMENTP1" PRIMARY KEY ("BANK_LODGEMENT")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "SCHM1_INDEXES10" ENABLE
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "SCHM1_DATA10"
when I executed this in sql window i get the error:
ORA-00922: missing or invalid option
when I run it from command prompt ,
i get error like
SP2-0734: unknown command beginning "USING INDE..." - rest of line ignored.
SP2-0734: unknown command beginning "STORAGE(IN..." - rest of line ignored.
SP2-0734: unknown command beginning "PCTINCREAS..." - rest of line ignored.
SP2-0734: unknown command beginning "TABLESPACE..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
and it doesn't create the table. CAn someone let em know how I to create log of errors on execution so taht the session can be resumed and also
help me in finding the error in this.
Cheers
Edited by: user1000979 on 02-Sep-2009 06:50Hi!
there is just missing a sql terminator between the statements ...
it is not a internal sql language ...
i have no problems when execute it in sql*plus.
tested with oracle 8i and XE
CREATE TABLE "SCHM1"."HOLIDAYS"
( "DATE" DATE NOT NULL ENABLE,
"DESCR" VARCHAR2(40),
"EXTRA_HOURS" NUMBER(2,0),
"HOLIDAY_GROUP" VARCHAR2(5) NOT NULL ENABLE,
"CREATED_BY" VARCHAR2(12),
"CREATED_ON" DATE,
"AMENDED_BY" VARCHAR2(12),
"AMENDED_ON" DATE,
CONSTRAINT "BANK_HOLIDAYSP1" PRIMARY KEY ("DATE", "HOLIDAY_GROUP")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "SCHM1_REF_INDEXES1" ENABLE
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "SCHM1_REF_DATA1"
CREATE TABLE "SCHM1"."LODGEMENT"
( "BANK_LODGEMENT" NUMBER(10,0) NOT NULL ENABLE,
"LODGEMENT_SLIP" NUMBER(12,0),
"BRANCH" NUMBER(4,0),
"EMPLOYEE" VARCHAR2(12),
"LODGEMENT_DATIM" DATE,
"SYS_DATIM" DATE,
"TILL_DAT" DATE,
"POSTED_FLG" VARCHAR2(1),
"EMERGENCY_FLG" VARCHAR2(1),
"CREATED_BY" VARCHAR2(12),
"CREATED_ON" DATE,
"AMENDED_BY" VARCHAR2(12),
"AMENDED_ON" DATE,
"LODGEMENT_GRP" NUMBER,
CONSTRAINT "BANK_LODGEMENTP1" PRIMARY KEY ("BANK_LODGEMENT")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "SCHM1_INDEXES10" ENABLE
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "SCHM1_DATA10"
/Regards -
ORA-00922: missing or invalid option in create seq, trigger
Hi All,
I am trying to create a table, sequence, and trigger with the following SQL and am getting the error:
ORA-00922: missing or invalid option
CREATE TABLE "DATA_INVENTORY"
( "ID" INTEGER NOT NULL ENABLE,
"COE_CONTRACT_NUM" VARCHAR2(30),
"PROJ_AREA" VARCHAR2(30),
"STATE" VARCHAR2(30),
"DATA_DATE" VARCHAR2(30) NOT NULL ENABLE,
"NUM_OF_MEDIA" NUMBER,
"DATA_TYPE" VARCHAR2(30)NOT NULL ENABLE,
"MEDIA_TYPE" VARCHAR2(30)NOT NULL ENABLE,
"EXTERNAL_DRIVE_DESCR" VARCHAR2(200),
"ROOM_NUM" VARCHAR2(10)NOT NULL ENABLE,
"DRAWER_NUM" VARCHAR2(30),
"PROJ_CODE" VARCHAR2(30),
"COMPANY" VARCHAR2(30),
"DESCRIPTION" VARCHAR2(200),
"NOTES" VARCHAR2(500),
"INDEX" VARCHAR2(30),
"INDEX_LINK" VARCHAR2(75),
"DATA_LINK" VARCHAR2(75),
"METADATA" VARCHAR2(75),
"METADATA_LINK" VARCHAR2(75),
"DISTRIBUTE" VARCHAR2(30)NOT NULL ENABLE,
"CORPORATE" VARCHAR2(1)NOT NULL ENABLE,
CONSTRAINT "DATA_INVENTORY_PK" PRIMARY KEY ("ID") ENABLE,
CONSTRAINT "DATA_INVENTORY_UK1" UNIQUE ("COE_CONTRACT_NUM", "PROJ_AREA") ENABLE
CREATE SEQUENCE "DATA_INVENTORY_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 324 CACHE 20 NOORDER NOCYCLE
CREATE OR REPLACE TRIGGER "BI_DATA_INVENTORY"
before insert on "DATA_INVENTORY"
for each row
begin
select "DATA_INVENTORY_SEQ".nextval into :NEW.ID from dual;
end;
ALTER TRIGGER "BI_DATA_INVENTORY" ENABLE
Does anyone see anything wrong with this?
The create table part is alright but when I add the create sequence etc it causes the error
Thanks,
KirkHello Kirk,
Your code work likes a charm. Check your privileges for creating sequences and triggers.
Greetings,
Roel
http://roelhartman.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.logica.com/ -
ORA-00922 error when user calls sys.verify_function from forms
Hi there,
I have a form to change the user's current password.
After user provides new password and clicks on OK button, it calls a database procedure called "change_pwd" which calls the Alter command.
I modified the SYS.verify_function, which has the code
-- rule Passwords can only contain A-Z, 0-9, _
violate_rule_five := FALSE;
FOR v_char IN 1 .. lv_pwd_len
LOOP
v_this_char := UPPER (SUBSTR (PASSWORD, v_char, 1));
IF ( ((v_this_char >= 'A') AND (v_this_char <= 'Z'))
OR ((v_this_char >= '0') AND (v_this_char <= '9'))
OR (v_this_char = '_')
THEN
violate_rule_five := FALSE;
ELSE
violate_rule_five := TRUE;
GOTO violrule5;
END IF;
END LOOP;
<<violrule5>>
IF violate_rule_five = TRUE
THEN
raise_application_error (-20600, lv_error_msg);
END IF;When i try to change the password to 'blah-blah1' i expect it to show be error 20600. But instead shows ORA-00922.
Why is this happening?
All other rules in the verify_function are working correctly.
Please help.
I added the [ code ] tags to make the code easier to read.
Message was edited by:
Jan CarlinI have noticed just now that a dump file having a name like ifrun60_dump_299, is generated by FORMS every time I issue the aborted call to the foreign function.
Inside the form dump file, apart from useless info like Registers and so on, the message:
"Could not find Module32First"
By a FILE/FIND/CONTAINING TEXT I searched all the DLLs, and I noticed that Module32First is a routine that can be found within each of the following DLLs:
Cl32
d2kwut32
d2kwut60
I tried to load those DLLs along with SECURSIGN.DLL by modifying the PROCEDURE LoadLibrary into the FFI-generated PLL code, and I have apparently no problem in loading all the DLLs that I wish, but the error persists, and that dump file is constantly generated, always looking for the "Module32First" routine.
How can I avoid all that mess and the FRM-40734 error?? -
Ora-00922 when building a model with Oracle Data Miner
Hi,
i'm using Oracle Data Miner 10.1.0.2 with Database 10.1.0.3.0 under Linux x86.
The specific patch 10.1.0.3.1 for Data Mining was applied because i didn't manage to execute the models in the tutorial.
So all were fine, and i succeded creating my own models and i executed them.
But few months later, i.e now, i'm trying to build som other models but when building i have again the ora - 00922 : missing or invalid option
I tried applying once again the patch but no effect !
Is anyone ever faced this problem !?
EricHi Xiafang,
the database were not upgraded but used to build some ETL mappings.
Here are the results of the SQL statements u gave me
SQL> connect / as sysdba
Connected.
SQL> select value from v$option where parameter like '%Data Minin%';
VALUE
TRUE
FALSE
SQL> select comp_id, version, status from dba_registry;
COMP_ID VERSION STATUS
WK 10.1.0.3.0 VALID
EM 10.1.0.3.0 VALID
XDB 10.1.0.3.0 VALID
AMD 10.1.0.3.0 VALID
CONTEXT 10.1.0.3.0 VALID
SDO 10.1.0.3.0 VALID
ORDIM 10.1.0.3.0 VALID
EXF 10.1.0.3.0 VALID
OWM 10.1.0.2.0 VALID
ODM 10.1.0.3.1 VALID
CATALOG 10.1.0.3.0 VALID
COMP_ID VERSION STATUS
CATPROC 10.1.0.3.0 VALID
JAVAVM 10.1.0.3.0 VALID
XML 10.1.0.3.0 VALID
CATJAVA 10.1.0.3.0 VALID
APS 10.1.0.3.0 VALID
XOQ 10.1.0.3.0 VALID
Is the DM option enabled, i think yes but the SQL answer TRUE and FALSE.
So, should i enable DM with the commands u gave me ?
Eric -
I'm having trouble running a script that I created by using the Generate Create Script tool in Oracle Explorer. I created the following script by running the Generate Create Script on a table called, "ASPNET_APPLICATIONS":
CREATE TABLE "DEV"."ASPNET_APPLICATIONS" ("APPLICATIONID" NUMBER,"APPLICATIONNAME" VARCHAR2(256 BYTE),"DESCRIPTION" VARCHAR2(256 BYTE)) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 65536 MAXEXTENTS 2147483645 MINEXTENTS 1 )
CREATE UNIQUE INDEX "DEV"."PK_APPS" ON "DEV"."ASPNET_APPLICATIONS" ("APPLICATIONID" ) TABLESPACE "USERS"
CREATE UNIQUE INDEX "DEV"."IDX_APPS_APPNAME" ON "DEV"."ASPNET_APPLICATIONS" (LOWER(TRIM("APPLICATIONNAME")) ) TABLESPACE "USERS"
ALTER TABLE "DEV"."ASPNET_APPLICATIONS" ADD ( CONSTRAINT "SYS_C004598" CHECK ("APPLICATIONNAME" IS NOT NULL) ENABLE VALIDATE )
ALTER TABLE "DEV"."ASPNET_APPLICATIONS" ADD ( CONSTRAINT "SYS_C004597" CHECK ("APPLICATIONID" IS NOT NULL) ENABLE VALIDATE )
I then deleted the table in my Oracle 10g database and ran the above script to recreate the table. The result is that I get an error the following error, ORA-00922: missing or invalid option. Does anyone know how to resolve this?
Is anyone aware of any bugs in the Generate Create Script option of Oracle Explorer?Okay, I think I found my problem.
I was trying to run the script created by Oracle Explorer directly from a Database project I added to my Solution in Visual Studio. Visual Studio is probably using some SQL Server specific tool when I select the Run or Run On option on the script.
When running the same script directly in the Oracle 10g Home Page (Home > SQL > SQL Scripts), I had no problem. Everything executes correctly.
Is anyone aware of another way to run Oracle scripts directly from Visual Studio? Do I have my project setup incorrectly? This is the first project I've used .NET and Oracle together, so if anyone has any suggestions, I'd really appreciate the help.
Thanks,
Mycole -
Anyone to help with this problem: ora-00922 : missing or invalid option
I am trying to call a function that i wrote.
PS: i am new to oracle functions.
The purpose of this function is to display each item with its suppliers displayed in a record. I hope what i wrote in my function is close to what i am trying to get as a result.
Here what i run:
CREATE TYPE ind_tab_supplier0 AS OBJECT
(ITP_SUPPLIER_CODE VARCHAR2(50),
ITP_SUPPLIER_NAME VARCHAR2(50));
CREATE TYPE ind_tab_supplier1 IS VARRAY(6) OF VARCHAR2(30);
CREATE TYPE ind_tab_supplier_table AS TABLE OF ind_tab_supplier1;
than i tried to execute the following function but it gave me the error
"ora-00922 : missing or invalid option". If anyone could tell me what is wrong with it:
CREATE OR REPLACE CSRDBA."GET_SUPPLIERS" (itemCode IN
ref_item.itm_id%TYPE) RETURN ind_tab_supplier_table PIPELINED
IS
TYPE ref0 IS REF CURSOR;
cur0 ref0;
TYPE ref1 IS REF CURSOR;
cur1 ref1;
out_rec0 ind_tab_supplier0
:= ind_tab_supplier0(NULL,NULL);
out_rec1 ind_tab_supplier1
:= ind_tab_supplier1(NULL);
BEGIN
v_itemCode := itemCode;
OPEN cur0 FOR
' select t.ven_id , (select s.ven_name from ref_ven_vendor s '||
'where s.ven_id = t.ven_id)
"supplier_name" '||
' from ref_item_vendor t where t.itm_id = :1 '
USING v_itemCode;
LOOP
FETCH cur0 INTO out_rec0.itp_supplier_code,
out_rec0.itp_supplier_name;
IF cur0%NOTFOUND THEN
RETURN;
END IF;
out_rec1.ind_tab_supplier1.extend;
out_rec1.ind_tab_supplier1(out_rec1.ind_tab_supplier1.count) :=
out_rec0.itp_supplier_code;
out_rec1.ITP_SUPPLIER.extend;
out_rec1.ITP_SUPPLIER(out_rec1.ITP_SUPPLIER.count) :=
out_rec0.itp_supplier_name;
END LOOP;
PIPE ROW(out_rec1);
CLOSE cur0;
RETURN;
END GET_SUPPLIERS;
At the end what i want to do is to run the following query if possible:
select item_code, item_name, GET_SUPPLIERS( item_code )
from item_table
Thank you in advance for your help.Hi,
Try this :
While creating TYPE remove semi colon from end of the statement and also dont use extra / as / means execute last statement so you may encounter error..
CREATE TYPE ind_tab_supplier1 IS VARRAY(6) OF VARCHAR2(30)
/ -
Hi,
I use Oracle Data Miner10.1.0.1(Build179),
Database Version:10.1.0.2.0 Enterprise Edition with Companion Products installed(Installation Type is Data Warehouse).
At first I finished the ODM tutorial successfully. But now, when I tried to build a classification model of any type, I got error:ORA-00922. Anybody know how to fix it? ThanksHi Mark,
The full error is: ORA-00922: missing or invalid option. No more message available.
Yes I'm also surprised by such error. I'm sure that the error message is thrown by the db server. But the original cause is at the client side. Maybe it has something to do with the Character Set, Language or other settings.
All settings of dataminers are identical(they are copied from the same place). But maybe the registries, pathes, and some other system variables are different. I don't know which caused the error. My Linux OS is English Version. All Windows OS is Chinese Version. What's more strange is that I has used ODMiner on my computer successfully previously, but now I get error. Before I got error, I installed serveral other Oracle software, including OracleBI10g Realease2.
What tuturoial table are you using to build your model?I was using Mining_Data_Build to build my model.
Thanks -
Ora-00922 error in Runtime assistant
OWB : OWB10g,
Oracle : Oracle10g,
OS : Windows XP
I have installed OWB10g on the same machine as Oracle10g but in separate oracle homes. I have successfully run OWB Repository assistant. In Runtime Assistant after giving inputs in all the pages ie after coming to summary page when I press finish it gives ORA-0922 { You must enter a valid user name ).
All the usernames are valid. I tried giving all the usernames and password in upper case, even that doesnt help. I created users for runtime and access user in oracle and in owb chose the option for using existing user but still I get this error.
Any idea, what am I missing ??Hi,
I too am experiencing this error when trying to configure a repository. I enter all the SYS details and for the OWB a/c. There was mention of invalid characters in the password , we use '-' , would this cause a problem.
Also, I am using an Oracle XE database for the repository, is there any limitation on this? Or do I need a full 10g instance?
Many thanks
Gary Revell. -
SET TERMOUT OFF
SET VERIFY OFF
SET HEADING OFF
SET TIMING OFF
SET PAGESIZE 0
SET LINES 800
SET FEEDBACK OFF
SET ECHO OFF
spool &1
SELECT '"'
|| RDW.RDW_MONTH_V.YEAR_NUMBER
|| '","'
|| RDW.RDW_MONTH_V.MONTH_NUMBER
|| '","'
|| SELLING_BRANCH_LOV.DIVISION_CODE
|| '","'
|| SELLING_BRANCH_LOV.GL_BRANCH_NAME
|| '","'
|| RDW_SDM_CUST_D_CURR_CENTRAL_V.CENTRAL_CUSTOMER_NUMBER
|| '","'
|| RDW_SDM_CUST_D_CURR_CENTRAL_V.CENTRAL_CUSTOMER_NAME
|| '","'
|| RDW_SDM_CUST_D_ORIG_SHIP_TO_V.ORIG_SHIP_TO_CUSTOMER_NUMBER
|| '","'
|| RDW_SDM_CUST_D_ORIG_SHIP_TO_V.ORIG_SHIP_TO_CUSTOMER_NAME
|| '","'
|| RDW_SDM_CUST_D_ORIG_SHIP_TO_V.CUSTOMER_CITY
|| '","'
|| RDW_SDM_CUST_D_ORIG_SHIP_TO_V.CUSTOMER_STATE
|| '","'
|| RDW_SDM_CUST_D_ORIG_SHIP_TO_V.CUSTOMER_ZIP
|| '","'
|| CUSTOMER_CLASS_CURR_CENTRAL.R1_PRIMARY_CUSTOMER_TYPE
|| '","'
|| CUSTOMER_CLASS_CURR_CENTRAL.R2_CUSTOMER_SUBTYPE
|| '","'
|| CUSTOMER_CLASS_CURR_CENTRAL.R3_CUSTOMER_SIZE
|| '","'
|| CUSTOMER_CLASS_CURR_CENTRAL.R4_CUSTOMER_MARKET
|| '","'
|| RDW_COMMON_VENDOR_D.COMMON_VENDOR_CODE
|| '","'
|| RDW_COMMON_VENDOR_D.VENDOR_NAME
|| '","'
|| RDW_SDM_ORDER_TYPE_D.STOCK_OR_DIRECT
|| '","'
|| SUM(RDW_SDM_SALES_F_SV.EXTD_SALES_PRICE)
|| '","'
|| SUM(RDW_SDM_SALES_F_SV.EXTD_MKTG_RPT_GP)
||'"' ctl
FROM
RDW.RDW_MONTH_V,
RDW_BRANCH_D_LOV SELLING_BRANCH_LOV,
RDW_SDM_CUST_D_CURR_CENTRAL_V,
RDW_SDM_CUST_D_ORIG_SHIP_TO_V,
RDW_SDM_CUSTOMER_CLASS_D CUSTOMER_CLASS_CURR_CENTRAL,
RDW_COMMON_VENDOR_D,
RDW_SDM_ORDER_TYPE_D,
RDW_SDM_SALES_F_SV,
RDW_BRANCH_D SELLING_BRANCH
WHERE
( RDW_SDM_SALES_F_SV.DW_MONTH_ID=RDW.RDW_MONTH_V.DW_MONTH_ID )
AND ( RDW_SDM_SALES_F_SV.DW_COMMON_VENDOR_ID=RDW_COMMON_VENDOR_D.DW_COMMON_VENDOR_ID )
AND ( RDW_SDM_ORDER_TYPE_D.DW_ORDER_TYPE_ID=RDW_SDM_SALES_F_SV.DW_ORDER_TYPE_ID )
AND ( RDW_SDM_SALES_F_SV.SSO_ID= '570001109' )
AND ( RDW_SDM_SALES_F_SV.DW_SELLING_BRANCH_ID=SELLING_BRANCH.DW_BRANCH_ID )
AND ( SELLING_BRANCH.BRANCH_CODE=SELLING_BRANCH_LOV.BRANCH_CODE )
AND ( RDW_SDM_CUST_D_ORIG_SHIP_TO_V.DW_CUSTOMER_ID=RDW_SDM_SALES_F_SV.DW_ORIG_SHIP_TO_CUSTOMER_ID )
AND ( RDW_SDM_CUST_D_CURR_CENTRAL_V.DW_CUSTOMER_ID=RDW_SDM_SALES_F_SV.DW_CURR_CENTRAL_CUSTOMER_ID )
AND ( CUSTOMER_CLASS_CURR_CENTRAL.CUSTOMER_CLASS_CODE(+)=RDW_SDM_CUST_D_CURR_CENTRAL_V.NEW_CUSTOMER_CLASS_CODE )
AND
RDW.RDW_MONTH_V.YEAR_NUMBER IN ( 2011 )
GROUP BY
RDW.RDW_MONTH_V.YEAR_NUMBER,
RDW.RDW_MONTH_V.MONTH_NUMBER,
SELLING_BRANCH_LOV.DIVISION_CODE,
SELLING_BRANCH_LOV.GL_BRANCH_NAME,
RDW_SDM_CUST_D_CURR_CENTRAL_V.CENTRAL_CUSTOMER_NUMBER,
RDW_SDM_CUST_D_CURR_CENTRAL_V.CENTRAL_CUSTOMER_NAME,
RDW_SDM_CUST_D_ORIG_SHIP_TO_V.ORIG_SHIP_TO_CUSTOMER_NUMBER,
RDW_SDM_CUST_D_ORIG_SHIP_TO_V.ORIG_SHIP_TO_CUSTOMER_NAME,
RDW_SDM_CUST_D_ORIG_SHIP_TO_V.CUSTOMER_CITY,
RDW_SDM_CUST_D_ORIG_SHIP_TO_V.CUSTOMER_STATE,
RDW_SDM_CUST_D_ORIG_SHIP_TO_V.CUSTOMER_ZIP,
CUSTOMER_CLASS_CURR_CENTRAL.R1_PRIMARY_CUSTOMER_TYPE,
CUSTOMER_CLASS_CURR_CENTRAL.R2_CUSTOMER_SUBTYPE,
CUSTOMER_CLASS_CURR_CENTRAL.R3_CUSTOMER_SIZE,
CUSTOMER_CLASS_CURR_CENTRAL.R4_CUSTOMER_MARKET,
RDW_COMMON_VENDOR_D.COMMON_VENDOR_CODE,
RDW_COMMON_VENDOR_D.VENDOR_NAME,
RDW_SDM_ORDER_TYPE_D.STOCK_OR_DIRECT
SPOOL OFF
EXIT
wat can be the error...ii am stuckOracle is usually pretty good with giving you a line number and an error message.
You've posted 1/2 of that information here.
Really though, this is troubleshooting 101 ... break down the query, get a simple simple version of it working and then start adding pieces in. When it stops working you've found the problem. That of course is assuming the line number reported by Oracle isn't bang on to begin with.
This is a skill that's rather important to possess in this line of work. -
hi all
i facing Ora-00604.
before this error i am got
ORA-12638: Credential retrieval failed
Release 10.1.0.2.0 - Production on Tue Aug 15 17:11:27 2006 on Win2003Server
then after i check Alert_orcl.log file and find Ora-00604 error
last few lines of Alert_orcl.log file
Tue Aug 15 16:53:01 2006
Errors in file d:\oracle\product\10.1.0\admin\orcl\udump\orcl_ora_2888.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-00922: missing or invalid option
ORA-06512: at line 2
Tue Aug 15 16:55:42 2006
Errors in file d:\oracle\product\10.1.0\admin\orcl\udump\orcl_ora_3332.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-00922: missing or invalid option
ORA-06512: at line 2
Tue Aug 15 17:01:26 2006
Errors in file d:\oracle\product\10.1.0\admin\orcl\udump\orcl_ora_3312.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-00922: missing or invalid option
ORA-06512: at line 2
then Oracle Expert What should i do for correct this error..
reply plz.
(Testing Enviorments)
regards
Mohammadi
Message was edited by:
Mohammadi52hi dear aijaz
i am search ora-00604 error in oracle documentation. and the solution is check and start tracing. ok
and also i am try to connect through OEM and i am successfully connected through OEM.
and still through sqlplus i got error.
then i restart my PC after restart i am able to connect through sqlplus.
but dear i still get error as scott /tiger user...but error is
SQL> conn scott/tiger
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-00922: missing or invalid option
ORA-06512: at line 2
and i am also check in oracle doc.. solution is Call Oracle Support.
i want ur comment and all member..
thanx for reply
regards
Mohammadi52 -
Dear all,
10.2.0.2 on linux
We are getting the below error in alert log and synchronization stopped
ORA-00922: missing or invalid option
Tue Oct 11 20:40:41 2011
PRMX: Alter session failed: ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16025: parameter LOG_ARCHIVE_DEST_2 contains repeated or conflicting attributes
ORA-16154: suspect attribute: LGWR
ORA-00922: missing or invalid option
Tue Oct 11 20:40:41 2011
Errors in file /u01/PROD/db/tech_st/10.2.0/admin/PROD_dbprod/bdump/prod_j000_23657.trc:
ORA-16025: parameter LOG_ARCHIVE_DEST_2 contains repeated or conflicting attributes
ORA-16154: suspect attribute: LGWR
ORA-00922: missing or invalid option
Tue Oct 11 20:40:41 2011
PRMX: Alter session failed: ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16025: parameter LOG_ARCHIVE_DEST_2 contains repeated or conflicting attributes
ORA-16154: suspect attribute: LGWR
ORA-00922: missing or invalid optionparameters :
SQL> show parameter log
NAME TYPE VALUE
audit_syslog_level string
db_create_online_log_dest_1 string
db_create_online_log_dest_2 string
db_create_online_log_dest_3 string
db_create_online_log_dest_4 string
db_create_online_log_dest_5 string
log_archive_config string DG_CONFIG=(PROD,PROD_STDBY)
log_archive_dest string
log_archive_dest_1 string LOCATION=/u01/PROD/db/Archive
MANDATORY
log_archive_dest_10 string
NAME TYPE VALUE
log_archive_dest_2 string SERVICE=PROD_STDBY LGWR ASYNC
VALID_FOR=(ONLINE_LOGFILES,PRI
MARY_ROLE) REOPEN=15 NET_TIMEO
UT=30 DB_UNIQUE_NAME=PROD_STDB
Y
log_archive_dest_3 string
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
log_archive_dest_8 string
NAME TYPE VALUE
log_archive_dest_9 string
log_archive_dest_state_1 string enable
log_archive_dest_state_10 string enable
log_archive_dest_state_2 string enable
log_archive_dest_state_3 string enable
log_archive_dest_state_4 string enable
log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable
log_archive_dest_state_9 string enable
NAME TYPE VALUE
log_archive_duplex_dest string
log_archive_format string %t_%s_%r.dbf
log_archive_local_first boolean TRUE
log_archive_max_processes integer 2
log_archive_min_succeed_dest integer 1
log_archive_start boolean FALSE
log_archive_trace integer 0
log_buffer integer 15276032
log_checkpoint_interval integer 100000
log_checkpoint_timeout integer 1200
log_checkpoints_to_alert boolean TRUE
NAME TYPE VALUE
log_file_name_convert string
logmnr_max_persistent_sessions integer 1
remote_login_passwordfile string EXCLUSIVEAny idea what am missing ?
KaiKaiS wrote:
Dear all,
10.2.0.2 on linux
We are getting the below error in alert log and synchronization stopped
ORA-00922: missing or invalid option
Tue Oct 11 20:40:41 2011
PRMX: Alter session failed: ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16025: parameter LOG_ARCHIVE_DEST_2 contains repeated or conflicting attributes
SQL> show parameter log
log_archive_dest_2 string SERVICE=PROD_STDBY LGWR ASYNC
VALID_FOR=(ONLINE_LOGFILES,PRI
MARY_ROLE) REOPEN=15 NET_TIMEO
UT=30 DB_UNIQUE_NAME=PROD_STDB
YAny idea what am missing ?
KaiHi,
Try change the log_archive_dest_2
SQL > alter system set log_archive_dest_2 = 'SERVICE="PROD_STDBY", LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PROD_STDBY';Cheers -
I'm trying to execute an SQL file with the following code:
create table "t_ap_xml"
"XML_ID" NUMBER,
"XML_NAME" VARCHAR2(128),
"XML_TYPE" VARCHAR(32),
"XML_CONTENT" "SYS"."XML_TYPE",
"XML_DESCRIPTION" VARCHAR2(4000)
..And i'm receiving the following error:
ERROR at line 8:
ORA-00911: invalid character
It is pointing to the semicolon as the problem. If i remove the semicolon, it seems to work. But if I place that code in a DDL with other create table commands, it gives me a ORA-00922 error at the line with the next create statement. Any ideas? Thanks.I guess I should have been a bit more clear..
I am using SQL*Plus, and GET-ing a text .sql file made in a text editor.
It seems to work without the semicolon and only creating that single table. However, a problem occurs when trying to use multiple CREATE TABLE statements in the same sql file.
So for example.. here is an excerpt:
create table t_ap_xml
create table another_table
Generates the following error:
ORA-00922: missing or invalid option
..That error occurs on the line in which the second CREATE TABLE statement was issued.
Thanks for any help!
Maybe you are looking for
-
Cloud with Proxies - Proof and solution
Hi all, I've struggled with this issue for a while, and read many similar posts from those having the same issue. I have found a solution that worked for me and hopefully others. Essentially, although the Application Manager and other utilities appea
-
can't access itunes store. no error message but store won't open at all. any ideas? thanks
-
I have a FM file which contains several referenced .eps files. The words in the graphics display quite normally in the FM file, however, some of the letters disappear in the converted PDF file. They are not missing as cropped, but missing here and th
-
DNxHD 709 Files with Media Encoder
I have mutliple MOV Files with this codec. I have to export them as MXF (XDCAM). Media Encoder can not handle this color space so my black level is to high. Is there a way to get it right there or must I go through Premiere or AE to adjust the levels
-
Please help! 1. When i upgrade my nokia software from 12.0.013 to 20.0.015, the horizontal slider ( for music and galleries ) don`t go to the menu for gallery, but it stays on the basic menu. Is any possibility to fix or repair this. 2. Where can i f