Previous Topic

Next Topic

Alter Security_Audit

Valid in: SQL, ESQL

The Alter Security_Audit statement allows the current security audit log to be switched and for security auditing to be suspended or resumed in the current installation. This statement takes effect immediately and cannot be issued within a multi-statement transaction. It is available in dynamic SQL.

Previous Topic

Next Topic

Syntax

The Alter Security_Audit statement has the following format:

[EXEC SQL] ALTER SECURITY_AUDIT [SUSPEND|RESUME|RESTART|STOP] [WITH AUDIT_LOG = 'audit_filename']

Previous Topic

Next Topic

Embedded Usage

Audit_filename can be specified using a string hostname variable in an embedded Alter Security_Audit statement.

Previous Topic

Next Topic

Permissions

Alter Security_Audit requires the maintain_audit privilege and can only be issued while connected to the iidbdb database.

Previous Topic

Next Topic

Related Statements

Disable Security_Audit

Enable Security_Audit

Previous Topic

Next Topic

Examples: Alter Security_Audit

The following examples allow the current security audit log to be switched and for security auditing to be suspended or resumed in the current installation:

  1. Restart security auditing after it has been suspended.

    alter security_audit resume;

  2. Restart auditing, switching to a new audit log.

    Windows:

    alter security_audit restart
    with audit_log = 'd:\oping\ingres\files\audit.log'

    UNIX:

    alter security_audit restart
    with audit_log = /install/ingres/files/audit.3

    VMS:

    alter security_audit restart
    with audit_log = disk$7:[ingres.files]audit.3

  3. Cause Ingres to log events to the auditlog.7 file.

    alter security_audit
    with audit_log = '/auditdisk/auditlog.7';


© 2007 Ingres Corporation. All rights reserved.