Re: USER pseudocolumn




"EdStevens" <quetico_man@xxxxxxxxx> a écrit dans le message de news: 1142442445.905578.304150@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| Oracle 9.2
|
| I've been digging thru tahiti and the ng archives for the last two
| hours, and can't find what I'm looking for.
|
| Trying to set up a logon trigger to start extended tracing ... code is:
|
| create or replace trigger logon_trigger
| after logon on database
| begin
| if (user = 'UC7001' ) then
| execute immediate
| 'ALTER SESSION SET TRACEFILE_IDENTIFIER=''UC7001''';
| execute immediate
| 'ALTER SESSION SET EVENTS ''10046 TRACE NAME CONTEXT FOREVER,
| LEVEL 12''';
| end if;
| end;
|
| Only, instead of referincing the user in the 'if' statement, we want to
| trigger by OS userid. Problem is, I can't find a comprehensive list of
| pseudo columns. Searching tahiti for 'pseudocolumn' obviously yeilds
| several hits, most of which are just passing references. The one place
| that looks like a full list is in the SQL Reference manual, but it only
| lists CURRVAL, NEXTVAL, ROWID, ROWNUM, and XMLDATA. Of course, if I
| search on USER, I get a zillion hits ....
|
| Can someone get me back on track?
|
| Thanks.
|

SYS_CONTEXT('USERENV','OS_USER')

Regards
Michel Cadot


.



Relevant Pages

  • USER pseudocolumn
    ... I've been digging thru tahiti and the ng archives for the last two ... Trying to set up a logon trigger to start extended tracing ... ... 'ALTER SESSION SET EVENTS ''10046 TRACE NAME CONTEXT FOREVER, ... lists CURRVAL, NEXTVAL, ROWID, ROWNUM, and XMLDATA. ...
    (comp.databases.oracle.server)
  • Re: 2.6.24-rc6-mm1
    ... -> compiling and installing 54 packages worked without crashes. ... I see no lockdep warning before the crashes. ... the involved lists. ... message you mentioned that 50 packages could be not enough to trigger ...
    (Linux-Kernel)
  • Re: [Announce] 2.6.29.1-rt4
    ... On Tue, 7 Apr 2009, Fernando Lopez-Lezcano wrote: ... You mean 200 power cycles?? ... Does it trigger when you just boot up and the immediately shut down ... Three lists attached, first all modules after I login, then modules ...
    (Linux-Kernel)
  • Re: 2.6.24-rc6-mm1
    ... I see no lockdep warning before the crashes. ... the involved lists. ... message you mentioned that 50 packages could be not enough to trigger ...
    (Linux-Kernel)
  • Re: Record level security?
    ... it didn't seem to fully work in keeping the data totally frozen. ... I created one that lists: ... the trigger is not sensing the delete action and it is allowing it to ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (microsoft.public.sqlserver.security)