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 > Tablespace conversion

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-10-05, 09:02
db2man db2man is offline
Registered User
 
Join Date: Oct 2004
Posts: 28
Tablespace conversion

HI All,

Our database is currently setup for SMS tablespaces and would like to convert these tablespaces to DMS as performance is much better on DMS, is it possible to this conversion from SMS to DMS, anybody can help answer this question?

thanks to all
Reply With Quote
  #2 (permalink)  
Old 11-10-05, 09:40
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
There's no command to move the tables, so unfortunately you have to EXPORT->DROP->CREATE->IMPORT/LOAD each one.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 11-10-05, 10:00
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
how about a redirected restore ?
I thought I can change it there as well...

Just out of interest: Please let us know what you gained in performance, also if you could shortly describe your setup would be nice.

I always hear 'DMS is sooo much faster' versus 'Today on AIX there is nothing much to gain with DMS, esp. in a SAN' - so at least I would very much like to know what you managed.

Thanks.
__________________
Juliane
Reply With Quote
  #4 (permalink)  
Old 11-10-05, 10:10
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Redirected RESTORE won't work either unfortunately, they have to be the same type (ie. SMS to SMS, DMS to DMS).

I've seen a lot of set-ups, both SMS and DMS. The company I'm at now has SMS, and we've really seen no compelling reason to change. With RAID our data is already striped at the hardware level. Peformance is excellent, and unless you're using raw devices DMS doesn't have much advantage. Even the raw device advantages are supposed to be less significant now, according to performance gurus I've talked to.

Others may have a different spin on it, it really depends on how well your OS handles I/O, your hardware, your app, etc.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #5 (permalink)  
Old 11-11-05, 04:40
db2man db2man is offline
Registered User
 
Join Date: Oct 2004
Posts: 28
Thanks guys for the valuable input, we will probably have to make a big decision whether its really worth going through the pain, I will update this page if any changes.

Thanks again for your input
Reply With Quote
  #6 (permalink)  
Old 11-11-05, 07:49
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You probably would not see much performance benefit of switching to DMS unless your application does a lot of table scans on large tables.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #7 (permalink)  
Old 11-11-05, 12:02
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
If you are on PRE8.2 DB2 release, you can speedup SMS by running db2empfa.
__________________
mota
Reply With Quote
  #8 (permalink)  
Old 11-11-05, 12:26
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by dbamota
you can speedup SMS by running db2empfa.
By doing this you can only speed up inserts into an SMS tablespace. You'll still be suffering from double buffering, file fragmentation, file system overhead, etc.
Reply With Quote
  #9 (permalink)  
Old 11-11-05, 13:13
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
double buffering, file system overhead, etc. exists for DMS FILES too. RAW tablespaces avoid them.
__________________
mota
Reply With Quote
  #10 (permalink)  
Old 11-11-05, 13:59
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by dbamota
double buffering, file system overhead, etc. exists for DMS FILES too. RAW tablespaces avoid them.
I'm sure you know that, but that's beside the point; I was correcting your statement about SMS tablespaces and multi-page allocation.
Reply With Quote
  #11 (permalink)  
Old 11-11-05, 15:25
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
Your point well taken.
__________________
mota
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