SlideShare a Scribd company logo
WareValley
http://www.WareValley.com
Database Audit and Protection [ DB ์ ‘๊ทผํ†ต์ œ ]
Database Encryption [ DB ์•”ํ˜ธํ™” ]
Database Vulnerability Assessment [ DB ์ทจ์•ฝ์  ๋ถ„์„ ]
Database SQL Query Approval [ DB ์ž‘์—…๊ฒฐ์žฌ ]
Database Performance Monitoring and Management [ DB ์„ฑ๋Šฅ๊ด€๋ฆฌ ๋ฐ ๊ฐœ๋ฐœ ]
WareValley
Oracle Architecture
Wait Event & Shared Pool
์˜ค๋ Œ์ง€ํŒ€ ์œค์„์ค€ ์„ ์ž„์—ฐ๊ตฌ์›
Database security and management, WareValley.
http://www.WareValley.com
Wait Event
1. Wait Event
2. When Occurred
3. When disappeard
4. Latch
Database security and management, WareValley.
http://www.WareValley.com
Wait Event
๊ณต์œ ์ž์›์— ์ ‘๊ทผํ•  ์ผ์ด ์žˆ๋Š”๋ฐโ€ฆ
์ด๋ฏธ ๋‹ค๋ฅธ Process๊ฐ€ ์‚ฌ์šฉ ์ค‘์ด๋ผ์„œ...
์‚ฌ์šฉ ๊ฐ€๋Šฅํ• ๋•Œ๊นŒ์ง€ Sleep ์ƒํƒœ๋กœ ๋“ค์–ด๊ฐ€๋Š” ๊ฒƒ
(์ƒํƒœ์ •๋ณด๋Š” File ์ด๋‚˜ SGA ๋ฉ”๋ชจ๋ฆฌ์— ์ €์žฅ)
Database security and management, WareValley.
http://www.WareValley.com
Wait Event ์—ญ์‚ฌ
โ€ข ํƒœ์ดˆ์— Oracle ๊ฐœ๋ฐœ์ž๋“ค์ด ์ž์› ๊ด€๋ฆฌ ๊ด€๋ จ ๊ธฐ๋Šฅ ๊ฐœ๋ฐœ์— ์• ๋ฅผ ๋จน์—ˆ์œผ๋‹ˆ,
โ€ข ํ•˜๋‹คํ•˜๋‹ค ์•ˆ๋˜์„œ Debugging ์šฉ Code๋ฅผ ์ง‘์–ด๋„ฃ๊ฒŒ ๋˜์—ˆ๋‹ค.
โ€ข Wait๊ฐ€ ๋ฐœ์ƒํ•  ๋•Œ๋งˆ๋‹ค ๊ด€๋ จ Log๋ฅผ ์ƒ์„ฑํ•˜๋„๋ก Kernel Code์— ์ถ”๊ฐ€ํ•˜์˜€๋Š”๋ฐ,
โ€ข ๊ทธ ๊ณต์„ ์ธ์ •๋ฐ›์•„ OWI (Oracle Wait Interface) ๋ผ๋Š” ์ž‘์œ„๋ฅผ ๋ฐ›๊ฒŒ ๋˜์—ˆ์œผ๋ฉฐ,
โ€ข ๋Œ€๋Œ€์†์† ์ž์‹๋†์‚ฌ๋ฅผ ์ž˜ ์ง€์–ด์„œ 7.0 : 100 ์—ฌ๊ฐœ, 10g : 890๊ฐœ, 11g : 960๊ฐœ์˜
Wait Event๋ฅผ ์ •์˜ํ•˜์˜€๋‹ค.
๏‚ง ์ฐธ๊ณ ๋กœ MS-SQL Server์—์„œ๋Š” Wait Type์ด๋ผ ๋ถ€๋ฆ„
Database security and management, WareValley.
http://www.WareValley.com
When occurred ?
1. ํ•„์š”ํ•œ Resource ๊ฐ€ ์‚ฌ์šฉ์ค‘์ผ ๋•Œ
- ์ฝ์œผ๋ ค๋Š” buffer๋ฅผ ๋‹ค๋ฅธ process๊ฐ€ write ์ž‘์—…์ค‘์ธ ๊ฒฝ์šฐ
- buffer busy waits, latch free, enqueue ๊ด€๋ จ
2. ์„ ํ–‰ ์ž‘์—…์„ ๊ธฐ๋‹ค๋ฆด ๋•Œ
- DBWR์ด dirty buffer๋ฅผ disk์— ๊ธฐ๋กํ•˜๋ ค ํ•  ๋• <- ๋จผ์ € LGWR๊ฐ€ log buffer์— ์žˆ๋Š” redo entry๋ฅผ redo log๋กœ ๊ธฐ๋กํ•ด์•ผ ํ•จ
-> DBWR์ด LGWR์„ ๊นจ์›Œ buffer๋ฅผ ๋น„์šฐ๋ผ๋Š” ์‹ ํ˜ธ๋ฅผ ๋ณด๋‚ด๊ณ  LGWR์ด ๋งˆ์น ๋•Œ๊นŒ์ง€ Sleep
-> Sleep ์ค‘์ด๋˜ LGWR์€ DBWR์ด ์‹œํ‚จ ์ผ์„ ๋‹คํ•˜๊ณ  ๋‹ค์‹œ Sleep ํ•ด์•ผ ํ•˜๋Š”๋ฐ
-> DBWR์„ ๊นจ์šฐ๊ณ , DBWR์€ Sleep
- write complete waits, checkpoint completed, log file sync, log file switch ๋“ฑโ€ฆ
3. ํ•  ์ผ์ด ์—†์„ ๋•Œ ( idle wait event)
- Server process์˜ Query ๊ฒฐ๊ณผ ์ „์†ก์‹œ Array ํฌ๊ธฐ๋งŒํผ ์ „์†กํ•œ ๋’ค ๋‹ค์Œ Fetch Call์„ Wait -> idle ์ƒํƒœ
- Query ๊ฒฐ๊ณผ๋ฅผ ๋ชจ๋‘ ์ „์†ก (End of Fetch) ํ•œ ๋’ค ๋‹ค์Œ Parse Call ์ด๋‚˜ Execute Call์„ Wait -> idle ์ƒํƒœ
- Parallel Query ์ˆ˜ํ–‰์‹œ ๋จผ์ € ์ž‘์—…์„ ๋งˆ์นœ slave processor ๋Š” ๋‹ค๋ฅธ ์ž‘์—…๋“ค์˜ ์™„๋ฃŒ๋ฅผ Wait -> idle์ƒํƒœ
- SQL*Net message from client, PX Deq:Execution Msg ๋“ฑโ€ฆ
Database security and management, WareValley.
http://www.WareValley.com
When disappered ?
1. Timeout
- Sleep ์‹œ ์„ค์ •ํ•ด ๋†“์€ alarm (timeout ๋งˆ๋‹ค Wake -> ์•„์ง ๋ˆ„๊ฐ€ ์‚ฌ์šฉ ์ค‘์ด๋ฉด ๋‹ค์‹œ Sleep)
- DBWR <-> LGWR ์ƒํ˜ธ ์ž‘์šฉ์˜ wait event๋“ค : 3์ดˆ
- log file sync : 1์ดˆ (Commit ํ• ๋•Œ๋งˆ๋‹ค LGWR์„ ๊นจ์›Œ redo buffer๋ฅผ ๋น„์šฐ๋„๋ก ํ•  ๋•Œ ๋ฐœ์ƒ)
- buffer busy : 1์ดˆ
- enqueuer ๊ด€๋ จ lock : 3์ดˆ
2. Sleep ์ค‘์ธ process๊ฐ€ ์–ธ์ œ ๋‹ค์‹œ ํ™œ๋™ํ•˜๋‚˜ ?
- ๊ธฐ๋‹ค๋ฆฌ๋˜ Resource๊ฐ€ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•˜๊ฒŒ ๋˜๊ฑฐ๋‚˜
- ๊ธฐ๋‹ค๋ฆฌ์ „ ์„ ํ–‰์ž‘์—…์ด ์™„๋ฃŒ๋˜๊ฑฐ๋‚˜
- ํ•  ์ผ์ด ์ƒ๊ธฐ๊ฑฐ๋‚˜
Database security and management, WareValley.
http://www.WareValley.com
Latch
โ€ข Get Latch โ‰  Race Condition , Get Latch = Access Shared Resource
v$latch์—์„œ gets์˜ ํšŸ์ˆ˜๊ฐ€ ์ฆ๊ฐ€ํ•˜๋Š” ๊ฑด ๋ฌธ์ œ๊ฐ€ ์•„๋‹ˆ๋‹ค.
โ€ข v$latch
- gets : latch ์š”์ฒญ ํšŸ์ˆ˜
- misses : ์ฒซ์‹œ๋„์—์„œ latch๋ฅผ ๋ชป์–ป์€ ํšŸ์ˆ˜
=> misses ๋˜๋ฉด spin ๊ณผ์ •์—์„œ latch๋ฅผ ํš๋“
or spin ์‹คํŒจ์‹œ sleep ๋ชจ๋“œ๋กœ ์ „ํ™˜
( spin : CPU ์ ์œ  ์ƒํƒœ์—์„œ ์ž์›์— ์•ก์„ธ์Šค ์‹œ๋„๋ฅผ ๋ฐ˜๋ณต)
- simple_gets : ํ•œ๋ฒˆ์— latch ํš๋“์— ์„ฑ๊ณตํ•œ ํšŸ์ˆ˜ ( simple gets = gets โ€“ misses )
- spin_gets : spin ๊ณผ์ •์—์„œ latch๋ฅผ ํš๋“ํ•œ ํšŸ์ˆ˜ ( spin_gets = misses โ€“ sleeps )
์ฆ‰, gets๋Š” ๋ชปํ–ˆ์ง€๋งŒ, sleep ์ „์— latch๋ฅผ ํš๋“ํ•œ ํšŸ์ˆ˜
- sleeps : gets ์‹คํŒจ -> spin_gets ์‹คํŒจ -> ๊ฒฐ๊ตญ sleep ๋œ ํšŸ์ˆ˜
=> latch free ๋ฐœ์ƒ ( 9i๊นŒ์ง€๋Š” ๋ชจ๋“  wait event ๋ช…์ด latch free ํ•˜๋‚˜๋ฉด ๋.
10g ๋ถ€ํ„ฐ๋Š” latch:cache buffers chaines, latch: library cache lock ์ฒ˜๋Ÿผ ๋ณ„๋„ ๋ช…์นญ ๋ถ€์—ฌ.
ํ•˜์ง€๋งŒ, ์—ฌ์ „ํžˆ ๋–จ๊ฑฐ์ง€๋“ค์€ ์‹ธ์žก์•„ latch free ๋ผ ํ‰์นจ.)
=> latch๋Š” lock์ฒ˜๋Ÿผ queueing (ํ์ž‰ ๋งค์ปค๋‹ˆ์ฆ˜)์ด ์—†์–ด ๋ฐ˜๋ณต์  ์‹œ๋„๋งŒ ํ• ๋ฟ, ์šฐ์„ ๊ถŒ ๋ถ€์—ฌ๋Š” ๋ถˆ๊ฐ€๋Šฅ
Database security and management, WareValley.
http://www.WareValley.com
Shared Pool
Database security and management, WareValley.
http://www.WareValley.com
Shared Pool
๏‚ง Dictionary cache ( = Row cache )
- Oracle dictionary ์ •๋ณด ์ €์žฅ
- Row ๋‹จ์œ„๋กœ R/W ํ•ด์„œ Row Cache ๋ผ ๋ถ€๋ฅด๊ธฐ๋„ ํ•จ
- obejct ( table, view ) ๋ฐ tablespace, datafile, segment, extent, user, constraint, sequence, db-link
๋“ฑ์— ๊ด€ํ•œ ์ •๋ณด๋ฅผ ์บ์‹ฑ
๏‚ง Library cache
- user request query ๋ฐ execution plan์„ ์ €์žฅ
- SQL์„ hard parsing ํ•˜๊ณ  optimization ํ•˜๋Š” ๊ฒƒ์€
์•„์ฃผ ๋ฌด๊ฑฐ์šด ๋™์ž‘์ด๋ฏ€๋กœ,
- ๋ฐ˜๋ณต ์ˆ˜ํ–‰์„ ํ”ผํ•˜๊ณ ์ž ๋งŒ๋“  cache
Database security and management, WareValley.
http://www.WareValley.com
sequence ์‚ฌ์šฉ ์˜ˆ์ œ
๏‚ง user๊ฐ€ sequence ์ƒ์„ฑํ•˜๋ฉด Oracle dictionar์— ์ƒ์„ฑ ํ›„ ์ €์žฅํ•˜๊ณ , Row cache๋ฅผ ํ†ตํ•ด R/W
๏‚ง sequence ์‚ฌ์šฉ์œผ๋กœ nextval์ด ํ˜ธ์ถœ๋  ๋•Œ๋งˆ๋‹ค Row cache๊ฐ€ update ๋จ
๏‚ง v$rowcache์—์„œ Hit Ratio๋ฅผ ์กฐ์‚ฌํ•˜์—ฌ ์ˆ˜์น˜๊ฐ€ ๋‚ฎ๊ฒŒ ๋‚˜์˜ค๋ฉด Shared Pool ์‚ฌ์ด์ฆˆ๋ฅผ ๋Š˜๋ฆฌ๋Š” ๊ฒƒ์„ ๊ณ ๋ ค
๏‚ง v$rowcache์—์„œ TYPE = โ€˜PARENTโ€™์ธ entry์™€
v$latch_children์—์„œ NAME = โ€˜row cache objectsโ€™์ธ
latch์˜ ๊ฐœ์ˆ˜๋Š” ํ•ญ์ƒ ์ผ์น˜
=> Row cache์˜ entry ๊ฐ๊ฐ์— ๋Œ€ํ•ด latch๊ฐ€ ํ•˜๋‚˜์”ฉ ํ• ๋‹น

