473,236 Members | 1,497 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,236 software developers and data experts.

converting DB2 triggers to Oracle

I need to convert a bunch of DB2 triggers to Oracle. Is there any
kind of tools for this?
Jun 27 '08 #1
4 5654
--CELKO-- wrote:
I need to convert a bunch of DB2 triggers to Oracle. Is there any
kind of tools for this?
I think it would be more appropriate to ask this question in the Oracle
group, but anyway ...

A quick Google on "migration+db2+oracle+triggers" gives a couple of possible
useful links on the very first page:

A. Oracle Migration Workbench.

<q>
The Oracle Migration Workbench is a tool that simplifies the process of
migrating Informix, and DB2 databases to the Oracle platform (Oracle9i and
Oracle10g). The Oracle Migration Workbench migrates the entire database
schema, including triggers and stored procedures, in an integrated
environment.

To migrate Microsoft Access, Microsoft SQL Server, MySQL and Sybase
databases to Oracle refer to Oracle SQL Developer, which now incorporates
the Migration Workbench.
</q>
http://www.oracle.com/technology/tec...nch/index.html

B. SwisSQL - DB2 to Oracle Migration Tool 1.5

<q>
SwisSQL DB2 to Oracle Migration Tool converts

1. Procedures, Functions, Triggers, Tables, Views and other database objects
from DB2 SQL to Oracle PL/SQL.
2. DB2 SQL built-in and user-defined datatypes to Oracle PL/SQL.
3. DB2 SQL built-in functions into corresponding PL/SQL functions.
[...]
18. DMLs and Cursors with isolation levels.
19. Exception handlers like CONTINUE and EXIT handlers.
20. Almost all other DB2 SQL syntaxes into Oracle PL/SQL.
</q>
http://www.swissql.com/products/db2-...to-oracle.html
Note: they also offer similar capabilities for the reverse migration:
http://www.swissql.com/products/orac...le-to-db2.html

C. Ispirer SQLWays 3.9

<q>
Database migration software for DB2, Oracle, SQL Server, Sybase and MySQL

SQLWaysT is an innovative database migration application that easily
performs export (migrates all major databases to IBM DB2, Oracle, Microsoft
SQL Server, Sybase and MySQL) on one system and imports on another system
and platform (Windows or Unix).

SQLWays converts tables (default values, null and identity properties, check
and unique constraints, primary and foreign keys, comments), indexes, views,
triggers, stored procedures and functions. Allows you to specify global data
type mapping for all tables and local data type mapping for each table
individually.
</q>
http://www.softpedia.com/get/Interne.../SQLWays.shtml
[Review-site where you can download a free trial version]

<q>
We provide migration software and services for IBM DB2, Oracle, Microsoft
SQL Server, Sybase, Informix, MySQL, PostgreSQL, Progress and other
databases.

Our product SQLWays allows you to easily migrate data, schema, stored
procedures, triggers and other objects between different databases.
[...]
SQLWays automates the entire migration process transferring data, database
schema, business logic (stored procedures, functions and triggers). It
automatically handles all changes between interdependent objects and
facilitates the application conversion requiring minimum resources and time
to complete a migration project.
</q>
http://www.ispirer.com/

This should get you started, I guess...
Disclaimer: No experience with any of these tools, no stakes in any of the
companies either ;-)

HTH

[added c.d.o.s.]

--
Jeroen
Jun 27 '08 #2
"The Boss" <us****@No.Spam.Please.invalidwrote in message
news:48***********************@news.xs4all.nl...
--CELKO-- wrote:
>I need to convert a bunch of DB2 triggers to Oracle. Is there any
kind of tools for this?

I think it would be more appropriate to ask this question in the Oracle
group, but anyway ...

A quick Google on "migration+db2+oracle+triggers" gives a couple of
possible useful links on the very first page:

A. Oracle Migration Workbench.

<q>
The Oracle Migration Workbench is a tool that simplifies the process of
migrating Informix, and DB2 databases to the Oracle platform (Oracle9i and
Oracle10g). The Oracle Migration Workbench migrates the entire database
schema, including triggers and stored procedures, in an integrated
environment.

To migrate Microsoft Access, Microsoft SQL Server, MySQL and Sybase
databases to Oracle refer to Oracle SQL Developer, which now incorporates
the Migration Workbench.
</q>
http://www.oracle.com/technology/tec...nch/index.html

B. SwisSQL - DB2 to Oracle Migration Tool 1.5

<q>
SwisSQL DB2 to Oracle Migration Tool converts

