Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Problem with Oracle 8 and Objects
Hello,
I'm working on Oracle 8, and I've some problems :
They say to me : . partition . objects : FALSE How I can install these functionnalities on Oracle 8.0.4 ??? Then for the moment ... I'm back on Oracle 8.0.3 !!! And Here have some problems with objects and varrays : 2. I can't insert datas in a table created with a new object type, just look at my file :
--
MEMBER FUNCTION age return NUMBER,
ORDER MEMBER FUNCTION map_fonct return INTEGER,
PRAGMA RESTRICT_REFERENCES (age, RNDS, WNDS, WNPS)
)
/
CREATE or REPLACE TYPE BODY personne_t AS
MEMBER FUNCTION age RETURN NUMBER IS compteur NUMBER; begin compteur := 5; return compteur; end;
MAP MEMBER FUNCTION map_fonct RETURN INTEGER IS
-- ORDER MEMBER FUNCTION map_fonct RETURN INTEGER IS
begin return 0; end;
DROP TABLE employes
/
CREATE TABLE employes
(
num_emp number(4) PRIMARY KEY, personne personne_t, num_dep number(3)
-----> Everything's good !!!
INSERT into employes VALUES
( 1234, -- num_emp personne_t ( -- personne 'dupond', -- nom 'jean', -- prenom adresse_t -- adresse (3, -- numero 'rue de la liberte', -- rue 'aswded', -- ville 74568 -- codep ), '01-Jan-1900' -- daten ), 123 -- num_dep
/
--
-----> Everything's BAD !!!
Oracle says to me : coulum personne.adresse.codep is unknown WHAT'S WRONG IN MY EXAMPLE ????? 3. Unfortunaltely .. I've tried to use varray !!! (What a bad day !!!)
--
--
--
CREATE or REPLACE TYPE g_telephone AS VARRAY(2)
OF telephone_t
/
--
--
-----> Everything's good !!!
DROP TABLE annuaire
/
--
CREATE TABLE annuaire
(
nom varchar2(10), prenom varchar2(10), tel_num g_telephone
INSERT INTO annuaire values
(
'dupond', -- nom 'jean', -- prenom g_telephone ( telephone_t ( 1234,5678 ) )
-----> Everything's BAD !!!
Oracle says to me : I can't insert datas of that type Then I've tried
INSERT INTO annuaire values
(
'dupond', -- nom 'jean', -- prenom g_telephone ( 1234,5678 )
Same .. thing
Can you help me PLEASE :-<<<<<< ============================================= I just ask to you an example of those new kind of types .. which works (I haven't found it in Oracle documentation ....
With lot of Thanks ... Received on Mon Jul 20 1998 - 01:42:53 CDT
![]() |
![]() |