473,651 Members | 2,995 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Migrating from DB2 UDB 6.x on Solaris to UDB 7.2 on Linux

Does anyone have any experience migrating a DB2 database off UDB 6.1
(Solaris) to 7.2 (Linux)? The database does not already exist on the
Linux box. Have created a DB2 instance fine. DB2 installation went ok
(no fixpacks installed yet though!) and can create sample database and
query.

In my naiivity as a non dba reformed developer, I've dumped the
database on the solaris box and am trying to perform a restore on the
Linux box using the dump file. The restore is stalling.

Everything I've read indicates no 'conversion' is required on the
database to promote the version so in theory the restore should work
ok - apparently not!

Anyone have any ideas around a solution for creating the database on
Linux.

I'm wondering if there's a way to generate a schema file from the
Solaris based database and run that into the Linux version? Is there
an easier way?

Cheers,
Nov 12 '05 #1
2 2450
Hi,

As far as my knowledge goes you cannot restore a soalris 6.1 database
backup on a linux 7.2 database. Cross Platform Backup/Restores are not
available for these versions of databases. It has something to do the
big-endian and little-endian stuff. They way to go would be like this:

Generate a Complete database schema from the solaris box.

$>db2look -d <db_name> {options}

Look at the db2look command in the reference manual for more or just
type db2look at your shell prompt, it will give some help.

Now take an export of all your tables using db2move utility. The data
files will be in ixf format.

$>db2move <db_name> export

Move the schema file and all the db2move related files to your linux
box using ftp or whatever.

Log in your Linux box and execute the above generated Database Schema
file. Make sure you have created the database before hand either using
db2 "create database" command or using some other scripts which might
be there in your scripts list.

$>db2 -tvf <schema_file>

Once that is done successfully, then go to the directory where you
have downloaded those export files, and then import/load them using
either of the following commands:

$>db2move <db_name> import

OR

$>db2move <db_name> load
This will populate your database with all the data you have in the
solaris box.

I can give you further help on importing stored procedures as well, if
you need.

Rest is fine..

hth,
dotyet

ca************* @infinity.co.nz (Cam Chapman) wrote in message news:<cb******* *************** ****@posting.go ogle.com>...
Does anyone have any experience migrating a DB2 database off UDB 6.1
(Solaris) to 7.2 (Linux)? The database does not already exist on the
Linux box. Have created a DB2 instance fine. DB2 installation went ok
(no fixpacks installed yet though!) and can create sample database and
query.

In my naiivity as a non dba reformed developer, I've dumped the
database on the solaris box and am trying to perform a restore on the
Linux box using the dump file. The restore is stalling.

Everything I've read indicates no 'conversion' is required on the
database to promote the version so in theory the restore should work
ok - apparently not!

Anyone have any ideas around a solution for creating the database on
Linux.

I'm wondering if there's a way to generate a schema file from the
Solaris based database and run that into the Linux version? Is there
an easier way?

Cheers,

Nov 12 '05 #2
Cheers,

Worked a treat.

C

do****@yahoo.co m (dotyet) wrote in message news:<6c******* *************** ****@posting.go ogle.com>...
Hi,

As far as my knowledge goes you cannot restore a soalris 6.1 database
backup on a linux 7.2 database. Cross Platform Backup/Restores are not
available for these versions of databases. It has something to do the
big-endian and little-endian stuff. They way to go would be like this:

Generate a Complete database schema from the solaris box.

$>db2look -d <db_name> {options}

Look at the db2look command in the reference manual for more or just
type db2look at your shell prompt, it will give some help.

Now take an export of all your tables using db2move utility. The data
files will be in ixf format.

$>db2move <db_name> export

Move the schema file and all the db2move related files to your linux
box using ftp or whatever.

Log in your Linux box and execute the above generated Database Schema
file. Make sure you have created the database before hand either using
db2 "create database" command or using some other scripts which might
be there in your scripts list.

$>db2 -tvf <schema_file>

Once that is done successfully, then go to the directory where you
have downloaded those export files, and then import/load them using
either of the following commands:

$>db2move <db_name> import

OR

$>db2move <db_name> load
This will populate your database with all the data you have in the
solaris box.

