dbTalk Databases Forums  

How to convert nonpartitioned indexes in DB2 V9.7.1

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss How to convert nonpartitioned indexes in DB2 V9.7.1 in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Damir
 
Posts: n/a

Default How to convert nonpartitioned indexes in DB2 V9.7.1 - 03-04-2010 , 05:44 AM






Hi all,
what are the possible ways to convert a non partitioned index to a
partitioned index in DB2 V9.7.1?

According to the InfoCenter, the only way is to drop and recreate one index
at a time
(http://publib.boulder.ibm.com/infoce.../t0054730.html)

I was wondering if it were also possible to make the conversion with only
one command, such as REORG TABLE... or something like that?

Regards,
Damir

Reply With Quote
  #2  
Old   
Serge Rielau
 
Posts: n/a

Default Re: How to convert nonpartitioned indexes in DB2 V9.7.1 - 03-04-2010 , 06:45 AM






On 3/4/2010 6:44 AM, Damir wrote:
Quote:
Hi all,
what are the possible ways to convert a non partitioned index to a
partitioned index in DB2 V9.7.1?

According to the InfoCenter, the only way is to drop and recreate one index
at a time
(http://publib.boulder.ibm.com/infoce.../t0054730.html)

I was wondering if it were also possible to make the conversion with only
one command, such as REORG TABLE... or something like that?
Damir,

It should be easy to write a stored procedure that, given a table table
converts all global indexes to local indexes...

Cheers
Serge


--
Serge Rielau
SQL Architect DB2 for LUW
IBM Toronto Lab

Reply With Quote
  #3  
Old   
Damir
 
Posts: n/a

Default Re: How to convert nonpartitioned indexes in DB2 V9.7.1 - 03-04-2010 , 07:25 AM



Of course it is and that is what we are going to do.
I was just wondering... :-)
Thank you for the quick response!

Regards,
Damir

---
"Serge Rielau" <srielau (AT) ca (DOT) ibm.com> wrote

Quote:
It should be easy to write a stored procedure that, given a table table
converts all global indexes to local indexes...

Cheers
Serge

Reply With Quote
  #4  
Old   
Naresh Chainani
 
Posts: n/a

Default Re: How to convert nonpartitioned indexes in DB2 V9.7.1 - 03-05-2010 , 09:53 AM



On Mar 4, 5:25*am, "Damir" <damirwil... (AT) yahoo (DOT) com> wrote:
Quote:
Of course it is and that is what we are going to do.
I was just wondering... :-)
Thank you for the quick response!

Regards,
* * Damir

---"Serge Rielau" <srie... (AT) ca (DOT) ibm.com> wrote in message

news:7v9oatFedgU1 (AT) mid (DOT) individual.net...



It should be easy to write a stored procedure that, given a table table
converts all global indexes to local indexes...

Cheers
Serge
One thing to add is that DB2 allows creation of partitioned and
nonpartitioned indexes on the same columns. One of the reasons for
allowing this was to ease this conversion where users first create the
desired partitioned indexes and then drop all nonpartitioned indexes.
That way, queries could continue to access the data using indexes when
the partitioned indexes are being created. As to whether the
nonpartitioned indexes should be dropped one by one or all at end,
space considerations may influence this decision.

Naresh

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.