IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need partition info for a table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
harithaganna

New User


Joined: 03 Jun 2008
Posts: 14
Location: chennai

PostPosted: Thu Apr 08, 2010 12:39 pm
Reply with quote

Hi all,

I need to find out the partion name, number of partitions and partition range for a table/View?

Could anyone help me how to get these information?

Thanks in advance,
Haritha
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1209
Location: Bangalore,India

PostPosted: Thu Apr 08, 2010 1:01 pm
Reply with quote

Hello Haritha,

There are various way to get it:
1. By using DB2 admin tool if you ahve access to?
2. By DDL for the table if its TAble partition or by index def if Index partition.
3. You can get it by querying on SYSIBM.SYSTABLEPART & SYSIBM.SYSTABLES
Back to top
View user's profile Send private message
harithaganna

New User


Joined: 03 Jun 2008
Posts: 14
Location: chennai

PostPosted: Thu Apr 08, 2010 2:41 pm
Reply with quote

Hi,

I cant use the solution 1 and 2 as I dont have the required authurization.

I looked into SYSIBM.SYSTABLES, in that the column PARTKEYCOLUMN specifies the number of cols which the table is partitioned.

Then in SYSTABLEPART, I could find the Index infor and number of partitions only.

I need to specifically find what is the partition name and range for a table?

It will be better if you can provide some more details?
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Thu Apr 08, 2010 3:54 pm
Reply with quote

for tablepartitioned tables :
Code:
select partition, limitkey  from sysibm.systablepart p
where dbname = ? and tsname = ?

for indexpartitioned
Code:
select partition, limitkey  from sysibm.sysindexpart i
where ixcreator = ? and ixname = ?
Back to top
View user's profile Send private message
harithaganna

New User


Joined: 03 Jun 2008
Posts: 14
Location: chennai

PostPosted: Thu Apr 08, 2010 7:36 pm
Reply with quote

Thanks a lot

I got th einfo what I wanted
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 5
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts Unload and Load ISPF Table TSO/ISPF 4
Search our Forums:


Back to Top