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 > Moving Tables from a SMS in a DMS

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-28-03, 11:09
Leonets Leonets is offline
Registered User
 
Join Date: Oct 2003
Location: florence-italy
Posts: 9
Moving Tables from a SMS in a DMS

I am in the process of database reorganization.

I have now a Db2 8.1 on a W2000 server.

I have a database whose backup file is about 1.4Gb.
All the tables are using now System Managed Tablespaces.

The database serves 5 different application, each one has its own user/schema.

I need to build 5 different Database Managed Tablespaces and then I need to move all the tables of each user in their corresponding new DMS.

So I have succesfully run these commands:

CONNECT TO FIDES;
EXPORT TO C:\PROGRA~1\SQLLIB\WEBCPTAB.IXF OF IXF MESSAGES C:\PROGRA~1\SQLLIB\WEBCPTAB.EXM SELECT * FROM FIDESRETE.CUSTOMER;
IMPORT FROM C:\PROGRA~1\SQLLIB\WEBCPTAB.IXF OF IXF MESSAGES C:\PROGRA~1\SQLLIB\WEBCPTAB.IMM CREATE INTO FIDESRETE.TEST IN FIDESRETE INDEX IN FIDESRETE LONG IN FIDESRETE ;
CONNECT RESET;

These commands have cloned the FIDESRETE.CUSTOMER table in the
FIDESRETE.TEST table.

So at this point I should:
- DROP TABLE FIDESRETE.CUSTOMER
- export/import again from FIDESRETE.TEST to FIDESRETE.CUSTOMER

Is there a way to avoid to do 2 export/import ?

Thks in advance
Reply With Quote
  #2 (permalink)  
Old 10-28-03, 11:23
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Moving Tables from a SMS in a DMS

AFAIk, Export/IMPORt is the only option

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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