<BED5BACEBCD32E696E6464>

Similar documents
목 차

62

목차 BUG offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate

Oracle Database 10g: Self-Managing Database DB TSC

歯sql_tuning2

歯815설치1.PDF

Jerry Held

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

The Self-Managing Database : Automatic Health Monitoring and Alerting

PowerPoint Presentation

MS-SQL SERVER 대비 기능

13주-14주proc.PDF

문서 제목

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D D382E687770>

Result Cache 동작원리및활용방안 엑셈컨설팅본부 /DB 컨설팅팀김철환 개요 ORACLE DBMS 를사용하는시스템에서 QUERY 성능은무엇보다중요한요소중하나이며그 성능과직접적인관련이있는것이 I/O 이다. 많은건수를 ACCESS 해야만원하는결과값을얻을수있는 QUER

untitled

untitled

세미나(장애와복구-수강생용).ppt

untitled

KEEP BUFFER 활용방안 엑셈컨설팅본부 /DB 컨설팅팀장정민 개요 Oracle 은유저가요청한작업을빠르게처리하기위해 Buffer Cache 라는것을사용한다. Buffer Cache 는 SGA 에위치하고있으며, 오라클인스턴스에접속하는모든프로세스에의해공유된다. 이 Bu

목차 1. 제품 소개 특징 개요 Function table 기능 소개 Copy Compare Copy & Compare Erase

<49534F C0CEC1F520BBE7C8C4BDC9BBE720C4C1BCB3C6C320B9D D20BDC3BDBAC5DB20B0EDB5B5C8AD20C1A6BEC8BFE4C3BBBCAD2E687770>

ALTIBASE 운영을 위한 Linux 설정 가이드 개요 본 문서는 리눅스(Linux) 운영체제(Operating System)에서 ALTIBASE를 설치하고 운영하기 위한 커널파라미터(kernel parameter)의 적절한 설정 값 및 사용자 환경변수에 대한 가이드

오라클 데이터베이스 10g 핵심 요약 노트

MySQL-Ch10

NoSQL

最即時的Sybase ASE Server資料庫診斷工具

Simplify your Job Automatic Storage Management DB TSC

Microsoft Word - CNVZNGWAIYSE.docx

Chap06(Interprocess Communication).PDF

Oracle9i Real Application Clusters

PRO1_09E [읽기 전용]

PCServerMgmt7

10.ppt

PowerPoint 프레젠테이션

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,,,,,,,,,,,,,.,..., U.S. GOVERNMENT END USERS. Oracle programs, including any operat

Commit_Wait / Commit_Logging 두파라미터를통해 Log File Sync 대기시간을감소시킬수있다는것은놀라움과의아함을동시에느낄수있다. 단지파라미터의수정을통해당연히대기해야하는시간을감축한다는것은분명성능을개선해야하는입장에서는놀라운일이될것이다. 반면, 그에따

untitled

uFOCS

다음 사항을 꼭 확인하세요! 도움말 안내 - 본 도움말에는 iodd2511 조작방법 및 활용법이 적혀 있습니다. - 본 제품 사용 전에 안전을 위한 주의사항 을 반드시 숙지하십시오. - 문제가 발생하면 문제해결 을 참조하십시오. 중요한 Data 는 항상 백업 하십시오.

Orcad Capture 9.x

PowerPoint 프레젠테이션

PowerPoint Presentation

1217 WebTrafMon II

6주차.key

초보자를 위한 오라클 10g

PowerPoint Presentation

Remote UI Guide

Oracle Wait Interface Seminar

목차 BUG 문법에맞지않는질의문수행시, 에러메시지에질의문의일부만보여주는문제를수정합니다... 3 BUG ROUND, TRUNC 함수에서 DATE 포맷 IW 를추가지원합니다... 5 BUG ROLLUP/CUBE 절을포함하는질의는 SUBQUE

Intra_DW_Ch4.PDF

untitled

vm-웨어-앞부속

SMB_ICMP_UDP(huichang).PDF

ALTIBASE HDB Patch Notes

<목 차 > 제 1장 일반사항 4 I.사업의 개요 4 1.사업명 4 2.사업의 목적 4 3.입찰 방식 4 4.입찰 참가 자격 4 5.사업 및 계약 기간 5 6.추진 일정 6 7.사업 범위 및 내용 6 II.사업시행 주요 요건 8 1.사업시행 조건 8 2.계약보증 9 3

휠세미나3 ver0.4

oracle9i_newfeatures.PDF

