Table of Contents

Search

  1. Preface
  2. Introduction to the Stored Procedure Accelerator for Oracle
  3. Masking Stored Procedures and User-Defined Table Functions
  4. Stored Procedure Accelerator Setup
  5. Stored Procedure Accelerator Rules

Stored Procedure Accelerator Guide for Oracle

Stored Procedure Accelerator Guide for Oracle

Creating the Clean Up Procedure

Creating the Clean Up Procedure

Create the CLEANUP_TEMP_OBJECTS procedure.
  1. Open the following file in Notepad:
    <Dynamic Data Masking installation>\Accelerators\StoredProcedureMasking\sql\Oracle\CLEAN_TEMP_OBJECTS_JOB_CREATION_TEMPLATE.sql
  2. Use SQL Developer to log in to the database as an administrator.
  3. Paste the text of the CLEAN_TEMP_OBJECTS_JOB_CREATION_TEMPLATE.sql file into the SQL Worksheet.
  4. Run the script to create the CLEANUP_TEMP_OBJECTS procedure.
The CLEANUP_TEMP_OBJECTS has the following attributes:
created_before_seconds
Objects that have a creation time that is before the value of the created_before_seconds attribute are considered for deletion. Specify the time in seconds.
tempdb_schema
The name of the temporary schema where the accelerator creates the temporary objects.
For example, you want to delete the temporary objects in the DDMTEMPDB schema that the accelerator created more than 300 seconds ago. You use the following attribute values:
  • created_before_seconds : 300
  • tempdb_schema : 'DDMTEMPDB'

0 COMMENTS

We’d like to hear from you!