Solved

oracle 10 aih ora 46258

Posted on 2014-10-01
4
496 Views
Last Modified: 2014-10-02
oracle 10.2.05 on aix
audit trail set to db
executing
BEGIN
DBMS_AUDIT_MGMT.set_audit_trail_location(
audit_trail_type =>DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD,
audit_trail_location_value => 'AUDIT_TS');
END;
/
error at line 1
ORA 46258: Cleanup not initialized for the audit trail

I have set this up in 3 other database - they are 11g with no issue - this database is 10g
is there a way to fix this?

thanks
0
Comment
Question by:bkreynolds48
  • 2
  • 2
4 Comments
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40355975
Not a lot of information on that package in the 10g docs.  My guess is that package was new to 10g.  My other guess is that in 11g, it does tings for you that 10g didn't.

Never used that package but based on the error message (in the 11g docs):
http://docs.oracle.com/cd/E11882_01/server.112/e17766/e46000.htm

ORA-46258: Cleanup not initialized for the audit trail
    Cause: DBMS_AUDIT_MGMT.INIT_CLEANUP was not called for the erroring audit trail.
    Action: Invoke the procedure, DBMS_AUDIT_MGMT.INIT_CLEANUP.

I was able to find the description of innit_cleanup in the 10g docs:
http://docs.oracle.com/cd/E11062_01/admin.1023/e11059/avadm_app_d_audit_mgmt.htm#BABFHEFH
0
 
LVL 1

Author Comment

by:bkreynolds48
ID: 40356045
when running the cleanup

BEGIN
DBMS_AUDIT_MGMT.CLEAN_AUDIT_TRAIL(
   audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_DB,
   use_last_arch_timestamp => TRUE);
END;
/

get error at line, column 37
PLS 302 component "AUDIT_TRAIL_DB' must be declared
0
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 40356054
Are you looking at the 10g docs?  Use what you ind on the Internet as a good starting point but refer to the online docs for your specific version for the final say.

From them, they post the valid values for audit_trail_type:

http://docs.oracle.com/cd/E11062_01/admin.1023/e11059/avadm_app_d_audit_mgmt.htm#BABIDGEA
0
 
LVL 1

Author Closing Comment

by:bkreynolds48
ID: 40356996
thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question