Session level auditing
Hi everyone,
I need oracle document ID for session-level auditing in oracle 10g.If you 've any steps to do auditing in session level,kindly post it.
Thanks
Jaya prataab J
Do you really mean "audit" as in "information that gets written to the database audit trail"? Or do you mean to ask how to trace a session?
If you really mean audit as in the SQL statement keyword (i.e. AUDIT SELECT ON emp ...), I'm rather unclear on how you would expect that sort of functionality to work. Auditing is necessarily configured long before the session even exists. And an audit trail that just had audit records from a few select sessions would seem rather pointless as you'd never know what changes were made in unaudited sessions.
Justin
Edited by: Justin Cave on Nov 18, 2008 6:22 PM
Similar Messages
-
How to measure undo at a session level
Below is what are trying to do.
We are trying to implement Oracle's table block compression feature.
In doing so, in one of our testing we discovered that the session performing the DML (inserts) generated almost 30x undo.
We measured this undo by using below query (before the transaction commited).
SELECT a.sid, a.username, used_ublk, used_ublk*8192 bytes
FROM v$session a, v$transaction b
WHERE a.saddr = b.ses_addr
However, above is at a transaction level since it still not committed, we would lose this value once the transaction either committed or rolled back, for this reason, we are trying to find an equivalent statistic at a session level.
1. What we are trying to find it out whether if an equivalent session level statistic exist to measure the amount of undo generated?
2. Is the undo generated always in terms of "undo blocks?"
3. When querying v$statname for name like '%undo%' we came across several statistics, the closest one
undo change vector size -in bytes?
4. desc test_table;
Name Type
ID NUMBER
sql> insert into test_table values (1);
5. However when we run the query against:
SELECT s.username,sn.name, ss.value
FROM v$sesstat ss, v$session s, v$statname sn
WHERE ss.sid = s.sid
AND sn.statistic# = ss.statistic#
AND s.sid =204
AND sn.name ='undo change vector size'
SID USERNAME NAME BYTES
204 NP4 undo change vector size 492
6. Query against: v$transaction
SELECT a.sid, a.username, used_ublk, used_ublk*8192 bytes
FROM v$session a, v$transaction b
WHERE a.saddr = b.ses_addr
SID USED_UBLK BYTES
204 1 8192
What are trying to understand is:
1. How can we or what is the correct statistic to determine how many undo blocks were generated by particular session?
2. What is the statistic: undo change vector size? What does it really mean? or measure?Any transaction that generates Undo will use Undo Blocks in multiples of 1 --- i.e. the minimum allocation on disk is 8KB.
Furthermore, an Undo_Rec does not translate to a Table Row. The Undo has to capture changes to Indexes, block splits, other actions. Multiple changes to the same table/index block may be collapsed into one undo record/block etc etc.
Therefore, a transaction that generated 492 bytes of Undo would use 8KB of undo space because that is the minimum allocation.
You need to test with larger transactions.
SQL> update P_10 set col_2='ABC2' where mod(col_1,10)=0;
250000 rows updated.
SQL>
SQL> @active_transactions
SID SERIAL# SPID USERNAME PROGRAM XIDUSN USED_UBLK USED_UREC
143 542 17159 HEMANT sqlplus@DG844 (TNS V1-V3) 6 5176 500000
Statistic : db block changes 1,009,903
Statistic : db block gets 1,469,623
Statistic : redo entries 502,507
Statistic : redo size 117,922,016
Statistic : undo change vector size 41,000,368
Statistic : table scan blocks gotten 51,954
Statistic : table scan rows gotten 10,075,245Hemant K Chitale -
How to Use Transient View Objects to Store Session-level Global Variables
hi
Please consider section "40.8.5 How to Use Transient View Objects to Store Session-level Global Variables"
at http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcstatemgmt.htm#ADFFD19610
Based on this documentation I created the example application
at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.01.zip
It behaves as show in the screencast at http://screencast.com/t/qDvSQCgpvYdd
Its Application Module has a Transient View Object instance "MyEmployeesContextVOVI", as master for the child View Object instance "EmpInCtxJobVI".
On rollback the Transient View Object instance keeps its row and attribute values.
Also when passivation and activation is forced (using jbo.ampool.doampooling=false ) the Transient View Object instance seems to keep its row and attribute values.
questions:
- (q1) Why does the expression #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty} evaluate as true when a Transient View Object instance attribute value is changed (as shown in screencast at http://screencast.com/t/qDvSQCgpvYdd )?
- (q2) What would be a robust approach to make a Transient View Object instance more self-contained, and manage itself to have only one single row (per instance) at all times (and as such removing the dependency on the Application Module prepareSession() as documented in "5. Create an empty row in the view object when a new user begins using the application module.")?
many thanks
Jan VerveckenThanks for your reply Frank.
q1) Does sample 90 help ? http://blogs.oracle.com/smuenchadf/examples/
Yes, the sample from Steve Muench does help, "90. Avoiding Dirtying the ADF Model Transaction When Transient Attributes are Set [10.1.3] "
at http://blogs.oracle.com/smuenchadf/examples/#90
It does point out a difference in marking transactions dirty by different layers of the framework, "... When any attribute's value is changed through an ADFM binding, the ADFM-layer transaction is marked as dirty. ...".
This can be illustrate with a small change in the example application
at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.02.zip
It now shows the result of both these expressions on the page ...
#{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty}
#{bindings.MyEmployeesContextVOVIIterator.dataControl.dataProvider.transaction.dirty}... where one can be true and the other false respectively.
See also the screencast at http://screencast.com/t/k8vgNqdKgD
Similar to the sample from Steve Muench, another modification to the example application introduces MyCustomADFBCDataControl
at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.03.zip
public class MyCustomADFBCDataControl
extends JUApplication
@Override
public void setTransactionModified()
ApplicationModule vApplicationModule = (ApplicationModule)getDataProvider();
Transaction vTransaction = vApplicationModule.getTransaction();
if (vTransaction.isDirty())
super.setTransactionModified();
}Resulting in what seems to be more consistent/expected transaction (dirty) information,
see also the screencast at http://screencast.com/t/756yCs1L1
Any feedback on why the ADF Model layer is so eager to mark a transaction dirty is always welcome.
Currently, question (q2) remains.
regards
Jan -
Setting Session level parameter in FORMS 10g
Hi folks,
I want to setup session level setting for NLS DATE FORMAT in FORMS 10g at environment settings. because, i can't change these setting at database level. b,cz different client applications (i.e. .NET,Forms 10g and SQL PLUS) using different settings.
So, i want to set this NLS DATE FORMAT for SESSION level in FORMS 10g.
can i include this in default.env, if yes, how to include that one in .env file
Edited by: user12212962 on Jul 23, 2010 7:18 PMNo, i want to setup the session parameter for DATE FORMAT. why because, i'm executing oracle stored procedure from forms and this procedure does some logic based on date value.
In this procedure, i have used all variables as DATE datatype only. and i can't change this procedure due to some other client application's using same procedure like JAVA, .NET, Oracle BI and scheduled jobs. And all these application's working fine, even when i use forms 6i also it's working.
but when we use FORMS10g, date was treating as DD-MON-RR and all other client applications using DD-MON-YYYY due to session level setting and at database level also has a same format i.e. DD-MON-YYYY. because i logged this NLS value in audit_table when i executed through FORMS10G, JAVA application,.NET
May be some where it's changing this setting to DD-MON-RR for FORMS10g. Is any settings at Oracle APP server level
(iAS) for this parameter? -
Commit and rollback on session level
Hi All,
I am calling one stored procedure and I am doing some dml operation in that sp. there after I calling another sp which contain some ddl operations. if process may be fail in somewhere I wanted to rollback all dml transactions.
So I wanted to commit and rollback on session level. Is such kind of concept available in oracle.
Prashant.Prashant,
Not sure what you are talking about.
Commit and rollback is always on session level!!!!
Also all DDL statements are automatically committed, and rollback in case of errors is always statement level rollback.
So let's assume
begin
insert into foo...;
update foo...;
execute immediate 'alter table foo add (last_update date)';
end;
exit
and the alter table fails:
1 alter table is rolled back
2 insert and updates are not rolled back.
If the alter table succeeds
all statements are committed and you can't roll them back anymore.
This is why issuing DDL in stored procedures has unwanted side effects and should be conisdered pure evil.
Sybrand Bakker
Senior Oracle DBA
Experts: those who did read the documentation. -
Hi all,
I have an Oracle 11g installation with a database setup as follows: NLS_COMP=BINARY, NLS_SORT=BINARY.
After playing a bit at the session level with NLS_COMP=LINGUISTIC and NLS_SORT=BINARY_CI, I persisted them at the instance level via ALTER SYSTEM with SCOPE=SPFILE.
Bounced the database and voila, when I query nls_instance_parameters it reflects my changes.
Problem is, my parameters are not applied to my session: in fact, if I query nls_session_parameters, both are still set to BINARY. (Note: using sqlplus).
The documentation (http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/create006.htm) states:
"A new session inherits parameter values from the instance-wide values."
Am I missing something here? Is sqlplus somehow overriding the instance-level parameters? (I know sql developer may, depending on your options, hence I went back to basics...).
Any help appreciated!
Thanks in advance,
PaoloHi Sergiusz,
Thank you again for your reply.
In my registry NLS_LANG is set to its default value (AMERICAN_AMERICA.WE8MSWIN1252), so I assume that unless I set anything specific in my environment, NLS_COMP and NLS_SORT are affected by that and sort of reset to BINARY?
If this is the case, then I'm struggling to understand the purpose of setting them at the instance level, given that as you said, NLS_LANG shouldn't be removed as an environmental variable and it seems to override them?
Along the same lines, if I understand this correctly, should I have no control over the environment that my application runs in (e.g. a web application running in a shared IIS app pool), then the only option left is (re)setting my variables every time I establish a connection with the Oracle db, thereby starting a new session?
Really appreciate your help.
Cheers,
Paolo -
Can we change the DB character set at session level
hi,
Please help me
when iam giving the alter session command iam getting the error:
SQL> ALTER SESSION set NLS_CHARACTERSE
T =WE8MSWIN1252;
ALTER SESSION set NLS_CHARACTERSET =WE8MSWIN1252
ERROR at line 1:
ORA-00922: missing or invalid
i need to enter Arabic names in using the xml file.
here i have two questions
1)is it is possible to set character set at session level. because my client is not allowing to bounce the database. DB version is 10.2.0.4
Right now my DB is in US7ascii
2)is this "WE8MSWIN1252" set supports Arabic.
Regards,
NareshYou cannot change the characterset at the session level. If you want to store ARABIC characters in your database then you should change the characterset of your database to any other characterset that supports Arabic characters or to a Unicode characterset like UTF8 or AL32UTF8.
If you try to insert Arabic characters with your present US7ASCII charancterset then the characters would be stored as junk. -
Issue with data store at AM - specific session-level
Hi,
Iam using JDev 11.1.1.5.0
Iam facing an issue while storing a value at AM session level in AMIMpls custom method.Following is the sample code for the same. Iam trying to invoke this method as methodcall activity in bounded taskflow.
Just following the instructions specified at below URL
http://andrejusb.blogspot.sg/2010/01/storingaccessing-objects-in-adf-bc.html
public void setDeliveryVersionId(String deliveryVersion){
Session session = this.getSession();
//Session session = getDBTransaction.getSession();
Hashtable userdata = session.getUserData();
It would be great, if some one suggest on this.
Thanks in advance,
Samba.Sorry, I forgot to mention the actual issue. i.e getting null value for session variable.
Thanks,
Samba. -
Can I import a Pro Tools OMF Session into Audition CC?
I need to work on a session recorded in Pro Tools. Can I import an OMF file/session into Audition CC?
Yes
-
Deferred constraint at session level
Can you define a specific constraint to be deferred at the session level?
I know that all deferrable constraints can be set deferred at the[b] session level:
ALTER SESSION SET CONSTRAINTS = DEFERRED;
But what if I want a certain constraint only to be set deferred at the session level?
thank uSET CONSTRAINT[S]
-
Change sysdate on session level
Hi,
I am using Oracle 10.2.0.4 database.
My Application server is in USA and my database is in Germany. So we have 6 hours time difference between. So i need to set the sysdate to USA timings for a session who logs from USA.
How to change the sysdate in session level.
Regards,
Nv
Edited by: ORCLDB on Oct 24, 2011 2:33 PMThanks for the help !.
Is it possible some way by setting time_zone parameter. I tried as below
SQL> alter session set time_zone='Europe/Zurich';
Session altered.
SQL> select sysdate from dual;
SYSDATE
24.10.11
SQL> select to_char(sysdate,'dd-mm-yyyy hh24:mi:ss') from dual;
TO_CHAR(SYSDATE,'DD
24-10-2011 14:37:02
SQL> SELECT CURRENT_TIMESTAMP,SYSTIMESTAMP FROM DUAL;
CURRENT_TIMESTAMP SYSTIMESTAMP
24.10.11 11:08:01,281000 EUROPE/ZURICH 24.10.11 14:38:01,281000 +05:30But sysdate is not changing only current_timestamp changes.
Regards,
Nv -
Htmldb_get & Checksum Required: Session Level
Hi All,
I have a text field with some javascript on the "onchange" trigger to validate/format the value entered by the user.
All my application items' security are set to "Checksum Required: Session Level"
If a display, by using alert, the result of the javascript, it will pop-up a very long error saying something like "attempt to save item XXX in session state during show processing. item protection level indicates item may be set when accompanied by a session checksum. No checksum was passed..."
When I set the item's security to "unrestricted" it works fine.
Is there any way to set the checksum? Is it worth it?
Is thre any security issue if this item is set tom "unrestricted"?
RegardsHello,
I'm not sure I'm following you Carl.
I've created the application item.
This is my application process code:
DECLARE
v_first_slash NUMBER(2);
BEGIN
v_first_slash := INSTR(:P5_OTU,'/');
IF v_first_slash <> 0 THEN
HTP.PRN(LPAD(SUBSTR(:P5_OTU,1,v_first_slash-1),2,0) || '/'
|| LPAD(SUBSTR(:P5_OTU,v_first_slash+1,LENGTH(:P5_OTU) - v_first_slash),3,0));
END IF;
END;
And then the javascript located in the region header is:
if (html_GetElement('P5_OTU').value){
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=validate_format_OTU',0);
get.add('P5_OTU',html_GetElement('P5_OTU').value)
gReturn = get.get();
if(gReturn)
{ html_GetElement('P5_OTU').value = gReturn }
else
{ html_GetElement('P5_OTU').value = 'Wrong format' }
get = null;
But I'm afraid I don't know what to do with the new application item.
Many thanks -
The below are my character set in my DB
NLS_CHARACTERSET=WE8ISO8859P1
NLS_NCHAR_CHARACTERSET=UTF8
Correct Answer (If I use english language the result is correct)
==========
select product(',','AB_BC ,DE') from dual;
(AB_BC, DE,,,)
After altering the parameter at session level to get Japanese character set I am getting wrong result
ALTER SESSION NLS_SORT=JAPANESE_M_AI
ALTER SESSION NLS_COMP=LINGUISTICS
it is giving me wrong result (I should get the above result)
=================
select product(',','A_BC ,DE') from dual;
(AB, BC , DE,,,,)
How to change at session leavel to get Japanese character setOk,
Let's provide the broad picture, as your setup and your commands are incorrect.
You set the characterset of the database to a characterset the O/S supports.
Whether or not you have characterset conversion on the client side is determined by NLS_LANG.
You set NLS_LANG to a characterset the client O/S supports. Ie if you are running on Windows (as always you provide no details at all), the regional settings of the O/S must have been set to Japanese.
WE8ISO8859P1 is the Latin-1 alphabet and doesn't support Kanji.
Also the command you specify deal with sorting of the data, not with the characterset itself.
Also no one can tell what
select product(',','AB_BC ,DE') from dual;
constitutes.
In summary: you don't seem to be reading documentation, or you only look at it.
None of what you have posted makes any sense, and clearly shows you didn't try to understand the NLS concept.
Yet again: you don't provide platform and version info
Yet again: you don't specify any background.
If you want help, you need to provide as much info as possible.
You should not require anyone here to tear the information out of you.
After all: everyone here is a volunteer and doesn't get paid to help you out, but is spending his/her time.
If you want to continue to post in this fashion, maybe you should find a forum of mindreaders.
Sybrand Bakker
Senior Oracle DBA -
SCHEMA/USer Level Auditing
Hi Experts,
i need your guidence.. actulay if we enable user level auditing then it will log all DDL n DML in AUDIT_SYS$ table. but if the user being audited execute a procedure and in the procdure the are lot of DDL and DML then is these DDL and DML executed with in Procedure will also logged in AUDIT_SYS$ table or Just it will logged that procedure is executed,???????
regards,Hi Experts,
i need your guidence.. actulay if we enable user level auditing then it will log all DDL n DML in AUDIT_SYS$ table. but if the user being audited execute a procedure and in the procdure the are lot of DDL and DML then is these DDL and DML executed with in Procedure will also logged in AUDIT_SYS$ table or Just it will logged that procedure is executed,???????
regards, -
Hi Expert,
we are required to enable auditing . we will enable it at DB level . but we wan to audit only one specific user not all. how we can achieve thisThis is on my windows 11.2.0.1.0 sqlplus cut and paste.
C:\WINDOWS>sqlplus sys/girish as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 18 19:10:12 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @getaud;
AUDIT STATEMENT
AUDIT ALTER ANY PROCEDURE BY ACCESS ;
AUDIT ALTER ANY TABLE BY ACCESS ;
AUDIT ALTER DATABASE BY ACCESS ;
AUDIT ALTER PROFILE BY ACCESS ;
AUDIT ALTER SYSTEM BY ACCESS ;
AUDIT ALTER USER BY ACCESS ;
AUDIT AUDIT SYSTEM BY ACCESS ;
AUDIT CREATE ANY JOB BY ACCESS ;
AUDIT CREATE ANY LIBRARY BY ACCESS ;
AUDIT CREATE ANY PROCEDURE BY ACCESS ;
AUDIT CREATE ANY TABLE BY ACCESS ;
AUDIT STATEMENT
AUDIT CREATE EXTERNAL JOB BY ACCESS ;
AUDIT CREATE PUBLIC DATABASE LINK BY ACCESS ;
AUDIT CREATE SESSION BY ACCESS ;
AUDIT CREATE USER BY ACCESS ;
AUDIT DATABASE LINK BY ACCESS ;
AUDIT DROP ANY PROCEDURE BY ACCESS ;
AUDIT DROP ANY TABLE BY ACCESS ;
AUDIT DROP PROFILE BY ACCESS ;
AUDIT DROP USER BY ACCESS ;
AUDIT EXEMPT ACCESS POLICY BY ACCESS ;
AUDIT GRANT ANY OBJECT PRIVILEGE BY ACCESS ;
AUDIT STATEMENT
AUDIT GRANT ANY PRIVILEGE BY ACCESS ;
AUDIT GRANT ANY ROLE BY ACCESS ;
AUDIT PROFILE BY ACCESS ;
AUDIT PUBLIC SYNONYM BY ACCESS ;
AUDIT ROLE BY ACCESS ;
AUDIT SYSTEM AUDIT BY ACCESS ;
AUDIT SYSTEM GRANT BY ACCESS ;
29 rows selected.
SQL> audit select table by scott by access;
Audit succeeded.
SQL> @getaud;
AUDIT STATEMENT
AUDIT ALTER ANY PROCEDURE BY ACCESS ;
AUDIT ALTER ANY TABLE BY ACCESS ;
AUDIT ALTER DATABASE BY ACCESS ;
AUDIT ALTER PROFILE BY ACCESS ;
AUDIT ALTER SYSTEM BY ACCESS ;
AUDIT ALTER USER BY ACCESS ;
AUDIT AUDIT SYSTEM BY ACCESS ;
AUDIT CREATE ANY JOB BY ACCESS ;
AUDIT CREATE ANY LIBRARY BY ACCESS ;
AUDIT CREATE ANY PROCEDURE BY ACCESS ;
AUDIT CREATE ANY TABLE BY ACCESS ;
AUDIT STATEMENT
AUDIT CREATE EXTERNAL JOB BY ACCESS ;
AUDIT CREATE PUBLIC DATABASE LINK BY ACCESS ;
AUDIT CREATE SESSION BY ACCESS ;
AUDIT CREATE USER BY ACCESS ;
AUDIT DATABASE LINK BY ACCESS ;
AUDIT DROP ANY PROCEDURE BY ACCESS ;
AUDIT DROP ANY TABLE BY ACCESS ;
AUDIT DROP PROFILE BY ACCESS ;
AUDIT DROP USER BY ACCESS ;
AUDIT EXEMPT ACCESS POLICY BY ACCESS ;
AUDIT GRANT ANY OBJECT PRIVILEGE BY ACCESS ;
AUDIT STATEMENT
AUDIT GRANT ANY PRIVILEGE BY ACCESS ;
AUDIT GRANT ANY ROLE BY ACCESS ;
AUDIT PROFILE BY ACCESS ;
AUDIT PUBLIC SYNONYM BY ACCESS ;
AUDIT ROLE BY ACCESS ;
AUDIT SELECT TABLE BY SCOTT BY ACCESS ; <----------- New Row
AUDIT SYSTEM AUDIT BY ACCESS ;
AUDIT SYSTEM GRANT BY ACCESS ;
30 rows selected.
SQL> noaudit select table by scott;
Noaudit succeeded.
SQL> @getaud;
AUDIT STATEMENT
AUDIT ALTER ANY PROCEDURE BY ACCESS ;
AUDIT ALTER ANY TABLE BY ACCESS ;
AUDIT ALTER DATABASE BY ACCESS ;
AUDIT ALTER PROFILE BY ACCESS ;
AUDIT ALTER SYSTEM BY ACCESS ;
AUDIT ALTER USER BY ACCESS ;
AUDIT AUDIT SYSTEM BY ACCESS ;
AUDIT CREATE ANY JOB BY ACCESS ;
AUDIT CREATE ANY LIBRARY BY ACCESS ;
AUDIT CREATE ANY PROCEDURE BY ACCESS ;
AUDIT CREATE ANY TABLE BY ACCESS ;
AUDIT STATEMENT
AUDIT CREATE EXTERNAL JOB BY ACCESS ;
AUDIT CREATE PUBLIC DATABASE LINK BY ACCESS ;
AUDIT CREATE SESSION BY ACCESS ;
AUDIT CREATE USER BY ACCESS ;
AUDIT DATABASE LINK BY ACCESS ;
AUDIT DROP ANY PROCEDURE BY ACCESS ;
AUDIT DROP ANY TABLE BY ACCESS ;
AUDIT DROP PROFILE BY ACCESS ;
AUDIT DROP USER BY ACCESS ;
AUDIT EXEMPT ACCESS POLICY BY ACCESS ;
AUDIT GRANT ANY OBJECT PRIVILEGE BY ACCESS ;
AUDIT STATEMENT
AUDIT GRANT ANY PRIVILEGE BY ACCESS ;
AUDIT GRANT ANY ROLE BY ACCESS ;
AUDIT PROFILE BY ACCESS ;
AUDIT PUBLIC SYNONYM BY ACCESS ;
AUDIT ROLE BY ACCESS ;
AUDIT SYSTEM AUDIT BY ACCESS ;
AUDIT SYSTEM GRANT BY ACCESS ;
29 rows selected.
SQL>Now your question :
Allright is i want to audit scott user's all activities ,DDL,DML ,Select logon login every thing then what shoul i do.So, just use audit statement with by clause and run above getaud script to see its impact.
here it is my getaud.sql which i obtained from [ http://www.myoraclesupports.com/content/script-generate-audit-and-noaudit-statements-current-audit-settings ] link.
select 'AUDIT '||m.name||decode(u.name,'PUBLIC',' ',' BY '||u.name)||
decode(nvl(a.success,0) + (10 * nvl(a.failure,0)),
1,' BY SESSION WHENEVER SUCCESSFUL ',
2,' BY ACCESS WHENEVER SUCCESSFUL ',
10,' BY SESSION WHENEVER NOT SUCCESSFUL ',
11,' BY SESSION ', -- default
20, ' BY ACCESS WHENEVER NOT SUCCESSFUL ',
22, ' BY ACCESS',' /* not possible */ ')||' ;'
"AUDIT STATEMENT"
FROM sys.audit$ a, sys.user$ u, sys.stmt_audit_option_map m
WHERE a.user# = u.user# AND a.option# = m.option#
and bitand(m.property, 1) != 1 and a.proxy# is null
and a.user# > 0
UNION
select 'AUDIT '||m.name||decode(u1.name,'PUBLIC',' ',' BY '||u1.name)||
' ON BEHALF OF '|| decode(u2.name,'SYS','ANY',u2.name)||
decode(nvl(a.success,0) + (10 * nvl(a.failure,0)),
1,' WHENEVER SUCCESSFUL ',
2,' WHENEVER SUCCESSFUL ',
10,' WHENEVER NOT SUCCESSFUL ',
11,' ', -- default
20, ' WHENEVER NOT SUCCESSFUL ',
22, ' ',' /* not possible */ ')||';'
"AUDIT STATEMENT"
FROM sys.audit$ a, sys.user$ u1, sys.user$ u2, sys.stmt_audit_option_map m
WHERE a.user# = u2.user# AND a.option# = m.option# and a.proxy# = u1.user#
and bitand(m.property, 1) != 1 and a.proxy# is not null
UNION
select 'AUDIT '||p.name||decode(u.name,'PUBLIC',' ',' BY '||u.name)||
decode(nvl(a.success,0) + (10 * nvl(a.failure,0)),
1,' BY SESSION WHENEVER SUCCESSFUL ',
2,' BY ACCESS WHENEVER SUCCESSFUL ',
10,' BY SESSION WHENEVER NOT SUCCESSFUL ',
11,' BY SESSION ', -- default
20, ' BY ACCESS WHENEVER NOT SUCCESSFUL ',
22, ' BY ACCESS',' /* not possible */ ')||' ;'
"AUDIT STATEMENT"
FROM sys.audit$ a, sys.user$ u, sys.system_privilege_map p
WHERE a.user# = u.user# AND a.option# = -p.privilege
and bitand(p.property, 1) != 1 and a.proxy# is null
and a.user# > 0
UNION
select 'AUDIT '||p.name||decode(u1.name,'PUBLIC',' ',' BY '||u1.name)||
' ON BEHALF OF '|| decode(u2.name,'SYS','ANY',u2.name)||
decode(nvl(a.success,0) + (10 * nvl(a.failure,0)),
1,' WHENEVER SUCCESSFUL ',
2,' WHENEVER SUCCESSFUL ',
10,' WHENEVER NOT SUCCESSFUL ',
11,' ', -- default
20, ' WHENEVER NOT SUCCESSFUL ',
22, ' ',' /* not possible */ ')||';'
"AUDIT STATEMENT"
FROM sys.audit$ a, sys.user$ u1, sys.user$ u2, sys.system_privilege_map p
WHERE a.user# = u2.user# AND a.option# = -p.privilege and a.proxy# = u1.user#
and bitand(p.property, 1) != 1 and a.proxy# is not null
/Regards
Girish Sharma
Edited by: Girish Sharma on Nov 18, 2011 7:18 PM
Just edited that bold fonts are not visible in code tags.
Edited by: Girish Sharma on Nov 18, 2011 7:22 PM
Another editing that "< >" are not visible, so i put it into code tags.
Edited by: Girish Sharma on Nov 18, 2011 7:24 PM
Please use and a.user# less than and greater than sign before 0; i mean not equal to...
Maybe you are looking for
-
I've been wondering this for a while and can't seem to find the answer. Whenever i set network.dns.disablePrefetch to true, the browser seems to load a bit more smoothly and even with the pref. disabled, the dns client service seems to still cache dn
-
Can you do screen capture with adobe CC product?
What I am looking at doing is recording some educational video where part will be just a copy of a recording from camera but I want to be able to switch to what the student would see is happening on my computer screen as I continue to narrate the les
-
I installed j2sdk1.4.2_11 on my PC . My operating system is XP Home. I wrote a small command line program just to see if it was working. "javac " and it compiled When I used the "java" command to run the program I got the following error Exception in
-
SAP WEB DYNPRO no visible.
hai firend iam creating ivews in ep. in the i view list iam not able find SAP WEB DYNPRO VIEW in the list what can i do to get the name in the list.
-
Monitor Color Profile Changes after FUS
My monitor color profile changes after fast switching users, and then I cannot change it back in the prefs for display-color. Attempting to choose (restore) my chosen calibrated color profile does not work. The only solution is restarting. Loging out