cd tomcat/lib
java -cp catalina.jar org.apache.catalina.util.ServerInfo
cd tomcat/lib
java -cp catalina.jar org.apache.catalina.util.ServerInfo
! HPRD:atlas.ecp.priv:/dbapps/oracle> sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Tue Aug 18 02:40:33 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> audit create session whenever not successful;
select os_username, username, userhost, to_char(timestamp,'mm/dd/yyyy hh24:mi:ss')
logon_time, action_name, returncode from dba_audit_session order by 4 desc;
sudo visudo
oracle ALL=(root) ALL
admrcavan ALL=(applmgr) NOPASSWD:ALL
admrcavan@apollo's password:
Last login: Mon Aug 10 18:02:52 2020 from 10.162.91.247
[admrcavan@apollo ~]$ sudo -iu applmgr
apollo:/dbapps/applmgr/HRD2/apps/apps_st/appl>
You should periodically archive and then purge the audit trail to prevent it from growing too large.
Archiving and purging both frees audit trail space and facilitates the purging of the database audit trail.
You can create an archive of the unified and traditional database audit trail by using Oracle Audit Vault and Database Firewall. You install Oracle Audit Vault and Database Firewall separately from Oracle Database.
After you complete the archive, you can purge the database audit trail contents.
To archive the unified, traditional standard, and traditional fine-grained audit records, copy the relevant records to a normal database table.
For example:
INSERT INTO table SELECT ... FROM UNIFIED_AUDIT_TRAIL ...; INSERT INTO table SELECT ... FROM SYS.AUD$ ...; INSERT INTO table SELECT ... FROM SYS.FGA_LOG$ ...;
DBMS_AUDIT_MGMT.CLEAN_AUDIT_TRAIL PL/SQL procedure:DBMS_AUDIT_MGMT package does not support cleanup of Windows Event Viewer, setting the AUDIT_TRAIL_TYPE property to DBMS_AUDIT_MGMT.AUDIT_TRAIL_OS has no effect. This is because operating system audit records on Windows are written to Windows Event Viewer. The DBMS_AUDIT_MGMT package does not support this type of cleanup operation.AUDIT_SYSLOG_LEVEL initialization parameter to a valid value as listed in Oracle Database Reference, then Oracle Database writes the operating system log files to syslog files. If you set the AUDIT_TRAIL_TYPE property to DBMS_AUDIT_MGMT.AUDIT_TRAIL_OS, then the procedure only removes .aud files under audit directory (This directory is specified by the AUDIT_FILE_DEST initialization parameter).AUDIT_TRAIL_TYPE parameter is set to DBMS_AUDIT_MGMT.AUDIT_TRAIL_XML, this procedure only cleans up XML audit files (.xml) in the current audit directory. Oracle Database maintains an index file, called adx_$ORACLE_SID.txt, which lists the XML files that were generated by the XML auditing. The cleanup procedure does not remove this file.DBMS_AUDIT_MGMT.INIT_CLEANUP procedure, and then purging the database audit trail by using the method described in "Purging a Subset of Records from the Database Audit Trail".DBMS_AUDIT_MGMT.CLEAN_AUDIT_TRAIL PL/SQL procedure.BEGIN DBMS_AUDIT_MGMT.CLEAN_AUDIT_TRAIL( AUDIT_TRAIL_TYPE => DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD, USE_LAST_ARCH_TIMESTAMP => TRUE ); END; /
AUDIT_TRAIL_TYPE: Enter one of the following values:DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD: Standard audit trail table, AUD$DBMS_AUDIT_MGMT.AUDIT_TRAIL_FGA_STD: Fine-grained audit trail table, FGA_LOG$DBMS_AUDIT_MGMT.AUDIT_TRAIL_DB_STD: Both standard and fine-grained audit trail tablesDBMS_AUDIT_MGMT.AUDIT_TRAIL_OS: Operating system audit trail files with the .aud extension. (This setting does not apply to Windows Event Log entries.)DBMS_AUDIT_MGMT.AUDIT_TRAIL_XML: XML audit trail filesDBMS_AUDIT_MGMT.AUDIT_TRAIL_FILES: Both operating system and XML audit trail filesDBMS_AUDIT_MGMT.AUDIT_TRAIL_ALL: All audit trail records, that is, both database audit trail and operating system audit trail typesUSE_LAST_ARCH_TIMESTAMP: Enter either of the following settings:TRUE: Deletes audit records created before the last archive timestamp. To set the archive timestamp, see "Step 4: Optionally, Set an Archive Timestamp for Audit Records". The default (and recommended) value is TRUE. Oracle recommends that you set USE_LAST_ARCH_TIMESTAMP to TRUE.FALSE: Deletes all audit records without considering last archive timestamp. Be careful about using this setting, in case you inadvertently delete audit records that should have been deleted.SYSTEM tablespace.DELETE FROM SYS.AUD$
WHERE NTIMESTAMP# > TO_TIMESTAMP ('28-FEB-09 09.07.59.907000 PM') AND
NTIMESTAMP# < TO_TIMESTAMP ('28-MAR-09 09.07.59.907000 PM');
DELETE FROM SYS.AUD$;
SYS or a user to whom SYS granted the DELETE privilege on SYS.AUD$ can delete records from the database audit trail.