Hello Tandem Experts and Enthusiast,The solutions that I have in mind is to delete some of the old datas in the SQL file, not sure though if it will reduce the usage. Comments and suggestions are very appreciated, cheers everyone.
I would like to to ask for your help and ask for guidance on how to reduce the EOF usage for the file we have (it says SQL Base Table). We have a table that monitors its usage and can see that Partition 1 is at 80.4% already, while Partition 2 is 0.2%.
ESCRIPTON VOLUME LOCATION EOF STATUS
Partition 0 $DS02.prdaSQL.CMCMBRT 30.7%
Partition 1 $DS03.prdaSQL.CMCMBRT 80.4%
Partition 2 $DS04.prdaSQL.CMCMBRT 0.2%
Partition 3 $DS05.prdaSQL.CMCMBRT 33.8%
Index 1 $DS02.prdaSQL 24.2%
Index 2 $DS02.prdaSQL 50.2%
Index 3 $DS02.prdaSQL 36.5%
Below is the fileinfo of the SQL table file:
$DS03.PRDASQL.CMCMBRT
SQL BASE TABLE
CATALOG $DS02.PRDASDX
VERSION 2
TYPE K
FORMAT 1
EXT ( 37752 PAGES, 37752 PAGES, MAXEXTENTS 16 )
REC 251
PACKED REC 250
BLOCK 4096
KEY ( COLUMN 0, OFFSET 0, LENGTH 10, ASC,
COLUMN 1, OFFSET 10, LENGTH 19, ASC,
COLUMN 2, OFFSET 29, LENGTH 5, ASC,
COLUMN 3, OFFSET 34, LENGTH 2, ASC )
INDEX ( 1, $DS02.PRDASQL.CMCMBRX1,
COLUMN 11, OFFSET 64, LENGTH 8, ASC,
UNIQUE )
INDEX ( 2, $DS02.PRDASQL.CMCMBRX2,
COLUMN 12, OFFSET 72, LENGTH 17, ASC,
COLUMN 13, OFFSET 89, LENGTH 12, ASC,
NOT UNIQUE )
INDEX ( 3, $DS02.PRDASQL.CMCMBRX3,
COLUMN 30, OFFSET 227, LENGTH 24, ASC,
NOT UNIQUE )
PART ( 0, $DS02, 37752 PAGES, 37752 PAGES, MAXEXTENTS 16, FORMAT 1,
( [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0 ], [ 0, 0 ] ) )
PART ( 1, $DS03, 37752 PAGES, 37752 PAGES, MAXEXTENTS 16, FORMAT 1,
( "08", "510266020", [ 0, 0, 0, 0, 0 ], [ 0, 0 ] ) )
PART ( 2, $DS04, 37752 PAGES, 37752 PAGES, MAXEXTENTS 16, FORMAT 1,
( "08", "592108275", [ 0, 0, 0, 0, 0 ], [ 0, 0 ] ) )
PART ( 3, $DS05, 37752 PAGES, 37752 PAGES, MAXEXTENTS 16, FORMAT 1,
( "08", "592108575", [ 0, 0, 0, 0, 0 ], [ 0, 0 ] ) )
AUDIT
BUFFERED
AUDITCOMPRESS
OWNER 190,1
SECURITY (RWEP): OOOO
SECONDARY PARTITION
DATA MODIF: 18 Feb 2022, 16:12, OPEN
CREATION DATE: 8 Jul 2019, 20:30
REDEFINITION DATE: 5 Jun 2014, 19:43
LAST OPEN: 17 Feb 2022, 22:42
EOF: 993939456 (80.3% USED)
EXTENTS ALLOCATED: 13
INDEX LEVELS: 3
On Mon, 21 Feb 2022 21:21:04 -0800 (PST), Bry Pas <bryanp...@gmail.com> wrote:. The solutions that I have in mind is to delete some of the old datas in the SQL file, not sure though if it will reduce the usage. Comments and suggestions are very appreciated, cheers everyone.
Hello Tandem Experts and Enthusiast,
I would like to to ask for your help and ask for guidance on how to reduce the EOF usage for the file we have (it says SQL Base Table). We have a table that monitors its usage and can see that Partition 1 is at 80.4% already, while Partition 2 is 0.2%
ESCRIPTON VOLUME LOCATION EOF STATUS
Partition 0 $DS02.prdaSQL.CMCMBRT 30.7%
Partition 1 $DS03.prdaSQL.CMCMBRT 80.4%
Partition 2 $DS04.prdaSQL.CMCMBRT 0.2%
Partition 3 $DS05.prdaSQL.CMCMBRT 33.8%
Index 1 $DS02.prdaSQL 24.2%
Index 2 $DS02.prdaSQL 50.2%
Index 3 $DS02.prdaSQL 36.5%
Below is the fileinfo of the SQL table file:
$DS03.PRDASQL.CMCMBRTBryan,
SQL BASE TABLE
CATALOG $DS02.PRDASDX
VERSION 2
TYPE K
FORMAT 1
EXT ( 37752 PAGES, 37752 PAGES, MAXEXTENTS 16 )
REC 251
PACKED REC 250
BLOCK 4096
KEY ( COLUMN 0, OFFSET 0, LENGTH 10, ASC,
COLUMN 1, OFFSET 10, LENGTH 19, ASC,
COLUMN 2, OFFSET 29, LENGTH 5, ASC,
COLUMN 3, OFFSET 34, LENGTH 2, ASC )
INDEX ( 1, $DS02.PRDASQL.CMCMBRX1,
COLUMN 11, OFFSET 64, LENGTH 8, ASC,
UNIQUE )
INDEX ( 2, $DS02.PRDASQL.CMCMBRX2,
COLUMN 12, OFFSET 72, LENGTH 17, ASC,
COLUMN 13, OFFSET 89, LENGTH 12, ASC,
NOT UNIQUE )
INDEX ( 3, $DS02.PRDASQL.CMCMBRX3,
COLUMN 30, OFFSET 227, LENGTH 24, ASC,
NOT UNIQUE )
PART ( 0, $DS02, 37752 PAGES, 37752 PAGES, MAXEXTENTS 16, FORMAT 1,
( [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0 ], [ 0, 0 ] ) )
PART ( 1, $DS03, 37752 PAGES, 37752 PAGES, MAXEXTENTS 16, FORMAT 1,
( "08", "510266020", [ 0, 0, 0, 0, 0 ], [ 0, 0 ] ) )
PART ( 2, $DS04, 37752 PAGES, 37752 PAGES, MAXEXTENTS 16, FORMAT 1,
( "08", "592108275", [ 0, 0, 0, 0, 0 ], [ 0, 0 ] ) )
PART ( 3, $DS05, 37752 PAGES, 37752 PAGES, MAXEXTENTS 16, FORMAT 1,
( "08", "592108575", [ 0, 0, 0, 0, 0 ], [ 0, 0 ] ) )
AUDIT
BUFFERED
AUDITCOMPRESS
OWNER 190,1
SECURITY (RWEP): OOOO
SECONDARY PARTITION
DATA MODIF: 18 Feb 2022, 16:12, OPEN
CREATION DATE: 8 Jul 2019, 20:30
REDEFINITION DATE: 5 Jun 2014, 19:43
LAST OPEN: 17 Feb 2022, 22:42
EOF: 993939456 (80.3% USED)
EXTENTS ALLOCATED: 13
INDEX LEVELS: 3
Audited SQL/MP tables such as this can have their partitions 'altered' online, which moves rows from one partition to another.
It reads like whoever defined these partitions either used an old distribution of the data, or took a guess that wasn't quite right.
Look in the SQL/MP Reference manual, in the ALTER TABLE section There are many options here, including ADD , MOVE , REUSE and DROP of a PARTITION.
You probably need to use MOVE.
These operations all work using a TMF transaction... with corresponding LOCKS on the table data.
This should be done by someone with good SQL/MP database management experience.
The first step is to determine what the ideal balance of primary key valuse in the table is, and whether the number of partitions is appropriate.
There is a fairly comprehensive description of how to allow this repartitioning to occur while processing continues, in the 'Considerations' portion of that part of the manual.
You should read that thoroughly and understand the impacts. There are some simple examples at the end of the ALTER TABLE section.
Bill
Bryan,
Audited SQL/MP tables such as this can have their partitions 'altered' online, which moves rows from one partition to another.
It reads like whoever defined these partitions either used an old distribution of the data, or took a guess that wasn't quite right.
Look in the SQL/MP Reference manual, in the ALTER TABLE section There are many options here, including ADD , MOVE , REUSE and DROP of a PARTITION.
You probably need to use MOVE.
These operations all work using a TMF transaction... with corresponding LOCKS on the table data.
This should be done by someone with good SQL/MP database management experience.
The first step is to determine what the ideal balance of primary key valuse in the table is, and whether the number of partitions is appropriate.
There is a fairly comprehensive description of how to allow this repartitioning to occur while processing continues, in the 'Considerations' portion of that part of the manual.
You should read that thoroughly and understand the impacts. There are some simple examples at the end of the ALTER TABLE section.
Bill
Bryan,=20many options here, including ADD , MOVE , REUSE and DROP of a PARTITION.=
=20
Audited SQL/MP tables such as this can have their partitions 'altered' on= >line, which moves rows from one partition to another.=20
It reads like whoever defined these partitions either used an old distrib= >ution of the data, or took a guess that wasn't quite right.=20
=20
Look in the SQL/MP Reference manual, in the ALTER TABLE section There are=
=20
You probably need to use MOVE.=20of that part of the manual.=20
=20
These operations all work using a TMF transaction... with corresponding L= >OCKS on the table data.=20
This should be done by someone with good SQL/MP database management exper= >ience.=20
=20
The first step is to determine what the ideal balance of primary key valu= >se in the table is, and whether the number of partitions is appropriate.=20 >>=20
There is a fairly comprehensive description of how to allow this repartit= >ioning to occur while processing continues, in the 'Considerations' portion=
You should read that thoroughly and understand the impacts. There are som= >e simple examples at the end of the ALTER TABLE section.=20
=20
Bill
Hi Bill,
Thank you for your comment and suggestion. I will forward this with our App=
team to look and consider your suggestions, I am new to Tandem/NonStop and= don't have a knowledge with SQL/MP but I will try to look into the Manuals= and see how the ALTER TABLE works. Again thank you, Bill.
Cheers,
In article <ec983910-0eb2-451d...@googlegroups.com>,
bryanp...@gmail.com says...
Bryan,=20many options here, including ADD , MOVE , REUSE and DROP of a PARTITION.=
=20
Audited SQL/MP tables such as this can have their partitions 'altered' on= >line, which moves rows from one partition to another.=20
It reads like whoever defined these partitions either used an old distrib= >ution of the data, or took a guess that wasn't quite right.=20
=20
Look in the SQL/MP Reference manual, in the ALTER TABLE section There are=
=20
You probably need to use MOVE.=20of that part of the manual.=20
=20
These operations all work using a TMF transaction... with corresponding L= >OCKS on the table data.=20
This should be done by someone with good SQL/MP database management exper= >ience.=20
=20
The first step is to determine what the ideal balance of primary key valu= >se in the table is, and whether the number of partitions is appropriate.=20 >>=20
There is a fairly comprehensive description of how to allow this repartit= >ioning to occur while processing continues, in the 'Considerations' portion=
You should read that thoroughly and understand the impacts. There are som= >e simple examples at the end of the ALTER TABLE section.=20
=20
Bill
Hi Bill,
Thank you for your comment and suggestion. I will forward this with our App=
team to look and consider your suggestions, I am new to Tandem/NonStop and= don't have a knowledge with SQL/MP but I will try to look into the Manuals= and see how the ALTER TABLE works. Again thank you, Bill.
Cheers,Are you looking to re-partition the table for a better distribution
of rows or simply increase the size of each partition ?
Your MaxExtents is only 16 currently
-- set maxextents larger on a single partitions
alter table <partition name> partonly maxextents <nn>;
-- set maxextents larger on all partitions
alter table <table> maxextents <nn>;
On Wednesday, February 23, 2022 at 6:34:50 p.m. UTC-5, JShepherd wrote:Hello Bry,
In article <ec983910-0eb2-451d...@googlegroups.com>,
bryanp...@gmail.com says...
Bryan,=20line, which moves rows from one partition to another.=20
=20
Audited SQL/MP tables such as this can have their partitions 'altered' on=
It reads like whoever defined these partitions either used an old distrib=ution of the data, or took a guess that wasn't quite right.=20
=20many options here, including ADD , MOVE , REUSE and DROP of a PARTITION.=
Look in the SQL/MP Reference manual, in the ALTER TABLE section There are=
=20
You probably need to use MOVE.=20OCKS on the table data.=20
=20
These operations all work using a TMF transaction... with corresponding L=
This should be done by someone with good SQL/MP database management exper=ience.=20
=20se in the table is, and whether the number of partitions is appropriate.=20
The first step is to determine what the ideal balance of primary key valu=
=20ioning to occur while processing continues, in the 'Considerations' portion=
There is a fairly comprehensive description of how to allow this repartit=
of that part of the manual.=20
You should read that thoroughly and understand the impacts. There are som=e simple examples at the end of the ALTER TABLE section.=20
=20
Bill
Hi Bill,
Thank you for your comment and suggestion. I will forward this with our App=
team to look and consider your suggestions, I am new to Tandem/NonStop and=
don't have a knowledge with SQL/MP but I will try to look into the Manuals=
and see how the ALTER TABLE works. Again thank you, Bill.
Cheers,Are you looking to re-partition the table for a better distribution
of rows or simply increase the size of each partition ?
Your MaxExtents is only 16 currently
-- set maxextents larger on a single partitions
alter table <partition name> partonly maxextents <nn>;
-- set maxextents larger on all partitionsIf there is a lot of dead space in the table (see DSAP), you can look into FUP RELOAD also.
alter table <table> maxextents <nn>;
On Friday, February 25, 2022 at 2:06:55 AM UTC+5:30, Randall wrote:
On Wednesday, February 23, 2022 at 6:34:50 p.m. UTC-5, JShepherd wrote:
On Monday, February 28, 2022 at 1:46:05 PM UTC+8, indra...@gmail.com wrote:partition (Partition 2 $DS04.prdaSQL.CMCMBRT 0.2%) since this seems to be not in used by the application. Thank you again.
On Friday, February 25, 2022 at 2:06:55 AM UTC+5:30, Randall wrote:Hello All, thank you so much for your feed back. This helps a lot and I appreciate your inputs, the alter table command is a charm and it extends the maxextent of the table, however I would also like to know how can I distribute the data into the other
On Wednesday, February 23, 2022 at 6:34:50 p.m. UTC-5, JShepherd wrote:
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 166:14:34 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,528 |