More Related Content

More from Seok-joon Yun

[2015 07-06-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 4
[2015 07-06-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 4[2015 07-06-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 4
[2015 07-06-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 4
Seok-joon Yun
ย 

More from Seok-joon Yun (20)

Doing math with python.ch06
Doing math with python.ch06Doing math with python.ch06
Doing math with python.ch06
ย 
Doing math with python.ch05
Doing math with python.ch05Doing math with python.ch05
Doing math with python.ch05
ย 
Doing math with python.ch04
Doing math with python.ch04Doing math with python.ch04
Doing math with python.ch04
ย 
Doing math with python.ch03
Doing math with python.ch03Doing math with python.ch03
Doing math with python.ch03
ย 
Doing mathwithpython.ch02
Doing mathwithpython.ch02Doing mathwithpython.ch02
Doing mathwithpython.ch02
ย 
Doing math with python.ch01
Doing math with python.ch01Doing math with python.ch01
Doing math with python.ch01
ย 
Pro typescript.ch03.Object Orientation in TypeScript
Pro typescript.ch03.Object Orientation in TypeScriptPro typescript.ch03.Object Orientation in TypeScript
Pro typescript.ch03.Object Orientation in TypeScript
ย 
C++ Concurrency in Action 9-2 Interrupting threads
C++ Concurrency in Action 9-2 Interrupting threadsC++ Concurrency in Action 9-2 Interrupting threads
C++ Concurrency in Action 9-2 Interrupting threads
ย 
Welcome to Modern C++
Welcome to Modern C++Welcome to Modern C++
Welcome to Modern C++
ย 
[2015-07-20-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ๊ด€๋ฆฌ 2
[2015-07-20-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ๊ด€๋ฆฌ 2[2015-07-20-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ๊ด€๋ฆฌ 2
[2015-07-20-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ๊ด€๋ฆฌ 2
ย 
[2015-07-10-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ๊ด€๋ฆฌ & v$sysstat
[2015-07-10-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ๊ด€๋ฆฌ & v$sysstat[2015-07-10-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ๊ด€๋ฆฌ & v$sysstat
[2015-07-10-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ๊ด€๋ฆฌ & v$sysstat
ย 
[2015 07-06-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 4
[2015 07-06-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 4[2015 07-06-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 4
[2015 07-06-์œค์„์ค€] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 4
ย 
์˜ค๋ Œ์ง€6.0 ๊ต์œก์ž๋ฃŒ
์˜ค๋ Œ์ง€6.0 ๊ต์œก์ž๋ฃŒ์˜ค๋ Œ์ง€6.0 ๊ต์œก์ž๋ฃŒ
์˜ค๋ Œ์ง€6.0 ๊ต์œก์ž๋ฃŒ
ย 
[2015-06-26] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 3
[2015-06-26] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 3[2015-06-26] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 3
[2015-06-26] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 3
ย 
[2015-06-19] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 2
[2015-06-19] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 2[2015-06-19] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 2
[2015-06-19] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 2
ย 
[2015-06-12] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 1
[2015-06-12] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 1[2015-06-12] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 1
[2015-06-12] Oracle ์„ฑ๋Šฅ ์ตœ์ ํ™” ๋ฐ ํ’ˆ์งˆ ๊ณ ๋„ํ™” 1
ย 
[2015-06-05] Oracle TX Lock
[2015-06-05] Oracle TX Lock[2015-06-05] Oracle TX Lock
[2015-06-05] Oracle TX Lock
ย 
[KOSSA] C++ Programming - 18th Study - STL #4
[KOSSA] C++ Programming - 18th Study - STL #4[KOSSA] C++ Programming - 18th Study - STL #4
[KOSSA] C++ Programming - 18th Study - STL #4
ย 
[KOSSA] C++ Programming - 17th Study - STL #3
[KOSSA] C++ Programming - 17th Study - STL #3[KOSSA] C++ Programming - 17th Study - STL #3
[KOSSA] C++ Programming - 17th Study - STL #3
ย 
[KOSSA] C++ Programming - 16th Study - STL #2
[KOSSA] C++ Programming - 16th Study - STL #2[KOSSA] C++ Programming - 16th Study - STL #2
[KOSSA] C++ Programming - 16th Study - STL #2
ย 

Recently uploaded

์ธ์ฒœ๋Œ€ํ•™๊ต ์บก์Šคํ†ค๋””์ž์ธ(2) Pencil me ํ”„๋ ˆ์  ํ…Œ์ด์…˜ ๋ฐœํ‘œ์ž๋ฃŒ ํŒŒ์ผ
์ธ์ฒœ๋Œ€ํ•™๊ต ์บก์Šคํ†ค๋””์ž์ธ(2) Pencil me ํ”„๋ ˆ์  ํ…Œ์ด์…˜ ๋ฐœํ‘œ์ž๋ฃŒ ํŒŒ์ผ์ธ์ฒœ๋Œ€ํ•™๊ต ์บก์Šคํ†ค๋””์ž์ธ(2) Pencil me ํ”„๋ ˆ์  ํ…Œ์ด์…˜ ๋ฐœํ‘œ์ž๋ฃŒ ํŒŒ์ผ
์ธ์ฒœ๋Œ€ํ•™๊ต ์บก์Šคํ†ค๋””์ž์ธ(2) Pencil me ํ”„๋ ˆ์  ํ…Œ์ด์…˜ ๋ฐœํ‘œ์ž๋ฃŒ ํŒŒ์ผ
justuser0129
ย 
INU Graduation Powerpoint-Rabbit FootPrint
INU Graduation Powerpoint-Rabbit FootPrintINU Graduation Powerpoint-Rabbit FootPrint
INU Graduation Powerpoint-Rabbit FootPrint
ahghwo99
ย 
แ„แ…ขแ†ธแ„‰แ…ณแ„แ…ฉแ†ซ-แ„ƒแ…ตแ„Œแ…กแ„‹แ…ตแ†ซ-แ„Žแ…ฌแ„Œแ…ฉแ†ผ-แ„‡แ…กแ†ฏแ„‘แ…ญ-(แ„ƒแ…ขแ„‰แ…กแ†ผแ„’แ…งแ†จ) 24แ„‚แ…งแ†ซแ„ƒแ…ฉ แ„Œแ…ฉแ†ฏแ„‹แ…ฅแ†ธแ„Œแ…กแ†จแ„‘แ…ฎแ†ทแ„‡แ…กแ†ฏแ„‘แ…ญแ„’แ…ฌ ppt.pptx
แ„แ…ขแ†ธแ„‰แ…ณแ„แ…ฉแ†ซ-แ„ƒแ…ตแ„Œแ…กแ„‹แ…ตแ†ซ-แ„Žแ…ฌแ„Œแ…ฉแ†ผ-แ„‡แ…กแ†ฏแ„‘แ…ญ-(แ„ƒแ…ขแ„‰แ…กแ†ผแ„’แ…งแ†จ) 24แ„‚แ…งแ†ซแ„ƒแ…ฉ แ„Œแ…ฉแ†ฏแ„‹แ…ฅแ†ธแ„Œแ…กแ†จแ„‘แ…ฎแ†ทแ„‡แ…กแ†ฏแ„‘แ…ญแ„’แ…ฌ ppt.pptxแ„แ…ขแ†ธแ„‰แ…ณแ„แ…ฉแ†ซ-แ„ƒแ…ตแ„Œแ…กแ„‹แ…ตแ†ซ-แ„Žแ…ฌแ„Œแ…ฉแ†ผ-แ„‡แ…กแ†ฏแ„‘แ…ญ-(แ„ƒแ…ขแ„‰แ…กแ†ผแ„’แ…งแ†จ) 24แ„‚แ…งแ†ซแ„ƒแ…ฉ แ„Œแ…ฉแ†ฏแ„‹แ…ฅแ†ธแ„Œแ…กแ†จแ„‘แ…ฎแ†ทแ„‡แ…กแ†ฏแ„‘แ…ญแ„’แ…ฌ ppt.pptx
แ„แ…ขแ†ธแ„‰แ…ณแ„แ…ฉแ†ซ-แ„ƒแ…ตแ„Œแ…กแ„‹แ…ตแ†ซ-แ„Žแ…ฌแ„Œแ…ฉแ†ผ-แ„‡แ…กแ†ฏแ„‘แ…ญ-(แ„ƒแ…ขแ„‰แ…กแ†ผแ„’แ…งแ†จ) 24แ„‚แ…งแ†ซแ„ƒแ…ฉ แ„Œแ…ฉแ†ฏแ„‹แ…ฅแ†ธแ„Œแ…กแ†จแ„‘แ…ฎแ†ทแ„‡แ…กแ†ฏแ„‘แ…ญแ„’แ…ฌ ppt.pptx
cho9759
ย 
์•”ํ˜ธํ™” ๋ณด์•ˆUSB & ์™ธ์žฅํ•˜๋“œ ์ค‘์•™๊ด€๋ฆฌ ์†”๋ฃจ์…˜ โ€˜DataLocker SafeConsoleโ€™_DATASHEET
์•”ํ˜ธํ™” ๋ณด์•ˆUSB & ์™ธ์žฅํ•˜๋“œ ์ค‘์•™๊ด€๋ฆฌ ์†”๋ฃจ์…˜ โ€˜DataLocker SafeConsoleโ€™_DATASHEET์•”ํ˜ธํ™” ๋ณด์•ˆUSB & ์™ธ์žฅํ•˜๋“œ ์ค‘์•™๊ด€๋ฆฌ ์†”๋ฃจ์…˜ โ€˜DataLocker SafeConsoleโ€™_DATASHEET
์•”ํ˜ธํ™” ๋ณด์•ˆUSB & ์™ธ์žฅํ•˜๋“œ ์ค‘์•™๊ด€๋ฆฌ ์†”๋ฃจ์…˜ โ€˜DataLocker SafeConsoleโ€™_DATASHEET
Softwide Security
ย 

Recently uploaded (6)

2024๋…„ 5์›” 27์ผ ๊ฐœ๋ฐœ์ž ์ด์•ผ๊ธฐ - AWS ๋žŒ๋‹ค์˜ ๋‚ด๋ถ€ ๋™์ž‘ ๋ฐฉ์‹ ์™ธ
2024๋…„ 5์›” 27์ผ ๊ฐœ๋ฐœ์ž ์ด์•ผ๊ธฐ - AWS ๋žŒ๋‹ค์˜ ๋‚ด๋ถ€ ๋™์ž‘ ๋ฐฉ์‹ ์™ธ2024๋…„ 5์›” 27์ผ ๊ฐœ๋ฐœ์ž ์ด์•ผ๊ธฐ - AWS ๋žŒ๋‹ค์˜ ๋‚ด๋ถ€ ๋™์ž‘ ๋ฐฉ์‹ ์™ธ
2024๋…„ 5์›” 27์ผ ๊ฐœ๋ฐœ์ž ์ด์•ผ๊ธฐ - AWS ๋žŒ๋‹ค์˜ ๋‚ด๋ถ€ ๋™์ž‘ ๋ฐฉ์‹ ์™ธ
ย 
์ธ์ฒœ๋Œ€ํ•™๊ต ์ปดํ“จํ„ฐ๊ณตํ•™๊ณผ แ„‹แ…กแ„แ…ณแ†ฏแ„…แ…กแ†ซแ„แ…ตแ„‰แ…ณ ์กธ์—…์ž‘ํ’ˆ commINUty PPT
์ธ์ฒœ๋Œ€ํ•™๊ต ์ปดํ“จํ„ฐ๊ณตํ•™๊ณผ แ„‹แ…กแ„แ…ณแ†ฏแ„…แ…กแ†ซแ„แ…ตแ„‰แ…ณ ์กธ์—…์ž‘ํ’ˆ commINUty PPT์ธ์ฒœ๋Œ€ํ•™๊ต ์ปดํ“จํ„ฐ๊ณตํ•™๊ณผ แ„‹แ…กแ„แ…ณแ†ฏแ„…แ…กแ†ซแ„แ…ตแ„‰แ…ณ ์กธ์—…์ž‘ํ’ˆ commINUty PPT
์ธ์ฒœ๋Œ€ํ•™๊ต ์ปดํ“จํ„ฐ๊ณตํ•™๊ณผ แ„‹แ…กแ„แ…ณแ†ฏแ„…แ…กแ†ซแ„แ…ตแ„‰แ…ณ ์กธ์—…์ž‘ํ’ˆ commINUty PPT
ย 
์ธ์ฒœ๋Œ€ํ•™๊ต ์บก์Šคํ†ค๋””์ž์ธ(2) Pencil me ํ”„๋ ˆ์  ํ…Œ์ด์…˜ ๋ฐœํ‘œ์ž๋ฃŒ ํŒŒ์ผ
์ธ์ฒœ๋Œ€ํ•™๊ต ์บก์Šคํ†ค๋””์ž์ธ(2) Pencil me ํ”„๋ ˆ์  ํ…Œ์ด์…˜ ๋ฐœํ‘œ์ž๋ฃŒ ํŒŒ์ผ์ธ์ฒœ๋Œ€ํ•™๊ต ์บก์Šคํ†ค๋””์ž์ธ(2) Pencil me ํ”„๋ ˆ์  ํ…Œ์ด์…˜ ๋ฐœํ‘œ์ž๋ฃŒ ํŒŒ์ผ
์ธ์ฒœ๋Œ€ํ•™๊ต ์บก์Šคํ†ค๋””์ž์ธ(2) Pencil me ํ”„๋ ˆ์  ํ…Œ์ด์…˜ ๋ฐœํ‘œ์ž๋ฃŒ ํŒŒ์ผ
ย 
INU Graduation Powerpoint-Rabbit FootPrint
INU Graduation Powerpoint-Rabbit FootPrintINU Graduation Powerpoint-Rabbit FootPrint
INU Graduation Powerpoint-Rabbit FootPrint
ย 
แ„แ…ขแ†ธแ„‰แ…ณแ„แ…ฉแ†ซ-แ„ƒแ…ตแ„Œแ…กแ„‹แ…ตแ†ซ-แ„Žแ…ฌแ„Œแ…ฉแ†ผ-แ„‡แ…กแ†ฏแ„‘แ…ญ-(แ„ƒแ…ขแ„‰แ…กแ†ผแ„’แ…งแ†จ) 24แ„‚แ…งแ†ซแ„ƒแ…ฉ แ„Œแ…ฉแ†ฏแ„‹แ…ฅแ†ธแ„Œแ…กแ†จแ„‘แ…ฎแ†ทแ„‡แ…กแ†ฏแ„‘แ…ญแ„’แ…ฌ ppt.pptx
แ„แ…ขแ†ธแ„‰แ…ณแ„แ…ฉแ†ซ-แ„ƒแ…ตแ„Œแ…กแ„‹แ…ตแ†ซ-แ„Žแ…ฌแ„Œแ…ฉแ†ผ-แ„‡แ…กแ†ฏแ„‘แ…ญ-(แ„ƒแ…ขแ„‰แ…กแ†ผแ„’แ…งแ†จ) 24แ„‚แ…งแ†ซแ„ƒแ…ฉ แ„Œแ…ฉแ†ฏแ„‹แ…ฅแ†ธแ„Œแ…กแ†จแ„‘แ…ฎแ†ทแ„‡แ…กแ†ฏแ„‘แ…ญแ„’แ…ฌ ppt.pptxแ„แ…ขแ†ธแ„‰แ…ณแ„แ…ฉแ†ซ-แ„ƒแ…ตแ„Œแ…กแ„‹แ…ตแ†ซ-แ„Žแ…ฌแ„Œแ…ฉแ†ผ-แ„‡แ…กแ†ฏแ„‘แ…ญ-(แ„ƒแ…ขแ„‰แ…กแ†ผแ„’แ…งแ†จ) 24แ„‚แ…งแ†ซแ„ƒแ…ฉ แ„Œแ…ฉแ†ฏแ„‹แ…ฅแ†ธแ„Œแ…กแ†จแ„‘แ…ฎแ†ทแ„‡แ…กแ†ฏแ„‘แ…ญแ„’แ…ฌ ppt.pptx
แ„แ…ขแ†ธแ„‰แ…ณแ„แ…ฉแ†ซ-แ„ƒแ…ตแ„Œแ…กแ„‹แ…ตแ†ซ-แ„Žแ…ฌแ„Œแ…ฉแ†ผ-แ„‡แ…กแ†ฏแ„‘แ…ญ-(แ„ƒแ…ขแ„‰แ…กแ†ผแ„’แ…งแ†จ) 24แ„‚แ…งแ†ซแ„ƒแ…ฉ แ„Œแ…ฉแ†ฏแ„‹แ…ฅแ†ธแ„Œแ…กแ†จแ„‘แ…ฎแ†ทแ„‡แ…กแ†ฏแ„‘แ…ญแ„’แ…ฌ ppt.pptx
ย 
์•”ํ˜ธํ™” ๋ณด์•ˆUSB & ์™ธ์žฅํ•˜๋“œ ์ค‘์•™๊ด€๋ฆฌ ์†”๋ฃจ์…˜ โ€˜DataLocker SafeConsoleโ€™_DATASHEET
์•”ํ˜ธํ™” ๋ณด์•ˆUSB & ์™ธ์žฅํ•˜๋“œ ์ค‘์•™๊ด€๋ฆฌ ์†”๋ฃจ์…˜ โ€˜DataLocker SafeConsoleโ€™_DATASHEET์•”ํ˜ธํ™” ๋ณด์•ˆUSB & ์™ธ์žฅํ•˜๋“œ ์ค‘์•™๊ด€๋ฆฌ ์†”๋ฃจ์…˜ โ€˜DataLocker SafeConsoleโ€™_DATASHEET
์•”ํ˜ธํ™” ๋ณด์•ˆUSB & ์™ธ์žฅํ•˜๋“œ ์ค‘์•™๊ด€๋ฆฌ ์†”๋ฃจ์…˜ โ€˜DataLocker SafeConsoleโ€™_DATASHEET
ย 

[Oracle Architecture][2015 04-29] Wait Event and Shared Pool

  • 1. WareValley http://www.WareValley.com Database Audit and Protection [ DB ์ ‘๊ทผํ†ต์ œ ] Database Encryption [ DB ์•”ํ˜ธํ™” ] Database Vulnerability Assessment [ DB ์ทจ์•ฝ์  ๋ถ„์„ ] Database SQL Query Approval [ DB ์ž‘์—…๊ฒฐ์žฌ ] Database Performance Monitoring and Management [ DB ์„ฑ๋Šฅ๊ด€๋ฆฌ ๋ฐ ๊ฐœ๋ฐœ ] WareValley Oracle Architecture Wait Event & Shared Pool ์˜ค๋ Œ์ง€ํŒ€ ์œค์„์ค€ ์„ ์ž„์—ฐ๊ตฌ์›
  • 2. Database security and management, WareValley. http://www.WareValley.com Wait Event 1. Wait Event 2. When Occurred 3. When disappeard 4. Latch
  • 3. Database security and management, WareValley. http://www.WareValley.com Wait Event ๊ณต์œ ์ž์›์— ์ ‘๊ทผํ•  ์ผ์ด ์žˆ๋Š”๋ฐโ€ฆ ์ด๋ฏธ ๋‹ค๋ฅธ Process๊ฐ€ ์‚ฌ์šฉ ์ค‘์ด๋ผ์„œ... ์‚ฌ์šฉ ๊ฐ€๋Šฅํ• ๋•Œ๊นŒ์ง€ Sleep ์ƒํƒœ๋กœ ๋“ค์–ด๊ฐ€๋Š” ๊ฒƒ (์ƒํƒœ์ •๋ณด๋Š” File ์ด๋‚˜ SGA ๋ฉ”๋ชจ๋ฆฌ์— ์ €์žฅ)
  • 4. Database security and management, WareValley. http://www.WareValley.com Wait Event ์—ญ์‚ฌ โ€ข ํƒœ์ดˆ์— Oracle ๊ฐœ๋ฐœ์ž๋“ค์ด ์ž์› ๊ด€๋ฆฌ ๊ด€๋ จ ๊ธฐ๋Šฅ ๊ฐœ๋ฐœ์— ์• ๋ฅผ ๋จน์—ˆ์œผ๋‹ˆ, โ€ข ํ•˜๋‹คํ•˜๋‹ค ์•ˆ๋˜์„œ Debugging ์šฉ Code๋ฅผ ์ง‘์–ด๋„ฃ๊ฒŒ ๋˜์—ˆ๋‹ค. โ€ข Wait๊ฐ€ ๋ฐœ์ƒํ•  ๋•Œ๋งˆ๋‹ค ๊ด€๋ จ Log๋ฅผ ์ƒ์„ฑํ•˜๋„๋ก Kernel Code์— ์ถ”๊ฐ€ํ•˜์˜€๋Š”๋ฐ, โ€ข ๊ทธ ๊ณต์„ ์ธ์ •๋ฐ›์•„ OWI (Oracle Wait Interface) ๋ผ๋Š” ์ž‘์œ„๋ฅผ ๋ฐ›๊ฒŒ ๋˜์—ˆ์œผ๋ฉฐ, โ€ข ๋Œ€๋Œ€์†์† ์ž์‹๋†์‚ฌ๋ฅผ ์ž˜ ์ง€์–ด์„œ 7.0 : 100 ์—ฌ๊ฐœ, 10g : 890๊ฐœ, 11g : 960๊ฐœ์˜ Wait Event๋ฅผ ์ •์˜ํ•˜์˜€๋‹ค. ๏‚ง ์ฐธ๊ณ ๋กœ MS-SQL Server์—์„œ๋Š” Wait Type์ด๋ผ ๋ถ€๋ฆ„
  • 5. Database security and management, WareValley. http://www.WareValley.com When occurred ? 1. ํ•„์š”ํ•œ Resource ๊ฐ€ ์‚ฌ์šฉ์ค‘์ผ ๋•Œ - ์ฝ์œผ๋ ค๋Š” buffer๋ฅผ ๋‹ค๋ฅธ process๊ฐ€ write ์ž‘์—…์ค‘์ธ ๊ฒฝ์šฐ - buffer busy waits, latch free, enqueue ๊ด€๋ จ 2. ์„ ํ–‰ ์ž‘์—…์„ ๊ธฐ๋‹ค๋ฆด ๋•Œ - DBWR์ด dirty buffer๋ฅผ disk์— ๊ธฐ๋กํ•˜๋ ค ํ•  ๋• <- ๋จผ์ € LGWR๊ฐ€ log buffer์— ์žˆ๋Š” redo entry๋ฅผ redo log๋กœ ๊ธฐ๋กํ•ด์•ผ ํ•จ -> DBWR์ด LGWR์„ ๊นจ์›Œ buffer๋ฅผ ๋น„์šฐ๋ผ๋Š” ์‹ ํ˜ธ๋ฅผ ๋ณด๋‚ด๊ณ  LGWR์ด ๋งˆ์น ๋•Œ๊นŒ์ง€ Sleep -> Sleep ์ค‘์ด๋˜ LGWR์€ DBWR์ด ์‹œํ‚จ ์ผ์„ ๋‹คํ•˜๊ณ  ๋‹ค์‹œ Sleep ํ•ด์•ผ ํ•˜๋Š”๋ฐ -> DBWR์„ ๊นจ์šฐ๊ณ , DBWR์€ Sleep - write complete waits, checkpoint completed, log file sync, log file switch ๋“ฑโ€ฆ 3. ํ•  ์ผ์ด ์—†์„ ๋•Œ ( idle wait event) - Server process์˜ Query ๊ฒฐ๊ณผ ์ „์†ก์‹œ Array ํฌ๊ธฐ๋งŒํผ ์ „์†กํ•œ ๋’ค ๋‹ค์Œ Fetch Call์„ Wait -> idle ์ƒํƒœ - Query ๊ฒฐ๊ณผ๋ฅผ ๋ชจ๋‘ ์ „์†ก (End of Fetch) ํ•œ ๋’ค ๋‹ค์Œ Parse Call ์ด๋‚˜ Execute Call์„ Wait -> idle ์ƒํƒœ - Parallel Query ์ˆ˜ํ–‰์‹œ ๋จผ์ € ์ž‘์—…์„ ๋งˆ์นœ slave processor ๋Š” ๋‹ค๋ฅธ ์ž‘์—…๋“ค์˜ ์™„๋ฃŒ๋ฅผ Wait -> idle์ƒํƒœ - SQL*Net message from client, PX Deq:Execution Msg ๋“ฑโ€ฆ
  • 6. Database security and management, WareValley. http://www.WareValley.com When disappered ? 1. Timeout - Sleep ์‹œ ์„ค์ •ํ•ด ๋†“์€ alarm (timeout ๋งˆ๋‹ค Wake -> ์•„์ง ๋ˆ„๊ฐ€ ์‚ฌ์šฉ ์ค‘์ด๋ฉด ๋‹ค์‹œ Sleep) - DBWR <-> LGWR ์ƒํ˜ธ ์ž‘์šฉ์˜ wait event๋“ค : 3์ดˆ - log file sync : 1์ดˆ (Commit ํ• ๋•Œ๋งˆ๋‹ค LGWR์„ ๊นจ์›Œ redo buffer๋ฅผ ๋น„์šฐ๋„๋ก ํ•  ๋•Œ ๋ฐœ์ƒ) - buffer busy : 1์ดˆ - enqueuer ๊ด€๋ จ lock : 3์ดˆ 2. Sleep ์ค‘์ธ process๊ฐ€ ์–ธ์ œ ๋‹ค์‹œ ํ™œ๋™ํ•˜๋‚˜ ? - ๊ธฐ๋‹ค๋ฆฌ๋˜ Resource๊ฐ€ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•˜๊ฒŒ ๋˜๊ฑฐ๋‚˜ - ๊ธฐ๋‹ค๋ฆฌ์ „ ์„ ํ–‰์ž‘์—…์ด ์™„๋ฃŒ๋˜๊ฑฐ๋‚˜ - ํ•  ์ผ์ด ์ƒ๊ธฐ๊ฑฐ๋‚˜
  • 7. Database security and management, WareValley. http://www.WareValley.com Latch โ€ข Get Latch โ‰  Race Condition , Get Latch = Access Shared Resource v$latch์—์„œ gets์˜ ํšŸ์ˆ˜๊ฐ€ ์ฆ๊ฐ€ํ•˜๋Š” ๊ฑด ๋ฌธ์ œ๊ฐ€ ์•„๋‹ˆ๋‹ค. โ€ข v$latch - gets : latch ์š”์ฒญ ํšŸ์ˆ˜ - misses : ์ฒซ์‹œ๋„์—์„œ latch๋ฅผ ๋ชป์–ป์€ ํšŸ์ˆ˜ => misses ๋˜๋ฉด spin ๊ณผ์ •์—์„œ latch๋ฅผ ํš๋“ or spin ์‹คํŒจ์‹œ sleep ๋ชจ๋“œ๋กœ ์ „ํ™˜ ( spin : CPU ์ ์œ  ์ƒํƒœ์—์„œ ์ž์›์— ์•ก์„ธ์Šค ์‹œ๋„๋ฅผ ๋ฐ˜๋ณต) - simple_gets : ํ•œ๋ฒˆ์— latch ํš๋“์— ์„ฑ๊ณตํ•œ ํšŸ์ˆ˜ ( simple gets = gets โ€“ misses ) - spin_gets : spin ๊ณผ์ •์—์„œ latch๋ฅผ ํš๋“ํ•œ ํšŸ์ˆ˜ ( spin_gets = misses โ€“ sleeps ) ์ฆ‰, gets๋Š” ๋ชปํ–ˆ์ง€๋งŒ, sleep ์ „์— latch๋ฅผ ํš๋“ํ•œ ํšŸ์ˆ˜ - sleeps : gets ์‹คํŒจ -> spin_gets ์‹คํŒจ -> ๊ฒฐ๊ตญ sleep ๋œ ํšŸ์ˆ˜ => latch free ๋ฐœ์ƒ ( 9i๊นŒ์ง€๋Š” ๋ชจ๋“  wait event ๋ช…์ด latch free ํ•˜๋‚˜๋ฉด ๋. 10g ๋ถ€ํ„ฐ๋Š” latch:cache buffers chaines, latch: library cache lock ์ฒ˜๋Ÿผ ๋ณ„๋„ ๋ช…์นญ ๋ถ€์—ฌ. ํ•˜์ง€๋งŒ, ์—ฌ์ „ํžˆ ๋–จ๊ฑฐ์ง€๋“ค์€ ์‹ธ์žก์•„ latch free ๋ผ ํ‰์นจ.) => latch๋Š” lock์ฒ˜๋Ÿผ queueing (ํ์ž‰ ๋งค์ปค๋‹ˆ์ฆ˜)์ด ์—†์–ด ๋ฐ˜๋ณต์  ์‹œ๋„๋งŒ ํ• ๋ฟ, ์šฐ์„ ๊ถŒ ๋ถ€์—ฌ๋Š” ๋ถˆ๊ฐ€๋Šฅ
  • 8. Database security and management, WareValley. http://www.WareValley.com Shared Pool
  • 9. Database security and management, WareValley. http://www.WareValley.com Shared Pool ๏‚ง Dictionary cache ( = Row cache ) - Oracle dictionary ์ •๋ณด ์ €์žฅ - Row ๋‹จ์œ„๋กœ R/W ํ•ด์„œ Row Cache ๋ผ ๋ถ€๋ฅด๊ธฐ๋„ ํ•จ - obejct ( table, view ) ๋ฐ tablespace, datafile, segment, extent, user, constraint, sequence, db-link ๋“ฑ์— ๊ด€ํ•œ ์ •๋ณด๋ฅผ ์บ์‹ฑ ๏‚ง Library cache - user request query ๋ฐ execution plan์„ ์ €์žฅ - SQL์„ hard parsing ํ•˜๊ณ  optimization ํ•˜๋Š” ๊ฒƒ์€ ์•„์ฃผ ๋ฌด๊ฑฐ์šด ๋™์ž‘์ด๋ฏ€๋กœ, - ๋ฐ˜๋ณต ์ˆ˜ํ–‰์„ ํ”ผํ•˜๊ณ ์ž ๋งŒ๋“  cache
  • 10. Database security and management, WareValley. http://www.WareValley.com sequence ์‚ฌ์šฉ ์˜ˆ์ œ ๏‚ง user๊ฐ€ sequence ์ƒ์„ฑํ•˜๋ฉด Oracle dictionar์— ์ƒ์„ฑ ํ›„ ์ €์žฅํ•˜๊ณ , Row cache๋ฅผ ํ†ตํ•ด R/W ๏‚ง sequence ์‚ฌ์šฉ์œผ๋กœ nextval์ด ํ˜ธ์ถœ๋  ๋•Œ๋งˆ๋‹ค Row cache๊ฐ€ update ๋จ ๏‚ง v$rowcache์—์„œ Hit Ratio๋ฅผ ์กฐ์‚ฌํ•˜์—ฌ ์ˆ˜์น˜๊ฐ€ ๋‚ฎ๊ฒŒ ๋‚˜์˜ค๋ฉด Shared Pool ์‚ฌ์ด์ฆˆ๋ฅผ ๋Š˜๋ฆฌ๋Š” ๊ฒƒ์„ ๊ณ ๋ ค ๏‚ง v$rowcache์—์„œ TYPE = โ€˜PARENTโ€™์ธ entry์™€ v$latch_children์—์„œ NAME = โ€˜row cache objectsโ€™์ธ latch์˜ ๊ฐœ์ˆ˜๋Š” ํ•ญ์ƒ ์ผ์น˜ => Row cache์˜ entry ๊ฐ๊ฐ์— ๋Œ€ํ•ด latch๊ฐ€ ํ•˜๋‚˜์”ฉ ํ• ๋‹น