473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 <tablewhere 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

Feb 28 '07 #1
4 1771
http://publib.boulder.ibm.com/infoce...rchWord=+rowid

On Feb 28, 8:45 am, "Steve Rainbird"
<news.nos...@rainbird.me.nospam.ukwrote:
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 <tablewhere 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

Feb 28 '07 #2
Yes, DB2 supports identity columns.

On Feb 28, 11:51 am, "morch" <f...@mairhtin.comwrote:
http://publib.boulder.ibm.com/infoce...nced/searchVie...

On Feb 28, 8:45 am, "Steve Rainbird"<news.nos...@rainbird.me.nospam.ukwrote:
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 <tablewhere 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

Feb 28 '07 #3
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 <tablewhere 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
da******@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Mar 1 '07 #4
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 <tablewhere 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
Mar 1 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Richard Crawford | last post by:
I've been breaking my head over this one for a couple of weeks now. The source database is an MS-SQL Server 7 database living on a Windows NT server; the destination is an Oracle 9i database...
4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
4
by: Azhar Bilgrami | last post by:
Dear Hi: Hope to see u in good health. " I want to migrate a database which is currently running Unix as Operating System and Oracle ver 6 as Database, it is also using oracle froms version 3...
1
by: ss_dash | last post by:
Hi all, I am using the Oracle Workbench for migrating my DB currently on Sql Server 2000 to Oracle 9i. During the migration the following happens SELECT @tBaseTable = tBaseTable,...
4
by: Abram Friesen | last post by:
Hi, I'm a developer for a software application vendor, and our application makes use of a customer-maintained Oracle 8i/9i database. We've had a customer request to support DB2 database, and I'm...
2
by: _link98 | last post by:
Does IBM publish a complete list of features (of Oracle) which the IBM migration toolkit does *not* convert? The docs seem rather vague. For example: 1. What support for the oracle...
2
by: phantom | last post by:
Hi all. We have a production data source running postgres for reporting/DSS we are thinking on building a warehouse, wherein data would be transferred from postgres to the warehouse. The...
1
by: dunleav1 | last post by:
Is there a db2 tool or utility that will map Oracle structures and data to DB2? For instance Microsoft has a tool called "Microsoft Sql Server Migration Assistant for Oracle". The tool...
2
by: dunleav1 | last post by:
Is there a db2 tool or utility that will map Oracle structures and data to DB2? For instance, Microsoft has a tool called "Microsoft Sql Server Migration Assistant for Oracle". The tool basically...
0
by: Ptero | last post by:
We're using a lot of typed datasets in ASP.NET application, most of them have many tables+adapters and each table has some functions that call Oracle Stored Procedures. It works using...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.