prim42363:How to manually run PURGE DELETES via scripts
Solution ID: prim42363 How to manually run PURGE DELETES via scripts Status: Reviewed Version(s): 5.0, 6.0 Problem: How to manually run PURGE DELETES via scripts. Problem: How to run stored procedures CLEANUP_LOGICAL_DELETES & REFRDEL_CLEANUP Fact: The following Variables are used in Oracle:pret_val – output – Used to figure out what message it is going to
| Solution ID: prim42363 |
| How to manually run PURGE DELETES via scripts |
| Status: Reviewed |
| Version(s): 5.0, 6.0 |
| Problem: | How to manually run PURGE DELETES via scripts. |
| Problem: | How to run stored procedures CLEANUP_LOGICAL_DELETES & REFRDEL_CLEANUP |
| Fact: | The following Variables are used in Oracle: pret_val – output – Used to figure out what message it is going to return if error, used to set the number of rows changed or deleted during store procedure run pret_msg – output – Used to return the message from a error errorlevel – setting the error level/severity for the stored procedure. day – input - parameter used within stored procedure to set the delete_date |
| Fix: |
The P5 PURGE DELETES function runs two stored procedures:
NOTE: The process to remove logically deleted records is NOT dependent on REFRDEL entries being present, so the two stored procedures can be run independently. NOTE: It is recommended that everyone be out of the database before running either of the scripts, as this can cause a performance hit. To manually execute PURGE DELETES in Project Management verion 5 on the database server using scripts, execute scripts as described below for CLEANUP_LOGICAL_DELETES and REFRDEL_CLEANUP CLEANUP_LOGICAL_DELETES – To manually execute CLEANUP_LOGICAL_DELETES perform the following:
REFRDEL_CLEANUP - To manually execute REFRDEL_CLEANUP peforming the following:
|
| Fix: | To manually run PURGE DELETES in Project Management version P6 run the following two stored procedures: NOTE: For both Oracle and SQL Server, by default, the Primavera Background Jobs will execute these procedures above every 5 minutes.
CLEANUP_LOGICAL_DELETES – To manually execute CLEANUP_LOGICAL_DELETES perform the following:
REFRDEL_CLEANUP - To manually execute REFRDEL_CLEANUP peforming the following:
|
Related Posts
- prim83856:Oracle Primavera Evolve 9.0SP1c Patch Readme file
- prim84154:How To: Manually Configure Jackrabbit Content Repository for use with Contract Management
- prim83344:How to install the stand-alone version of P6 V7
- prim82732:Event Code: CVRCU-1099-D when importing a XER file.
- prim74769:Contract Manager 12.1 Installation Guide.







Leave a Reply