473,735 Members | 9,917 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1553
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
9616
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 database through the Enterprise Manager, it shows the database as silver icon (loading).
0
4888
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 characteristics of the database (e.g. the dump file tries to create fks to tables that it hasn't created yet if we export schema + data).
3
2743
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 particulars about my app 1) The front end is distributed as a .mde file. 2) Front end uses workgroup security 3) A separate logon form is used to actually launch the front end. 4) My app includes a backup front end form, that backups the front end...
1
2369
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 when backing up Exchange 2000, yet restoring Exchange 2000 gives some problems: A Store is restored: * the restore is started.
2
1601
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 the Master, Model, and msdb. This is where I am having trouble. On the production box the dbs are stored on D:\mssql$instancename\data. On the test server the data is stored in C:\Program Files\Microsoft SQL Server\mssql$instancename\data. ...
3
5440
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 have changed the state. I don't see the answer in Stroustrup or in the parashift FAQs. I would like to write a statement like my_ostream.restore_format_state_defaults();
1
1917
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, TransactionCourses.CourseDate FROM TransactionCourses WHERE (((TransactionCourses.CourseID)=1103) AND ((TransactionCourses.CourseDate)=#3/8/2000#)) ORDER BY TransactionCourses.MbrID, TransactionCourses.CourseDate; ---------------
5
6563
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. The SAS users are laughing because they can (to a certain extend) easily go back to an earlier SAS table by simply starting dsm. Of course, a flat file table is different than a relational table; but still, the trouble related to restoring DB2...
2
8274
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. After restoring the last full + log backups, is it at all possible to use the LDF files to recover data from that point up to a newer point in time? I've found a post which explains how to do this on SQL Server 2000...
0
8785
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,...
0
9327
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
9251
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
9200
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
6747
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
6049
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
4559
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
4822
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2188
bsmnconsultancy
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...

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.