| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Workaround to ORA-25003 on Oracle 8i
I'm searching a work around for the next problem:
CREATE OR REPLACE
Type OT1
AS OBJECT
(
a varchar2(10),
b integer,
CREATE OR REPLACE
Type Body OT1
IS
member PROCEDURE Fill_instance
IS
begin
a := 'ok';
b := 10;
END fill_instance;
END;
/
2) I created a table like
CREATE TABLE t
(
t1 VARCHAR2(10) NOT NULL,
t2 OT1
3) I tried to create a trigger like
CREATE OR REPLACE TRIGGER tr_t_bef_ins
BEFORE INSERT
ON t
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
Begin
:new.t2.fill_instance;
End;
/
... and I received the error:
ORA-25003: cannot change NEW values for this column type in trigger
My Server is an ORACLE 8i on NT (4.0)
Received on Sun May 09 1999 - 02:07:45 CDT
![]() |
![]() |