How to create and compile procedures in IBM db2 - db2

I am new to db2. I have written procedures in oracle.
I need to convert those procedures from oracle to db2.
I want to know how the procedures in db2 will be created and compiled.
Thanks in advance.

A good walkthrough can be found here.
But then you always have the redbooks that IBM puts out such as this or this.
It is worth pointing out this migration tool that you might find useful.

Related

Does Flyway support DB2 for zOS?

Does Flyway support DB2 for zOS?
The information here http://flywaydb.org/documentation/database/db2.html seems to indicate it is only tested on DB2 for LUW.
This has not been tested. Please give it a try and let me know how it went! Feel free to file any problems you encounter in the issue tracker.
It can't work as written for Db2 for Z as there is a system table that LUW has that Z does not have. It would be really nice to have this in the Z environment.

Call QMF procedure from .NET

We're doing Windows development against a DB2 database with QMF v9.1. We hard-code many of our SQL queries directly into our applications, even though they are already stored in QMF.
However, I was told that a built-in stored procedure exists that is able to return results from a QMF query or procedure. But the person could not tell me the name of the stored procedure.
Would anyone be able to share their experience in regards to the above? Many thanks in advance.
I think what you're looking for is Q.DSQQMFSP. The QMF Stored Proc interface has to be enabled, so it's not a "default" option.
Once that's done, it should be like calling any other stored proc from .NET

How to create thousands of dummy records in a table - Oracle

I am learning oracle myself with help of internet...
Now, for some scenario I need thousands of records which should be available in my table.
It is not possible to create thousands of records manually...
Is there any tools or any other way to do the same in ORACLE 10g...
As I said I am a novice to Oracle I need some advices from you SOF professionals....
Thanks in advance...
This database has a JDBC driver. Download Eclipse, add this driver to the path and write ten lines of code to insert as much blabla as required, here tutorial. Even if you have never programmed Java before and would not try again, easy enough to do.

How to migrate database from SAP DB to PostGres?

Any idea how to go about doing that through a tool(preferred). Any alternate ways to do that.
You can check out the migration studio from EnterpriseDB here, although I have no experience with it.
There is no comparison to doing it yourself though - if you're not familiar with Postgres then this will get you familiar, and if you are, then aside from the data entry aspect, this should be old hat.
Use maxdb tools to generate a SQL text export of the database. Then import this file in PostgreSQL, luckily you won't need prior processing of the data dump.

PostgreSQL data comparsion tool

I am looking for a tool/command which can compare data between two PostgreSQL databases. The reason to do this is to have some external verification that the SQL script responsible for data migration from one PostgreSQL database to the other have been written correctly.
Any pointers would be appreciated
regards
Sameer
EMS makes a tool which can do this.
http://sqlmanager.net/en/products/postgresql/dbcomparer
The PostgreSQL site has a nice Software catalogue. Peruse the Administration/development tools category.