472,960 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

rearranging tables

Hello,

I want to plan rearranging tables in our database according to
business areas. say all tables in business area A will be in seperate
tablespace or tablespaces. I am planning to monitor activity on tables
for a month by taking snapshots on tables and then i will see if this
rearrangement is possible.

What are the factors, measures etc. i should consider for rearranging
tables.
anyone has done this before?
please guide me through process and/or direct me to some online/books
resources for the same.

regards,
jagdip

Feb 27 '07 #1
4 2061
I would think that one thing you could do to simplify your life is to define
the schema name of tables according to which business area they belong. The
tablespace you put them in should be important because of how they are
accessed not necessarily who or what do they logically belong to.
This is true if you are not concerned about physically isolating tables of a
business area from others.
Tablespaces relate to physical location of data and how it is accessed and
managed.
Schemas tend to relate to how data in tables is logically related.
I know I'm over simplifying but it can be a good start for you.
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"db2admin" <ja****@gmail.coma écrit dans le message de news:
11********************@h3g2000cwc.googlegroups.com...
Hello,

I want to plan rearranging tables in our database according to
business areas. say all tables in business area A will be in seperate
tablespace or tablespaces. I am planning to monitor activity on tables
for a month by taking snapshots on tables and then i will see if this
rearrangement is possible.

What are the factors, measures etc. i should consider for rearranging
tables.
anyone has done this before?
please guide me through process and/or direct me to some online/books
resources for the same.

regards,
jagdip
Mar 2 '07 #2
Hello Pierre,
Thanks for your reply. The need to rearrange tables into tablespaces
based on business areas arose from
needing to rollback tables related to one business area by restoring
previous backup
We get some issues with data in production and sometime there is need
to bring back all tables in one business area to previous state before
screwup
I understand the implications related to performance by rearranging
tables/tablespaces and i am really just exploring the possibilities
here
I also understand that better solutions is to examine the applications
code or enhance to avoid such data errors but things are out of
control
What other routes/possibilities exist ( if any ) other than
rearranging tables?

On Mar 1, 8:00 pm, "Pierre Saint-Jacques" <sesc...@invalid.netwrote:
I would think that one thing you could do to simplify your life is to define
the schema name of tables according to which business area they belong. The
tablespace you put them in should be important because of how they are
accessed not necessarily who or what do they logically belong to.
This is true if you are not concerned about physically isolating tables of a
business area from others.
Tablespaces relate to physical location of data and how it is accessed and
managed.
Schemas tend to relate to how data in tables is logically related.
I know I'm over simplifying but it can be a good start for you.
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"db2admin" <jag...@gmail.coma écrit dans le message de news:
1172618312.046942.4...@h3g2000cwc.googlegroups.com ...
Hello,
I want to plan rearranging tables in our database according to
business areas. say all tables in business area A will be in seperate
tablespace or tablespaces. I am planning to monitor activity on tables
for a month by taking snapshots on tables and then i will see if this
rearrangement is possible.
What are the factors, measures etc. i should consider for rearranging
tables.
anyone has done this before?
please guide me through process and/or direct me to some online/books
resources for the same.
regards,
jagdip

Mar 2 '07 #3
All right back to square one.
I guess the way you need to do this means that there has to be a unique
naming convention for your tablespaces that encompasses all your tables and
indexes.
The only way I can do this, I think, is by building an id that has a
specific identifying relationship with the business it will represent. Use
this id which has to have DBADM authority at least to create the
tablespaces. The name is what you'll choose but the DEFINER will be the id
you use. Unless your analysis has shown you different, spread the containers
of your tbspcs. over some of the available drives. You won't want to spread
over each drive as each business's tbspcs. will step on the others' shoe
laces.
From there, create the tables and indexes of a business in its tablespaces.
That way, you can write a script which selects the tblspcs to backup with a
where clause = 'DEFINER`' and use the reverse to restore, roll forward.

What you want to get out of your analysis, which will get you very familiar
with the get snapshot command, is which tables are highly used with each
other eithin a business and which tables are highly used within the db.
You'll want to put those tables in tablespaces that do not share their
containers in the same physical drive.

A different way to do this if you do not have many businesses to represent
and the business does not necessarily have huge volumes of data is to create
one db for each business. There you get total independance and control.
I've worked with a customer (state government) that is small. They have a
relatively large Linux box and they run 12 instances, each with a single db
for each of the Dept. they have to serve (Finance, HR, Health, Education,
....) It seems to work quite well for them. No I cannot refer you to them
(sorry)!

Hope this helps, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"db2admin" <ja****@gmail.coma écrit dans le message de news:
11*********************@n33g2000cwc.googlegroups.c om...
Hello Pierre,
Thanks for your reply. The need to rearrange tables into tablespaces
based on business areas arose from
needing to rollback tables related to one business area by restoring
previous backup
We get some issues with data in production and sometime there is need
to bring back all tables in one business area to previous state before
screwup
I understand the implications related to performance by rearranging
tables/tablespaces and i am really just exploring the possibilities
here
I also understand that better solutions is to examine the applications
code or enhance to avoid such data errors but things are out of
control
What other routes/possibilities exist ( if any ) other than
rearranging tables?

