RAC Backup u RAC u Oracle File u
RAC설계 및 Backup
목차 u RAC 구성도 u Oracle File 구성 u Backup 정책
1. RAC 구성도 1. 1 RAC 구성도 노드 2 노드 1 Instance 1 SGA Dictionary Cache Log Buffer LCK Buffer Cache LGWR SMON Log Buffer Dictionary Cache Distributed Lock Area Library Cache Instance 2 SGA Distributed Lock Area Library Cache DBWR LCK PMON LGWR SMON 리두 로그 파일 Buffer Cache DBWR PMON 리두 로그 파일 데이타 파일 과 컨트롤 파일 아카이브 로그 파일 공유디스크(Shared Disk ) 3
2. Oracle File 구성 2. 0 오라클 관련 File • Control File • Data File • Redo Log File • Archive Log File • init Parameter File • Table 단위 Backup File 4
2. Oracle File 구성 2. 5 Sample init. ora db_name=CORERTL instance_name=CORERTL 1 ###################### # Cache and I/O (10 GBytes) ###################### db_block_size=8192 db_cache_size=10737418240 db_file_multiblock_read_count=16 ###################### # Cluster Database ###################### cluster_database_instances=2 cluster_database=true CORERTL 1. instance_name=CORERTL 1 CORERTL 2. instance_name=CORERTL 2 CORERTL 1. instance_number=1 CORERTL 2. instance_number=2 CORERTL 1. thread=1 CORERTL 2. thread=2 ###################### # Redo Log and Recovery ###################### fast_start_mttr_target=300 ###################### # Security and Auditing ###################### remote_login_passwordfile=EXCLUSIVE ###################### # System Managed Undo and Rollback Segments ###################### undo_management=AUTO undo_retention=10800 undo_tablespace=UNDOTBS 1 10
2. Oracle File 구성 2. 5 Sample init. ora ###################### # Sort (10 M) ###################### sort_area_size=10485760 ###################### # Processes and Sessions ###################### processes=3000 ###################### # Cursors and Library Cache ###################### open_cursors=1000 ###################### # Pools (1 GBytes) ###################### shared_pool_size=1073741824 HPUX_SCHED_NOAGE=178 11
2. Oracle File 구성 2. 6 Table 단위 Backup File ( Export File or SAM File ) • Export • Test 결과 2, 214, 592, 512 Byte Table 2, 051, 716, 096 • Index 제외한 Data Size 의 92. 6 % • SAM File • Test 결과 2, 214, 592, 512 Byte Table 1, 725, 159, 800 • Index 제외한 Data Size 의 77. 9 % • 즉, 위 둘 중의 한 방법에 따라서 Size 를 산정할 수 있다. • 1 Tera 기준 • Export : 926 GBytes • SAM : 778 Gbytes • Export or SAM 변환을 실행하는 Machine 에 File System 으로 Mount 되어야 함. 12
2. Oracle File 구성 2. 7 Tablespace 권고안 • 생성 Option : • EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1 M SEGMENT SPACE MANAGEMENT AUTO • Disk 구성 : • Index 와 Table Data 를 서로 다른 Disk 영역에 사용하도록 tablespace 를 생성한다. • Disk Contention 방지를 위함. • 업무 단위로 Tablespace 를 만들며 여러 업무가 하나의 Tablespace 에 섞이지 않도록 한다. • 업무 단위의 Backup & Recovery 등의 편리성을 위함 • 예) 수신 : Table Data DATA_TS 01 Index Data INDX_TS 01 여신 : Table Data DATA_TS 02 Index Data INDX_TS 02 외환 : Table Data DATA_TS 03 Index Data INDX_TS 03 • UNDO Tablespace 크기 : 10 G 13
3. Backup 정책 3. 2 Exp / SAM File 성능 비교. • Test Machine 스펙 • Model : RP 8400 , CPU : 8 • Memory : 12 G, Disk : Hitachi XP 128 (4. 5 TBytes*2) • Test 내용. • 대상 Table : CIFHST_TRT, Size : 2, 214, 592, 512 Bytes Size 시간 초당 속도 Export (Single Process) 2, 051, 716, 096 117초 18 MB/Sec Export (Parallel 2개) x 2 124초 34 MB/Sec Export (Parallel 3개) x 3 127초 50 MB/Sec Export (Parallel 4개) x 4 140초 60 MB/Sec 434초 4. 8 MB/Sec Dumper (SAM) 1, 725, 159, 800 • 4 시간에 필요한 초당 Backup 속도 : 72. 8 MB/Sec • Export 를 Parallel 을 몇 개로 돌리면 위 속도를 맞출 수 있는지 Test 해야 함. • 참고) SAM 받은 것을 load 하는 시간 : 195초, • 참고) export 받은 것을 import 하는 시간 : 500초, import 가 2. 5 배 정도 빠름 15
- Slides: 15