Garayed.com  

Go Back   Garayed.com > Oracle
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-19-2008, 12:49 AM
rzaleski
 
Posts: n/a
Default Trigger Invalid State

What would cause a trigger to have an invalid state? Do triggers
become invalid if you alter a table (but do not add/drop any columns
that trigger references)? Do triggers become invalid if you add an
index to a table?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-19-2008, 01:15 AM
Mark D Powell
 
Posts: n/a
Default Re: Trigger Invalid State

On Jun 18, 8:49*pm, rzaleski <rzale...@gmail.com> wrote:
> What would cause a trigger to have an invalid state? *Do triggers
> become invalid if you alter a table (but do not add/drop any columns
> that trigger references)? *Do triggers become invalid if you add an
> index to a table?


For table triggers adding an index to a table referenced by the
trigger has no effect on the trigger state. Alteringa table
referenced by the trigger on the other hand is likely to require
Oracle to re-compile the trigger to ensure the code is valid prior to
11g and Oracle's more advanced dependency tracking.

Check DBA_DEPENDENCIES before altering any table to see what dependent
objects are going to be affected.

Loss of object privileges can cause a trigger to become INVALID when
the trigger code references tables owned by a different user than the
trigger owner.

HTH -- Mark D Powell --



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:53 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.