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

Restore backup performed on Unix server to a Windows server

Hi All,

I understand in older versions of DB2/UDB this was not possible. The
following article explains how I might do this

http://www.ibm.com/developerworks/db...0207kline.html

Is this still a restriction in version 9.x? I'd specifically like to
restore a backup performed on an AIX server to a Windows server.

Thanks,
Christian Maslen

Aug 28 '07 #1
4 5733
On Aug 28, 1:55 am, Christian Maslen <christian.mas...@techie.com>
wrote:
Hi All,

I understand in older versions of DB2/UDB this was not possible. The
following article explains how I might do this

http://www.ibm.com/developerworks/db...le/0207kline/0...

Is this still a restriction in version 9.x? I'd specifically like to
restore a backup performed on an AIX server to a Windows server.

Thanks,
Christian Maslen
I don't know if V9 lets you do this, but definitely not in version 8.
AIX is big-endian and Windows is little-endian (among other problems).

The best way is to use db2look to pull the schema definition, and
db2move export/load to move the data. When doing this, I usually split
the db2look into 2 files, one without the foreign keys, and one with
only foreign keys. I do the following:

1. get db2look on source server (specify your own delimiter other than
semi-colon so triggers and stored procs will be created properly).
2. pull out the foreign keys from db2look into a separate file
3. edit db2look output for new containers for target server
4. run db2look on target server (without foreign keys)
5. run db2move export and zip up all db2move files and send to target
server (optional)
6. unzip db2move files and run db2move load replace on target server
7. create foreign keys extracted from db2look.

Aug 28 '07 #2
On Mon, 27 Aug 2007 22:55:29 -0700, Christian Maslen scribbled:
Hi All,

I understand in older versions of DB2/UDB this was not possible. The
following article explains how I might do this

http://www.ibm.com/developerworks/db2/library/
techarticle/0207kline/0207kline.html

Sorry, I don't think that article does explain how to backup/restore
between platforms (unless I've misunderstood your intent in referencing
it?)

From the article: "In the example provided later, we will be using two
Windows machines that are mapped to each other via a local network (it is
required that both machines have the same OS platform)" and later on: "If
you plan to use a UNIX environment, the same rules apply. Both machines
must have the same OS platform (an exception is a restore between SunOS
and HP)"
Is this still a restriction in version 9.x? I'd specifically like to
restore a backup performed on an AIX server to a Windows server.
The article's talking about v7. As Mark's already pointed out it's
definitely a restriction in v8. Looking at the v9 InfoCenter, the topic
"Backup and restore operations between different operating systems and
hardware platforms" [1] contains the following:

"""
The supported platforms for DB2 backup and restore operations can be
grouped into one of three families:

* Big-endian Linux and UNIX
* Little-endian Linux and UNIX
* Windows
"""

The fact that Windows is its own family doesn't bode well for your
particular situation, and indeed the following seems to confirm that
backup & restore from AIX -Windows is not possible in v9:

"""
A database backup from one platform family can be restored on any system
within the same platform family. For Windows operating systems, you can
restore a database created on DB2 UDB V8 on a DB2 Version 9 database
system. For Linux and UNIX operating systems, as long as the endianness
(big endian or little endian) of the backup and restore platforms is the
same, you can restore backups that were produced on DB2 UDB V8 on DB2
Version 9.
"""

Hence, some combination of db2look & db2move (as detailed in Mark's
response) would seem to be simplest way forward.

[1] http://publib.boulder.ibm.com/infoce...2luw/v9/topic/
com.ibm.db2.udb.admin.doc/doc/c0005960.htm
Cheers,

Dave.
Aug 28 '07 #3
My thanks to Mark and Dave for their answers. I suspected it wouldn't
work. The ref quoted from by Dave is at (for others to ref):

http://publib.boulder.ibm.com/infoce...74%65%6d%22%20

Gotta love that word "Endianness"

We develop and deploy on AIX but often want to take a database with
data home on Windows. I thought I could cover this by using the same
table spaces on both. To the DB2 developers, consider this post a
feature request ;o)

Regards,
Christian.

Aug 29 '07 #4
Backups can only be restored in the same "family" of OS.
Backup in WIN and restore to a AIX box won't work.
You can use db2move to do this...

Sep 3 '07 #5

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

Similar topics

3
by: Tim Morrison | last post by:
MSDE2000 I have an application in which I am running a TSQL command of BACKUP DATABASE and RESTORE DATABASE for the backup and restore commands for my application. For testing purposes, i did the...
5
by: mikkel | last post by:
Hello, Im working on a project where I have to bring at production database in house for regression testing. The people who hosts the database (db2 version 7) has made a backup of the base...
4
by: Andy J | last post by:
Hi Everyone NEW USER Q. I am trying to restore a database backup image to another machine. Both machines are installed with same DB2 7.2 installation package. Version: 7, Release: 2,...
3
by: ReeseDog | last post by:
First time DB2 user here. I have a backup from a unix box around 8.1. I am trying to restore this backup on a windows box 8.2 (demo version) I am not sure how the original backup was created...
5
by: chow.justy | last post by:
Dear all, I'm a new beginner of DB2. I face 2 question during restore the data. I have 2 DB2 servers on my company. Server A is running on V7.2 and Server B is running on v8.2 (Enterprise...
2
by: maha | last post by:
Dear DB2 experts! I'm stuck with the following issue: from a customer I got a DB2 backup file, created on an AIX-32 machine that I cannot restore on my windows platform. I admit that I posses...
5
by: abelbfilho | last post by:
I have a backup image with name DADOSADV.0.DB2.NODE0000.CATN0000.20060812230006.001 and I want to restore it on Windows (in another server). In Windows Server I created this folder structure:...
13
by: danceli | last post by:
I have two servers, using SQL server 2000. I was asked for implementing hourly Backup 3 databases in one server and restore those databases to another server. Could anyone give me the detailed...
2
by: modeler | last post by:
Hello, I am trying to restore a DB2 9.1 fp2 backup to another DB2 9.1 fp2 machine, both are on Windows. C:\Program Files\IBM\SQLLIB\BIN>db2 -tvf C:\db2_data\test.db2 UPDATE COMMAND OPTIONS...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.