티스토리 뷰
표준 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 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- tablespace
- 인덱스
- 갤럭시S
- 아이폰
- Flashback
- 테이블정보
- 한글
- index
- iOS5
- 컬럼정보
- 오라클
- Managing Schema Objects
- oracle
- 투싼
- MS-SQL
- 아이폰4
- 윈도우
- linux
- postgresql.conf
- 독도
- PL/SQL
- recovery
- 리눅스
- parameter
- iPhone
- SQLPlus
- Backup
- mysql
- 출시일
- PostgreSQL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함
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;
/