473,402 Members | 2,053 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,402 software developers and data experts.

Tablespaces on backup image (UDB v8.1)

Lew
Hi,

I was wondering if there is a way to determine the tablespace id of
each tablespace on a backup image. I want to perform a redirected
restore pointing the tablespace containers to different locations
than the ones defined on the backup image.

While I haven't tried it yet I imagine that I could perform a
redirected restore of just the catalog table space and then look at
the catalog table info to determine the tablespaces.

1) Will the solution I detail above work
2) Is there another way to determine this information assuming that
I do not have the original system from which the backup was created

Thanks in advance

Lew
Nov 12 '05 #1
3 2354
Hi,

Lew wrote:
While I haven't tried it yet I imagine that I could perform a
redirected restore of just the catalog table space and then look at
the catalog table info to determine the tablespaces.


Do you mean something like "select from syscat....?". This is not going to
work as the database will be in "backup pending" state.

if you just want to find out which tablespaces are included in the
image-file i suggest to try kind of this:

db2 restore database foo from /dev/bar into test redirect

db2 list tablespaces show detail
db2 list tablespace containers for TBSCPID

db2 set tablespace containers for .....

db2 restore database foo continue
[db2 rollforward... ]

This should give you some advice, which tablespaces are included and how to
organize your storage.
Norbert
Nov 12 '05 #2
Hi Lew and Norbert.. Why dont you use db2ckbkp -T backupimage ? This
will show all tablespace details such as id, name of the tablespace,
name of the container(s) etc.
Nov 12 '05 #3
Hi Roger,

Roger wrote:

Thanks for the hint. You are right. This should be first if you don't know
what to expect from the image file.

Both should work.
Hi Lew and Norbert.. Why dont you use db2ckbkp -T backupimage ? This
will show all tablespace details such as id, name of the tablespace,
name of the container(s) etc.


--
BOFH Excuse #12:

dry joints on cable plug

Nov 12 '05 #4

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

Similar topics

2
by: Vikrant | last post by:
Friends, I have read DB2/UDB 8.x 'RESTORE DATABASE Command', with my 'limited' knowledge & skill. I think it should address my concern, but I want advice/ opinion / experience and any care I...
3
by: Raquel | last post by:
I am a newbie to UDB and reading the backup processes on UDB which look pretty good to me. Now, if these good backup and recovery procedures are already available 'within' UDB, what extra...
1
by: alex | last post by:
Hi ! I couldn't make backups with our new system using db2 8.2. Every time I trigger a backup I get this error message: BACKUP DATABASE EBUERO2 ONLINE TO "/raid/backup/ebuero2/part1",...
1
by: Odd Bjørn Andersen | last post by:
Environment: AIX 4.3.3 DB2 UDB WSE version 8.1 fixpack 9a When I access a database residing on this server from my workstation (Windows xp, servicepack2 - db2 udb ESE fixpack 10) and in Control...
3
by: Anurag | last post by:
Hi, I posted this on other user-groups. Hardly got any responses. Here goes the question: PLATFORM = DB2 UDB 8.2+ on AIX 5.x, DPF Two Topics broadly: (A) I wish to find out a rough...
3
by: vdileep | last post by:
Hi, I have 3 systems with db2 running on AIX. We take online backup on weekdays and offline on saturday. For the past two weeks the offline backup is getting terminated after exactly 2 hours 13...
3
by: dcruncher4 | last post by:
DB2 8.2.3 the task I have is to write a script to restore a database from a backup on to another machine. the backup can be as old as seven years. The container layout on the machine to be...
5
by: zgh1970 | last post by:
Hi, Friends, default DB2 compression library. I am wondering if this option will have any new restriction on RESTORE in the following. (Can I used that backup imsage for restore at the...
2
by: alex250374 | last post by:
Hi all, db2 9.1 fixpak 0 aix 5.3 I have a big problem every time I start an online backup with include logs via veritas comes out an error!!! The db2diag shows:...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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,...
0
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...

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.