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

Restore database Vs Restore tablespace.....

How are the following two commands different as far as the 'end
result' of the restores is concerned:

1. db2 RESTORE DB mydb
2. db2 RESTORE DB mydb TABLESPACE

In other words, in the above case, what is the difference between
'database restore (performed in point 1 above) Vs the 'tablespace
restore' (performed in point 2 above).

TIA
Raquel.
Nov 12 '05 #1
4 10248
"Raquel" <ra****************@yahoo.com> wrote in message
news:9a**************************@posting.google.c om...
How are the following two commands different as far as the 'end
result' of the restores is concerned:

1. db2 RESTORE DB mydb
2. db2 RESTORE DB mydb TABLESPACE

In other words, in the above case, what is the difference between
'database restore (performed in point 1 above) Vs the 'tablespace
restore' (performed in point 2 above).

TIA
Raquel.


The first restores the entire database, the second restores only the
specified tablespace.

If you restore a tablespace, you need archive logging turned on (before the
backup performed).

Note that you can restore a specific tablespace from a full database backup
or a tablespace backup.
Nov 12 '05 #2
> The first restores the entire database, the second restores only the
specified tablespace.

If you restore a tablespace, you need archive logging turned on (before the
backup performed).

Note that you can restore a specific tablespace from a full database backup
or a tablespace backup.

I think you mis-understood my question. The statement "db2 RESTORE DB
mydb TABLESPACE" does not have any 'specific tablespace' mentioned. I
was wondering that in this specific case (where no specific tablespace
is mentioned), what is the difference between these two statements.

TIA
Raquel.
Nov 12 '05 #3
Raquel <ra****************@yahoo.com> wrote:
I think you mis-understood my question. The statement "db2 RESTORE DB
mydb TABLESPACE" does not have any 'specific tablespace' mentioned. I
was wondering that in this specific case (where no specific tablespace
is mentioned), what is the difference between these two statements.


"db2 restore db mydb tablespace" will restore whatever tablespaces happen
to be in the backup image that you're restoring. If it's a tablespace
backup, it might not contain all of the tablespaces that exist in the
database.

Furthermore, after the restore, the tablespaces that you restored will
be in rollforward-pending state, whereas after a database restore, it
is the database that is in rollforward-pending state.

There are a few other subtle cases where the two cases are different, but
they all come down to the idea that a tablespace restore is not the same
as a database restore.

dave
Nov 12 '05 #4
Thanks Dave. Make things very clear now.

Regards,
Raquel.
Nov 12 '05 #5

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

Similar topics

9
by: GL | last post by:
I am running DB2 8.1.1 on AIX 5.1 Having a problem with a redirected restore. Once into the restore continue phase, I immediately get the following “SQL2059W A device full warning was...
11
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...
6
by: Raj | last post by:
How can we do an online restore of a tablespace using the incremental backup's? we are on a partitioned database... Also, how could we use backup copy made by the load (using the copy to option...
2
by: vj_dba | last post by:
Hi Group, I have a problem in restoring my tablespace, my database is running in ARCHIVAL logging, I created a tablespace, did some transaction, then took the ONLINE BACKUP of the tablespace....
0
by: zhif | last post by:
I tried to test this process on my personal laptop. Could you help me to take a look where is the problem as below? 1. I created a source database, name: db100 <-- db2 create db db100...
0
by: mccuenpat | last post by:
Currently trying to perform a redirected restore of DB2 database using Netbackup in AIX environment. The restore command completes successfully but the set tablespace commands fail due to no...
2
by: modeler | last post by:
Hello, I am trying to restore a DB2 9.1 fp2 backup to another DB2 9.1 fp2 machine, both are on Windows. C:\Program Files\IBM\SQLLIB\BIN>db2 -tvf C:\db2_data\test.db2 UPDATE COMMAND OPTIONS...
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...
1
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...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
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...

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.