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@elrontel       To:     Multiple recipients of
list ORACLE-L <[EMAIL PROTECTED]>        
                    esoft.com>              cc:

                    Sent by:                Subject:     A Trigger question

                    [EMAIL PROTECTED]

 

 

                    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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to