Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
partitioning scheme

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Thu Sep 28, 2006 12:53 am    Post subject: partitioning scheme
Reply with quote

if the table is using partisioned table space. if there are 3 parts.

how to know that what type of data is stored in part1, part2 & part3. i mean the schema/condition to store in a particular part.
Back to top
View user's profile Send private message

MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Thu Sep 28, 2006 2:02 am    Post subject: Re: partitioning scheme
Reply with quote

Data is stored by partioning key (data seperation key), you can query SYSIBM.SYSTABLEPART table to view partioning key.

Example:
Code:

SELECT PARTITION, LIMITKEY               
FROM SYSIBM.SYSINDEXPART                 
WHERE IXNAME = 'give clustering index'           
ORDER BY PARTITION;                     



LIMITKEY is max value partition will have for example if result is:

Code:

PARTITION  LIMITKEY 
---------  ----------
        1  00340330
        2  01000000 
        3  01664166



Partition 1 is anything less than 00340330
Partition 2 will have values Greater than 00340330 and Less than equal to 01000000 and so on.
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Thu Sep 28, 2006 2:21 am    Post subject: Re: partitioning scheme
Reply with quote

Correction! Partition 1 is anything less than equal to 00340330
Back to top
View user's profile Send private message
raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Fri Sep 29, 2006 1:02 am    Post subject: Re: partitioning scheme
Reply with quote

Thank you.

but i am getting junk values in limit key column

index is a date filed.

[/img]
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Fri Sep 29, 2006 1:22 am    Post subject: Re: partitioning scheme
Reply with quote

Probably index name is not correct, you can find clustering index name by using following:

Code:

SELECT NAME "IXNAME",  TBNAME, CLUSTERING
FROM SYSIBM.SYSINDEXES           
WHERE TBNAME = 'table name'         
AND   CLUSTERING = 'Y'           

Back to top
View user's profile Send private message
raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Fri Sep 29, 2006 6:59 pm    Post subject: partitioning scheme
Reply with quote

Thank you.

i got the limit key from systablepart. it is showing normally like 2001-01-01. but in indexpart is is showing junk values. this because the field is date field. it may encrypt and keep in index.

thanks for your help.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts base+displacement addressing scheme jackzhang75 PL/I & Assembler 3 Tue Mar 03, 2015 2:07 am
No new posts Deleting and Inserting an IMS Segment... mohammad amir ashraff IMS DB/DC 8 Thu Jun 06, 2013 3:03 pm
No new posts Partitioning - table based vs index b... JyothsnaNayak DB2 1 Thu Sep 06, 2012 4:39 pm
No new posts Table partitioning guptae DB2 11 Mon Jan 23, 2012 11:32 pm
This topic is locked: you cannot edit posts or make replies. Huge Opening in L&T INFOTECH Budd... rudresh Mainframe Jobs 0 Fri Oct 30, 2009 10:47 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us