Sunday, July 05, 2009

Historical Audit Trail Information Missing after Siebel 8.0 Upgrade

Hi Friends,

If you have just upgraded to Siebel 8.0, then be prepared to have a big shocker in waiting! All the historical audit trail information will be missing from UI due to the New Encoded Audit Trail storing mechanism introduced in Siebel 8.0

A major change in Siebel 8.0 is the query formed while retrieving the Audit Trail records:
(T1.RECORD_ID = ?))

All Historical Audit Trail records would be having BC_BASE_TBL column as null causing this issue.
If you are thinking to populate this column using EIM, then it wont work as S_AUDIT_ITEM does not have the required userkeys.

So how to go about populating BC_BASE_TBL directly? We need to query S_BUSCOMP & get the Base Table name for each record.

I have wrote a PL/SQL Block for directly updating S_AUDIT_ITEM which will populate the BC_BASE_TBL for all the historical records inorder to resolve this issue...

I hope this helps to all who have recently upgraded to Siebel 8.0!
Welcome to Siebel 8.0 :)

audit trail,audit trails,audit report,audit management,siebel crm,siebel, siebel systems,S_AUDIT_ITEM,BC_BASE_TBL,EIM,Historical Audit,etc


vishnu Sharma said...

Hi thank you for posting very useful infromation.

Anonymous said...

Has anyone tried running this script to enable the old data visibitlity through the UI? Did it work as you would expect?

Shalabhsneha Katdare said...


The script is production ready. If you have doubts, give it a shot in development/patch environment.

Anonymous said...

Perfect Script...Well done!