If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Object types

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-24-10, 06:27
dadev dadev is offline
Registered User
 
Join Date: Apr 2010
Posts: 3
DB2 Object types

Hi!

I'm new to DB2 and looking for the possibility to port some database stuff from Oracle 10g to DB2 Express-C.

I'm having some "collection types of UDT" in oracle and looking for the possibility to create those in DB2 but can't find anything like that.

Example of a collection type I want to create in DB2. (My guess is that collection types doesnt exist in DB2?)

Oracle:
create or replace type NOTES_TYPE as table of NOTE_TYPE;

NOTE_TYPE is a UDT object in Oracle.

Thanks alot in advance!
Reply With Quote
  #2 (permalink)  
Old 04-24-10, 07:45
Amarnath Reddy Amarnath Reddy is offline
Registered User
 
Join Date: Apr 2010
Posts: 10
Hope this may help you :

DB2 too supports the collections types.

IBM DB2 9.7 for Linux, UNIX and Windows Information Center
Reply With Quote
  #3 (permalink)  
Old 04-24-10, 23:48
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
If you are using DB2 V9.7, you can enable Oracle compatibility mode to make the porting easier. Make sure you have the latest release (9.7.1).

Here is some info:
DB2 9.7: Run Oracle applications on DB2 9.7 for Linux, Unix, and Windows
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 05-12-10, 13:57
dadev dadev is offline
Registered User
 
Join Date: Apr 2010
Posts: 3
yes, but the problem is collections of a custom object.. and then return it in a stored procedure..

Have anyone a example of this? I haven't manage to figure out how to do this in DB2. Maybe only possible to have normal collectiontypes without UDT?

Marcus, yes I have seen that, but it require a higher version than DB2 Express-c

Thanks alot!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On