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.db2ins t1.NODE0000.CAT N0000.200401081 42834.001"
SQL2036N The path for the file or device
"TESTDB.0.db2in st1.NODE0000.CA TN0000.20040108 142834.001" is not valid.
The path is doubtless correct, though ...
Any help appreciated, TIA,
Frank 3 5268
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.db2ins t1.NODE0000.CAT N0000.200401081 42834.001" SQL2036N The path for the file or device "TESTDB.0.db2in st1.NODE0000.CA TN0000.20040108 142834.001" is not valid.
The path is doubtless correct, though ...
--
=============== =============== =============== =============== =========
Kelly D. Rodger IBM Canada
DB2 UDB Development Backup & Restore
=============== =============== =============== =============== =========
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.c om> a écrit dans le message de
news:40******** *******@despamm ed.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.db2ins t1.NODE0000.CAT N0000.200401081 42834.001" SQL2036N The path for the file or device "TESTDB.0.db2in st1.NODE0000.CA TN0000.20040108 142834.001" is not valid.
The path is doubtless correct, though ...
Any help appreciated, TIA, Frank
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 w+ as
possible ways of opening the files.
The first fopen is trying to create a file where none exists. It fails
(thought I've set dir permissions to 777 as well). How can I create a
file?
There error messages print back the full input, so...
|
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 database on the backup
server. Meanwhile, I leave the database ready to accept transaction
log from the transaction log backup at noon daily.
And I had used different restore options to test out the transaction
that was being applied. And I couldn't...
|
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 productions server
are on the d drive and my test server has no d drive.
The restore command i am using is:
RESTORE DATABASE CENTRAL FROM "C:\DB2Backups" TAKEN AT 20050620000000
INTO CENT0620 REDIRECT;
|
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 = "7" - The primary
database failed to establish a connection to its standby database
within the HADR timeout interval.
What things should I check besides the remote host and remote service
parameters on the standby database, which seem to be...
|
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 saved as long as all the
tables that were saved are currently shown in the relationship window
so if I have 2 tables, employee and customer
and if I show just the employee table in the relationship window, I can
save it as 'employee'
| |
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 internal network.
If possible, I would like to be able to each morning FTP a copy of the
backup image from our production database, which is created from the
previous night's db2 backup, to the web server. I am hoping that I
|
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 scripted the replication module and dropped
the publication first. Then did a full restore.
When I try to set up the replication thru the script, it created the
|
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 TID : 1 PROC : db2stmm (WEBEDIDB)
INSTANCE: db2inst1 NODE : 000 DB : WEBEDIDB
APPHDL : 0-8 APPID: *LOCAL.db2inst1.080229022428
AUTHID : DB2INST1
FUNCTION: DB2 UDB, Self tuning memory...
|
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 name of the database, and redirecting the tablespaces. The system is running DB2 Express C V9.5 and RHEL5 with latest updates
The restore commands we are trying to run are as follows:
RESTORE DATABASE CARDS FROM "/opt/rccs/data/backups"...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
| |
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...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |