OCP 1Z0 052 39
来源:互联网 发布:淘宝进货后怎么卖出去 编辑:程序博客网 时间:2024/04/30 07:09
39. Which two statements are true about standard database auditing? (Choose two.)
A.DDL statements can be audited.
B.Statements that refer to stand-alone procedure can be audited.
C.Operations by the users logged on as SYSDBA cannot be audited.
D.Only one audit record is ever created for a session per audited statement even though it is executed more than once.
Answer: AB
D 多次执行,多次记录
C
A.DDL statements can be audited.
B.Statements that refer to stand-alone procedure can be audited.
C.Operations by the users logged on as SYSDBA cannot be audited.
D.Only one audit record is ever created for a session per audited statement even though it is executed more than once.
Answer: AB
A B
object Specify the name of the object to be audited. The object must be a table, view, sequence, stored procedure, function, package, materialized view, mining model, or library.ddl 审计前面已有案例
下面是proc的审计
SQL> CREATE OR REPLACE PROCEDURE p_showdate AS 2 BEGIN 3 dbms_output.put_line(to_char(SYSDATE, 'yyyy-mm-dd hh24:mi:ss')); 4 END; 5 /Procedure createdExecuted in 0.359 secondsSQL> audit execute on p_showdate;Audit succeededSQL> set serveroutput onSQL> exec p_showdate;2014-06-11 15:58:17PL/SQL procedure successfully completedSQL> SQL> SELECT TIMESTAMP, owner, obj_name, sql_text 2 FROM dba_audit_trail 3 WHERE username = 'TEST' 4 AND obj_name = upper('p_showdate');TIMESTAMP OWNER OBJ_NAME SQL_TEXT----------- ------ ---------- --------------------------------------------------2014-06-11 TEST P_SHOWDATE begin p_showdate; end;
D 多次执行,多次记录
SQL> exec p_showdate;2014-06-11 16:00:13PL/SQL procedure successfully completedExecuted in 0 secondsSQL> exec p_showdate;2014-06-11 16:00:14PL/SQL procedure successfully completedExecuted in 0 secondsSQL> SQL> SELECT TIMESTAMP, owner, obj_name, sql_text 2 FROM dba_audit_trail 3 WHERE username = 'TEST' 4 AND obj_name = upper('p_showdate');TIMESTAMP OWNER OBJ_NAME SQL_TEXT----------- ------ ---------- --------------------------------------------------2014-06-11 TEST P_SHOWDATE begin p_showdate; end;2014-06-11 TEST P_SHOWDATE begin p_showdate; end;2014-06-11 TEST P_SHOWDATE begin p_showdate; end;3 rows selected
C
<span style="font-family: Tahoma, sans-serif; ">SQL> alter system set AUDIT_SYS_OPERATIONS=TRUE scope=spfile;</span>System altered.SQL> startup force;ORACLE instance started.Total System Global Area 778387456 bytesFixed Size 1405452 bytesVariable Size 285216244 bytesDatabase Buffers 486539264 bytesRedo Buffers 5226496 bytesDatabase mounted.Database opened.SQL> exitDisconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsG:\Tools\Console2>sqlplus sys/ofbiz as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Wed Jun 11 16:21:03 2014Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> SELECT sessionid,t.action,t.comment_text,sql_text 2 FROM dba_audit_trail t 3 / SESSIONID ACTION COMMENT_TEXT SQL_TEXT---------- ---------- -------------------------------------------------------------------------------- -------------------------------------------------- 120014 49 alter system set AUDIT_SYS_OPERATIONS=TRUE 130012 100 Authenticated by: DATABASE; Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168 130013 100 Authenticated by: DATABASE; Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168 130014 100 Authenticated by: DATABASE; Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168 4 rows selected
0 0
- OCP 1Z0 052 39
- OCP 1Z0 052 1
- OCP 1Z0 052 2
- OCP 1Z0 052 3
- OCP 1Z0 052 4
- OCP 1Z0 052 5
- OCP 1Z0 052 6
- OCP 1Z0 052 7
- OCP 1Z0 052 8
- OCP 1Z0 052 9
- OCP 1Z0 052 10
- OCP 1Z0 052 11
- OCP 1Z0 052 12
- OCP 1Z0 052 13
- OCP 1Z0 052 14
- OCP 1Z0 052 15
- OCP 1Z0 052 16
- OCP 1Z0 052 17
- viewDIdLoad等方法的详细介绍
- 句柄 Handle
- 浅谈android的selector
- 主力行为学解析
- win8应用使用体验
- OCP 1Z0 052 39
- 复位电路的几种设计
- javascript DOM,它究竟是什么-------Day32
- 心是净土,也是红尘
- Hadoop Hbase完全分布式环境搭建
- win8.1自我体验
- PHP入门
- 华人的合格撒个
- 如何找tomcat里发布的项目文件的路径