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: Andrey Bronfin <andreyb_at_elrontelesoft.com>
Date: Thu, 23 Aug 2001 02:57:18 -0700
Message-ID: <F001.00374BE5.20010823031049@fatcity.com>

Jared , thanks a lot !
Yes , i did it a minute after i posted this question (just did not think of it earlier).
But i'm still interested to know 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 !

-----Original Message-----

Sent: Wednesday, August 22, 2001 7:34 PM To: Multiple recipients of list ORACLE-L

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).
--

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). Received on Thu Aug 23 2001 - 04:57:18 CDT

Original text of this message

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