표준 Auditing
S SYS> alter system set audit_trail=db scope=spfile;
System altered.
S SYS> shutdown immediate;
S SYS> audit all on scott.emp;
Audit succeeded.
S SCOTT> update emp set sal=sal*2 where ename='SCOTT';
1 row updated.
S SCOTT> commit;
S SCOTT> conn / as sysdba
Connected.
S SYS> desc aud$
select versions_starttime,versions_endtime,ename,sal
from scott.emp
versions between timestamp
minvalue and maxvalue
where
not(versions_endtime is null and versions_starttime is null)
order by
versions_endtime
/
Value_base Auditing by trigger
TDE->VPD->FGA
TDE(Transparent Database Encryption) 데이터 파일 암호화
http://www.oracle.com/technology/obe/10gr2_db_single/security/tde/tde_otn.htm
'DataBase > Oracle' 카테고리의 다른 글
Admin 1. 12장 Proactive Maintenance(현재냉무) (0) | 2012.10.18 |
---|---|
Admin 1. 11장 Configuring the Oracle Network Environment (0) | 2012.10.18 |
Admin 1. 09장 Managing Undo Data (0) | 2012.10.18 |
Admin 1. 08-1 장 PL/SQL (0) | 2012.10.18 |
Admin 1. 08 장 Managing Data and Concurrency (0) | 2012.10.18 |
conn system/oracle
create table system.AUDIT_EMPLOYEES(osuser varchar2(32),date1 date,
ip varchar2(32),audit_trail varchar2(37));
create or replace trigger system.hrsalary_audit
after update of salary
on hr.employees
referencing new as n old as o
for each row
begin
if :o.salary != :n.salary then
insert into system.audit_employees
values(sys_context('userenv','os_user'),sysdate,
sys_context('userenv','ip_address'),
:n.employee_id|| ' salary changed from ' ||
:o.salary || ' to ' || :n.salary);
end if;
end;
/