Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

oracle 10 aih ora 46258

Posted on 2014-10-01
4
Medium Priority
?
547 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 78

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 78

Accepted Solution

by:
slightwv (䄆 Netminder) earned 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Suggested Courses

885 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