下面将为您介绍的是oracle查询语句日志,如果您对oracle查询语句日志感兴趣的话,不妨一看,相信对您会有所帮助。
select * from v$sqlarea t where t.PARSING_SCHEMA_NAME in (‘用户名’) order by t.LAST_ACTIVE_TIME desc
select * from v$sqlarea t order by t.LAST_ACTIVE_TIME desc
注意 :执行此语句等等一些相关的语句 必须具有DBA 的权限 虽然这条语句很普通 但是需要的时候很管用 能够及时查出一个人执行sql语句情况
——-oracle 查看已经执行过的sql 这些是存在共享池中的 ———>
select * from v$sqlarea t order by t.LAST_ACTIVE_TIME desc
———–查看oracle会话—————————-》
select * from v$session t order by t.LAST_ACTIVE_TIME desc
————-查看oracle的权限角色——————————>
select * from dba_role_privs; 授予用户和其他角色的角色
select * from dba_sys_privs; 授予用户和其他角色的系统权限
select * from dba_tab_privs; 数据库中对象的所有授权
select * from user_role_privs; 查看当前用户的角色
以上就是oracle查询语句日志介绍。
【编辑推荐】
Oracle索引的优化设计
16种oracle查询日期语句
Oracle索引的类型
教您5步建立oracle全文索引
创建Oracle索引的方法
文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/275737.html<

