11.07.2015 Views

DB2 9 vs Oracle 10g Admin. Technology - IBM

DB2 9 vs Oracle 10g Admin. Technology - IBM

DB2 9 vs Oracle 10g Admin. Technology - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DB2</strong> Information Management잠금<strong>DB2</strong> 행 수준잠금• <strong>DB2</strong> 잠금 접근• 모든 잠금은 이름을 가짐 (Lock Request Block 또는 LRB)• Lock이 요청될 때, LRB가 locklist 메모리 영역에 저장됨• 다중 응용프로그램이 동일한 레코드를 exclusive 모드로 잠그려고 하면, <strong>DB2</strong>는 first come first served 에의해 링크 목록을 생성함.• 다중 응용프로그램이 reading을 위해서는 공유 가능• 링크 목록은 lock을 사용하는 transaction과 lock을 기다리는 transaction 정보를 모두 포함• Transaction이 lock을 기다릴 때, semaphore에서 기다림(<strong>Oracle</strong> 처럼 sleep timer가 아님)• 첫번째transaction이 lock을 해제하면, 다음 transaction 으로 lock의 ownership이 전수됨• 비용• 메모리가 필요• 장점• 동일한 행에 대해 x-Lock을 필요로 하는 transaction은 먼저선점한Transaction이 lock을 해제할 때가지기다려야 함. 순서대로 처리됨.• 디스크보다 빠르고, 사용을 마치면 사라짐ƒ 데이터베이스가 다운되었을 때, Lock이 필요한가?ƒ "Hot“테이블들은 <strong>DB2</strong>의 Lock escalation에 의해 행 수준 잠금의 수를 줄임.ƒ Lock escalation은 <strong>Oracle</strong>에는 없음. Memory locking에 만있음<strong>DB2</strong> 9 <strong>vs</strong> <strong>Oracle</strong> <strong>10g</strong>© 2008 <strong>IBM</strong> Corporation 101

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!