PX Tables Clean Up Procedure

Previous TopicNext TopicContents

To avoid operational problems for P6, PX table entries are not automatically deleted when you delete data from P6 tables. You can use the following clean up procedure to clear the obsolete entries in PX tables.

  1. Run the CLEAN_PX_DELETE stored procedure to purge obsolete entries in the PX tables:

    For Oracle:

    BEGIN

    CLEAN_PX_DELETE();

    END;

    For a Microsoft SQL Server database:

    USE [ddname]

    GO

    DECLARE @return_value int

    EXEC @return_value = [dbo].[CLEAN_PX_DELETE]

    SELECT 'Return Value' = @return_value

    GO

    where ddname is the is your admin user name

    Note: You can run this procedure any time you want or you can run it as a database background job and schedule a specific time for it to run.

  2. To delete batch size and max delete from each table in a single run, run the following queries:

    Note: You can specify the delete batch size and max delete from each table in a single run. Delete batch size is the number of rows deleted before a commit. Max delete is the max number of rows that will be deleted from a table in a single run. They have default values if you do not provide your own. They're used to avoid resource problems with the P6 operations.

Related Topics

Database Administration

Background Processes and Clean Up in P6 EPPM

RDBMS Scheduler Configuration

Database Settings Table

Reading Setting Values

Writing Setting Values

Tracking Background Job Execution

SYMON (System Monitor) Procedures

DAMON (Data Monitor) Procedures

Oracle Database Performance

Safe Deletes

PRMAUDIT Auditing

Using the Data Pump Utility



Legal Notices
Copyright © 1999, 2014, Oracle and/or its affiliates. All rights reserved.

Last Published Friday, March 28, 2014

PDF Library