index$_join$ or Other Internal Table Appears in Audit Trail Instead of Base Table. (Doc ID 955968.1)

In this Document
  Symptoms
  Cause
  Solution
  References


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.

APPLIES TO:

Oracle Server - Enterprise Edition - Version: 10.2.0.4
This problem can occur on any platform.

SYMPTOMS

When checking the audit trail (DBA_AUDIT_TRAIL or AUD$), the object name on which the statement is supposedly run is index$_join$_xxx or similar temporary objects (eg: from$_subquery$) instead of the actual object.
Reproducible testcase:

conn / as sysdba 
truncate table aud$; 

drop user test cascade; 

create user test identified by test; 
grant connect,resource to test; 
audit select table by session; 

connect test/test 

create table test.emp 
(empno number(4,0), 
ename varchar2(10), 
job varchar2(9), 
mgr number(4,0), 
hiredate date, 
sal number(7,2), 
comm number(7,2), 
deptno number(2,0), 
constraint pk_emp primary key (empno); 
); 

create index emp_mgr_idx on emp (mgr); 
create index emp_dptno_idx on emp (deptno); 

connect test/test 

select /*+ index_join(E EMP_MGR_IDX EMP_DPTNO_IDX) */ DEPTNO 
from test.EMP E 
where MGR < 110 
and DEPTNO < 50; 

CONN / AS SYSDBA 
set linesize 150 
set pagesize 300 
column owner format a10 
column username format a10 
column obj_name format a20 
column sql_text format a70 
select username,owner,obj_name,sql_text from dba_audit_trail where username='TEST'; 

USERNAME OWNER  OBJ_NAME         SQL_TEXT 
-------- ------ ---------------  -------------------------------------------
TEST     TEST   index$_join$_001 SELECT /*+ INDEX_JOIN 
                                 (e emp_mgr_idx emp_dptno_idx) */ deptno 
                                 TEST.emp e 
                                 mgr < 110 
                                 deptno < 50


 

CAUSE

the problem is caused by unpublished 

Bug 7196409 INTERNAL TABLE IS OUTPUT TO AUDIT RECORD USING INDEX JOIN

SOLUTION

The bug is permanently fixed in the 11.2 release. 
Backport requests can be created for previous releases, ie 10.2.0.4 and 11.1.0.7. 

REFERENCES

BUG:9002241 - AUDIT TRAIL DISPLAYS INDEX$_JOIN$_001 INSTEAD OF BASE TABLE.


 
 

Related

   
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值