我负责我们没有任何文档的 Oracle 数据库。目前,我需要了解如何填充表格。
我如何找出该表从哪个过程、触发器或其他来源获取数据?
最佳答案
或者更好的是,查询 DBA_DEPENDENCIES
表(或其等效的 USER_
)。您应该看到哪些对象依赖于它们以及谁拥有它们。
select owner, name, type, referenced_owner
from dba_dependencies
where referenced_name = 'YOUR_TABLE'
是的,您需要查看对象以查看是否有 INSERT 发生。
还有这个,来 self 上面的评论。
If it is not a production system, I would suggest you to raise an user defined exception in TRIGGER- before INSERT with some custom message or LOCK the table from INSERT and watch over the applications which try inserting into them failing. But yeah, you might also get calls from many angry people.
关于database - 如何找出从哪里填充数据库表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2857990/