On Mar 1, 8:00 pm, "Pierre Saint-Jacques" <sesc...@invalid.netwrote:
I would think that one thing you could do to simplify your life is to
define
the schema name of tables according to which business area they belong.
The
tablespace you put them in should be important because of how they are
accessed not necessarily who or what do they logically belong to.
This is true if you are not concerned about physically isolating tables of
a
business area from others.
Tablespaces relate to physical location of data and how it is accessed and
managed.
Schemas tend to relate to how data in tables is logically related.
I know I'm over simplifying but it can be a good start for you.
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"db2admin" <jag...@gmail.coma écrit dans le message de news:
1172618312.046942.4...@h3g2000cwc.googlegroups.com ...
Hello,
I want to plan rearranging tables in our database according to
business areas. say all tables in business area A will be in seperate
tablespace or tablespaces. I am planning to monitor activity on tables
for a month by taking snapshots on tables and then i will see if this
rearrangement is possible.
What are the factors, measures etc. i should consider for rearranging
tables.
anyone has done this before?
please guide me through process and/or direct me to some online/books
resources for the same.
regards,
jagdip

Mar 4 '07 #4
Thanks a lot for all input
I am going to monitor database and will consider all you said while
analyzing
On Mar 4, 11:57 am, "Pierre Saint-Jacques" <sesc...@invalid.net>
wrote:
All right back to square one.
I guess the way you need to do this means that there has to be a unique
naming convention for your tablespaces that encompasses all your tables and
indexes.
The only way I can do this, I think, is by building an id that has a
specific identifying relationship with the business it will represent. Use
this id which has to have DBADM authority at least to create the
tablespaces. The name is what you'll choose but the DEFINER will be the id
you use. Unless your analysis has shown you different, spread the containers
of your tbspcs. over some of the available drives. You won't want to spread
over each drive as each business's tbspcs. will step on the others' shoe
laces.
From there, create the tables and indexes of a business in its tablespaces.
That way, you can write a script which selects the tblspcs to backup witha
where clause = 'DEFINER`' and use the reverse to restore, roll forward.

What you want to get out of your analysis, which will get you very familiar
with the get snapshot command, is which tables are highly used with each
other eithin a business and which tables are highly used within the db.
You'll want to put those tables in tablespaces that do not share their
containers in the same physical drive.

A different way to do this if you do not have many businesses to represent
and the business does not necessarily have huge volumes of data is to create
one db for each business. There you get total independance and control.
I've worked with a customer (state government) that is small. They have a
relatively large Linux box and they run 12 instances, each with a single db
for each of the Dept. they have to serve (Finance, HR, Health, Education,
...) It seems to work quite well for them. No I cannot refer you to them
(sorry)!

Hope this helps, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"db2admin" <jag...@gmail.coma écrit dans le message de news:
1172850210.996215.17...@n33g2000cwc.googlegroups.c om...
Hello Pierre,
Thanks for your reply. The need to rearrange tables into tablespaces
based on business areas arose from
needing to rollback tables related to one business area by restoring
previous backup
We get some issues with data in production and sometime there is need
to bring back all tables in one business area to previous state before
screwup
I understand the implications related to performance by rearranging
tables/tablespaces and i am really just exploring the possibilities
here
I also understand that better solutions is to examine the applications
code or enhance to avoid such data errors but things are out of
control
What other routes/possibilities exist ( if any ) other than
rearranging tables?

On Mar 1, 8:00 pm, "Pierre Saint-Jacques" <sesc...@invalid.netwrote:
I would think that one thing you could do to simplify your life is to
define
the schema name of tables according to which business area they belong.
The
tablespace you put them in should be important because of how they are
accessed not necessarily who or what do they logically belong to.
This is true if you are not concerned about physically isolating tablesof
a
business area from others.
Tablespaces relate to physical location of data and how it is accessed and
managed.
Schemas tend to relate to how data in tables is logically related.
I know I'm over simplifying but it can be a good start for you.
HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"db2admin" <jag...@gmail.coma écrit dans le message de news:
1172618312.046942.4...@h3g2000cwc.googlegroups.com ...
Hello,
I want to plan rearranging tables in our database according to
business areas. say all tables in business area A will be in seperate
tablespace or tablespaces. I am planning to monitor activity on tables
for a month by taking snapshots on tables and then i will see if this
rearrangement is possible.
What are the factors, measures etc. i should consider for rearranging
tables.
anyone has done this before?
please guide me through process and/or direct me to some online/books
resources for the same.
regards,
jagdip

Mar 7 '07 #5

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

Similar topics

44
by: Mariusz Jedrzejewski | last post by:
Hi, I'll be very grateful if somebody can explain me why my Opera 7.23 (runing under linux) doesn't show me inner tables. Using below code I can see only "inner table 1". There is no problem with...
3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
1
by: Tor Inge Rislaa | last post by:
Rearranging the row position in a datagrid Hi I have a datagrid that I fill from a dataset. When the data is displayed in the grid I want the user to be able to move the position of a row. E.g....
59
by: phil-news-nospam | last post by:
In followups by Brian O'Connor (ironcorona) to other posts, he repeats the idea that using tables in CSS is not something that should be done because IE doesn't support it. Of course I'm not happy...
5
by: rdemyan via AccessMonster.com | last post by:
I have a need to add another field to all of my tables (over 150). Not data, but an actual field. Can I code this somehow. So the code presumabley would loop through all the tables, open each...
0
by: selvakumari | last post by:
hi, In my project in a treeview i am doing drag and drop function and after that modifying some values in a treeview ascending order of nodes, some times the treeview may contain 255 nodes each...
8
by: trixxnixon | last post by:
Could Rearranging columns on a table, effect other areas of the database such as reports and queries?
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.