473,385 Members | 1,337 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.

restoring DB on test server after alt_obj() fails due to COPY YES

aj
DB2 LUW 8.2 FP14 Red Hat AS 2.1

I went to restore a backup of my production DB on my test/developmental
server. The backup on the prod system was taken /before/ alt_obj() was
used there to do some schema evolution.

The restore on the test box barfed on the roll forward because alt_obj()
uses COPY YES on its LOAD, and the test box did not have the magic data
COPY YES files (apparently they are in ~/sqllib/tmp?).

Willing to try anything, I tried to copy these COPY YES/LOAD data files
from prod to test, but the copy command barfed - some of the data files
are named pipes or something odd?

So this means that whenever I use alt_obj(), I must do DB backup /after/
that before I can restore that DB on my test box.

<heavy sigh>....

Does anyone have a way around this? Any ideas? It would even be
acceptable if the tables associated with the COPY YES data just weren't
restored..

Maybe alt_obj() be persuaded to do a non-recoverable LOAD?

TIA

aj
Jan 25 '07 #1
1 1536
If your altobj is run immediately after the backup has been taken and
you know that there are no changes to the database between them, you
could run a point-in-time recovery, stopping just before the altobj is run.

If your backup is offline, you can restore it without the rollforward.
Online backups can also be restored with a rollforward to the end of the
backup.

You could also take a second backup after the altobj. I'm assuming you
don't do regular altobjs, so it may not be a big issue.

Phil Sherman
aj wrote:
DB2 LUW 8.2 FP14 Red Hat AS 2.1

I went to restore a backup of my production DB on my test/developmental
server. The backup on the prod system was taken /before/ alt_obj() was
used there to do some schema evolution.

The restore on the test box barfed on the roll forward because alt_obj()
uses COPY YES on its LOAD, and the test box did not have the magic data
COPY YES files (apparently they are in ~/sqllib/tmp?).

Willing to try anything, I tried to copy these COPY YES/LOAD data files
from prod to test, but the copy command barfed - some of the data files
are named pipes or something odd?

So this means that whenever I use alt_obj(), I must do DB backup /after/
that before I can restore that DB on my test box.

<heavy sigh>....

Does anyone have a way around this? Any ideas? It would even be
acceptable if the tables associated with the COPY YES data just weren't
restored..

Maybe alt_obj() be persuaded to do a non-recoverable LOAD?

TIA

aj
Jan 28 '07 #2

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

Similar topics

6
by: Edwinah63 | last post by:
Hi Gurus, i am having problems with restoring a ms sql database. i have restored the database using veritas to a different location ('g:\datafiles') in no recover mode. when i view the...
0
by: Martin Hart | last post by:
Hi, postgresql 7.4beta4 on linux and postgresql 7.3.4 on linux We have a database that we routinely backup using "pg_dump -a" We have to do this (dump the data only) because of various...
3
by: rdemyan via AccessMonster.com | last post by:
I'm thinking about providing a relatively easy method for users to restore the front end from a backup. The purpose is to allow for restoring if the front end becomes corrupt. Here are some...
1
by: Robbert van Geldrop | last post by:
Hello, I have a problem restoring Exchange 2000 files. Our software has an interface to ESEBCLI2.dll for online backup and restore features. Everything works fine with Exchange 2003 and also...
2
by: murrayb3024 | last post by:
We set up a test box and having been trying to move an entire instance from our production server to this one. I have moved all my created dbs using the RESTORE WITH MOVE. Now I am trying to move...
3
by: Matt | last post by:
Does the standard define default values for the format state of an ostream? I would like to be able to put a stream in a standard format state without thinking about how some other routine may...
1
by: Paul Brady | last post by:
In a self-contained database, the following query works fine and returns courses taken on 3/8/2000: ---------- SELECT TransactionCourses.CourseID, TransactionCourses.MbrID,...
5
by: Troels Arvin | last post by:
Hello, Every so often, I'm asked to help people recover data from tables that were either dropped or where to much data was DELETEed. The complications related to restoring data are a problem....
2
by: l0b0 | last post by:
I'm working on a restore procedure for the case where all MDF files are missing, but the LDF files are all intact. A full backup is done every 24 hours, and a log backup is done every 3 hours....
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.