473,473 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Single table restore

Hello!
Is it at all possible (on DB2 V7.2, AIX) to restore a single table from a
full table backup?
The RESTORE DB command doesn't have this functionality - at least not
according to the DB2 manuals.
Any undocumented commands, switches, tweaks?

Regards,
Damir
Nov 12 '05 #1
2 9522

"Damir Wilder" <da**********@etna.hr> wrote in message
news:ce**********@ls219.htnet.hr...
Hello!
Is it at all possible (on DB2 V7.2, AIX) to restore a single table from a
full table backup?
The RESTORE DB command doesn't have this functionality - at least not
according to the DB2 manuals.
Any undocumented commands, switches, tweaks?

I think what you meant to say was a "full *database* backup", not a "full
table backup".

You are right, the RESTORE command does not work at the table level. It
works at the database level or the tablespace level, as documented in the
Command Reference. Therefore, you may want to redesign your physical
database somewhat so that any table that may need to be restored
independently of the other tables is in its own tablespace (or database).

However, many database designs feature lots of interrelationships between
tables. In cases like that, you will want to restore all the related tables
to the same point in time so that you don't create logical inconsistencies
between the tables. Each group of related tables might end up in its own
tablespace so that you could restore that one tablespace independent of the
rest of the database.

I realize that this doesn't help you with your immediate problem but it may
help you improve the design of your database so that this problem doesn't
occur again in the future.

Rhino
Nov 12 '05 #2
"Damir Wilder" <da**********@etna.hr> wrote in message
news:ce**********@ls219.htnet.hr...
Hello!
Is it at all possible (on DB2 V7.2, AIX) to restore a single table from a
full table backup?
The RESTORE DB command doesn't have this functionality - at least not
according to the DB2 manuals.
Any undocumented commands, switches, tweaks?

Regards,
Damir

Restore the backup to a new database name and then export the data from the
table you want, and import it back in to the old database. That is the only
option that I know of.
Nov 12 '05 #3

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

Similar topics

5
by: Mark S | last post by:
I have a db maintenance plan which is set to backup (then truncate hopefully) the transaction log. In order to backup a transaction log the db must be in single user mode so the maint. plan fails. ...
10
by: Bing Du | last post by:
Greetings, Our former SQL Server 2000 DBA backed up everything in a single disk file. By everything I mean, full backup, differential backup and transaction logs. See below for details of how...
2
by: Deano | last post by:
One of the more challenging things on my app's wishlist is to make it multi-user on a LAN. For the record my app was always intended to a single-user but things have changed. It's mostly...
5
by: ronin 47th | last post by:
Hi group, In one of the books 'Gurus Guide to Transact SQL' i found this info: ------------------------------------------------------------ TRUNCATE TABLE empties a table without logging row...
1
by: dbagirltx | last post by:
We have done some testing with mixed and forgotten results. So I'm hoping that asking here can clarify some issues for us. Right now we do one weekly warm backup. Throughout the week there are...
2
by: rdemyan via AccessMonster.com | last post by:
For some of my really important tables, I have backup tables in the backend file. The idea is that if a user accidentally screws up data, they can go to a form and restore from the backup table...
5
by: Nasif | last post by:
Hello All I am currently doing a project on MS SQL Server 2005 where I am in need of table level backup/restore. I know about FILEGROUP. But in our project using FILEGROUP is not feasible. As...
2
by: mvsmsh | last post by:
Hi , all We have hundreds of tables in on tablespace , but I'm planning to change as one table per one tablespace. . I wonder how other shops does ? Are there any special reasons in UDB...
4
by: pinoy2ser | last post by:
hello All, im not a db2 person, please forgive me for asking a simple question.. i would like to restore a tablespace from a current database to a new database in the same server how do i...
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
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...
1
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
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...
1
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...
0
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...
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.