Oracle Audit function startup shutdown __oracle

Source: Internet
Author: User

Parameter control of an audit function
The value of the Audit_trail parameter can be set to the following

1. None: Not open
2. DB: Open Audit function
3. OS: Audit records are written to an operating system file.
4. TRUE: Same as parameter db
5. FALSE: Do not open audit function.
This parameter is written in SPFile, which requires a restart of the database.

Second check whether the audit function is started
Sql> Show Parameter Audit
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
Audit_file_dest String/u01/app/oracle/admin/orcl/adump
Audit_sys_operations Boolean FALSE
Audit_syslog_level string
Audit_trail string NONE

Three Open audit


Sql> Conn/as SYSDBA
Sql> Show Parameter Audit
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
Audit_file_dest String/u01/app/oracle/admin/orcl/adump
Audit_sys_operations Boolean FALSE
Audit_syslog_level string
Audit_trail string NONE

Sql> alter system set AUDIT_SYS_OPERATIONS=TRUE Scope=spfile; --Audit management user (login with sysdba/sysoper role)
Sql> alter system set audit_trail=db,extended Scope=spfile;

Restart Instance
Sql> Show Parameter Audit
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
Audit_file_dest String/u01/app/oracle/admin/orcl/adump
Audit_sys_operations Boolean TRUE
Audit_syslog_level string
Audit_trail string DB, EXTENDED
Complete

Four close audit
Sql> Conn/as SYSDBA
Sql> Show Parameter Audit
Sql> alter system set Audit_trail=none;
Restart Instance

Five checks whether the audit_trail of each node is None

Related Article

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.