Can't Move FGA_LOG$/AUD$ using DBMS_AUDIT_MGMT.SET_AUDIT_TRAIL_LOCATION errors with ORA-01422 (Doc ID 2224177.1)

Last updated on APRIL 04, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms

We implemented Fine Grained Auditing in one of our product instances. While configuring FGA I tried to move the FGA_LOG$-Table into an other tablespace. I did with:

BEGIN
DBMS_AUDIT_MGMT.SET_AUDIT_TRAIL_LOCATION(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_FGA_STD,
audit_trail_location_value => 'DAT_AUDIT');
END;
/

(DAT_AUDIT is the new tablespace-name).

But instead of moving the tablespace i get an error:

ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "SYS.DBMS_AUDIT_MGMT", line 2737
ORA-06512: at "SYS.DBMS_AUDIT_MGMT", line 677
ORA-06512: at line 2

In our test-Environment, the movement was successful.

Our environment:

DB: Oracle 12.1.0.2.161018 (Test + Prod)
OS: Linux SLES 11 SP4

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms