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

PPI Script Example1

This script removes old partitions and adds new partitions for 12 tables in the PDCRData PPI database based on the retention periods specified in the PDCRDATA.PDCR_Table_Retention table. It calls the PDCRAdmin.PDCR_PPI_Maintenance procedure separately for each table, passing the database name and table name as parameters.

Uploaded by

mahendras7
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
202 views

PPI Script Example1

This script removes old partitions and adds new partitions for 12 tables in the PDCRData PPI database based on the retention periods specified in the PDCRDATA.PDCR_Table_Retention table. It calls the PDCRAdmin.PDCR_PPI_Maintenance procedure separately for each table, passing the database name and table name as parameters.

Uploaded by

mahendras7
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

10/21/07

PDCR 12a

PPI_Maintenance

*/

/* Script to Remove old partitions and add future partitions for PDCRDATA PPI tables ** Script includes the following tables: ** PDCRData.Acctg_Hst ** PDCRData.AcctgDtl_Hst ** PDCRData.DBQLExplainTbl_Hst ** PDCRData.DBQLObjTbl_Hst ** PDCRData.DBQLObjTblSum_Hst ** PDCRData.DBQLogTbl_Hst ** PDCRData.DBQLSqlTbl_Hst ** PDCRData.DBQLStepTbl_Hst ** PDCRData.DBQLSum10_Hst ** PDCRData.DBQLSummaryTbl_Hst ** PDCRData.LogOnOff_Hst ** PDCRData.ResUsageSum10_Hst ** Change Log: */ -- comment .run file to run UNIX SHELL Script .run file = /home/teradata/logons/PDCRADMIN_logon.txt

/* Partions to Drop/Add in this script are driven from PDCRDATA.PDCR_Table_Reten tion and subject to review by individual customer */ /* PDCRDATA PPI Tables Automatic Partition Maintnenace -- First parameter is DBName, second parameter is Tablename */

CALL PDCRAdmin.PDCR_PPI_Maintenance('PDCRData','Acctg_Hst',Message); .hang 5 CALL PDCRAdmin.PDCR_PPI_Maintenance('PDCRData','AcctgDtl_Hst',Message); .hang 5 CALL PDCRAdmin.PDCR_PPI_Maintenance('PDCRData','DBQLExplainTbl_Hst',Message); .hang 5 CALL PDCRAdmin.PDCR_PPI_Maintenance('PDCRData','DBQLObjTbl_Hst',Message); .hang 5 CALL PDCRAdmin.PDCR_PPI_Maintenance('PDCRData','DBQLObjTblSum_Hst',Message); .hang 5 CALL PDCRAdmin.PDCR_PPI_Maintenance('PDCRData','DBQLogTbl_Hst',Message); .hang 5 CALL PDCRAdmin.PDCR_PPI_Maintenance('PDCRData','DBQLSqlTbl_Hst',Message); .hang 5 CALL PDCRAdmin.PDCR_PPI_Maintenance('PDCRData','DBQLStepTbl_Hst',Message); .hang 5 CALL PDCRAdmin.PDCR_PPI_Maintenance('PDCRData','DBQLSum10_Hst',Message); .hang 5 CALL PDCRAdmin.PDCR_PPI_Maintenance('PDCRData','DBQLSummaryTbl_Hst',Message); .hang 5 CALL PDCRAdmin.PDCR_PPI_Maintenance('PDCRData','LogOnOff_Hst',Message); .hang 5 CALL PDCRAdmin.PDCR_PPI_Maintenance('PDCRData','ResUsageSum10_Hst',Message); .hang 5 .Quit;

You might also like