Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

oracle 10 aih ora 46258

Posted on 2014-10-01
4
Medium Priority
?
533 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
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.
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…

730 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