I am getting a RUNTIME error when using objects "Missing right parenthesis". We have run this in a different version installation of Oracle (8i) without a problem. But the newly installed oracle8 enterprise edition is giving us a problem. Oracle support closed the support track saying they no longer support this version of Oracle.
Unfortunately we have a client that we support and must match their environment. Does anyone know what might be missing from our environment?
This is the code and error:
declare
l_users gl_jointype := gl_joinType ( gl_JoinOBJECT (1,'test'));
begin
insert into t select * from TABLE ( CAST (
l_users as gl_JoinType ) );
END;
gives me the following RUNTIME error
ERROR at line 1:
ORA-00907: missing right parenthesis
ORA-06512: at line 4
We are running oracle: this is our SQL Plus blurb
Connected to:
Oracle8 Enterprise Edition Release 8.0.5.0.0 -
Production
With the Partitioning and Objects options
PL/SQL Release 8.0.5.0.0 - Production
This is the object and type creation:
DROP TYPE gl_JoinType;
CREATE OR REPLACE TYPE gl_JoinObject AS OBJECT
( NumberJoin NUMBER, -- Number for Dynamic
Joins
CharJoin VARCHAR(80) -- Varchar for Dynamic
Joins
);
CREATE OR REPLACE TYPE gl_JoinType AS TABLE OF
gl_JoinObject;
Create the table:
CREATE TABLE t ( NumberJoin Number, CharJoin
VARCHAR2(80));
Thanks
Unfortunately we have a client that we support and must match their environment. Does anyone know what might be missing from our environment?
This is the code and error:
declare
l_users gl_jointype := gl_joinType ( gl_JoinOBJECT (1,'test'));
begin
insert into t select * from TABLE ( CAST (
l_users as gl_JoinType ) );
END;
gives me the following RUNTIME error
ERROR at line 1:
ORA-00907: missing right parenthesis
ORA-06512: at line 4
We are running oracle: this is our SQL Plus blurb
Connected to:
Oracle8 Enterprise Edition Release 8.0.5.0.0 -
Production
With the Partitioning and Objects options
PL/SQL Release 8.0.5.0.0 - Production
This is the object and type creation:
DROP TYPE gl_JoinType;
CREATE OR REPLACE TYPE gl_JoinObject AS OBJECT
( NumberJoin NUMBER, -- Number for Dynamic
Joins
CharJoin VARCHAR(80) -- Varchar for Dynamic
Joins
);
CREATE OR REPLACE TYPE gl_JoinType AS TABLE OF
gl_JoinObject;
Create the table:
CREATE TABLE t ( NumberJoin Number, CharJoin
VARCHAR2(80));
Thanks