Unix Technical Forum

Migration from Oracle

This is a discussion on Migration from Oracle within the DB2 forums, part of the Database Server Software category; --> What methods are there for migrating Oracle rowid based dml into DB2? We have lots of code that uses ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 12:51 PM
Steve Rainbird
 
Posts: n/a
Default Migration from Oracle

What methods are there for migrating Oracle rowid based dml into DB2?

We have lots of code that uses the following method in Oracle

select rowid into lRowid from <table>;
..
..
..
..
update <table> where rowid = lRowid;

The database is being migrated to DB2.

I have read about a ROWID datatype is this usable?

In sqlserver I would use an identity column is this available in DB2.

I have googled this but the more I look the more I get confused.


TIA

--
Steve



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 12:51 PM
morch
 
Posts: n/a
Default Re: Migration from Oracle

http://publib.boulder.ibm.com/infoce...rchWord=+rowid

On Feb 28, 8:45 am, "Steve Rainbird"
<news.nos...@rainbird.me.nospam.uk> wrote:
> What methods are there for migrating Oracle rowid based dml into DB2?
>
> We have lots of code that uses the following method in Oracle
>
> select rowid into lRowid from <table>;
> .
> .
> .
> .
> update <table> where rowid = lRowid;
>
> The database is being migrated to DB2.
>
> I have read about a ROWID datatype is this usable?
>
> In sqlserver I would use an identity column is this available in DB2.
>
> I have googled this but the more I look the more I get confused.
>
> TIA
>
> --
> Steve



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 12:51 PM
jan.ibm@gmail.com
 
Posts: n/a
Default Re: Migration from Oracle

Yes, DB2 supports identity columns.



On Feb 28, 11:51 am, "morch" <f...@mairhtin.com> wrote:
> http://publib.boulder.ibm.com/infoce...nced/searchVie...
>
> On Feb 28, 8:45 am, "Steve Rainbird"<news.nos...@rainbird.me.nospam.uk> wrote:
> > What methods are there for migrating Oracle rowid based dml into DB2?

>
> > We have lots of code that uses the following method in Oracle

>
> > select rowid into lRowid from <table>;
> > .
> > .
> > .
> > .
> > update <table> where rowid = lRowid;

>
> > The database is being migrated to DB2.

>
> > I have read about a ROWID datatype is this usable?

>
> > In sqlserver I would use an identity column is this available in DB2.

>
> > I have googled this but the more I look the more I get confused.

>
> > TIA

>
> > --
> > Steve



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 12:51 PM
DA Morgan
 
Posts: n/a
Default Re: Migration from Oracle

Steve Rainbird wrote:
> What methods are there for migrating Oracle rowid based dml into DB2?
>
> We have lots of code that uses the following method in Oracle
>
> select rowid into lRowid from <table>;
> .
> .
> .
> .
> update <table> where rowid = lRowid;
>
> The database is being migrated to DB2.
>
> I have read about a ROWID datatype is this usable?
>
> In sqlserver I would use an identity column is this available in DB2.
>
> I have googled this but the more I look the more I get confused.
>
>
> TIA


To the best of my knowledge there is no facility in DB2 to do what
it appears you have been doing in Oracle. But then my advice to you
in Oracle would have been to not do it either as rowid's can change.

If you are moving to DB2 ... then move to DB2 and don't bring to it
your Oracle-specific practices: Especially the bad ones. <g>
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 12:51 PM
Serge Rielau
 
Posts: n/a
Default Re: Migration from Oracle

DA Morgan wrote:
> Steve Rainbird wrote:
>> What methods are there for migrating Oracle rowid based dml into DB2?
>>
>> We have lots of code that uses the following method in Oracle
>>
>> select rowid into lRowid from <table>;
>> .
>> .
>> .
>> .
>> update <table> where rowid = lRowid;
>>
>> The database is being migrated to DB2.
>>
>> I have read about a ROWID datatype is this usable?
>>
>> In sqlserver I would use an identity column is this available in DB2.
>>
>> I have googled this but the more I look the more I get confused.
>>
>>
>> TIA

>
> To the best of my knowledge there is no facility in DB2 to do what
> it appears you have been doing in Oracle. But then my advice to you
> in Oracle would have been to not do it either as rowid's can change.
>
> If you are moving to DB2 ... then move to DB2 and don't bring to it
> your Oracle-specific practices: Especially the bad ones. <g>

well spoken

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:36 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com