티스토리 뷰
9i부터 오라클에 자체 감사 기능이 추가 되었다. 다음은
http://www.oracle-base.com/articles/10g/DatabaseSecurityEnhancements10g.php#uniform_audit_trail
에서 참고한 자료다.
쉬운 영문 이기 때문에 번역없이 원문을 그대로 남겨 놓는다.
Uniform Audit Trail
The DBA_COMMON_AUDIT_TRAIL
view has been added to display the complete audit trail:DBA_AUDIT_TRAIL
- Standard auditing only (fromAUD$
).DBA_FGA_AUDIT_TRAIL
- Fine-grained auditing only (fromFGA_LOG$
).DBA_COMMON_AUDIT_TRAIL
- Both standard and fine-grained auditing.
Audit Trail Contents
Several fields have been added to both the standard and fine-grained audit trails:EXTENDED_TIMESTAMP
- A more precise value than the exisingTIMESTAMP
column.PROXY_SESSIONID
- Proxy session serial number when an enterprise user is logging in via the proxy method.GLOBAL_UID
- Global Universal Identifier for an enterprise user.INSTANCE_NUMBER
- TheINSTANCE_NUMBER
value from the actioning instance.OS_PROCESS
- Operating system process id for the oracle process.TRANSACTIONID
- Transaction identifier for the audited transaction. This column can be used to join to theXID
column on theFLASHBACK_TRANSACTION_QUERY
view.SCN
- System change number of the query. This column can be used in flashback queries.SQL_BIND
- The values of any bind variables if any.SQL_TEXT
- The SQL statement that initiated the audit action.
SQL_BIND
and SQL_TEXT
columns are only populated when the AUDIT_TRAIL=DB_EXTENDED
initialization parameter is set:-- Configure extended auditing. CONN sys/password AS SYSDBA ALTER SYSTEM SET audit_trail=db_extended SCOPE=SPFILE; SHUTDOWN IMMEDIATE STARTUP TRUNCATE TABLE aud$; TRUNCATE TABLE fga_log$; AUDIT ALL BY scott BY ACCESS; -- Perform an auditable action. CONN scott/tiger UPDATE emp SET ename = ename; -- Check the audit trail. SELECT sql_text FROM dba_common_audit_trail; SQL_TEXT ---------------------------- UPDATE emp SET ename = ename 1 row selected. -- Unconfigure extended auditing. CONN sys/password AS SYSDBA ALTER SYSTEM SET audit_trail=none SCOPE=SPFILE; SHUTDOWN IMMEDIATE STARTUP TRUNCATE TABLE aud$; TRUNCATE TABLE fga_log$;
SELECT os_username, username, userhost, action, action_name, comment_text,
SCN, sql_bind, sql_text
FROM dba_audit_trail a
성능 테스트는 아직 못해 봤지만 개발 DB 사용시 유용한 기능인듯 싶다.
SCN, sql_bind, sql_text
FROM dba_audit_trail a

'데이터베이스 > oracle' 카테고리의 다른 글
oradebug help (0) | 2008.02.13 |
---|---|
Oracle Datapump 사용해 보기 (0) | 2008.01.11 |
oracle 10g R2 event, level (0) | 2008.01.07 |
Automatically Restarting ONS (0) | 2007.12.31 |
오라클 OBJECT 조회 (0) | 2007.12.26 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 커뮤니케이션의 7가지 나쁜 습관들
- ChatGPT
- 아웃라이어
- 큐브리드
- 습관의힘
- auto increment
- 데이터과학
- 튜닝
- getGeneratedKeys
- 퇴사
- 오라클
- 브레인피드백
- 구조주의 인류학
- DB
- 성공의길
- shared all
- 꿈
- CUBRID
- 바이오해킹
- oracle
- 디자인패턴
- 일본전산
- NHN 면접
- 카이에 소바주 시리즈
- 프로젝트
- Datapump
- shared everything
- 구글
- 다짐
- 셀프 조인
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함