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

Migrate DB2

Hello people,

I would like your assistance here.
I have a DB2 V8 database on Windows 2003.
I would like to migrate this database on AIX 5.3 (keep the same
database version).
Any documentation how to achieve this?
Any procedure or migration tool?
Will a backup and restore do?

Thank you

Mar 28 '06 #1
6 1796
DM***@laiki.com wrote:
Hello people,

I would like your assistance here.
I have a DB2 V8 database on Windows 2003.
I would like to migrate this database on AIX 5.3 (keep the same
database version).
Any documentation how to achieve this?
Any procedure or migration tool?
Will a backup and restore do?

Backup/restore will not work due to the difference in endian-nes.
You will need to look at db2move or my backup schema article:
http://www.ibm.com/developerworks/db...dm-0602rielau/

If you have more than one schema and they are not well encapsulated the
procedures can be easily extended.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Mar 28 '06 #2
<DM***@laiki.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
Hello people,

I would like your assistance here.
I have a DB2 V8 database on Windows 2003.
I would like to migrate this database on AIX 5.3 (keep the same
database version).
Any documentation how to achieve this?
Any procedure or migration tool?
Will a backup and restore do?

Thank you


Use db2look to pull all the DDL and run that on your new system (changing
the container names of tablespaces as needed). Make sure you use the right
options to pull all the DDL including the tablespaces and bufferpools.

Then use "db2move export" to pull the data, and then "db2move load" to load
the data back to the new system.
Mar 28 '06 #3
Another thing you can do is to create your new AIX db from scratch and
federate it with your existing one on windows 2003.

Use db2look...etc. etc. (as stated in your responses) to create the
empty objects in your AIX db and then import the data either with
insert into or with declare cursor + load (depending on the size of the
table to migrate).

Small tables: use insert into
Big tables: use declare cursor + load.

I hope this helps.

DM***@laiki.com wrote:
Hello people,

I would like your assistance here.
I have a DB2 V8 database on Windows 2003.
I would like to migrate this database on AIX 5.3 (keep the same
database version).
Any documentation how to achieve this?
Any procedure or migration tool?
Will a backup and restore do?

Thank you


Mar 28 '06 #4
Thank you very much for the responses.

Another question: how do i move user defined functions and procedures?

Thanks

Mar 29 '06 #5
<DM***@laiki.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com...
Thank you very much for the responses.

Another question: how do i move user defined functions and procedures?

Thanks


They will be in the db2look output (if you use the correct parms to extract
them). However, you will have put them in a separate file to reapply them,
and include a terminator such as @ at the end of each object The ";"
terminator will be used at the end of each statement), and then use the
following to create them:
db2 -td@ -vf file-name (where file-name contains the syntax of the
procedures, UDF's, and triggers).
Mar 29 '06 #6
DM***@laiki.com wrote:
Thank you very much for the responses.

Another question: how do i move user defined functions and procedures?

Thanks

SQL Functions and Procedures should be part of db2look.
You may have to run the script a few times due to dependencies.
For external UDF/Procedures (C/Java/CLR) you have to make sure you
migrate the libraries.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Mar 29 '06 #7

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

Similar topics

4
by: Bon | last post by:
Hello all Would it be possible to migrate the MS Access 2000 to MS SQL Server 2000? My application is using MS Access 2000 as database and as user interface such as forms. Now, I want to...
2
by: Vikrant | last post by:
Hi DB2/UDB Gurus, I got the same problem , when I am migrating DB2/UDB 5.2 to 7.2 EE under AIX. Is this a known problem ?, I would sincerely appreciate (well if you want to have money, that...
1
by: Davor | last post by:
I have to migrate database from AIX DB2 to MS Sql Server 2000. In one table there is field with GIF image. I have tried with "Import/Export Data" wizard on SQL server to import that table. All...
1
by: Amol Shambharker | last post by:
Hello Everyone, I have been working on setting up a windows 2003 machine with IIS 6.0.The web server has the web directory on a UNC share on a windows 2003 server.I want to migrate websites from a...
6
by: Shimon Sim | last post by:
Hi I am working on application that need to hold custom user information - Last and first name, email, some other domain related information. I used to create Base class for all my pages. The base...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.