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 > restore SMS to DMS containers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-30-04, 09:42
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
restore SMS to DMS containers

Is it possible to restore a database that is setup with SMS type containers to DMS containers. I have tried it and keep getting an error saying tablespace is not accessable. I have listed the command below that I am running. I have never tried this before. THis is on AIX 5.2 and DB2 V8 fixpak 3.

RESTORE DB REPBKP
from /db2/ETD/sapdata5
TAKEN AT 20040330125621
INTO REPBKP
REPLACE EXISTING;
SET TABLESPACE CONTAINERS FOR 0
IGNORE ROLLFORWARD CONTAINER OPERATIONS
USING
(file '/db2/ETD/sapdata1/REPBKP/syscatspace.container001' 3000,
file '/db2/ETD/sapdata2/REPBKP/syscatspace.container002' 3000,
file '/db2/ETD/sapdata3/REPBKP/syscatspace.container003' 3000,
file '/db2/ETD/sapdata4/REPBKP/syscatspace.container004' 3000,
file '/db2/ETD/sapdata5/REPBKP/syscatspace.container005' 3000);
__________________
David Quigley
Reply With Quote
  #2 (permalink)  
Old 03-30-04, 09:48
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: restore SMS to DMS containers

Quote:
Originally posted by quigleyd

RESTORE DB REPBKP
from /db2/ETD/sapdata5
TAKEN AT 20040330125621
INTO REPBKP
REPLACE EXISTING;
Didn't you forget the 'REDIRECT' clause?
Reply With Quote
  #3 (permalink)  
Old 03-30-04, 10:29
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Re: restore SMS to DMS containers

Quote:
Originally posted by quigleyd
Is it possible to restore a database that is setup with SMS type containers to DMS containers. I have tried it and keep getting an error saying tablespace is not accessable. I have listed the command below that I am running. I have never tried this before. THis is on AIX 5.2 and DB2 V8 fixpak 3.

RESTORE DB REPBKP
from /db2/ETD/sapdata5
TAKEN AT 20040330125621
INTO REPBKP
REPLACE EXISTING;
SET TABLESPACE CONTAINERS FOR 0
IGNORE ROLLFORWARD CONTAINER OPERATIONS
USING
(file '/db2/ETD/sapdata1/REPBKP/syscatspace.container001' 3000,
file '/db2/ETD/sapdata2/REPBKP/syscatspace.container002' 3000,
file '/db2/ETD/sapdata3/REPBKP/syscatspace.container003' 3000,
file '/db2/ETD/sapdata4/REPBKP/syscatspace.container004' 3000,
file '/db2/ETD/sapdata5/REPBKP/syscatspace.container005' 3000);
Unfortunately, no. You need to export->drop->create->load/import to move the table to a DMS tablespace.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #4 (permalink)  
Old 03-30-04, 10:39
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
Re: restore SMS to DMS containers

Thanks for the reply thats what I thought, I was hoping I was missing something.
__________________
David Quigley
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