473,405 Members | 2,187 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,405 software developers and data experts.

Converting from dms to sms

Hello,

With a large database with many tablespaces, primarily on raw devices, how
do I convert it to a sms-based-only database?

--
Regards,
Troels Arvin <tr****@arvin.dk>
http://troels.arvin.dk/
Jan 26 '07 #1
3 3542


On 26 Jan., 12:41, Troels Arvin <tro...@arvin.dkwrote:
Hello,

With a large database with many tablespaces, primarily on raw devices, how
do I convert it to a sms-based-only database?

--
Regards,
Troels Arvin <tro...@arvin.dk>http://troels.arvin.dk/
With DB2 9 you might want to extract the DDL with db2look, change the
Tablespace characteristics and assignments and recreate the Objects in
a new database.
Next use db2move with the new copy funktion and LOAD_ONLY mode to copy
the data. You will have to run set integrity afterwards when
constrainst are defined. Also keep in mind that you will have to change
any Identity or sequence starting values in your new database (and very
likely a couple of other things i forgot). You see its not that easy to
migrate from DMS to SMS.
Another option would be to stay with DMS. Just convert your raw devices
to file containers: Add a new stripe set with file containers (large
enough to hold the data) to your existing tablespaces, then drop the
old containers. DB2 will rebalance the data in background into the new
file containers. You can do this one tablespace at at time. After your
done you can alter your tablespace to AUTORESIZE YES and they will
behave nearly like SMS in terms of autogrowing but still delivering
the advantages of DMS. You need to be at V8 FixPak 9 a least to use
AUTORESIZE.

HTH
Joachim

Jan 26 '07 #2
Hello,

On Fri, 26 Jan 2007 07:45:07 -0800, Joachim Klassen wrote:
>With a large database with many tablespaces, primarily on raw devices, how
do I convert it to a sms-based-only database?

With DB2 9 you might want to extract the DDL with db2look, change the
Tablespace characteristics and assignments and recreate the Objects in
a new database.
Next use db2move
[...]

Thanks. That sounds as complicated as I feared.
Another option would be to stay with DMS. Just convert your raw devices
to file containers: Add a new stripe set with file containers (large
enough to hold the data) to your existing tablespaces, then drop the old
containers. DB2 will rebalance the data in background into the new file
containers.
Hmm; I didn't realize that containers could be dropped. Nice hint.
After your done
you can alter your tablespace to AUTORESIZE YES and they will behave
nearly like SMS in terms of autogrowing but still delivering the
advantages of DMS.
But can the DMS tablespaces also auto-shrink?

--
Regards,
Troels Arvin <tr****@arvin.dk>
http://troels.arvin.dk/
Jan 26 '07 #3


On 26 Jan., 21:38, Troels Arvin <tro...@arvin.dkwrote:
Hello,

On Fri, 26 Jan 2007 07:45:07 -0800, Joachim Klassen wrote:
With a large database with many tablespaces, primarily on raw devices, how
do I convert it to a sms-based-only database?
With DB2 9 you might want to extract the DDL with db2look, change the
Tablespace characteristics and assignments and recreate the Objects in
a new database.
Next use db2move[...]

Thanks. That sounds as complicated as I feared.
Another option would be to stay with DMS. Just convert your raw devices
to file containers: Add a new stripe set with file containers (large
enough to hold the data) to your existing tablespaces, then drop the old
containers. DB2 will rebalance the data in background into the new file
containers.Hmm; I didn't realize that containers could be dropped. Nice hint.
After your done
you can alter your tablespace to AUTORESIZE YES and they will behave
nearly like SMS in terms of autogrowing but still delivering the
advantages of DMS.But can the DMS tablespaces also auto-shrink?

--
Regards,
Troels Arvin <tro...@arvin.dk>http://troels.arvin.dk/
They will not auto-shrink. If your DMS tablespaces are over-allocated
use ALTER TABLESPACE REDUCE/RESIZE to shrink them manually (beware the
high-watermark!).

To be honest - I've never seen a database which wasn't growing. So if
you have tables which grow large then shrink - put them into SMS
tablespaces. BTW , DMS is a bad choice for temporary tablespaces -
they should always use SMS.

cheers
Joachim

Jan 29 '07 #4

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

Similar topics

4
by: mustafa | last post by:
Dear sir , I have built my application in visual basic 6.0 and crystal Report8.5 , Now i migrated my application to VB.net using the upgrade wizard.My visual basic form is upgraded to vb.net...
29
by: Armand Karlsen | last post by:
I have a website ( http://www.zen62775.zen.co.uk ) that I made HTML 4.01 Transitional and CSS compliant, and I'm thinking of converting it into XHTML to learn a little about it. Which XHTML variant...
8
by: prabha | last post by:
Hello Everybody, I have to conert the word doc to multiple html files,according to the templates in the word doc. I had converted the word to xml.Also through Exsl ,had finished the multiple...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
3
by: Mary | last post by:
Hi, Does anyone know of any software out there that would convert an application written in VBScript to either VB.NET or C#/C++ quite quickly for me, or will I have to re-write the application...
2
by: Map Reader | last post by:
Greetings, I am converting an old VB6 application to use .NET. One of the old controls loads icons from the disk and displays them. However, the transparent color turns to blue somewhere in the...
12
by: Frederik Vanderhaeghe | last post by:
Hi, I have a problem converting text to a double. Why doesn't the code work: If Not (txtdocbedrag.Text = "") Then Select Case ddlBedrag.SelectedIndex Case 0 Case 1
7
by: Tor Aadnevik | last post by:
Hi, I have a problem converting values from Single to double. eg. When the Single value 12.19 is converted to double, the result is 12.1899995803833. Anyone know how to avoid this? Regards...
4
by: gg9h0st | last post by:
i'm a newbie studying php. i was into array part on tutorial and it says i'll get an array having keys that from member variable's name by converting an object to array. i guessed "i can...
2
by: shenanwei | last post by:
DB2 V8.2 on AIX, type II index is created. I see this from deadlock event monitor. 5) Deadlocked Connection ... Participant no.: 2 Lock wait start time: 09/18/2006 23:04:09.911774 .........
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.