본문 바로가기

Oracle

(36)
Oracle DBMS_OBFUSCATION_TOOLKIT.DESENCRYPT Oracle Field 암호화 ( Encrypt and Decrypt ) ** Name : DBMS_OBFUSCATION_TOOLKIT ** Profile : 2 Procedures that can Encrypt/Decrypt the type VARCHAR2 2 Procedures that can Encrypt/Decrypt the type RAW For DBMS_OBFUSCATION_TOOLKIT, should execute follwing scripts as SYS -- Exection Scripts SQL> @$ORACLE_HOME/rdbms/admin/dbmsobtk.sql SQL> @$ORACLE_HOME/rdbms/admin/prvtobtk.plb -- Granting SQL> GRANT ex..
Oracle 복구 관련 테이블복구 ( Nologging 시 적용 안되는 듯 함. ) Select * from RMInvoiceSummary As Of Timestamp(SysTimeStamp - Interval '979'Minute) DB TableSpace 의 각각의 Table 사용용량 확인하기 select * from dba_segments Where TableSpace_Name = 'EJREVENUE' Order by Segment_Name --and Segment_Type = 'Table' Order by Segment_Type Desc, Bytes Desc Order by Segment_Type Desc, Segment_Name, Bytes Desc select count(*) from RevenueSegmentHis..
Oracle Lock Latch : SGA 에 공유되어 있는 갖가지 자료구조를 보호할 목적으로 사용되는 Mechanism Buffer Lock : Buffer Block 에 대한 액세스 를 직렬화 Library Cache Lock : 라이브러리 캐쉬 오브젝트에 대한 핸들을 보호 Library Cache Pin : 라이브러리 캐쉬 오브젝트의 실제내용이 담긴 힙(Heap) 을 보호 > DML Table Lock : Enque Lock 으로 구현함. > DML Row Lock : Row Level Lock (Lock Byte) 와 Transaction Lock (Transaction Slot Table) Enque Resource (순서 보장되는 Queue 구조임) - v$Resource Enque Resource 에는 고유한 식..
Read Consistency ■ Transaction 수준의 읽기 일관성 Level 0 : Read Uncommitted ( Dirty Read , Non-Repeatable Read and Phantom Read ) Level 1 : Read Committed ( Non-Repeatable Read and Phantom Read ) Level 2 : Repeatable Read Level 3 : Serializable Read ▶비관적 동시성 제어 Select * from Product for update nowait // 대기없이 Exception wait 3 // 3초 대기 후 Exception ▶낙관적 동시성 제어 Update BP set status = 3 Where ProductNumber = : and 변경일시 = : ..