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
 
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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am

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