Connecting Tech Pros Worldwide Forums | Help | Site Map

Oracle to DB2 Migration issues

Abram Friesen
Guest
 
Posts: n/a
#1: Nov 12 '05
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 looking into the
feasibility of migration. Our application runs on NT Server and, the
DB2 database would be in some cases on a separate AIX machine, in
other cases on an AS/400.

There are two problems we are running into, both relating to our use
of Oracle Supplied Packages:

First, we make use of the DBMS_PIPE Oracle Supplied Package to
communicate from a trigger back to our application via named pipes. Is
there a way to do this in DB2?

Second, we want that communication to be transactionally controlled.
Of course, even in Oracle, communicating out of the trigger back to
the application happens immediately, not on the COMMIT. The way we
handle this in Oracle is by making use of the DBMS_TRANSACTION Oracle
Supplied Package. This allows us to retrieve a unique identifier for
the current transaction in the trigger, send it to the application via
DBMS_PIPE, and later check that transaction id against the data
dictionary table V$TRANSACTION to determine the state of the
transaction. The application then is able to apply the update only
after a COMMIT. So in DB2 how would I find a unique identifier for the
current transaction, and then how would I find out the state of a
transaction later from a different session?

Thanks in advance,
Abram Friesen

Rhino
Guest
 
Posts: n/a
#2: Nov 12 '05

re: Oracle to DB2 Migration issues



"Abram Friesen" <abram@oax.com> wrote in message
news:e4cbeb96.0408091259.763c3ab4@posting.google.c om...[color=blue]
> 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 looking into the
> feasibility of migration. Our application runs on NT Server and, the
> DB2 database would be in some cases on a separate AIX machine, in
> other cases on an AS/400.
>
> There are two problems we are running into, both relating to our use
> of Oracle Supplied Packages:
>
> First, we make use of the DBMS_PIPE Oracle Supplied Package to
> communicate from a trigger back to our application via named pipes. Is
> there a way to do this in DB2?
>
> Second, we want that communication to be transactionally controlled.
> Of course, even in Oracle, communicating out of the trigger back to
> the application happens immediately, not on the COMMIT. The way we
> handle this in Oracle is by making use of the DBMS_TRANSACTION Oracle
> Supplied Package. This allows us to retrieve a unique identifier for
> the current transaction in the trigger, send it to the application via
> DBMS_PIPE, and later check that transaction id against the data
> dictionary table V$TRANSACTION to determine the state of the
> transaction. The application then is able to apply the update only
> after a COMMIT. So in DB2 how would I find a unique identifier for the
> current transaction, and then how would I find out the state of a
> transaction later from a different session?
>[/color]
I can't address your specific questions directly but I seem to recall that
there used to be migration tools and/or guides for DB2's competitors at the
IBM website. For instance, if a customer was switching from Oracle to DB2,
these tools or guides would help them do so. Perhaps they might contain
discussions that would answer your questions? I never used or read any of
these things but I remember seeing mention of them on this newsgroup a few
years back.

I don't know where the migration tools/guides were and the website has been
recently reorganized so any URL mentioned in an old newsgroup post might be
dead anyway. All I can suggest is that you look around the DB2 portion of
the IBM website and see what you can find. A search on "migration" or
"migration Oracle DB2" might find them for you, if they are still there and
up-to-date.

Rhino


Larry
Guest
 
Posts: n/a
#3: Nov 12 '05

re: Oracle to DB2 Migration issues


http://www-306.ibm.com/software/data/db2/migration/

Larry Edelstein

Rhino wrote:[color=blue]
> "Abram Friesen" <abram@oax.com> wrote in message
> news:e4cbeb96.0408091259.763c3ab4@posting.google.c om...
>[color=green]
>>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 looking into the
>>feasibility of migration. Our application runs on NT Server and, the
>>DB2 database would be in some cases on a separate AIX machine, in
>>other cases on an AS/400.
>>
>>There are two problems we are running into, both relating to our use
>>of Oracle Supplied Packages:
>>
>>First, we make use of the DBMS_PIPE Oracle Supplied Package to
>>communicate from a trigger back to our application via named pipes. Is
>>there a way to do this in DB2?
>>
>>Second, we want that communication to be transactionally controlled.
>>Of course, even in Oracle, communicating out of the trigger back to
>>the application happens immediately, not on the COMMIT. The way we
>>handle this in Oracle is by making use of the DBMS_TRANSACTION Oracle
>>Supplied Package. This allows us to retrieve a unique identifier for
>>the current transaction in the trigger, send it to the application via
>>DBMS_PIPE, and later check that transaction id against the data
>>dictionary table V$TRANSACTION to determine the state of the
>>transaction. The application then is able to apply the update only
>>after a COMMIT. So in DB2 how would I find a unique identifier for the
>>current transaction, and then how would I find out the state of a
>>transaction later from a different session?
>>[/color]
>
> I can't address your specific questions directly but I seem to recall that
> there used to be migration tools and/or guides for DB2's competitors at the
> IBM website. For instance, if a customer was switching from Oracle to DB2,
> these tools or guides would help them do so. Perhaps they might contain
> discussions that would answer your questions? I never used or read any of
> these things but I remember seeing mention of them on this newsgroup a few
> years back.
>
> I don't know where the migration tools/guides were and the website has been
> recently reorganized so any URL mentioned in an old newsgroup post might be
> dead anyway. All I can suggest is that you look around the DB2 portion of
> the IBM website and see what you can find. A search on "migration" or
> "migration Oracle DB2" might find them for you, if they are still there and
> up-to-date.
>
> Rhino
>
>[/color]