리눅스 free 메모리의이해 엑셈컨설팅본부 /DB 컨설팅팀임경석 개요 리눅스환경에서메모리사용률을모니터링하기위해명령어를실행하다보면시스템을기동한지얼마되지않아 free 영역의지표가급격히줄어드는것을쉽게확인할수있다. 리눅스어드민경험이있는사람이라면이것이무엇을의미하는지알수있지만그렇

Tina Admin

MAX+plus II Getting Started - 무작정따라하기

R50_51_kor_ch1

Jerry Held

Integ

본문서는 초급자들을 대상으로 최대한 쉽게 작성하였습니다. 본문서에서는 설치방법만 기술했으며 자세한 설정방법은 검색을 통하시기 바랍니다. 1. 설치개요 워드프레스는 블로그 형태의 홈페이지를 빠르게 만들수 있게 해 주는 프로그램입니다. 다양한 기능을 하는 플러그인과 디자인

다양한 예제로 쉽게 배우는 오라클 SQL 과 PL/SQL


원장 차세대 필요성 검토


슬라이드 1

Microsoft Word - s.doc

untitled

PRO1_04E [읽기 전용]

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT END USERS. Oracle programs, including any oper


Tablespace On-Offline 테이블스페이스 온라인/오프라인

PRO1_16E [읽기 전용]

김기남_ATDC2016_160620_[키노트].key

vm-웨어-01장

solution map_....

DRB1598A

thesis-shk

LCD Display

Cache_cny.ppt [읽기 전용]

결과보고서

리뉴얼 xtremI 최종 softcopy

슬라이드 1

Portal_9iAS.ppt [읽기 전용]

PowerPoint Presentation

PowerPoint Presentation

Solaris Express Developer Edition

목차 BUG DEQUEUE 의 WAIT TIME 이 1 초미만인경우, 설정한시간만큼대기하지않는문제가있습니다... 3 BUG [qp-select-pvo] group by 표현식에있는컬럼을참조하는집합연산이존재하지않으면결괏값오류가발생할수있습니다... 4

Microsoft PowerPoint - 알고리즘_2주차_1차시.pptx

gisa_pil_070304_pdf.hwp

ETL_project_best_practice1.ppt

PRO1_02E [읽기 전용]

ASETAOOOCRKG.hwp

SQL Tuning Business Development DB

Contents I. 칼라스 네트워크 플레이어란 1. Pc-Fi를 넘어서 발전한 차세대 음악 플레이어 칼라스 네트워크 플레이어의 장점 3. 시스템 기본 구성

Microsoft Word - Automap3

Transcription:

P R E F A C E OWI OWI OS()Shell Script 3

4P R E F A C E Oracle Enterprise Linux 5Oracle 11g OUISilent ModeSilent mode ' ' AWR SQL

SQLPL SQL 1 2 "" P R E F A C E 5

6P R E F A C E prodba(httpcafe naver com prodba) ocp(httpcafe daum net ocp) " " 20135

C O N T E N T S 7

8C O N T E N T S

C O N T E N T S 9

10C O N T E N T S

11 C O N T E N T S

12C O N T E N T S

13 C O N T E N T S

14C O N T E N T S

C O N T E N T S 15

16C O N T E N T S

ORACLE

ORACLE Oracle Oracle Database CPU HDD Oracle HDD Oracle OracleDataBase Management System(DBMS) DatabaseDatabase DBMSOracle 18

DatabaseDatabase 1 1 1 2 Oracle Oracle DBMS(DataBase Management SystemSoftware) DBMSSQL DBMS Database DBMS DBMS Database SQL DBMS 19

