简体   繁体   中英

How can I see when a view was modified in Oracle DB

我想知道我是否可以(而且我很确定我可以)查看有关我的特定视图A上次被修改/编辑或访问的时间的日志。

To find out when your view was last modified, you can use the view USER_OBJECTS:

select object_name, object_type, created, last_ddl_time 
from user_objects
where object_name = '<my_view_name>';

I'm not sure whether there exists a possibility to find out when your view was last accessed, though.

Oracle does not track access counts by default. However, if you are in Oracle 10g or newer, you can leverage Fine Grain Auditing and track the events against the view you'd like to see like selects or even DML statements.

http://www.oracle-base.com/articles/10g/database-security-enhancements-10g.php#fga

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM