Solved

oracle 10 aih ora 46258

Posted on 2014-10-01
4
506 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

749 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