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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: A Trigger question

Re: A Trigger question

From: <Jared.Still_at_radisys.com>
Date: Wed, 22 Aug 2001 09:50:21 -0700
Message-ID: <F001.003742E0.20010822093346@fatcity.com>

Tsk, tsk Andrey, this doesn't even require RTFM. :)

create table a;
( insert your columns here)

create table b;
( insert your columns here)

create trigger a_insert_b;
( your trigger code here )

alter trigger a_insert_b disable.

insert into a(columns) values(your values).

And, the docs are online in several places.

www.oradoc.com
otn.oracle.com

Jared

                                                                                       
                                
                    Andrey Bronfin                                                     
                                
                    <andreyb_at_elrontel       To:     Multiple recipients of list 
ORACLE-L <ORACLE-L_at_fatcity.com>        
                    esoft.com>              cc:                                        
                                
                    Sent by:                Subject:     A Trigger question            
                                
                    root_at_fatcity.com                                                   
                                
                                                                                       
                                
                                                                                       
                                
                    08/22/01 08:56 AM                                                  
                                
                    Please respond to                                                  
                                
                    ORACLE-L                                                           
                                
                                                                                       
                                
                                                                                       
                                




Dear gurus !
sorry for this RTFMable question , just don't have the docs in front of me here .
Assume i have a trigger my_trig that performs an insert into tableB after an
insert into tableA .
The question is : what happens if the trigger gets broken (either disabled ,
invalid or unable to do what it should do (for example if the tableB has reached maxextents) ) ?
Does the user that inserts into tableA receive an ORA-**** error ? Is there a way to let the user insert into tableA , and capture the inserts into tableB that the trigger should perform , and do those inserts manually later ?
Thanks a lot.
Andrey.

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Andrey Bronfin
  INET: andreyb_at_elrontelesoft.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Jared.Still_at_radisys.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Wed Aug 22 2001 - 11:50:21 CDT

Original text of this message

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