New in version 6.1.0: See the new features.

Enable audit database

audit_enable_database()

Enable audit database


SYNTAX

  • sage/srep:

    audit_enable_database(server, “AuditDb”)

    Note: server can be a server name string, an opened !file on the server or an opened database on the server.


  • KfLib* (DNet, Java and Cpp):

    Server.auditEnableDatabase(AuditDb)


  • SQL Engine (sql command and ScODBC):

    AUDIT ENABLE DATABASE “AuditDb”


Functionality

  1. If the database object is already created:

    • Opens all that auditDb files

    • Changes the audit database to be enabled at the server level

  2. If the database object is not created:

    • Creates a database object on the server

    • Opens the auditDb files

    • Flag the database as enabled

The execution of the method waits for the command completion

The return value is 0 (K_OK) if successful or a keyed file error code otherwise


EXAMPLE

To enable the default audit database:

tmp.kfStatus = audit_enable_database("localhost", "default")

RELATED TOPICS

Audit service

Audit functions