0% found this document useful (0 votes)
219 views

Partition

The document describes executing several ALTER TABLE statements to partition two tables, SAPABAP1.CDHDR and SAPABAP1.CDPOS, by range on different columns and alter the page loadability of their partitions. The partitions were created by range on the UDATE column for CDHDR and the CHANGENR column for CDPOS, and then individual partitions for each table had their page loadability altered.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
219 views

Partition

The document describes executing several ALTER TABLE statements to partition two tables, SAPABAP1.CDHDR and SAPABAP1.CDPOS, by range on different columns and alter the page loadability of their partitions. The partitions were created by range on the UDATE column for CDHDR and the CHANGENR column for CDPOS, and then individual partitions for each table had their page loadability altered.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Statement 'ALTER TABLE SAPABAP1.

CDHDR PARTITION BY RANGE(UDATE) ( (PARTITION


'20170101' <= VALUES < ...'
successfully executed in 23:13.044 minutes (server processing time: 23:12.866
minutes) - Rows Affected: 0

ALTER TABLE SAPABAP1.CDHDR PARTITION BY


RANGE(UDATE)
( (PARTITION '20170101' <= VALUES < '20180101',
PARTITION '20180101' <= VALUES < '20190101',
PARTITION '20190101' <= VALUES < '20200101',
PARTITION '20200101' <= VALUES < '20210101',
PARTITION '20210101' <= VALUES < '20220101',
PARTITION OTHERS
))

ALTER TABLE SAPABAP1.CDPOS


PARTITION BY
RANGE (CHANGENR)((
PARTITION '0000000000' <= VALUES < '0010000000',
PARTITION '0010000000' <= VALUES < '0050000000',
PARTITION '0050000000' <= VALUES < '0100000000',
PARTITION '0100000000' <= VALUES < '0200000000',
PARTITION '0200000000' <= VALUES < '0300000000',
PARTITION '0300000000' <= VALUES < '0400000000',
PARTITION '0400000000' <= VALUES < '0500000000',
PARTITION '0500000000' <= VALUES < '0600000000',
PARTITION '0600000000' <= VALUES < '0700000000',
PARTITION '0700000000' <= VALUES < '0800000000',
PARTITION '0800000000' <= VALUES < '0900000000',
PARTITION '0900000000' <= VALUES < '1000000000',
PARTITION OTHERS ))

Statement 'ALTER TABLE SAPABAP1.CDPOS PARTITION BY RANGE (CHANGENR)( PARTITION


'0000000000' <= VALUES < ...'
successfully executed in 3:29:04.990 hours (server processing time: 3:29:04.839
hours) - Rows Affected: 0

select * from m_buffer_cache_statistics

ALTER TABLE SAPABAP1.CDPOS ALTER PARTITION 9 PAGE LOADABLE

ALTER TABLE SAPABAP1.CDPOS


PARTITION BY
RANGE (CHANGENR)((
PARTITION '0000000000' <= VALUES < '0010000000',
PARTITION '0010000000' <= VALUES < '0050000000',
PARTITION '0050000000' <= VALUES < '0100000000',
PARTITION '0100000000' <= VALUES < '0200000000',
PARTITION '0200000000' <= VALUES < '0300000000',
PARTITION '0300000000' <= VALUES < '0400000000',
PARTITION '0400000000' <= VALUES < '0500000000',
PARTITION '0500000000' <= VALUES < '0600000000',
PARTITION '0600000000' <= VALUES < '0700000000',
PARTITION '0700000000' <= VALUES < '0800000000',
PARTITION '0800000000' <= VALUES < '0900000000',
PARTITION '0900000000' <= VALUES < '1000000000',
PARTITION OTHERS ))
Statement 'ALTER TABLE SAPABAP1.CDHDR ALTER PARTITION 1 PAGE LOADABLE'
successfully executed in 1:08.042 minutes (server processing time: 1:07.851
minutes) - Rows Affected: 0

Statement 'ALTER TABLE SAPABAP1.CDHDR ALTER PARTITION 2 PAGE LOADABLE'


successfully executed in 1:08.998 minutes (server processing time: 1:08.811
minutes) - Rows Affected: 0

Statement 'ALTER TABLE SAPABAP1.CDHDR ALTER PARTITION 3 PAGE LOADABLE'


successfully executed in 1:12.009 minutes (server processing time: 1:11.830
minutes) - Rows Affected: 0

Statement 'ALTER TABLE SAPABAP1.CDHDR ALTER PARTITION 4 PAGE LOADABLE'


successfully executed in 1:04.275 minutes (server processing time: 1:04.094
minutes) - Rows Affected: 0

Statement 'ALTER TABLE SAPABAP1.CDPOS ALTER PARTITION 1 PAGE LOADABLE'


successfully executed in 3.513 seconds (server processing time: 3.238 seconds) -
Rows Affected: 0

Statement 'ALTER TABLE SAPABAP1.CDPOS ALTER PARTITION 2 PAGE LOADABLE'


successfully executed in 2:19.986 minutes (server processing time: 2:19.805
minutes) - Rows Affected: 0

Statement 'ALTER TABLE SAPABAP1.CDPOS ALTER PARTITION 3 PAGE LOADABLE'


successfully executed in 2:14.751 minutes (server processing time: 2:14.573
minutes) - Rows Affected: 0

Statement 'ALTER TABLE SAPABAP1.CDPOS ALTER PARTITION 4 PAGE LOADABLE'


successfully executed in 4:12.651 minutes (server processing time: 4:12.475
minutes) - Rows Affected: 0

Statement 'ALTER TABLE SAPABAP1.CDPOS ALTER PARTITION 5 PAGE LOADABLE'


successfully executed in 4:56.709 minutes (server processing time: 4:56.533
minutes) - Rows Affected: 0

Statement 'ALTER TABLE SAPABAP1.CDPOS ALTER PARTITION 6 PAGE LOADABLE'


successfully executed in 7:26.954 minutes (server processing time: 7:26.776
minutes) - Rows Affected: 0

Statement 'ALTER TABLE SAPABAP1.CDPOS ALTER PARTITION 7 PAGE LOADABLE'


successfully executed in 7:12.293 minutes (server processing time: 7:12.116
minutes) - Rows Affected: 0

Statement 'ALTER TABLE SAPABAP1.CDPOS ALTER PARTITION 8 PAGE LOADABLE'


successfully executed in 9:15.744 minutes (server processing time: 9:15.566
minutes) - Rows Affected: 0

Statement 'ALTER TABLE SAPABAP1.CDPOS ALTER PARTITION 9 PAGE LOADABLE'


successfully executed in 17:31.126 minutes (server processing time: 17:30.949
minutes) - Rows Affected: 0

You might also like