# US 9,355,126 B2 · Active auditing in a database system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,355,126 B2
- Document ID: US9355126B2
- Status: Granted
- Kind: B2
- Application number: 12/564,666
- Filed: 2009-09-22
- Published: 2011-03-24
- Granted: 2016-05-31
- Earliest claimed: 2009-09-22
- Assignees: Oracle International Corporation
- Applicants: Daniel ManHung Wong
- Inventors: Daniel ManHung Wong
- Web page: https://patentgrep.com/patent/US9355126B2

## CPC

- G06F 16/21: Design, administration or maintenance of databases
- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 2221/2149: Restricted operating environment
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An auditing system receives a set of audit rules from a database administrator, which define a search criteria used to identify a database object that is desired to be audited. The auditing system uses the audit rules to search through a database to identify a corresponding set of database objects that satisfy at least one of the set of audit rules. Then, the system generates audit commands that configure a database management system to audit the identified set of database objects.

## Claims

### Claim 1

A computer-implemented method for automatically auditing database objects in a database, comprising:
receiving a set of audit rules, wherein an audit rule defines search criteria used to identify a database object that is desired to be audited;
searching through a set of database objects in the database to identify one or more database objects which satisfy the set of audit rules;
generating an audit command for auditing an identified database object that satisfies the set of audit rules, without receiving a user audit command that explicitly specifies the identified database object; and
in response to determining that the identified database object is updated:
determining that the identified database object does not satisfy the set of audit rules; and
removing the audit command.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein searching through the database to identify one or more database objects which satisfy the set of audit rules comprises:
determining that a database object satisfies one or more audit rules in the set of audit rules; and
returning the database object.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein when the identified database object is deleted, the method further comprises removing the audit command.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein when a database object is created in the database, the method further comprises:
determining that the newly created database object satisfies the set of audit rules; and
generating a second audit command for auditing the second database object.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein when a table is created in the database, the method further comprises:
selecting a column from the table;
determining that the selected column satisfies the set of audit rules; and
generating a second audit command for auditing the selected column of the table.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, further comprising determining whether a column of a table satisfies the set of audit rules by:
selecting a subset of rows from the table; and
determining whether one or more data elements in the subset of rows satisfy the set of audit rules.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein an audit rule includes one or more search criteria based at least on one or more of: a keyword; a data pattern; a data value; a data length; and a data size.

### Claim 8

A non-transitory computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for automatically auditing database objects in a database, the method comprising:
receiving a set of audit rules, wherein an audit rule defines search criteria used to identify a database object that is desired to be audited;
searching through a set of database objects in the database to identify one or more database objects which satisfy the set of audit rules;
generating an audit command for auditing an identified database object that satisfies the set of audit rules, without receiving a user audit command that explicitly specifies the identified database object; and
in response to determining that the identified database object is updated:
determining that the identified database object does not satisfy the set of audit rules; and
removing the audit command.

### Claim 9 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein searching through the database to identify one or more databases object which satisfy the set of audit rules comprises:
determining that a database object satisfies one or more audit rules in the set of audit rules; and
returning the database object.

### Claim 10 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein when the identified database object is deleted, the method further comprises removing the audit command.

### Claim 11 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein when a database object is created in the database, the method further comprises:
determining that the newly created database object satisfies the set of audit rules; and
generating a second audit command for auditing the second database object.

### Claim 12 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein when a table is created in the database, the method further comprises:
selecting a column from the table;
determining that the selected column satisfies the set of audit rules; and
generating a second audit command for auditing the selected column of the table.

### Claim 13 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the method further comprises determining whether a column of a table satisfies the set of audit rules by:
selecting a subset of rows from the table; and
determining whether one or more data elements in the subset of rows satisfy the set of audit rules.

### Claim 14 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein an audit rule includes one or more search criteria based at least on one or more of: a keyword; a data pattern; a data value; a data length; and a data size.

### Claim 15

An apparatus for automatically auditing database objects in a database, comprising:
a processor;
a memory;
a receiving mechanism configured to receive a set of audit rules, wherein an audit rule defines a search criteria used to identify a database object that is desired to be audited;
a database interface mechanism configured to search through a set of database objects in the database to identify one or more database objects which satisfy the set of audit rules; and
an audit command-generating mechanism configured to generate an audit command for auditing an identified database object that satisfies the set of audit rules, without receiving a user audit command that explicitly specifies the identified database object;
wherein when the identified database object is updated, the audit command-generating mechanism is further configured to:
determine that the identified database object does not satisfy the set of audit rules; and
remove the audit command.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein while searching through the database to identify one or more database objects which satisfies the set of audit rules, the database interface mechanism is configured to:
determine that the database object satisfies one or more audit rules in the set of audit rules; and
return the database object.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein when the identified database object is deleted, the audit command-generating mechanism is further configured to remove the audit command.

### Claim 18 (depends on 15)

The apparatus of claim 15, wherein when a database object is created in the database, the audit command-generating mechanism is further configured to:
determine that the newly created database object satisfies the set of audit rules; and
generate a second audit command for auditing the second database object.

### Claim 19 (depends on 15)

The apparatus of claim 15, wherein when a table is created in the database, the audit command-generating mechanism is further configured to:
select a column from the table;
determine that the selected column satisfies the set of audit rules; and
generate a second audit command for auditing the selected column of the table.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein while determining whether a column of a table satisfies the set of audit rules, the audit command generating mechanism is further configured to:
select a subset of rows from the table; and
determine whether one or more data elements in the subset of rows satisfy the set of audit rules.

### Claim 21 (depends on 15)

The apparatus of claim 15, wherein an audit rule includes one or more search criteria based at least on one or more of: a keyword; a data pattern; a data value; a data length; and a data size.
