oracle 审计 audit 学习笔记
配置auditAUDIT_TRAIL参数选项:--> DB/TRUE enables systemwide auditing where audited records are written to the database audit trail(the SYS.AUD$ table). The only audit data that will not be written to the table is the audit data pertaining to the activities of SYSDBA.&...
oracle lag()和lead()函数
Lag和Lead分析函数可以在同一次查询中取出同一字段的前N行的数据(Lag)和后N行的数据(Lead)作为独立的列。这种操作可以代替表的自联接,并且LAG和LEAD有更高的效率。--exp_str要取的列 --offset取偏移后的第几行数据 --defval:没有符合条件的默认值 ...
数据字典 dba_free_space及相对文件号RELATIVE_FNO 小结
1.1 dba_free_space1.1.1 概述SQL> desc dba_free_space;Name Type Nullable Default Comments--------------- ------------ -------- ------- -------------------------------------------------TABLESPACE_NAME VARCHAR2(30) Y Name of the tablespace containing the extentFILE_ID NUMBER Y...