dbTalk Databases Forums  

Why does an invalid trigger in one schema stop processing in another?

comp.databases.oracle.server comp.databases.oracle.server


Discuss Why does an invalid trigger in one schema stop processing in another? in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robert Nicholson
 
Posts: n/a

Default Why does an invalid trigger in one schema stop processing in another? - 07-10-2010 , 11:20 AM






So, yesterday I saw something disturbing in the log of one of our
processes. We have a process that writes to data in schema A but it's
log was complaining about an invalid trigger in schema B where there
is no relationship defined that should create any dependency b/w these
two schemas A and B.

Why is it that when I was writing to objects in Schema A that it
complained about an invalid trigger in Schema B when there is no
relationship b/w these two schemas or sets of objects?

The only relationship is that the objects and schemas are sharing the
same tablespaces.

This was in Oracle 11g RAC

Reply With Quote
  #2  
Old   
Vladimir M. Zakharychev
 
Posts: n/a

Default Re: Why does an invalid trigger in one schema stop processing inanother? - 07-10-2010 , 03:32 PM






On Jul 10, 8:20*pm, Robert Nicholson <robert.nichol... (AT) gmail (DOT) com>
wrote:
Quote:
So, yesterday I saw something disturbing in the log of one of our
processes. We have a process that writes to data in schema A but it's
log was complaining about an invalid trigger in schema B where there
is no relationship defined that should create any dependency b/w these
two schemas A and B.

Why is it that when I was writing to objects in Schema A that it
complained about an invalid trigger in Schema B when there is no
relationship b/w these two schemas or sets of objects?

The only relationship is that the objects and schemas are sharing the
same tablespaces.

This was in Oracle 11g RAC
Well, there must be a dependency of some sort. I can think of these:

a) an invalid trigger in Schema B on a table in Schema A. This one
would be obvious.
b) a trigger in Schema A issues a direct or an indirect (by calling a
stored procedure in Schema B) DML on a table in Schema B, which in
turn has an invalid trigger on that table. Synonyms might be involved.

More details (like statements executed and errors returned) would be
helpful for further analysis.

Hth,
Vladimir M. Zakharychev

Reply With Quote
  #3  
Old   
Robert Nicholson
 
Posts: n/a

Default Re: Why does an invalid trigger in one schema stop processing inanother? - 07-11-2010 , 12:06 PM



On Jul 10, 3:32*pm, "Vladimir M. Zakharychev"
<vladimir.zakharyc... (AT) gmail (DOT) com> wrote:
Quote:
On Jul 10, 8:20*pm, Robert Nicholson <robert.nichol... (AT) gmail (DOT) com
wrote:

So, yesterday I saw something disturbing in the log of one of our
processes. We have a process that writes to data in schema A but it's
log was complaining about an invalid trigger in schema B where there
is no relationship defined that should create any dependency b/w these
two schemas A and B.

Why is it that when I was writing to objects in Schema A that it
complained about an invalid trigger in Schema B when there is no
relationship b/w these two schemas or sets of objects?

The only relationship is that the objects and schemas are sharing the
same tablespaces.

This was in Oracle 11g RAC

Well, there must be a dependency of some sort. I can think of these:

a) an invalid trigger in Schema B on a table in Schema A. This one
would be obvious.
b) a trigger in Schema A issues a direct or an indirect (by calling a
stored procedure in Schema B) DML on a table in Schema B, which in
turn has an invalid trigger on that table. Synonyms might be involved.

More details (like statements executed and errors returned) would be
helpful for further analysis.

Hth,
* *Vladimir M. Zakharychev
What was strange was that the trigger in question was only generating
thru sequence the id of the table in schema a.

and that has absolutely nothing to do with anything in schema b.

Reply With Quote
  #4  
Old   
Vladimir M. Zakharychev
 
Posts: n/a

Default Re: Why does an invalid trigger in one schema stop processing inanother? - 07-11-2010 , 01:16 PM



On Jul 11, 9:06*pm, Robert Nicholson <robert.nichol... (AT) gmail (DOT) com>
wrote:
Quote:
On Jul 10, 3:32*pm, "Vladimir M. Zakharychev"



vladimir.zakharyc... (AT) gmail (DOT) com> wrote:
On Jul 10, 8:20*pm, Robert Nicholson <robert.nichol... (AT) gmail (DOT) com
wrote:

So, yesterday I saw something disturbing in the log of one of our
processes. We have a process that writes to data in schema A but it's
log was complaining about an invalid trigger in schema B where there
is no relationship defined that should create any dependency b/w these
two schemas A and B.

Why is it that when I was writing to objects in Schema A that it
complained about an invalid trigger in Schema B when there is no
relationship b/w these two schemas or sets of objects?

The only relationship is that the objects and schemas are sharing the
same tablespaces.

This was in Oracle 11g RAC

Well, there must be a dependency of some sort. I can think of these:

a) an invalid trigger in Schema B on a table in Schema A. This one
would be obvious.
b) a trigger in Schema A issues a direct or an indirect (by calling a
stored procedure in Schema B) DML on a table in Schema B, which in
turn has an invalid trigger on that table. Synonyms might be involved.

More details (like statements executed and errors returned) would be
helpful for further analysis.

Hth,
* *Vladimir M. Zakharychev

What was strange was that the trigger in question was only generating
thru sequence the id of the table in schema a.

and that has absolutely nothing to do with anything in schema b.
Wait a sec: you initially stated that the trigger is in schema B. And
it generates an id for a table in schema A from a sequence. And this
trigger is invalid. Is this correct? If not, please provide more
details on your setup.

Regards,
Vladimir M. Zakharychev

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.