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
 

 

LIMITKEY col in SYSTABLEPART - Table Controlled Partitioning

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

New User


Joined: 10 Aug 2007
Posts: 38
Location: Chicago

PostPosted: Thu Jan 15, 2009 10:41 pm    Post subject: LIMITKEY col in SYSTABLEPART - Table Controlled Partitioning
Reply with quote

Hello:

I have just created or rather changed an Index Controlled Partitioning to Table Controlled Partitioning by dropping partitioning index. And I expected the limit keys to be as below.

Code:
---------+---------+---------+---------+---------+---------+---------+---------
TSNAME                    DBNAME                    LIMITKEY
---------+---------+---------+---------+---------+---------+---------+---------
TABLESPC                  DATABASE                   'FM '
TABLESPC                  DATABASE                   'ZZZ'


For, my CREATE INDEX statement was like this before I decided to drop, in order to change PARTIONING TO Table Controlled...

Code:
CREATE TYPE 2 UNIQUE INDEX TST.TESTINDX
       ON TST.TEST_TABLE

       (COL_FIRST                       ASC
       ,COL_SECOND                   ASC
   .
   .
   .
       ,COL_LAST                  ASC  )
       CLUSTER
  (PARTITION 1    ENDING AT ('FM ')
                  USING STOGROUP SYSDEFLT
                        PRIQTY 720
                        SECQTY 720
                        ERASE NO
                  FREEPAGE 0
                  PCTFREE 15
  ,PARTITION 2    ENDING AT ('ZZZ')
                  USING STOGROUP SYSDEFLT
                        PRIQTY 720
                        SECQTY 720
                        ERASE NO
                  FREEPAGE 0
   .
   .
   .


After dropping this INDEX I received a warning 20272 CODE (this is expected) saying the tablespace has been converted to Table-Controlled Partitioning instead of Index-Controlled Partitioning.

Now, I try to look at the limit keys in the catalog table here is what I see.

Code:
---------+---------+---------+---------+---------+---------+---------+---------
TSNAME                    DBNAME                    LIMITKEY
---------+---------+---------+---------+---------+---------+---------+---------
TABLESPC                  DATABASE                   'FM '
TABLESPC                  DATABASE                   MAXVALUE,MAXVALUE,M


Does anyone have an idea why is it MAXVALUE,MAXVALUE... instead of 'ZZZ'???

DB2 V8 NFM - z/OS

Please let me know if I owe you any more information.
Back to top
View user's profile Send private message

sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Sat Jan 17, 2009 6:16 pm    Post subject:
Reply with quote

Dinesh,

From the manuals
Quote:
After the conversion to table-controlled partitioning, DB2 changes the existing high-limit key value for non-large table spaces to the highest value for the key. Beginning in Version 8, DB2 enforces the high-limit key value. By default, DB2 does not put the last partition of the table space into a REORG-pending (REORP) state


Sushanth
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 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
No new posts Getting soc4 on internal table in cobol abdulrafi COBOL Programming 13 Fri May 06, 2016 3:39 pm


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