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: 1281
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 Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts Need info on EIBCPOSN value in IBM FA... subratarec CICS 11 Wed Jul 12, 2017 3:45 pm
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


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