Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> User Defined Data Types
I need feedback from application designers who have used User Defined
Data Types in Oracle ... in particular, I would like feedback on:
performance, indexing limitations, replication limitations, etc. .. in
other words, is there any reason NOT to use User Defined Datatypes? The
question is particularly relevant when one is translating models from
typical OO systems for data storage .. if I could simply do stuff like
the manual suggests ... e.g.
CREATE TYPE external_person AS OBJECT (
name VARCHAR2(30), phone VARCHAR2(20) );
CREATE TYPE lineitem AS OBJECT (
item_name VARCHAR2(30),
quantity NUMBER,
unit_price NUMBER(12,2) );
CREATE TYPE lineitem_table AS TABLE OF lineitem;
CREATE TYPE purchase_order AS OBJECT (
id NUMBER, contact external_person,
MEMBER FUNCTION
get_value RETURN NUMBER );
.. ..
then why would ever want NOT to use it for ANY table .. Is there a flip side to benefits of this feature?
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Mon Nov 15 1999 - 18:02:10 CST