- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- doubt in audting
Operating System - HP-UX
1752808
Members
6041
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2007 08:36 PM
тАО11-30-2007 08:36 PM
doubt in audting
Hi,
in my database audit_trail parameter is enabled to DB (AUDIT_TRAIL=DB).
and also i enabled statement level auditing
by the giving following queries
audit table by access;
audit insert table by access;
audit select table by access;
audit delete table by access;
audit update table by access;
audit alter table by access;
i found the output by the following select stmt
col username for a15;
col OBJ_NAME for a15;
col action_name for a15;
set pagesize 200;
select USERNAME,to_char(TIMESTAMP,'DD-MON-YY HH24:MI:SS') "ACTION_TIME",
ACTION_NAME,OBJ_NAME,RETURNCODE from dba_audit_trail
where timestamp > (select to_char(sysdate,'DD-MON-YY') from dual);
The output will select audit report for current day.
i have attached the output of select stmt with this thread.
MY DOUBT is
i can found list of output like this
USERNAME ACTION_TIME ACTION_NAME OBJ_NAME RETURNCODE
--------------- ------------------ --------------- --------------- ----------
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 SELECT SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 SELECT SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 SELECT SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 SELECT SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 SELECT SERIALNUMBER 0
i found the same timestamp for repeated for same select stmt with the same user...
please help me to show me one imestamp for the one select stmt for that user
Oracle version =8i
Thanks
Nirmal.
in my database audit_trail parameter is enabled to DB (AUDIT_TRAIL=DB).
and also i enabled statement level auditing
by the giving following queries
audit table by access;
audit insert table by access;
audit select table by access;
audit delete table by access;
audit update table by access;
audit alter table by access;
i found the output by the following select stmt
col username for a15;
col OBJ_NAME for a15;
col action_name for a15;
set pagesize 200;
select USERNAME,to_char(TIMESTAMP,'DD-MON-YY HH24:MI:SS') "ACTION_TIME",
ACTION_NAME,OBJ_NAME,RETURNCODE from dba_audit_trail
where timestamp > (select to_char(sysdate,'DD-MON-YY') from dual);
The output will select audit report for current day.
i have attached the output of select stmt with this thread.
MY DOUBT is
i can found list of output like this
USERNAME ACTION_TIME ACTION_NAME OBJ_NAME RETURNCODE
--------------- ------------------ --------------- --------------- ----------
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 SELECT SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 SELECT SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 SELECT SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 SELECT SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 UPDATE SERIALNUMBER 0
STSDB 29-NOV-07 05:10:35 SELECT SERIALNUMBER 0
i found the same timestamp for repeated for same select stmt with the same user...
please help me to show me one imestamp for the one select stmt for that user
Oracle version =8i
Thanks
Nirmal.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2007 01:48 AM
тАО12-02-2007 01:48 AM
Re: doubt in audting
Hi there,
I'm not a DB specialist and not completely sure if I understand your issue correctly, but if you don't want the same line in your output several times I guess you could change 'select ...' to 'select distinct ...' in your query ?
If you're wondering why there so much data in the audit table itself, that I wouldn't know. Maybe stsdb is actually doing these things multiple times per second ? Note again that I'm not an oracle guru ;-)
Cheers,
Wout
I'm not a DB specialist and not completely sure if I understand your issue correctly, but if you don't want the same line in your output several times I guess you could change 'select ...' to 'select distinct ...' in your query ?
If you're wondering why there so much data in the audit table itself, that I wouldn't know. Maybe stsdb is actually doing these things multiple times per second ? Note again that I'm not an oracle guru ;-)
Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2007 02:18 PM
тАО12-05-2007 02:18 PM
Re: doubt in audting
To understand the audit trail you really need to understand the application design.
Your audit option is 'by access', so every time a SQL statement hits the target table, it will create a new audit record. If this is a core table in a highly concurrent application, then you should expect to see lots of data in the audit trail. One option is to change the audit to 'by session'. However, if there is some application service with a continuous session, this will generate only one record no matter how many times the table is accessed.
It also depends on how this table is accessed. If this table is hit with bulk updates or select statements against low-cardinality columns, then I would expect to see less access. One select/update will hit multiple rows. If it is updated by high cardinality colums, then I would expect lots of updates as sessions updated one or two specific rows at a time.
Finally, it depends on the way SQL is used on the table. Looking at the above excerpt, I see a single select statement followed by multiple update statements. It may be that the application layer is issuing a single 'select', followed by multiple updates for seperate columns, instead of updating all columns with a single update statement. Although inefficient, this could be an artifact of some application layer that generates the SQL.
Back to my original point, to make sense of the audit trail, you need to understand something about how the application accesses the data and uses the individual tables.
Your audit option is 'by access', so every time a SQL statement hits the target table, it will create a new audit record. If this is a core table in a highly concurrent application, then you should expect to see lots of data in the audit trail. One option is to change the audit to 'by session'. However, if there is some application service with a continuous session, this will generate only one record no matter how many times the table is accessed.
It also depends on how this table is accessed. If this table is hit with bulk updates or select statements against low-cardinality columns, then I would expect to see less access. One select/update will hit multiple rows. If it is updated by high cardinality colums, then I would expect lots of updates as sessions updated one or two specific rows at a time.
Finally, it depends on the way SQL is used on the table. Looking at the above excerpt, I see a single select statement followed by multiple update statements. It may be that the application layer is issuing a single 'select', followed by multiple updates for seperate columns, instead of updating all columns with a single update statement. Although inefficient, this could be an artifact of some application layer that generates the SQL.
Back to my original point, to make sense of the audit trail, you need to understand something about how the application accesses the data and uses the individual tables.
Trust me, I know what I'm doing
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP