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 > Tables Spaces Not restored

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-08-11, 10:50
siddhu.pandu0854 siddhu.pandu0854 is offline
Registered User
 
Join Date: Nov 2011
Posts: 43
Red face Tables Spaces Not restored

Hi Thanks in advance

I have taken a backup with include logs option and restored it but 5 tablespaces are not restored properly wht i have to do ?

and one more thing i am trying to do restore those tablespaces but its not working .
db2 " restore db emdb tablespace ( 30 ) online from /db2/db200001/emdb taken at 20111108071745 "
SQL2549N The database was not restored because either all of the table spaces
in the backup image are inaccessible, or one or more table space names in list
of table space names to restore are invalid.
error code like this wht i steps i have to do to restore them properly?
pls help me .
Reply With Quote
  #2 (permalink)  
Old 11-08-11, 11:02
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I would suspect that you need to do a redirected restore as the file system of the server the backup was taken from and the one you are restoring to are not the same.

Andy
Reply With Quote
  #3 (permalink)  
Old 11-08-11, 11:13
siddhu.pandu0854 siddhu.pandu0854 is offline
Registered User
 
Join Date: Nov 2011
Posts: 43
same server only
Reply With Quote
  #4 (permalink)  
Old 11-08-11, 11:15
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Are you replacing the database or creating a new one? If you are creating a new one then, you have to do a redirected restore.

Andy
Reply With Quote
  #5 (permalink)  
Old 11-08-11, 11:16
siddhu.pandu0854 siddhu.pandu0854 is offline
Registered User
 
Join Date: Nov 2011
Posts: 43
am replacing the database andy
Reply With Quote
  #6 (permalink)  
Old 11-08-11, 11:26
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Try this:

Quiesce the instance--this will prevent anyone from using the databases.

Either DROP the database before you restore, or use "REPLACE EXISTING" in the restore command.

Andy
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