|
大量使用过
触发器帮我干了大量的工作,sd 真的很感谢它,同时也帮我学习到很多深的东西,例如:drop table a;其实是执行了两个动作: rename & drop ,但是哪个在先,哪个在后我们无法可知道,所以可以做一个ddl trigger to audit the execute...
trigger的危害也很明显,不是自己建立的trigger别人很难以接手和维护,如果离职了以后,trigger失控了,无人可以查找出来或者说无法修改....
there are total 5 great type of triggers : DML,DDL,SYSTEM,INSTEAD OF AND complex ,以前做了一个系统监控的触发器差点把医院的小型机跑死,吓的我赶紧给删除了 ,现在想想还很后怕
be careful to use the oracle object. |
|