Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need partition info for a table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Need partition info for a table
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: 1187
Location: Bangalore,India

PostPosted: Thu Apr 08, 2010 1:01 pm    Post subject:
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    Post subject: Reply to: Need partition info for a table
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: 1278
Location: Belgium

PostPosted: Thu Apr 08, 2010 3:54 pm    Post subject:
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    Post subject: Reply to: Need partition info for a table
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    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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts IMS Database backup info ashek15 IMS DB/DC 14 Wed Nov 16, 2016 5:29 am
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 pm
No new posts Updating online Db2 table kishpra DB2 3 Fri Aug 12, 2016 2:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us