I can give you further help on importing stored procedures as well, if
you need.

Rest is fine..

hth,
dotyet

ca************* @infinity.co.nz (Cam Chapman) wrote in message news:<cb******* *************** ****@posting.go ogle.com>...
Does anyone have any experience migrating a DB2 database off UDB 6.1
(Solaris) to 7.2 (Linux)? The database does not already exist on the
Linux box. Have created a DB2 instance fine. DB2 installation went ok
(no fixpacks installed yet though!) and can create sample database and
query.

In my naiivity as a non dba reformed developer, I've dumped the
database on the solaris box and am trying to perform a restore on the
Linux box using the dump file. The restore is stalling.

Everything I've read indicates no 'conversion' is required on the
database to promote the version so in theory the restore should work
ok - apparently not!

Anyone have any ideas around a solution for creating the database on
Linux.

I'm wondering if there's a way to generate a schema file from the
Solaris based database and run that into the Linux version? Is there
an easier way?

Cheers,

Nov 12 '05 #3

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

Similar topics

10
3266
by: Markus Enders | last post by:
Hi everybody, currently we use DB2 7.1 on several Solaris machines. Now we are planning, to migrate to SUSE Linux (newest version). I wonder, if we can keep our DB2 version 7.1, or if we need to upgrade to version 8. How are your experiences running DB2 in version 7.1 on Linux. How difficult is the migration from Solaris to Linux concerning DB2? Are there some pitfalls or can I simply install the DB2, create my database (tables and...
8
2995
by: Xela | last post by:
Hi A have a very annoying problem. I have written java strored procedures for DB2 v8.1. Their deployement and usage is fine as long as the server is a Windows one. But under Solaris 8 and Linux RH, the call of sqlj.install_jar fails. It correctly create a directiory with the correct schema name, but the jar is not copied in it. The error is "Permission Denied" SQLSTATE 38501 and in the log, we can see that calling sqlejReadJar fails in...
0
4536
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager Express Edition v1.3.2 Win, IBM Tivoli System Automation v1.2.0 Linux, IBM Tivoli Workload Scheduler Virtualized Data Centers v8.2 , other IBM Tivoli CDs, WEBSPHERE EVERYPLACE MOBILE PORTAL v5.0 - ALTIUM , other IBM WebSphere Business CDs...
5
1495
by: Dave | last post by:
Compiled using g++ on linux and then I tried to execute it on Solaris. The error message was something like "can't execute a.out" - works ok on linux - ran chmod so Sun user has execute/read/etc permissions. chmod u=rwx Any clues why? I am new to the non windows world. Thanks
0
9738
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile. I need it to be compiled with threads. Anyone have any wisdom on how best to do this? Here's a transcript of my latest attempt. It's long; you might want to skip to the bottom, where I try "make" and the fatal errors start happening.
15
2450
by: Joe Weinstein | last post by:
Hi. Below is a simple JDBC program to insert and extract a numerical value. When ResultSet.getDouble() is called, the same program produces different output on solaris than it does on Linux. I would be grateful for any discussion of this! thanks, Joe Weinstein at BEA Systems Results on Linux Box -----------------------------------------------------------------------
0
1389
by: AnonymousFC4 | last post by:
1) Debugger. Is gdb (or ddd) still the best tool to debug C++ prog a) on Linux? b) On Solaris? 2) IDE, can you debug C++ programms, using Eclipse-cdt on both Linux and Solaris? Other tools? Thanks.
13
4084
by: Mary Lei | last post by:
Does anyone know the link to obtain the tarball for db2 8.1 for solaris running on AMD 64 bit ? This is the entire db2 installation on a new system that does not have db2. Thanks.
4
2661
by: tkirankumar | last post by:
Hi all, This is regarding the issue I am facing while porting the my application from SuSe Linux to Sun Solaris. The Existing system details: Itanium boxes 1mhz 4 processor 8 gb machines with SuSe Linux $ uname -a Linux longrtedged01 2.4.21-215-itanium2-smp #1 SMP Mon Apr 26 16:28:29
0
8361
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8807
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8701
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8466
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8584
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5615
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.