Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Is there any way to notify event from DB to PHP

Re: Is there any way to notify event from DB to PHP

From: Petit Donghwa <wonim.somaggio_at_lusis.fr>
Date: 27 Aug 2003 08:21:37 -0700
Message-ID: <ea4e9f9c.0308270721.58e8336b@posting.google.com>


I found this example.
for [ siganl ], I understand.
I can make this trigger with a table.

But, for test, I can't understand.
In where I can make it and how can I use it?

Thanks again.

--[ signal ]                                                
 create or replace trigger dept_aiud                        
 after insert on dept                   
 begin                                                      
     -- Needs execute rights.                               
     dbms_alert.signal( 'dept_modify', 'dept is modified' );
 end;                                                       
 /                                                          

                                                            
----[ Test ]                                                
 declare                                                    
     proc varchar2(20) := 'dept_modify';                    
     msg  varchar2(256);                                    
     stat number := 0;                                      
 begin                                                      
     dbms_alert.register(proc);                             
     dbms_alert.waitone(proc,msg,stat,60);                  
     if stat = 0 then                                       
        null; -- do something (??????)                              
     end if;                                                
     dbms_alert.remove(proc);                               
 end; Received on Wed Aug 27 2003 - 10:21:37 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US