473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Moving Tables from SMS to DMS tablespace

Hello all,

I have a database around 600GB and all tables were self-created by the
application. Hence, we have only one huge SMS tablespace where all the
tables are stored. To get better performance, we are planning to move
the tables to a DMS tablespace with multiple containers. There are LOTS
of tables and some tables have almost 40GB of data. Can you please
suggest and efficient way of doing this.

Also, I know that even a 32KB page size DMS tablespace can grow up to a
max of 512 GB, so since the current tablespace is already that big, I
wonder if I would be able to move to a DMS tablespace.

Does having multiple SMS containers help in performance??

Thannks.

May 25 '06 #1
2 5537
Here are some thoughts

1. If you have space to create new tablespace do like this
declare cursor/load from cursor
Once the data load is successful then drop the OLD one.

2. If your tablespace is reaching 512 GB not a single table then you
are o.k
Find the biggest tables in the Tablespace and then create seperate
tablespaces for these big tables.

cheers...
Shashi Mannepalli

May 25 '06 #2
To the last part of your question: Yes. Multiple containers will always
give you better performance for SMS and DMS. If the drives are in an RAID
configuration then one container per array.

As to moving your data from SMS to DMS there's probably only one way which
will lead you to alot of editing.
Use db2look to extract all the ddl for the database with the proper parms.
A db2look -h will help.
Edit the output file so that the create tablespace statements are changed to
create the proper DMS definitions. You can add statements to the file.
Edit the create table statements to point the right table at the right
tablespace.
Since you will be using DMS tablespaces, think about separating the index
from the data. Multiple DMS tablespaces can be used for this.

Once you have defined this. Backup your current db.
Use db2move command to extract the data to a target directory (big!!!).

Drop the current db.
Re-Create the db with normal defaults.
Run the output of the db2look file:
db2 connect to <dbname>
db2 -tf <oufilename>
Use db2move with a load option to load the data in the the newly created
tblspces and tables.

It may not be totally elegant, will require lots of keying, but it works.

Unfortunately, there's no way to alter SMS to DMS, nor is there to backup
from SMS to DMS. So, objects need to be re-created and data moved.
HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"db2dude" <db******@gmail.com> a écrit dans le message de news:
11**********************@i39g2000cwa.googlegroups. com...
Hello all,

I have a database around 600GB and all tables were self-created by the
application. Hence, we have only one huge SMS tablespace where all the
tables are stored. To get better performance, we are planning to move
the tables to a DMS tablespace with multiple containers. There are LOTS
of tables and some tables have almost 40GB of data. Can you please
suggest and efficient way of doing this.

Also, I know that even a 32KB page size DMS tablespace can grow up to a
max of 512 GB, so since the current tablespace is already that big, I
wonder if I would be able to move to a DMS tablespace.

Does having multiple SMS containers help in performance??

Thannks.


May 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: m.e.bruche | last post by:
Hi, In my database, I created a lot of tables before I found out about schemas. It's a mess! Suppose I want to get organised, and create a couple of schemas. How do I move existing tables...
2
by: helen_msql | last post by:
Hi, ms-sqlserver 2000 sp4 - entrerprise edition Can you help me on this issue. I would like to move some user tables(about 100 MB) to new file group. Can you tell me what I need to do? ...
6
by: shsandeep | last post by:
I currently have 500 tables in 1 single schema. I would like to move 250 out of the 500 tables into a new schema. How is this done? Thanks.
4
by: Gladiator | last post by:
hi everyone..... Can anyone tell how to move tables between schemas.......... that is changing the schema name of the table................ thanks in advance.... Kamal
4
by: dkintheuk | last post by:
Ok I have a database application that collects data from sources and procudes output tables. Once created these tables need to be moved to other databases. Do I... a) have to do it...
3
by: ineedahelp | last post by:
Does anyone have an efficient way to MOVE tables to a backup database using code? Thanks in advance for any help!!
3
by: JoshG | last post by:
Hello, We are researching whether the following scenario would be possible: In an upcoming application release, we have to move some tables (Log tables, look up tables, and a couple of secure...
0
by: c0d3lib | last post by:
I am attempting to implement, what I believe to be, an unusual scenario, and am hoping to find someone that has experience with something similar. I currently have a series of physical and logical...
0
by: munkee | last post by:
After finding that there is a possibility that my access database may need to be used across a wide area network I am looking at what my options are. The business uses sharepoint and I have seen...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.