1. Procedures, Functions, Triggers, Tables, Views and other database
objects from DB2 SQL to Oracle PL/SQL.
2. DB2 SQL built-in and user-defined datatypes to Oracle PL/SQL.
3. DB2 SQL built-in functions into corresponding PL/SQL functions.
[...]
18. DMLs and Cursors with isolation levels.
19. Exception handlers like CONTINUE and EXIT handlers.
20. Almost all other DB2 SQL syntaxes into Oracle PL/SQL.
</q>
http://www.swissql.com/products/db2-...to-oracle.html
Note: they also offer similar capabilities for the reverse migration:
http://www.swissql.com/products/orac...le-to-db2.html

C. Ispirer SQLWays 3.9

<q>
Database migration software for DB2, Oracle, SQL Server, Sybase and MySQL

SQLWaysT is an innovative database migration application that easily
performs export (migrates all major databases to IBM DB2, Oracle,
Microsoft SQL Server, Sybase and MySQL) on one system and imports on
another system and platform (Windows or Unix).

SQLWays converts tables (default values, null and identity properties,
check and unique constraints, primary and foreign keys, comments),
indexes, views, triggers, stored procedures and functions. Allows you to
specify global data type mapping for all tables and local data type
mapping for each table individually.
</q>
http://www.softpedia.com/get/Interne.../SQLWays.shtml
[Review-site where you can download a free trial version]

<q>
We provide migration software and services for IBM DB2, Oracle, Microsoft
SQL Server, Sybase, Informix, MySQL, PostgreSQL, Progress and other
databases.

Our product SQLWays allows you to easily migrate data, schema, stored
procedures, triggers and other objects between different databases.
[...]
SQLWays automates the entire migration process transferring data, database
schema, business logic (stored procedures, functions and triggers). It
automatically handles all changes between interdependent objects and
facilitates the application conversion requiring minimum resources and
time to complete a migration project.
</q>
http://www.ispirer.com/

This should get you started, I guess...
Disclaimer: No experience with any of these tools, no stakes in any of the
companies either ;-)

HTH

[added c.d.o.s.]

--
Jeroen
I tried some of these tools (SQLWays and SwissSQL) about 2 years ago, and
they did not generate working triggers and SP's, although they did a good
job of moving data from one database to another.

I recently tried SQL Ways just a month ago on some simple triggers
converting from DB2 to Oracle, and still there were some mistakes, but
fairly easy to correct if you know any Oracle. Not sure how well it works on
complex triggers.

SQLWays basically advertises a lot of stuff that doesn't actually work, but
the upside is that it is basically a one-man company and you can call the
developer (owner), and if you explain what is wrong he will try to fix it
quite quickly.
Jun 27 '08 #3
Mark A wrote:
"The Boss" <us****@No.Spam.Please.invalidwrote in message
news:48***********************@news.xs4all.nl...
>--CELKO-- wrote:
>>I need to convert a bunch of DB2 triggers to Oracle. Is there any
kind of tools for this?
I think it would be more appropriate to ask this question in the Oracle
group, but anyway ...

A quick Google on "migration+db2+oracle+triggers" gives a couple of
possible useful links on the very first page:

A. Oracle Migration Workbench.

<q>
The Oracle Migration Workbench is a tool that simplifies the process of
migrating Informix, and DB2 databases to the Oracle platform (Oracle9i and
Oracle10g). The Oracle Migration Workbench migrates the entire database
schema, including triggers and stored procedures, in an integrated
environment.

To migrate Microsoft Access, Microsoft SQL Server, MySQL and Sybase
databases to Oracle refer to Oracle SQL Developer, which now incorporates
the Migration Workbench.
</q>
http://www.oracle.com/technology/tec...nch/index.html

B. SwisSQL - DB2 to Oracle Migration Tool 1.5

<q>
SwisSQL DB2 to Oracle Migration Tool converts

1. Procedures, Functions, Triggers, Tables, Views and other database
objects from DB2 SQL to Oracle PL/SQL.
2. DB2 SQL built-in and user-defined datatypes to Oracle PL/SQL.
3. DB2 SQL built-in functions into corresponding PL/SQL functions.
[...]
18. DMLs and Cursors with isolation levels.
19. Exception handlers like CONTINUE and EXIT handlers.
20. Almost all other DB2 SQL syntaxes into Oracle PL/SQL.
</q>
http://www.swissql.com/products/db2-...to-oracle.html
Note: they also offer similar capabilities for the reverse migration:
http://www.swissql.com/products/orac...le-to-db2.html

