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,
Kirk
Hello 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/
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 -
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)
/ -
While creating Table it shows error as 'missing or invalid option
I had log on to ap/ap@vis in sqlplus and try to create table but showing error.....here below is the table
Create table Purchase_Order
(Item varchar2(10),
Item_Desc varchar2(100),
Item_Cost Number(7),
Item_Qty Number(7),
Item_Date Date,
Need_by_date date,
Last_updated_date date,
last_updated_by number(10),
creation_date date,
created_by number(10),
Attributed_category varchar2(100),
attribute1 varchar2(100),
attribute2 varchar2(100),
attribute3 varchar2(100),
attribute4 varchar2(100),
attribute5 varchar2(100),
attribute6 varchar2(100));
But it showing error as ORA-00922:missing or invalid optionIt works for me
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> Create table Purchase_Order
2 (Item varchar2(10),
3 Item_Desc varchar2(100),
4 Item_Cost Number(7),
5 Item_Qty Number(7),
6 Item_Date Date,
7 Need_by_date date,
8 Last_updated_date date,
9 last_updated_by number(10),
10 creation_date date,
11 created_by number(10),
12 Attributed_category varchar2(100),
13 attribute1 varchar2(100),
14 attribute2 varchar2(100),
15 attribute3 varchar2(100),
16 attribute4 varchar2(100),
17 attribute5 varchar2(100),
18 attribute6 varchar2(100));
Table created.
SQL> -
Failed to create DNS with ODBC Datadirect Driver - error missing or invalid option
Dear All,
I tried to post a first time and get my post thrown away. So please just tell me if that's not the place to post such questions. I tried this forum because I didn't find any revelant information yet on internet.
I installed Informatica and Oracle 11g, tried to create my DSN with the Driver DataDirect Oracle Wire Protocol. I keep bumping into the message " [Informatica][ODBC Oracle wire protocol driver][Oracle] ora-00922: missing or invalid option".
Can you please help to understand where the error comes from?
Here are my current status :
* My table in the Oracle database is created with every field followed by NOT NULL option, the table is successfully created.
* The connection to the Oracle database using Oracle TNSNames Connection server name and TNSNames files seem to work, I tried to connect with another driver Oracle in OraDB 11g_home1. This one succeeds.
* Listener.ora:
# listener.ora Network Configuration File: C:\app\ql186003\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\ql186003\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\ql186003\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ADR_BASE_LISTENER = C:\app\ql186003
* Running lsnrctl STATUS:
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
Start Date 22-FEB-2014 21:43:22
Uptime 0 days 1 hr. 8 min. 33 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\ql186003\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File c:\app\ql186003\diag\tnslsnr\WBEQL186003-Q4G\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "TESTDBXDB" has 1 instance(s).
Instance "testdb", status READY, has 1 handler(s) for this service...
Service "TEST_DB" has 1 instance(s).
Instance "testdb", status READY, has 1 handler(s) for this service...
Service "orcl.TD.TERADATA.COM" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB.TD.TERADATA.COM" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
Thank you very much for any guidance.
QiongHi,
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)
/ -
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 -
ORA-00026: missing or invalid session ID
I am receiving following error, while executing a procedure kill_session
EXEC kill_session('USERNAME');
4329 267 TARIQ_CORE
ORA-00026: missing or invalid session ID
create or replace
procedure kill_session (usr_2_kill in varchar2)
as
vsid number(6);
vserial number(6);
begin
for s_info in (select * from v$session where username=usr_2_kill)
loop
vsid := s_info.sid;
vserial := s_info.serial#;
dbms_output.put_line(vsid||' '||vserial||' '||usr_2_kill);
execute immediate 'alter system kill session(:v1,:v2) immediate' using vsid,vserial;
end loop;
EXCEPTION
WHEN OTHERS
THEN
dbms_output.put_line(SQLERRM);
END;malhi wrote:
I am receiving following error, while executing a procedure kill_session
EXEC kill_session('USERNAME');
4329 267 TARIQ_CORE
ORA-00026: missing or invalid session ID
create or replace
procedure kill_session (usr_2_kill in varchar2)
as
vsid number(6);
vserial number(6);
begin
for s_info in (select * from v$session where username=usr_2_kill)
loop
vsid := s_info.sid;
vserial := s_info.serial#;
dbms_output.put_line(vsid||' '||vserial||' '||usr_2_kill);
execute immediate 'alter system kill session(:v1,:v2) immediate' using vsid,vserial;
end loop;
EXCEPTION
WHEN OTHERS
THEN
dbms_output.put_line(SQLERRM);
END;
Check your syntax ... it's wrong.
TUBBY_TUBBZ?alter system kill session (99,16840);
alter system kill session (99,16840)
ERROR at line 1:
ORA-00026: missing or invalid session ID
Elapsed: 00:00:00.89
TUBBY_TUBBZ?alter system kill session '99,16840';
System altered.
Elapsed: 00:00:00.57
TUBBY_TUBBZ? -
Error During Installation: ORA-02180: invalid option for CREATE TABLESPACE
Hi all,
This is our enviroment,
Windows 2000 Service Pack 4
We are installing SAP R/3 Enterprise 4.7 Ext. 200 SR1
First we installed:
Oracle: 9.2
Patch: 9.2.0.7
SAP Central Instance
Now we are installing the DB Instance, but it gives this error:
INFO 2007-11-22 16:58:20
Working directory changed to C:\Program Files\sapinst_instdir\R3E47X2\SYSTEM\ABAP\ORA\NUC\DB.
ERROR 2007-11-22 16:58:21
CJS-00084 SQL statement or script failed.DIAGNOSIS: Error message: ORA-02180: invalid option for CREATE TABLESPACE
We are in the step 19 of 34
Create Tablespaces
Please some tips.
Regards,
ErickHi! Thanks a lot for the reply.
This is our <b>ora_sql_results.log</b>
================================================================================
2007-11-23, 07:31:09 SAPINST ORACLE start logging for
connect / as sysdba ;
set newpage 0
set space 0
set pagesize 0
set linesize 32767
set markup HTML off
set heading off
set verify off
set feedback off
set trimspool on
set sqlprompt SQL>
set termout on
set verify off
set echo off
spool ora_query3_tmp0_1.res
SELECT STATUS FROM V$INSTANCE;
spool off
exit;
Output of SQL executing program:
SQL*Plus: Release 9.2.0.7.0 - Production on Fri Nov 23 07:31:09 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected.
OPEN
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
SAPINST: End of output of SQL executing program D:\oracle\TVD\920/bin/sqlplus.
2007-11-23, 07:31:10 SAPINST ORACLE stop logging
================================================================================
2007-11-23, 07:31:10 SAPINST ORACLE start logging for
connect / as sysdba ;
CREATE TABLESPACE PSAP@SCHEMAID@ DATAFILE 'E:\oracle\TVD\sapdata4\psap@schemaid@_1\psap@[email protected]' SIZE 2000M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO ;
exit;
Output of SQL executing program:
SQL*Plus: Release 9.2.0.7.0 - Production on Fri Nov 23 07:31:10 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected.
CREATE TABLESPACE PSAP@SCHEMAID@ DATAFILE 'E:\oracle\TVD\sapdata4\psap@schemaid@_1\psap@[email protected]' SIZE 2000M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO
ERROR at line 1:
ORA-02180: invalid option for CREATE TABLESPACE
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
SAPINST: End of output of SQL executing program D:\oracle\TVD\920/bin/sqlplus.
SAPINST found errors.
SAPINST The current process environment may be found in sapinst_ora_environment.log.
2007-11-23, 07:31:10 SAPINST ORACLE stop logging
And this is <b>our alert_SID.log</b>
Dump file d:\oracle\tvd\saptrace\background\alert_tvd.log
Thu Nov 22 16:27:45 2007
ORACLE V9.2.0.7.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.0 Service Pack 4, CPU type 586
Thu Nov 22 16:27:45 2007
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SCN scheme 2
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 9.2.0.7.0.
System parameters with non-default values:
processes = 80
sessions = 96
shared_pool_size = 251658240
sga_max_size = 546906620
shared_pool_reserved_size= 24363663
enqueue_resources = 8000
control_files = E:\oracle\TVD\origlogA\cntrl\cntrlTVD.dbf, E:\oracle\TVD\sapdata1\system_1\cntrl\cntrlTVD.dbf, D:\oracle\TVD\saparch\cntrl\cntrlTVD.dbf
db_block_size = 8192
db_cache_size = 251658240
compatible = 9.2.0
log_archive_start = TRUE
log_archive_dest = D:\oracle\TVD\oraarch\TVDarch
log_buffer = 1048576
log_checkpoint_interval = 0
db_files = 254
fast_start_mttr_target = 900
log_checkpoints_to_alert = TRUE
control_file_record_keep_time= 30
dml_locks = 4000
transaction_auditing = FALSE
undo_management = AUTO
undo_tablespace = PSAPUNDO
undo_retention = 43200
remote_os_authent = TRUE
hash_join_enabled = FALSE
background_dump_dest = D:\oracle\TVD\saptrace\background
user_dump_dest = D:\oracle\TVD\saptrace\usertrace
core_dump_dest = D:\oracle\TVD\saptrace\background
optimizer_features_enable= 9.2.0
sort_area_size = 2097152
sort_area_retained_size = 0
db_name = TVD
open_cursors = 800
pga_aggregate_target = 324848844
workarea_size_policy = AUTO
statistics_level = typical
PMON started with pid=2
DBW0 started with pid=3
LGWR started with pid=4
CKPT started with pid=5
SMON started with pid=6
RECO started with pid=7
Thu Nov 22 16:27:48 2007
ARCH: STARTING ARCH PROCESSES
ARC0 started with pid=8
ARC1 started with pid=9
Thu Nov 22 16:27:48 2007
ARC0: Archival started
Thu Nov 22 16:27:48 2007
ARCH: STARTING ARCH PROCESSES COMPLETE
Thu Nov 22 16:27:48 2007
ARC1: Archival started
Thu Nov 22 16:27:48 2007
ARC0: Becoming the 'no FAL' ARCH
Thu Nov 22 16:27:48 2007
ARC1: Becoming the heartbeat ARCH
Thu Nov 22 16:27:48 2007
ARC0: Becoming the 'no FAL' ARCHARC0: Thread not mounted
Thu Nov 22 16:27:48 2007
ARC1: Becoming the heartbeat ARCHARC1: Thread not mounted
Thu Nov 22 16:27:49 2007
alter database mount exclusive
Thu Nov 22 16:27:49 2007
ORA-00202: controlfile: 'E:\oracle\TVD\origlogA\cntrl\cntrlTVD.dbf'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
Thu Nov 22 16:27:50 2007
ORA-205 signalled during: alter database mount exclusive...
Shutting down instance (abort)
License high water mark = 1
Instance terminated by USER, pid = 1768
Thu Nov 22 16:28:05 2007
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SCN scheme 2
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 9.2.0.7.0.
System parameters with non-default values:
processes = 80
sessions = 96
shared_pool_size = 251658240
sga_max_size = 546906620
shared_pool_reserved_size= 24363663
enqueue_resources = 8000
control_files = E:\oracle\TVD\origlogA\cntrl\cntrlTVD.dbf, E:\oracle\TVD\sapdata1\system_1\cntrl\cntrlTVD.dbf, D:\oracle\TVD\saparch\cntrl\cntrlTVD.dbf
db_block_size = 8192
db_cache_size = 251658240
compatible = 9.2.0
log_archive_start = TRUE
log_archive_dest = D:\oracle\TVD\oraarch\TVDarch
log_buffer = 1048576
log_checkpoint_interval = 0
db_files = 254
fast_start_mttr_target = 900
log_checkpoints_to_alert = TRUE
control_file_record_keep_time= 30
dml_locks = 4000
transaction_auditing = FALSE
undo_management = AUTO
undo_tablespace = PSAPUNDO
undo_retention = 43200
remote_os_authent = TRUE
hash_join_enabled = FALSE
background_dump_dest = D:\oracle\TVD\saptrace\background
user_dump_dest = D:\oracle\TVD\saptrace\usertrace
core_dump_dest = D:\oracle\TVD\saptrace\background
optimizer_features_enable= 9.2.0
sort_area_size = 2097152
sort_area_retained_size = 0
db_name = TVD
open_cursors = 800
pga_aggregate_target = 324848844
workarea_size_policy = AUTO
statistics_level = typical
PMON started with pid=2
DBW0 started with pid=3
LGWR started with pid=4
CKPT started with pid=5
SMON started with pid=6
RECO started with pid=7
Thu Nov 22 16:28:08 2007
ARCH: STARTING ARCH PROCESSES
ARC0 started with pid=8
ARC0: Archival started
ARC1 started with pid=9
Thu Nov 22 16:28:08 2007
ARCH: STARTING ARCH PROCESSES COMPLETE
Thu Nov 22 16:28:08 2007
ARC0: Becoming the 'no FAL' ARCH
ARC0: Becoming the 'no FAL' ARCHARC0: Thread not mounted
Thu Nov 22 16:28:09 2007
ARC1: Archival started
Thu Nov 22 16:28:09 2007
ARC1: Becoming the heartbeat ARCH
ARC1: Becoming the heartbeat ARCHARC1: Thread not mounted
Thu Nov 22 16:28:11 2007
CREATE DATABASE TVD CONTROLFILE REUSE MAXLOGFILES 255 MAXLOGMEMBERS 3 MAXLOGHISTORY 1000 MAXDATAFILES 254 MAXINSTANCES 50 NOARCHIVELOG CHARACTER SET WE8DEC NATIONAL CHARACTER SET UTF8 DATAFILE 'E:\oracle\TVD\sapdata1\system_1\system.data1' SIZE 550M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M EXTENT MANAGEMENT LOCAL DEFAULT TEMPORARY TABLESPACE PSAPTEMP TEMPFILE 'E:\oracle\TVD\sapdata3\temp_1\temp.data1' SIZE 540M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M UNDO TABLESPACE PSAPUNDO DATAFILE 'E:\oracle\TVD\sapdata2\undo_1\undo.data1' SIZE 700M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M
LOGFILE GROUP 1 ('E:
oracle/TVD/origlogA/log_g11m1.dbf',
'D:
oracle/TVD/mirrlogA/log_g11m2.dbf') SIZE 50M REUSE ,
GROUP 2 ('E:
oracle/TVD/origlogB/log_g12m1.dbf',
'D:
oracle/TVD/mirrlogB/log_g12m2.dbf') SIZE 50M REUSE ,
GROUP 3 ('E:
oracle/TVD/origlogA/log_g13m1.dbf',
'D:
oracle/TVD/mirrlogA/log_g13m2.dbf') SIZE 50M REUSE ,
GROUP 4 ('E:
oracle/TVD/origlogB/log_g14m1.dbf',
'D:
oracle/TVD/mirrlogB/log_g14m2.dbf') SIZE 50M REUSE
Thu Nov 22 16:28:12 2007
Database mounted in Exclusive Mode.
Thu Nov 22 16:28:29 2007
Successful mount of redo thread 1, with mount id 1434613531
Assigning activation ID 1434613531 (0x5582771b)
Thread 1 opened at log sequence 1
Thu Nov 22 16:28:30 2007
ARC1: Media recovery disabled
Thu Nov 22 16:28:31 2007
Current log# 1 seq# 1 mem# 0: E:\ORACLE\TVD\ORIGLOGA\LOG_G11M1.DBF
Current log# 1 seq# 1 mem# 1: D:\ORACLE\TVD\MIRRLOGA\LOG_G11M2.DBF
Successful open of redo thread 1
Thu Nov 22 16:28:31 2007
ARC0: Media recovery disabled
Thu Nov 22 16:28:31 2007
SMON: enabling cache recovery
Thu Nov 22 16:28:32 2007
WARNING: Default passwords for SYS and SYSTEM will be used.
Please change the passwords.
Thu Nov 22 16:28:32 2007
create tablespace SYSTEM datafile 'E:\oracle\TVD\sapdata1\system_1\system.data1' SIZE 550M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M
EXTENT MANAGEMENT LOCAL online
Thu Nov 22 16:28:51 2007
Completed: create tablespace SYSTEM datafile 'E:\oracle\TVD\
Thu Nov 22 16:28:51 2007
create rollback segment SYSTEM tablespace SYSTEM
storage (initial 50K next 50K)
Completed: create rollback segment SYSTEM tablespace SYSTEM
Thu Nov 22 16:29:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:29:10 2007
CREATE UNDO TABLESPACE PSAPUNDO DATAFILE 'E:\oracle\TVD\sapdata2\undo_1\undo.data1' SIZE 700M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M
Thu Nov 22 16:29:35 2007
Successfully onlined Undo Tablespace 1.
Completed: CREATE UNDO TABLESPACE PSAPUNDO DATAFILE 'E:\orac
Thu Nov 22 16:29:36 2007
CREATE TEMPORARY TABLESPACE PSAPTEMP TEMPFILE 'E:\oracle\TVD\sapdata3\temp_1\temp.data1' SIZE 540M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M
Completed: CREATE TEMPORARY TABLESPACE PSAPTEMP TEMPFILE 'E:
Thu Nov 22 16:29:36 2007
ALTER DATABASE DEFAULT TEMPORARY TABLESPACE PSAPTEMP
Completed: ALTER DATABASE DEFAULT TEMPORARY TABLESPACE PSAPTE
Thu Nov 22 16:29:39 2007
SMON: enabling tx recovery
Thu Nov 22 16:29:39 2007
Beginning local checkpoint up to RBA [0x1.538b.10], SCN: 0x0000.000019d9
Completed checkpoint up to RBA [0x1.538b.10], SCN: 0x0000.000019d9
kwqplbsc: open notifier exception err 604
replication_dependency_tracking turned off (no async multimaster replication found)
Completed: CREATE DATABASE TVD CONTROLFILE REUSE MAXLOGFILES
Thu Nov 22 16:30:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:31:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:31:28 2007
Beginning log switch checkpoint up to RBA [0x2.2.10], SCN: 0x0000.00006489
Thread 1 advanced to log sequence 2
Thu Nov 22 16:31:28 2007
ARC1: Media recovery disabled
Thu Nov 22 16:31:29 2007
Current log# 2 seq# 2 mem# 0: E:\ORACLE\TVD\ORIGLOGB\LOG_G12M1.DBF
Current log# 2 seq# 2 mem# 1: D:\ORACLE\TVD\MIRRLOGB\LOG_G12M2.DBF
Thu Nov 22 16:32:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:33:08 2007
ARC0: Media recovery disabled
Thu Nov 22 16:33:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:33:16 2007
Completed checkpoint up to RBA [0x2.2.10], SCN: 0x0000.00006489
Thu Nov 22 16:33:26 2007
Beginning log switch checkpoint up to RBA [0x3.2.10], SCN: 0x0000.00009227
Thread 1 advanced to log sequence 3
Thu Nov 22 16:33:26 2007
ARC0: Media recovery disabled
Thu Nov 22 16:33:26 2007
Current log# 3 seq# 3 mem# 0: E:\ORACLE\TVD\ORIGLOGA\LOG_G13M1.DBF
Current log# 3 seq# 3 mem# 1: D:\ORACLE\TVD\MIRRLOGA\LOG_G13M2.DBF
Thu Nov 22 16:34:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:35:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:35:19 2007
Completed checkpoint up to RBA [0x3.2.10], SCN: 0x0000.00009227
Thu Nov 22 16:35:28 2007
Beginning log switch checkpoint up to RBA [0x4.2.10], SCN: 0x0000.0000b0ac
Thread 1 advanced to log sequence 4
Current log# 4 seq# 4 mem# 0: E:\ORACLE\TVD\ORIGLOGB\LOG_G14M1.DBF
Thu Nov 22 16:35:28 2007
ARC1: Media recovery disabled
Thu Nov 22 16:35:28 2007
Current log# 4 seq# 4 mem# 1: D:\ORACLE\TVD\MIRRLOGB\LOG_G14M2.DBF
Thu Nov 22 16:36:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:37:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:38:08 2007
ARC0: Media recovery disabled
Thu Nov 22 16:38:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:38:51 2007
Completed checkpoint up to RBA [0x4.2.10], SCN: 0x0000.0000b0ac
Thu Nov 22 16:38:59 2007
Beginning log switch checkpoint up to RBA [0x5.2.10], SCN: 0x0000.0000e12b
Thread 1 advanced to log sequence 5
Thu Nov 22 16:38:59 2007
Current log# 1 seq# 5 mem# 0: E:\ORACLE\TVD\ORIGLOGA\LOG_G11M1.DBF
Current log# 1 seq# 5 mem# 1: D:\ORACLE\TVD\MIRRLOGA\LOG_G11M2.DBF
Thu Nov 22 16:39:00 2007
ARC0: Media recovery disabled
Thu Nov 22 16:39:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:40:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:41:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:41:09 2007
Completed checkpoint up to RBA [0x5.2.10], SCN: 0x0000.0000e12b
Thu Nov 22 16:41:18 2007
Beginning log switch checkpoint up to RBA [0x6.2.10], SCN: 0x0000.0000ee94
Thread 1 advanced to log sequence 6
Current log# 2 seq# 6 mem# 0: E:\ORACLE\TVD\ORIGLOGB\LOG_G12M1.DBF
Current log# 2 seq# 6 mem# 1: D:\ORACLE\TVD\MIRRLOGB\LOG_G12M2.DBF
Thu Nov 22 16:41:18 2007
ARC1: Media recovery disabled
Thu Nov 22 16:42:08 2007
Fri Nov 23 07:38:10 2007
ARC1: Media recovery disabled
Regards,
Erick -
ORA-02421: missing or invalid schema authorization identifier
Hello Evryone,
I am having a problem with schema user session. I am not able to change the schema even it exists.
SQL>ALTER session SET CURRENT_SCHEMA='QA'
Error report:
SQL Error: ORA-02421: missing or invalid schema authorization identifier
02421. 00000 - "missing or invalid schema authorization identifier"
*Cause: the schema name is missing or is incorrect in an authorization
clause of a create schema statement.
*Action: If the name is present, it must be the same as the current
schema.
SQL>select username, account_status from DBA_USERS where username='QA';
USERNAME ACCOUNT_STATUS
QA OPEN
SQL>SHOW user
USER is SYSTEM
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for HPUX: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionTry it without the single quotes.
Best Regards
mseberg
Test on mine :
Release 11.2.0.1.0 - 64bit Productio
I get the same error with quotes
ERROR at line 1:
ORA-02421: missing or invalid schema authorization identifier
Edited by: mseberg on Aug 15, 2011 2:50 PM
So this and then the verify
ALTER SESSION SET CURRENT_SCHEMA=QAYou can verify using this :
select sys_context('USERENV','SESSION_SCHEMA') from dual;Edited by: mseberg on Aug 15, 2011 3:08 PM -
ORA-01031: insufficient privileges While Trying to Create a Trigger
Hi
I am trying to create a trigger on one of the table in the database schema :
CREATE OR REPLACE TRIGGER Trigger_Name
BEFORE INSERT ON table_name
FOR EACH ROW
---Trigger Body...
However I am getting the following error : ORA-01031: insufficient privileges
I have tried to check the status of the trigger with the following script :
SELECT object_name
FROM dba_objects
WHERE object_type = 'TRIGGER'
AND status = 'INVALID';
and it is showing its status as "INVALID".
Can anybody please suggest me how to proceed on this?Hi,
If the trigger exists than you have privilieges to create trigger but you need some privilieges needed to compile it.
Check all commands and objects you are referring to inside trigger body. Maybe you are trying select table without proper priviliege...?
Bartek -
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 -
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-03217: invalid option for alter of TEMPORARY TABLESPACE
Hi all
I have a database with 300 Users approximantely.
Suddenly I was reported about slowly connection and looked to my database. And I saw that Temporary tablespace with name MUVTEMP is 0% used and in it there is no .dbf file
Then I do ls on my data files directory and saw there MUVTEMP01.dbf!
But it's not using it. Then I want to add another .dbf file. It created this file physically but not joined it to my temporary tablespace.
Then I did it with Oracle EM, clicked on "Show SQL" and there was written
ALTER TABLESPACE "MUVTEMP"
ADD
DATAFILE '/home/oracle/OraHome1/oradata/linux/test.dbf' SIZE
5M
I run it from EM it gave this error
ORA-03217: invalid option for alter of TEMPORARY TABLESPACE
Then I run this SQL in sqlplus
ALTER TABLESPACE "MUVTEMP"
ADD
TEMPFILE '/home/oracle/OraHome1/oradata/linux/test.dbf' SIZE
5M
it created file physically, but I can't see this file as temporary tablespace's file. It's not using....
Where is my mistake???
Thanks...Hi,
try this query:
select s.sid || ',' || s.serial# sid, s.username, u.tablespace, substr(a.sql_text, 1, (instr(a.sql_text, ' ')-1)) sql_text,
round(((u.blocks*p.value)/1024/1024),2) size_mb
from v$sort_usage u, v$session s, v$sqlarea a, v$parameter p
where s.saddr = u.session_addr
and a.address (+) = s.sql_address
and a.hash_value (+) = s.sql_hash_value
and p.name = 'db_block_size'
group by s.sid || ',' || s.serial#, s.username, substr(a.sql_text, 1, (instr(a.sql_text, ' ')-1)), u.tablespace, round(((u.blocks*p.value)/1024/1024),2);
Maybe you are looking for
-
Problems after trying to install gnome-session-compiz
Hi, as explained here i've installed gnome-session-compiz, but i forgot to install compiz-fusion before that. now, if I try pacman -S compiz-fusion-gtk, pacman outputs something like this (i'm translating from italian): Warning: impossible to resolve
-
How to insert the new Servlet Api Class files?
Hi, I need to know how do I add the Servlet Api Class to my java directory after i download it from the net? Thanks for your help in advance!
-
Hi all, So, no doubt I'm new to all this. I just bought a copy of Adobe Premiere Pro CS3. I'm looking to make a super, super speedy slideshow. I've already modified my settings so that each photo imported only takes 1 frame. However, right now I'm
-
About Webhelp - Dialog not displaying when clicked in IE11
Hi, Using RH10 with latest patches installed to fix IE10/11 issues. Genereated our merged webhelp and tested it using IE11. Noticed that the 'About Webhelp' dialog does not appear when I click it. It works correctly in IE10. Has anyone else seen this
-
Hi All, Is there any free tool available to generate UML digrams form JAVA Classes.