Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Member Funtion Error

Re: Member Funtion Error

From: James <Jimbo_at_yahoo.com>
Date: Sun, 16 Nov 2003 20:13:01 +0000 (UTC)
Message-ID: <bp8lod$1an$1@titan.btinternet.com>


Thanks Pete.

I now have another slight problem. I have used the following code to create a new method:
MAP MEMBER FUNCTION getLname RETURN varchar2, PRAGMA RESTRICT_REFERENCES (getLname, WNDS, WNPS, RNDS, RNPS)

(I have included this in my ALTER TYPE code and it executes without errors)

but when I run the following code:
CREATE OR REPLACE TYPE BODY student_type IS

    MEMBER FUNCTION getName RETURN VARCHAR2 IS BEGIN
 RETURN (FirstName || ' ' || LastName);
END; MAP MEMBER FUNCTION getLname RETURN VARCHAR2 IS BEGIN
 RETURN (LastName);
END;
END;
/

I get the following error:
CREATE OR REPLACE TYPE BODY student_type IS *
ERROR at line 1:
ORA-21700: object does not exist or is marked for delete

Any help would be much appreciated.
James Received on Sun Nov 16 2003 - 14:13:01 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US