Abram Friesen
Guest
 
Posts: n/a
#4: Nov 12 '05

re: Oracle to DB2 Migration issues


Thanks Larry and Rhino for the direction.

In case anyone's interested, I found an implementation of DBMS_PIPE
package for DB2 here:

http://www-106.ibm.com/developerwork...mukherjee.html

The link for the download of pipe.zip was broken, but I managed to
download it with:

http://www-106.ibm.com/developerwork...erjee/pipe.zip

Thanks again.

Abram Friesen

Larry <Larry@nospam.net> wrote in message news:<0oVRc.49960$zc4.20881356@news4.srv.hcvlny.cv .net>...[color=blue]
> http://www-306.ibm.com/software/data/db2/migration/
>
> Larry Edelstein
>
> Rhino wrote:[color=green]
> > "Abram Friesen" <abram@oax.com> wrote in message
> > news:e4cbeb96.0408091259.763c3ab4@posting.google.c om...
> >[color=darkred]
> >>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 looking into the
> >>feasibility of migration. Our application runs on NT Server and, the
> >>DB2 database would be in some cases on a separate AIX machine, in
> >>other cases on an AS/400.
> >>
> >>There are two problems we are running into, both relating to our use
> >>of Oracle Supplied Packages:
> >>
> >>First, we make use of the DBMS_PIPE Oracle Supplied Package to
> >>communicate from a trigger back to our application via named pipes. Is
> >>there a way to do this in DB2?
> >>
> >>Second, we want that communication to be transactionally controlled.
> >>Of course, even in Oracle, communicating out of the trigger back to
> >>the application happens immediately, not on the COMMIT. The way we
> >>handle this in Oracle is by making use of the DBMS_TRANSACTION Oracle
> >>Supplied Package. This allows us to retrieve a unique identifier for
> >>the current transaction in the trigger, send it to the application via
> >>DBMS_PIPE, and later check that transaction id against the data
> >>dictionary table V$TRANSACTION to determine the state of the
> >>transaction. The application then is able to apply the update only
> >>after a COMMIT. So in DB2 how would I find a unique identifier for the
> >>current transaction, and then how would I find out the state of a
> >>transaction later from a different session?
> >>[/color]
> >
> > I can't address your specific questions directly but I seem to recall that
> > there used to be migration tools and/or guides for DB2's competitors at the
> > IBM website. For instance, if a customer was switching from Oracle to DB2,
> > these tools or guides would help them do so. Perhaps they might contain
> > discussions that would answer your questions? I never used or read any of
> > these things but I remember seeing mention of them on this newsgroup a few
> > years back.
> >
> > I don't know where the migration tools/guides were and the website has been
> > recently reorganized so any URL mentioned in an old newsgroup post might be
> > dead anyway. All I can suggest is that you look around the DB2 portion of
> > the IBM website and see what you can find. A search on "migration" or
> > "migration Oracle DB2" might find them for you, if they are still there and
> > up-to-date.
> >
> > Rhino
> >
> >[/color][/color]
Rhino
Guest
 
Posts: n/a
#5: Nov 12 '05

re: Oracle to DB2 Migration issues



"Abram Friesen" <abram@oax.com> wrote in message
news:e4cbeb96.0408101504.718e2c5@posting.google.co m...[color=blue]
> Thanks Larry and Rhino for the direction.
>
> In case anyone's interested, I found an implementation of DBMS_PIPE
> package for DB2 here:
>
>[/color]
http://www-106.ibm.com/developerwork...mukherjee.html[color=blue]
>
> The link for the download of pipe.zip was broken, but I managed to
> download it with:
>
>[/color]
http://www-106.ibm.com/developerwork...erjee/pipe.zip[color=blue]
>
> Thanks again.
>
> Abram Friesen
>[/color]
You're welcome!

Rhino


Closed Thread


Similar DB2 Database bytes