Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: ddl audit trigger
Make second trigger “DDL_on_DDLTrigger” which fire then anybody drops the
“DDLTrigger”.
And don’t forget to hide “DDL_on_DDLTrigger” trigger ;)
PS If somebody tries to drop or disabe “DDL_on_DDLTrigger”, “DDLTrigger”
catch him and vice versa.
Jurijs
+371 9268222 (+2 GMT)
"Leonard, George" <GLeonard_at_wesbank.co.za>
Sent by: oracle-l-bounce_at_freelists.org
2005.01.13 14:39
Please respond to GLeonard
To: "rjamya" <rjamya_at_gmail.com> cc: "Oracle-L Freelists" <oracle-l_at_freelists.org> Subject: RE: ddl audit trigger
Hi all
Well the drop is happily happening, so as for Raj race, the drop wins every time.
The reason I want to catch it is to log the drop to a special hidden place.
Just in case someone tries to drop it to cause some mischief.
This is especially relevant in the development environment where one of the user logins have DBA (don't ask) thus able to drop the trigger.
George
=20________________________________________________George Leonard
-----Original Message-----
From: rjamya [mailto:rjamya_at_gmail.com]=20
Sent: 13 January 2005 14:36 PM
To: Leonard, George
Cc: Oracle-L Freelists
Subject: Re: ddl audit trigger
let me put it this way ...=20
if you shot yourself dead, would you still call 911 and report yourself?=20
since drop will acquire a ddl lock (loose term), execution will be prevented as execution also needs a lock to stop the underlying object from being modified. If what you want must happen, this will become a classic example of a race condition. Basically first one to get the lock wins, in this case the 'drop' got the lock first.
obviously I could be wrong, but a correction is appreciated. Raj
On Thu, 13 Jan 2005 14:06:14 +0200, Leonard, George
<GLeonard_at_wesbank.co.za> wrote:
> Hi all
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20> --
> =3D20 ________________________________
--=20
_________________________________________________________________________= __________________________
The views expressed in this email are, unless otherwise stated, those of =
the author and not those
of the FirstRand Banking Group an Authorised Financial Service Provider o=
r its management.
The information in this e-mail is confidential and is intended solely for=
=20the addressee.
Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribut=
ion or any action taken or=20
omitted in reliance on this, is prohibited and may be unlawful.
Whilst all reasonable steps are taken to ensure the accuracy and integrit=
y of information and data=20
transmitted electronically and to preserve the confidentiality thereof, n=
o liability or=20
responsibility whatsoever is accepted if information or data is, for what=
ever reason, corrupted=20
or does not reach its intended destination.
=20 ________________________________
-- http://www.freelists.org/webpage/oracle-l -- http://www.freelists.org/webpage/oracle-lReceived on Thu Jan 13 2005 - 07:27:28 CST
![]() |
![]() |