Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to audit/trigger "ALTER SESSION" Statements?
"Michel Cadot" <micadot{at}altern{dot}org> wrote in
news:426b32f3$0$18032$636a15ce_at_news.free.fr:
>
> "DA Morgan" <damorgan_at_x.washington.edu> a écrit dans le message de
> news:1114284873.945136_at_yasure...
>| mschott14_at_hotmail.com wrote: >| >| > right, so product_profile_table is useless for me since it is only >| > useful for SQL*Plus. >| > >| > But the point is, even granting the users ONLY "CREATE SESSION" >| > they will be able to issue >| > ALTER SESSION set cursor_sharing=xxxx!! Even explicitly revoking >| > the ALTER SESSION Privilege they still will be able to do am ALTER >| > SESSIONE set cusrsor_sharing=xxx!!!! But I need a way to PREVENT >| > this. I still dont see a solution for this here in the above >| > statements :( >| > >| > Regards, >| > Michael >| >| http://www.psoug.org >| click on Morgan's Library >| click on DDL triggers >| -- >| Daniel A. Morgan >| University of Washington >| damorgan_at_x.washington.edu >| (replace 'x' with 'u' to respond)
I'm not clear on why you ASSUMED that the DBMS_OUT would appear in your session window.
SQL> create table audit_ddl (now date);
Table created.
SQL> create or replace trigger mytrig
2 before ddl on database
3 declare
4 begin
5 insert into audit_ddl values(sysdate)
6 end;
7 /
Trigger created.
SQL> create table ttt (col number);
Table created.
SQL> insert into ttt values(1);
1 row created.
SQL> select count(*) from ttt;
COUNT(*)
1
SQL> commit;
Commit complete.
SQL> drop table ttt;
Table dropped.
SQL> select * from audit_ddl;
NOW