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 Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 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
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm


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