ORA-02002: error while writing to audit trail

I got ” ORA-02002: error while writing to audit trail ”  error in Oracle database.

 

ORA-02002: error while writing to audit trail

 

Details of error are as follows.


ORA-02002:  Error while writing to audit trail

Cause:   The auditing facility is unable to write to the AUDIT_TRAIL table. If this error 
occurs, SQL statements that are currently being audited may also fail. This error will occur
 if the SYSTEM tablespace runs out of disk space


 

 

Error while writing to audit trail

This ORA-02002 errors are related with the auditing facility is unable to write to the AUDIT_TRAIL table. If this error
occurs, SQL statements that are currently being audited may also fail. This error will occur if the SYSTEM tablespace runs out of disk space.

To solve this error, add datafile to SYSAUX tablespace as follows.

SQL> alter tablespace SYSAUX add datafile '+DATA' size 1G autoextend on next 1000M;

 

Or If you don’t use the Audit trail records, then you can purge the SYS.AUD$ table as follows.

SQL> TRUNCATE TABLE SYS.AUD$;

 

Or You can disable the auditing as follows if you don’t want to use Audit trail records.

SQL> ALTER SYSTEM SET AUDIT_TRAIL=NONE SCOPE=SPFILE SID='*';

 

You should restart the database after disabling the audit_trail as follows.

SQL> shutdown immediate
SQL> startup

 

 

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

 1 views last month,  1 views today

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

IT Tutorial