RE: Trigger not firing!!!!!!!!!!(URGENT)

  • From: "Mercadante, Thomas F (LABOR)" <Thomas.Mercadante@xxxxxxxxxxxxxxxxx>
  • To: <yasbs@xxxxxxxxxxxxxx>, <onkarnath.tiwary@xxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 9 Jun 2005 08:05:33 -0400

It doesn't need a commit - in fact, it is invalid if you put one in
there.

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Yasin Baskan
Sent: Thursday, June 09, 2005 7:58 AM
To: onkarnath.tiwary@xxxxxxxxx; rjamya; oracle-l@xxxxxxxxxxxxx
Subject: RE: Trigger not firing!!!!!!!!!!(URGENT)



Where is the commit?

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Onkar N Tiwary
Sent: Thursday, June 09, 2005 2:51 PM
To: rjamya; oracle-l@xxxxxxxxxxxxx
Subject: Re: Trigger not firing!!!!!!!!!!(URGENT)

Raj,
 The code for the trigger is :
CREATE OR REPLACE TRIGGER INFO=3D0D
AFTER LOGON
ON DATABASE=3D0D
begin
insert into info=3D0D
values(ora_client_ip_address,to_char(sysdate,'dd-mm-yyyy:HH:MI:SS'),ora_
login_user);
end;
 And I test it by logging into the DB with another user also say a
user=3D0D
called LOG but no record in the table. Moreover I tried the following
sql on=3D0D
the prompt also:
 SELECT ORA_CLIENT_IP_ADDRESS FROM DUAL; -- no output
 But when I issued :
 SELECT ORA_LOGIN_USER FROM DUAL; -- gives me the current username
logged in=3D0D
the DB
 Any idea?????

 On 6/9/05, rjamya <rjamya@xxxxxxxxx> wrote:=3D0D
>=3D0D
> show us the real code and don't log in as SYS to test.
>=3D0D
> Raj
>=3D0D
> On 6/9/05, Onkar N Tiwary <onkarnath.tiwary@xxxxxxxxx> wrote:=3D0D
> >=3D0D
> > Sorry David,
> > Its a typo error...its not LOGOFF its LOGON... I checked it once
again
> > also.
> > On 6/9/05, David Sharples <davidsharples@xxxxxxxxx> wrote:
> > >
> > > You say its a logon trigger, but it it written as a LOGOFF - try
> > > logging off first
> > >
> > > On 6/9/05, Onkar N Tiwary <onkarnath.tiwary@xxxxxxxxx> wrote:=3D0D
> > > > hi all,
> > > > I have created one trigger on LOGON event which is storing the
ip of=3D0D
> > the
> > > > machine making the connection,current date n time and =
oracle=3D0D
> > username in
> > > a
> > > > table with the following structure:=3D0D
> > > > 16:15:31 SQL log@TEST35> > CREATE OR REPLACE TRIGGER INFO
> > > > BEFORE LOGOFF
> > > > ON DATABASE
> > > > begin
> > > > insert into info
> > > >
> > >=3D0D
> >
values(ora_client_ip_address,to_char(sysdate,'dd-mm-yyyy:HH:MI:SS'),ora_
login_user);=3D0D
> >=3D0D
> > >
> >=3D0D
> >=3D0D
> >=3D0D
> > --
> > Thanks & Regards,
> > T. Onkar Nath
> > Ph : +91-9826728111(Cell)
> > to_onkar@xxxxxxxxx
> > onkarnath.tiwary@xxxxxxxxx=3D0D
> >=3D0D
> > --
> > //www.freelists.org/webpage/oracle-l
> >=3D0D
>=3D0D
>=3D0D
>=3D0D
> --=3D0D
> ------------------------------
> select standard_disclaimer from company_requirements where category
=3D3D=3D0D
> 'MANDATORY';=3D0D
>=3D0D



--=3D0D
Thanks & Regards,
T. Onkar Nath
Ph : +91-9826728111(Cell)
to_onkar@xxxxxxxxx
onkarnath.tiwary@xxxxxxxxx

--
//www.freelists.org/webpage/oracle-l



Bu mesaj ve onunla iletilen tum ekler gonderildigi kisi ya da kuruma
ozel=3D
 ve Bankalar Kanunu geregince, gizlilik yukumlulugu tasiyor olabilir.
Bu=3D
 mesaj, hicbir sekilde, herhangi bir amac icin cogaltilamaz,
yayinlanamaz=3D
 ve para karsiligi satilamaz; mesajin yetkili alicisi veya alicisina=3D
 iletmekten sorumlu kisi degilseniz, mesaj icerigini ya da eklerini=3D
 kopyalamayiniz, yayinlamayiniz, baska kisilere yonlendirmeyiniz ve
mesaji=3D
 gonderen kisiyi derhal uyararak bu mesaji siliniz. Bu mesajin
iceriginde=3D
 ya da eklerinde yer alan bilgilerin dogrulugu, butunlugu ve =
guncelligi=3D
 Bankamiz tarafindan garanti edilmemektedir ve bilinen viruslere =
karsi=3D
 kontrolleri yapilmis olarak yollanan mesajin sisteminizde
yaratabilecegi=3D
 zararlardan Bankamiz sorumlu tutulamaz.

This message and the files attached to it are under the privacy
liability=3D
 in accordance with the Banking Law and confidential to the use of =
the=3D
 individual or entity to whom they are addressed. This message cannot
be=3D
 copied, disclosed or sold monetary consideration for any purpose. If
you=3D
 are not the intended recipient of this message, you should not copy,=3D
 distribute, disclose or forward the information that exists in the
content=3D
 and in the attachments of this message; please notify the sender=3D
 immediately and delete all copies of this message. Our Bank does not=3D
 warrant the accuracy, integrity and currency of the information=3D
 transmitted with this message. This message has been detected for =
all=3D
 known computer viruses thence our Bank is not liable for the occurrence
of=3D
 any system corruption caused by this message
--
//www.freelists.org/webpage/oracle-l
--
//www.freelists.org/webpage/oracle-l

Other related posts: