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

Unable to restore a v7.02 saved database into v8.1

Hi,

due to an upgrade from a former DB2 v7.02, I backed up an entire
database to a file in the local filesystem under Linux.

I removed the old version completely an installed a fresh v8.1 DB2.
After initialisation, I tried to restore the old database into
the new DB2 version with db2cc or db2 command line interface.

The process fails with the following error message:

db2 => restore database EAD from "/my/path/TESTDB.0.db2inst1.NODE0000.CATN0000.20040108142834 .001"
SQL2036N The path for the file or device
"TESTDB.0.db2inst1.NODE0000.CATN0000.2004010814283 4.001" is not valid.

The path is doubtless correct, though ...

Any help appreciated, TIA,
Frank
Nov 12 '05 #1
3 5245
Correct, but incorrect. Try RESTORE... FROM /my/path, without
specifying the file itself. To specify a particular backup image if
there are multiple images in that path, then use the TAKEN AT
<timestamp> option.

The RESTORE path is a directory or device where the backup image exists,
just as with the BACKUP command.

Hope that helps.
kdr
Frank Stefani wrote:
The process fails with the following error message:

db2 => restore database EAD from "/my/path/TESTDB.0.db2inst1.NODE0000.CATN0000.20040108142834 .001"
SQL2036N The path for the file or device
"TESTDB.0.db2inst1.NODE0000.CATN0000.2004010814283 4.001" is not valid.

The path is doubtless correct, though ...


--
================================================== ===================
Kelly D. Rodger IBM Canada
DB2 UDB Development Backup & Restore
================================================== ===================

Nov 12 '05 #2
Your command should only be:db2 => restore database TESTDB from "/my/path"
taken at 20040108142834
Then:
db2 catalog db TESTDB as EAD on <whichever path TESTDBwas restored on>
db2 uncatalog db TESTDB

I presume here that the instance is also db2inst1 on the new system.
DB2 will recognize DB2 V7 as the source and the migration to V8 will be
automatic during the restore.
HTH, Pierre.
"Frank Stefani" <fs@despammed.com> a écrit dans le message de
news:40***************@despammed.com...
Hi,

due to an upgrade from a former DB2 v7.02, I backed up an entire
database to a file in the local filesystem under Linux.

I removed the old version completely an installed a fresh v8.1 DB2.
After initialisation, I tried to restore the old database into
the new DB2 version with db2cc or db2 command line interface.

The process fails with the following error message:

db2 => restore database EAD from "/my/path/TESTDB.0.db2inst1.NODE0000.CATN0000.20040108142834 .001" SQL2036N The path for the file or device
"TESTDB.0.db2inst1.NODE0000.CATN0000.2004010814283 4.001" is not valid.

The path is doubtless correct, though ...

Any help appreciated, TIA,
Frank


Nov 12 '05 #3
Thank you both, Kelly and Pierre, for the successful hint!

FWIW, I don't understand why db2cc prints a different
SQL statement, which was my starting point for doing
it on the DB2 shell. That command *did not* work, your
hint *does*

Regards,
Frank
Nov 12 '05 #4

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

Similar topics

2
by: lawrence | last post by:
I'm probably missing something obvious, but I'm unable to write a file with this function. I've used my FTP software to set permissions to 777 on all the files in question. I've tried r, r+, w, and...
0
by: xo55ox | last post by:
Hi, I have been trying to set up an automated restore process from prod to backup server. First, I schedule the full database backup nightly, transfer the backup file and restore it to the...
11
by: Chris | last post by:
I have searched this group for answers and tried the responses. I am trying to Use an full online backup from our production server and apply it to our test server. The Tablespaces in the...
16
by: gumby | last post by:
I'm having trouble getting HADR to work with the sample databases on two HS20 xSeries blades, Red Hat ES4 up3, DB2 8.2.4, getting the following error. SQL1768N Unable to start HADR. Reason code...
4
by: lesperancer | last post by:
it looks like this will save many versions of a relationship window, but based on the fact that the same tables are displayed in the relationship window and it will restore versions of what was...
1
by: ILPTAB | last post by:
Hello. Can somebody help me out here? I have a web server sitting on a DMZ that has DB2 UDB version 8 installed running on it. I would like this server to be completely independent of our...
2
by: Query Builder | last post by:
Hi, I have transactional replication set up on on of our MS SQL 2000 (SP4) Std Edition database server Because of an unfortunate scenario, I had to restore one of the publication databases. I...
0
by: nimjerry | last post by:
i am using db2 udb V 9 on aix 5.3 and in db2diag.log alwas has this error occurr below is sample message 2008-03-03-09.45.34.366406+420 I306667A443 LEVEL: Warning PID : 835622 ...
1
by: mlaris | last post by:
Howdy, We are experiencing a bizarre problem under Linux attempting to restore a DB2 database. The backup was created on this machine, and is being restored to the same machine, but changing the...
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: 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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.