DB Audit User's Guide
Total Page:16
File Type:pdf, Size:1020Kb
o DB AUDIT & SECURITY 360 version 5.0 User's Guide Supported database systems: Oracle 7.3, 8.0, 8i, 9i, 10g, 11g, 12c Microsoft SQL Server 7, 2000, 2005, 2008, 2012, 2014 Sybase SQL Server and Sybase Adaptive Server Enterprise 10.x, 11.x, 12.x, 15.x Sybase Adaptive Server Anywhere 6, 7, 8, 9, 10 IBM DB2 7.x, 8.x, 9.x, 10.x for Linux, Unix, and Windows IBM DB2 6.x, 7.x, 8.x, 9.x for z/OS and OS/390 IBM DB2 5.x for OS/400 MySQL 4.2, 5.x for Windows and Linux Copyright © SoftTree Technologies, Inc. 1999-2015 All rights reserved Contents Contents About This Guide ......................................................................................................................... 12 Intended Audience ................................................................................................................. 12 Conventions used in this document ....................................................................................... 12 Abbreviations and Product Reference Terms ........................................................................ 13 Trademarks ............................................................................................................................ 13 CHAPTER 1: Overview of DB Audit Expert ............................................................................... 14 Introduction ............................................................................................................................ 14 Key Benefits...................................................................................................................... 14 Feature matrix by DBMS ....................................................................................................... 15 DB Audit Main GUI Controls .................................................................................................. 17 DB Audit Start Page ............................................................................................................... 19 CHAPTER 2: Connecting to Your Database ............................................................................. 21 Preparing your database for use ........................................................................................... 21 Installing the ODBC driver or native database driver ............................................................ 21 Defining the ODBC data source ............................................................................................ 21 Troubleshooting the database connection ............................................................................. 22 Connect To Database Dialog ................................................................................................. 23 CHAPTER 3: System Auditing .................................................................................................... 25 How it works ........................................................................................................................... 25 Guidelines .............................................................................................................................. 27 System audit trail management ............................................................................................. 28 Archiving system audit trail to a table ............................................................................... 28 Exporting system audit trail to a file .................................................................................. 28 Truncating system audit trail ............................................................................................. 29 Scheduling periodic audit trail purge ................................................................................ 29 Scheduling periodic audit trail archiving to files ................................................................ 34 Archiving audit trail to centralized audit repository ........................................................... 37 Oracle: Configuring System Audit Options ............................................................................ 37 Enabling system audit ...................................................................................................... 38 Disabling system audit ...................................................................................................... 39 Setting system audit options............................................................................................. 39 Configuring Advanced Options for Oracle ........................................................................ 45 Microsoft SQL Server: Configuring System Audit Options .................................................... 52 Microsoft SQL Server: Enabling system audit .................................................................. 52 Alternative Method to Start System Audit ................................................................................53 Microsoft SQL Server: Disabling system audit ................................................................. 54 Microsoft SQL Server: Setting system audit options ........................................................ 54 -3- Contents Sybase SQL Server and ASE: Configuring System Audit Options ....................................... 64 Sybase: Enabling system audit ........................................................................................ 64 Sybase: Disabling system audit........................................................................................ 64 Sybase: Setting system audit options .............................................................................. 64 DB2: Configuring System Audit Options ................................................................................ 73 DB2: Enabling system audit ............................................................................................. 73 DB2: Disabling system audit ............................................................................................. 78 DB2: Setting system audit options ................................................................................... 79 MySQL: Configuring System Audit Options ........................................................................... 81 MySQL: Enabling system audit ........................................................................................ 81 MySQL: Disabling system audit........................................................................................ 83 MySQL: Setting system audit options .............................................................................. 83 CHAPTER 4: Data Change Auditing .......................................................................................... 89 How it works ........................................................................................................................... 89 DBMS privileges required ...................................................................................................... 92 Guidelines .............................................................................................................................. 93 Limitations .............................................................................................................................. 94 Direct Data Load and Table Truncation ........................................................................... 94 Large Character/Binary Data Support (BLOB) ................................................................. 94 User Tracking ................................................................................................................... 95 Multiple Triggers Execution Order .................................................................................... 96 Enabling Data Change Audit ................................................................................................. 96 Choosing Audit Scope ........................................................................................................... 97 Selecting Auditable Operations ............................................................................................. 98 Selecting Audit Trail Columns and Auditable Changes ......................................................... 98 Setting User-level and Application-level Audit Filters ............................................................ 99 User-level filters: ............................................................................................................. 100 Application-level filters: ................................................................................................... 102 Setting Email Alerts ............................................................................................................. 104 Configuring Email Setting for Data Change Alerts .............................................................. 105 Setting User Name Mapping ................................................................................................ 107 Using a user-defined procedure for user name mapping ............................................... 107 Parameter specification for the user name mapping stored procedure ......................... 108 Example user-name mapping procedures ..................................................................... 110 Disabling Auditing Temporarily ............................................................................................ 113 Data-change audit trail management .................................................................................