C. Ispirer SQLWays 3.9

<q>
Database migration software for DB2, Oracle, SQL Server, Sybase and MySQL

SQLWaysT is an innovative database migration application that easily
performs export (migrates all major databases to IBM DB2, Oracle,
Microsoft SQL Server, Sybase and MySQL) on one system and imports on
another system and platform (Windows or Unix).

SQLWays converts tables (default values, null and identity properties,
check and unique constraints, primary and foreign keys, comments),
indexes, views, triggers, stored procedures and functions. Allows you to
specify global data type mapping for all tables and local data type
mapping for each table individually.
</q>
http://www.softpedia.com/get/Interne.../SQLWays.shtml
[Review-site where you can download a free trial version]

<q>
We provide migration software and services for IBM DB2, Oracle, Microsoft
SQL Server, Sybase, Informix, MySQL, PostgreSQL, Progress and other
databases.

Our product SQLWays allows you to easily migrate data, schema, stored
procedures, triggers and other objects between different databases.
[...]
SQLWays automates the entire migration process transferring data, database
schema, business logic (stored procedures, functions and triggers). It
automatically handles all changes between interdependent objects and
facilitates the application conversion requiring minimum resources and
time to complete a migration project.
</q>
http://www.ispirer.com/

This should get you started, I guess...
Disclaimer: No experience with any of these tools, no stakes in any of the
companies either ;-)

HTH

[added c.d.o.s.]

--
Jeroen

I tried some of these tools (SQLWays and SwissSQL) about 2 years ago, and
they did not generate working triggers and SP's, although they did a good
job of moving data from one database to another.

I recently tried SQL Ways just a month ago on some simple triggers
converting from DB2 to Oracle, and still there were some mistakes, but
fairly easy to correct if you know any Oracle. Not sure how well it works on
complex triggers.

SQLWays basically advertises a lot of stuff that doesn't actually work, but
the upside is that it is basically a one-man company and you can call the
developer (owner), and if you explain what is wrong he will try to fix it
quite quickly.
I agree. These migration tools will generally create syntactically
correct objects. But they will be poorly coded in all cases other
than the most simplistic.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
da******@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Jun 27 '08 #4
"DA Morgan" <da******@psoug.orgwrote in message
news:12***************@bubbleator.drizzle.com...
I agree. These migration tools will generally create syntactically
correct objects. But they will be poorly coded in all cases other
than the most simplistic.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
Actually, most of the time the syntax was incorrect or incomplete and would
not create when run on Oracle. Sometimes the problems were minor, sometimes
major.
Jun 27 '08 #5

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

Similar topics

2
by: Allan Hart | last post by:
Hi.. I'd very much appreciate it if someone would tell me how to translate a statement level trigger written in Oracle to its equivalent (if there is one) in MS SQL Server. Ditto for a row...
0
by: Bruno Lavoie | last post by:
Hello, i'm etablishing a naming convention for a new project under postgresql. For tables, sequences, views, that's ok! I used good naming conventions for this in the past and i'll keep these...
2
by: Christine.Misseri | last post by:
Hi all, I'm sure someone knows about this problem. I have an Access database designed in Access 2000, connected to an ORACLE 8i back end. On the ORACLE side I have stored procedures, triggers...
1
by: josh | last post by:
Hi, I have several independent, system components that write audit events to a database locally via ODBC and remotely via TCP, and I have a requirement to audit when the database is available for...
0
debasisdas
by: debasisdas | last post by:
trigger sample code Ex#10 ======================= INSTEAD OF TRIGGER ---------------------------------------- create or replace trigger mytrig instead of delete or insert or update on eview...
0
debasisdas
by: debasisdas | last post by:
This thread contains some useful tips/sample codes regarding TRIGGERS in oracle, that the forum members may find useful. TRIGGERS: =============== Database trigger is a PL/SQL block that is...
0
debasisdas
by: debasisdas | last post by:
trigger sample example #5 ===================== create or replace trigger mytrig before UPDATE OF SAL on emp for each row when(new.deptno=30) begin if :new.sal<:OLD.SAL then...
0
by: sybrandb | last post by:
JamesLane <JamesLane03@yahoo.comwrote in message news:<3038611.1056489810@dbforums.com>... There is not Sybrand Bakker Senior Oracle DBA
0
by: petwir | last post by:
We've got a cascading delete being used in DB2. I've built new triggers under the parent/child tables in this cascading delete relationship. So when they delete the parent, and the cascade...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.