1 Oracle Oracle Oracle Oracle Oracle Oracle '''Cat' Oracle Oracle Oracle Oracle Oracle 20

1Oracle Server() 2Instance 3SGA 4Dynamic SGA 5PGA Oracle Server OracleOracle OracleOracle Server(Oracle Oracle Server ) (Data files)db(control files)(redo log files) (Database) Oracle Server 21

<Oracle Server> <Oracle InstanceDatabase> 22

(System Global Area)(Background Process)SGA ProcessOracle Server Oracle Oracle Oracle 10g Automatic Shared Memory Management(ASMM)11g AMM(Automatic Memory Management) InstanceDatabase ASMMAMM Oracle Instance Oracle InstanceSGA Background Process(11g ) 23

24 <Oracle Instance> InstanceInstance OracleDB Oracle (startup) ( ) startuporacle Server Process (pfilespfile) OS Kernel OSKernel RAM OS Kernel SGA (Server Process ) Oracle Server Process OSKernel

OS Kernel(etc sysctl conf etc system) (SGA ) OS KernelOracle RAM1G 2GOracle OS Kernel etc sysctl conf 500MBOracle1G 500MB RAM RAMetc sysctl conf SGA Oracle Server Process OS Kernel Kernel SGAOracle Server ProcessSGA InstanceSGA OS KernelRAMOracle RAM Server Process Oracle OS () Kernel OSOS Oracle 25

SGAProcess Process RAM Process (Kernel Panic Blue Screen) OS Process Oracle ServerProcess Process (set) Process releaseunset set set unset Kernel Unix OS SEMMSLProcess 26

Oracle ServerOracle 10 100 Oracle 11gPROCESSES150 SEMMNI Oracle100 SEMMNS SEMMSL X SEMMNI SEMOPM1call(1) SEMMSLSEMOPMSEMMSL [oracle@localhost ~]$ ipcs -ls ------ Semaphore Limits -------- max number of arrays = 128 SEMMNI. max semaphores per array = 250 SEMMSL. max semaphores system wide = 32000 SEMMSN. max ops per semop call = 100 SEMOPM. Oracle Oracle KernelOracle Process 27

Kernel (RAM)Oracle( etc sysctl confetc system ) SHMMAX () Oracle SGAServer Process Kernel SHMMAXKernelOracle 10 101 OracleRAM100MB 20MB100MB 5 10 5 10 12 1028 SGA Oracle 28

kernel shmmax DB [oracle@localhost ~]$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.5.0 - Production on Wed Jan 26 12:08:05 2011 Copyright (c) 1982, 2010, Oracle. All Rights Reserved. ERROR: ORA-12547: TNS:lost contact Enter user-name: Server. ORA-27123unable to attach to shared memory segment SHMMAX [root@localhost ~]# cat /proc/sys/kernel/shmmax 16777214. 16MB. SHMMAX32MB Oracle SGASHMMAX 2GB 12GB 1)proc Server SHM- MAX [root@localhost ~]# cat /proc/sys/kernel/shmmax 16777214. 16MB. [root@localhost ~]# echo "2147483648" > /proc/sys/kernel/shmmax [root@localhost ~]# cat /proc/sys/kernel/shmmax 2147483648. 2GB. 29

2)sysctlSHMMAX # sysctl -w kernel.shmmax=2147483648 3)etc sysctl confkernel (vi editor) OSroot sysctl -p SHMMNI SHMMNI 4096 OracleRAM10G SHMMAX 2GOracle 5Segment SGA 4096 SHMMNI [root@localhost ~]# cat /proc/sys/kernel/shmmni 4096 SHMALL SHMALL( ) ceil(shmmax/page_size) SHMALL2097152 bytes 30

[root@localhost ~]# cat /proc/sys/kernel/shmall 2097152 i386red Hat Linux4 096 OS OS SHMMIN (byte) SHMSEG 1Process SHMMNI 1Process Kernel OS Kernel SHMSEG 1Process KernelSGA Oracle3 segment SGAsegment segment 31

segment SGAfixed Area 1 segment 10 10 10 Oracle SGA 10 32

SGA SGA Oracle Kernel SGA OS Oracle Instance SGA OracleOracle ProcessOS KernelSGA SGA ( ) SGA Oracle SGA Oracle 33

SGASGA SGA Database Buffer Cache Database Buffer CacheBuffer CacheSGA Database Buffer Cache Database Buffer Cache SELECT DML SQL Database Buffer CacheSGA 34

(kernel panic) (A ) Database Buffer Cache Database Buffer Cache Database Buffer Cache I O OracleDatabase Buffer Cache Block 3 -Pinned BufferBuffer PinnedBufferA -Dirty Buffer Buffer Buffer A -Free Buffer Buffer(Unused)Dirty Buffer Database Buffer CacheBuffer Block Buffer Block Oracle BufferLRU(Least Recently Used) List 35

LRU LRU List SGA SGA SGA100MB 150MB SGA () 10 101 10 101 LRU SGAShared PoolDatabase Buffer Cache LRU DB Buffer CacheLRU LRU List Oracle LRU ListLRULRUW LRU List LRUW List( ) 36

LRU List BufferHotCold BufferDBWRBuffer (Free list) LRUW List Buffer(Dirty list ) DBWR Buffer DB Buffer Cache DB Buffer CacheFree Buffer LRUfree Buffer Buffercoldfree Bufferfree Buffer(10g 40 )Free Buffer ScanDBWR Dirty Buffer(DBWRDB Buffer Cache ) Dirty Buffer Dirty BufferFree BufferLRU List Free Block Database Buffer Cache ( DB Buffer Cache Server Process) BufferLRU List 37

List Server ProcessList 100 100DB Buffer Cache 100DB Buffer Cache100Server Process DB Buffer Cache DB Buffer Cache100FreeBlock 100Server ProcessFree Block Free List 100Server ProcessFree Block Oracle DB Buffer Cache Working Data Set Free Buffer Process Oracle Latch Latch Latch Latch SGA Redo Log Buffer Latch Process Latch 38

Process Latch LatchLock SGADatabase Buffer Cache Redo Log Buffer SGARedo Log Buffer (DDLDML ) Redo log Redo log Redo log redo log Oracle Redo Log Redo Log Redo Log BufferRedo Log Buffer Redo Log File DDLDMLTCLRedo logselect Redo log Direct Load(SQL Loaderinsert*AP- PEND * )tableindexnologging 39

Redo lognologging insertupdatedeleteredo Log Direct LoadDatapump Redo LogOracle Recovery Redo log Redo LogRedo Log SGARedo Log BufferRedo Log Redo Log Shared Pool SGAShared Pool <Shared Pool> 40

11g Soft ParseSQL PL SQLParse CodeSQL PLSQL LRU(Soft ParseHard Parse SQL ) DictionaryRowCacheLRU Library CacheDictionary Cache SQL11g Server Result Cache CacheServer (11g)Select DB Buffer Cache(Fetch) PGA SQL DB Buffer Cache DB Buffer CacheDB Buffer Cache ( Latch ) 11gShared PoolServer Result Cache SelectDB Buffer Cache 41

Server Result Cache DB Buffer CacheI O DB Server DB Buffer Cache SQLSQL () RESULT CACHE MODE ForceSQLResult Cache RESULT CACHE MODE Manual Result cacheresult Cache SYS>show parameter result_cache_mode ; NAME TYPE VALUE ----------------------------- ---------- ------------------------------ result_cache_mode string MANUAL SYS>create table scott.rtest 2 (no number, name varchar2(10)); Table created. 42

SYS>begin 2 for i in 1..200000 loop 3 insert into scott.rtest values (i,dbms_random.string('a',9)); 4 end loop; 5 commit; 6 end; 7 / SYS>select count(*) from scott.rtest ; COUNT(*) ------------- 200000 20. 20scott rtest result cache SYS> set timing on ; SYS> select * from scott.rtest; ( ) 184902 CuGrkBkCp 184903 gtorbpzin 184904 ALKtoMizV 184905 JVLKcecKe 184906 OERavgPqe Result Cache 200000 rows selected. Elapsed: 00:00:15.06 15 06. 43

SYS> select /*+ result_cache */ * from scott.rtest ; ( ) 184901 TIaHwHgaX 184902 CuGrkBkCp 184903 gtorbpzin 184904 ALKtoMizV *result cache *result cache 184905 JVLKcecKe 184906 OERavgPqe 200000 rows selected. Elapsed: 00:00:15.07 15 07. SYS>alter system set result_cache_mode=force ; System altered. SYS>show parameter result_cache_mode ; NAME TYPE VALUE ---------------------------- ----------- ------------------------------ result_cache_mode string FORCE result cache modeforce result cache Database Buffer Cache Database Buffer Cache DBWR Buffer DBWR Result Cache Result Cache 44

Database Buffer Cache Result Cache Database Buffer CacheResult Cache 11g Server Result Cache SQL PL SQL Shared Pool Shared Pool5KB(11g) java PL SQLSQL Shared Pool Oracle SHARED POOL RESERVED SIZE Shared Pool Size5 Shared Pool Size50 V SHARED POOL RESERVED V SHARED POOL RESERVEDREQUEST FAILURES REQUEST MISSES0 Shared Pool shared pool size Library CacheDictionary Cache Shared Pool SizeDB (Oracle 9i ) 45

SQL> alter system set shared_pool_size = 100 M ; Oracle (granule) Dynamic SGA Large Pool Large Pool SGA Large Pool -Shared Server modeoracle ServerUGA -Parallel Execution( )Process Message Buffer -RMANRMAN I OBuffer Shared Pool LRU Java Pool SGA java codejava Virtual Machine(JVM) Streams Pool 10gSGA Streams 0 StreamsOracle Streams 46

Fixed SGA Oracle Process Database Process Lock Oracle SGA SGA Oracle ProcessOS KernelRAMSGA SGA <SGA> 47

SGAOracle ProcessKernel SGA SGA Oracle 8i Oracle Instance SELECT Database Buffer Cache 8iDB DB 9i (Redo log buffer) alter system set Database Buffer Cache100MB SYS> alter system set DB_CACHE_SIZE=100 M ; Database Buffer Cache 48

100MB Oracle SGA MAX SIZE 9i SGA MAX SIZE128MB1GranuleSGA MAX SIZE 128MB1Granule10g SGA MAX SIZE9i128MB 10g1GB1Granule10g SGA MAX SIZE1GB1Granule4MB1GB1Granule16M( DB CACHE SIZESGA MAX SIZE ) 1 5(Granule) OracleSGA SYS> show sga ; Total System Global Area 285212672 bytes Fixed Size 1273252 bytes Variable Size 92275292 bytes Database Buffers 184549376 bytes Redo Buffers 7114752 bytes SGA background process Shared poollarge PoolJava pool DB Buffer CacheRedo Buffers 49

SGA MAX SIZE SYS> show parameter sga_max_size ; NAME TYPE VALUE ----------------------------- ------------- ------------------------------ sga_max_size big integer 160M shared pool SYS> show parameter shared_pool_size; NAME TYPE VALUE ----------------------------- ------------- ------------------------------ shared_pool_size big integer 0 DataBase Buffer Cache SYS> show parameter db_cache_size; NAME TYPE VALUE ----------------------------- ------------- ------------------------------ db_cache_size big integer 0 shared pooldb buffer cache0 Oracle 10gASMM ASMM SGAOracle SGASGA Oracle GranuleGranule shared pool size010m 10M4 50

12M SQL> alter system set shared_pool_size=10m; System altered. SQL> show parameter shared_pool_size; NAME TYPE VALUE ----------------------------- ------------- ------------------------------ shared_pool_size big integer 12M SGA MAX SIZE160M1G 1granule 4M SQL> alter system set shared_pool_size=9m; System altered. SQL> show parameter shared_pool_size; NAME TYPE VALUE ---------------------------- ------------ -------------------------------- shared_pool_size big integer 12M 9M 12M. SQL> alter system set shared_pool_size=8m ; 4 8M System altered. SQL> show parameter shared_pool_size; NAME TYPE VALUE ---------------------------- ------------ -------------------------------- shared_pool_size big integer 8M 8M Oracle 51

Oracle SGAPGASGA SGAProcess PGA Process SGA PGA PGA Process Oracle ServerProcessPGA Server ProcessProcess PGA Server Process PGAInstance PGA Server ProcessPGA 52

PGA Private SQL Area SQL User ProcessServer Process User Process SQLServer ProcessUser ProcessSession Memory SQLParseSQL Bind Bind Private SQL Area QueryQuery --Bind (Bind 2SQL ) Private SQL AreaPersistent AreaRuntime Area Persistent AreaBind Runtime AreaSQL 100 100DB Buffer CachePGA Fetch 100Fetch Runtime Area 53

SQL Work Area Sort(Sort Area)Hash PGA 8i (SORT AREA SIZEHASH AREA SIZEBITMAP MERGE AREA SIZECREATE BITMAP AREA SIZE Parameter File ) 9iPGAOracle Server PGA PGA AGGREGATE TARGETWORKAREA SIZE POLICY AUTO PGA Oracle ServerWORKAREA SIZE POLICYMANUAL PGA AGGREGATE TARGET Server ProcessPGA AG- GREGATE TARGET 100M 1Server Process 100M1Server Process PGASMM MAX SIZE 9Oracle PGA Oracle - OLTP PGA_AGGREGATE_TARGET = (<> * 80%) * 20% 54

- DSS PGA_AGGREGATE_TARGET = (< * 80%) * 50% 16GServerPGA - OLTP PGA_AGGREGATE_TARGET = (16G X 0.8) X 0.2 = 2.56 G - DSS PGA_AGGREGATE_TARGET = (16G X 0.8) X 0.5 = 6.4 G ServerPGA V PGASTAT SYS>select * from v$pgastat ; NAME VALUE UNIT --------------------------------------------------- ---------- --------- aggregate PGA target parameter 146800640 bytes aggregate PGA auto target 98648064 bytes global memory bound 29360128 bytes total PGA inuse 37182464 bytes total PGA allocated 52882432 bytes maximum PGA allocated 175848448 bytes total freeable PGA memory 9633792 bytes process count 28 max processes count 37 PGA memory freed back to OS 437452800 bytes total PGA used for auto workareas 0 bytes maximum PGA used for auto workareas 2620416 bytes total PGA used for manual workareas 0 bytes maximum PGA used for manual workareas 0 bytes over allocation count 0 bytes processed 565979136 bytes 55

extra bytes read/written 0 bytes cache hit percentage 100 percent recompute count (total) 9695 19 rows selected. Oracle Server Oracle InstanceBackground Process 3 Oracle OracleOracle SGASQL SQL 56