Audit data pump export operations with unified Auditing policy

Source: Internet
Author: User

1. Create an Audit policy

Sql> alter session set CONTAINER=PDB1; sql> Create or replace directory Dumpdir as '/u12/app/dumpdir '; Sql> Grant Read,write on directory Dumpdir to Scott; Sql> Create audit Policy dp_01 actions component=datapump export;

2. Open Audit Policy

Sql> Audit Policy dp_01;

3. Perform a data pump export operation

$ EXPDP scott/[email protected]  Dumpfile=scott_schema Directory=dumpdir

4. Refresh data to disk

sql> exec Sys.dbms_audit_mgmt.flush_unified_audit_trail;

5. View Unified_audit_trail

Sql> Select Dp_text_parameters1,dp_boolean_parameters1 from Unified_audit_trail where dp_text_parameters1 are not Null;dp_text_parameters1                                                              Dp_boolean_ PARAMETERS1---------------------------------------------------------------------------------------------------- ------------------------------------------------------------MASTER TABLE: "  SCOTT". " Sys_export_schema_01 ", Job_type:export, Metadata_job_m master_only:false, Data_only:false, Metadata_only:false, DUMP FILE_PRESENT:TRODE:SCHEMA_EXPORT, JOB version:12.1.0.2.0, ACCESS method:automatic, DATA OPTI UE, Job_restarted:falseo ns:0, Dumper directory:null  

Audit data pump export operations with unified Auditing policy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.