If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2 tablespace level backup and restore(DB2V9.1)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-10, 12:25
nagaraju.bandaru nagaraju.bandaru is offline
Registered User
 
Join Date: Aug 2010
Posts: 12
db2 tablespace level backup and restore(DB2V9.1)

Hello all,
I taken a tablespace level backup (userspace1) for sample database later i deleted one table then i restored the backup image but i did not get the table which i dropped.Can you please resolve this issue.
Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 11-23-10, 12:29
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Table information is stored in the system catalog, which is not in userspace1.
Reply With Quote
  #3 (permalink)  
Old 11-23-10, 22:49
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
i believe u have taken an online tablespace backup and dropped the table after that
while restore u have applied the log files to end of logs then u won't find the dropped table after restore..

regds
Paul
Reply With Quote
  #4 (permalink)  
Old 11-24-10, 04:17
nagaraju.bandaru nagaraju.bandaru is offline
Registered User
 
Join Date: Aug 2010
Posts: 12
db2 backup and recovery(V9.1)

Hello Mathew_paul ,
thank u for ur replay. I tried the same as u mentioned but i am getting the same problem. The restore command i tried is :

db2 restore db sample tablespace(USERSPACE1) online from C:\Bacckup taken at <timestamp>
Reply With Quote
  #5 (permalink)  
Old 11-24-10, 04:26
nagaraju.bandaru nagaraju.bandaru is offline
Registered User
 
Join Date: Aug 2010
Posts: 12
db2 backup and recovery(V9.1)

Hello n_i,
Thanks for your reply, I tried to syscatspace. After taking the backup i tried to drop one table but it gives error as follows :

" The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0290N Table space access is not allowed. SQLSTATE=55039
Reply With Quote
  #6 (permalink)  
Old 11-24-10, 06:14
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
after restore u need to rollforward to PIT which can in done in other fresh database but need to restore both syscatspace and userspace1 for getting the table back u can also chk with rollforward option recover dropped table if ur tablespace is enabled for dropped table recovery

group pls suggest i may be wrong in this

regs
Paul
Reply With Quote
  #7 (permalink)  
Old 11-24-10, 12:09
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
read the manual. you need to restore what ever tbs had this table. And as was mentioned you need to roll it to a time BEFORE your table was dropped.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #8 (permalink)  
Old 11-24-10, 22:20
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Reply With Quote
  #9 (permalink)  
Old 11-25-10, 10:07
nagaraju.bandaru nagaraju.bandaru is offline
Registered User
 
Join Date: Aug 2010
Posts: 12
db2 backup and recovery(V9.1)

Hello Mathew_paul ,
thank u for ur replay.As i took the backup for userspace1,why need to restore for both userspace1 and syscatspace.
Reply With Quote
  #10 (permalink)  
Old 11-25-10, 16:24
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Read about tablespace's minimum recovery time here:
IBM DB2 9.5 Information Center for Linux, UNIX, and Windows
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On