키워드 분류
기본
- 객체
1-1. Table, Index(B tree, bitmap), View, Material View
1-2. Procedure, Function, Trigger, Sequence, Synonym
1-3. SCN
- Statement: DML, DDL, TCL, DCL
- row type
3-1. primitives: NUMBER, VARCHAR2, NVARCHAR2, ...
3-2. LOB: CLOB, NCLOB, BLOB
- Data Dictionary, DB 기본 View
4-1. ALL_TABLES, ALL_USERS, DBA_TABLES, DBA_SEGMENTS, USER_CONSTRAINTS, ...
4-2. V$SESSION, GV$SESSION, V$SQL_PLAN, ...
- DD(System Tables): 4번 DD View의 code를 조회하면 실제 테이블 이름이 나온다. tibero는 SYS._DD_TBL과 같은 이름이다.
- LOB segment
physical structure(file, disk)
- Database instance - Tablespace - Segment - Extent - Datablock - OS block
- Datafile / Controlfile
- Row Chaining, Row Migration, Chained Row Pieces
- Redo Log
- Undo Tablespace, ITL
logical structure(memory)
- SGA / PGA
- Buffer Cache, Large Pool
- Redo Log Buffer, undo retention
Lock
- transaction(tx) isolation level
1-1. read uncommitted, read committed, repeatable read, serializable
1-2. dirty read, non-repeatable read, phantom read
- DML lock, DDL lock (row lock, table lock // RS, RX, S, SRX, X)
- ACID property
SQL PLAN
- parser, optimizer
1-1. hard parsing, soft parsing
1-2. SQL hint
- join
2-1. Nested Loop(NL) join
2-2. sort merge join
2-3. hash join
- scan
3-1. index unique scan, index range scan, index fast full scan, ...
동작 방식
- DB instance 상태 (SHUTDOWN, NOMOUNT, MOUNT, OPEN)
- DB instance 종료 (NORMAL, TRANSACTIONAL, IMMEDIATE, ABORT)
- high water mark(HWM)
- SCN 증가 원인
- Oracle RAC의 간단한 구성 원리와 제공하는 기능
recovery
- instance recovery, media recovery
- roll forward, roll back
- incarnation number