๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
ORACLE/ADMIN

[ORACLE] Shared Pool ์—ญํ•  ๋ฐ ๊ตฌ์„ฑ

by ๐ŸŒปโ™š 2020. 7. 5.

Shared Pool

Shared Pool์˜ ๊ฐ€์žฅ ํฐ ์—ญํ• ์„ Parsing์ž‘์—…์„ ํ•˜๊ธฐ์œ„ํ•ด ์‚ฌ์šฉ๋œ๋‹ค๋Š” ๊ฒƒ ์ž…๋‹ˆ๋‹ค. Parsing๋œ ์ •๋ณด๋ฅผ ์ €์žฅํ•˜๋Š” Library Cache์™€ ์ด๋Ÿฌํ•œ Parsing ์ž‘์—…์„ ์ง„ํ–‰ํ•˜๋Š”๋ฐ ํ•„์š”ํ•œ Data Dictionary์˜ ์ •๋ณด๋ฅผ ๋ฉ”๋ชจ๋ฆฌ์ƒ์— ์˜ฌ๋ ค ์ €์žฅํ•˜๋Š” Data Dictionary Cache๊ฐ€ Shared Pool์˜ ํ•ต์‹ฌ์ด๋ผ๊ณ  ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

Shared Pool์˜ ๋ชฉ์ 

Shared Pool๊ณผ Parsing์— ๋Œ€ํ•œ ๋‚ด์šฉ์„ ์–ธ๊ธ‰ํ–ˆ์Šต๋‹ˆ๋‹ค. Shared Pool์˜ ๋ชฉ์ ์€ ๋น ๋ฅธ Parsing์„ ์œ„ํ•ด Hard Parsing์„ ์ค„์ด๊ณ  Soft Parsing์˜ ๋น„์œจ์„ ๋†’์—ฌ Oracle Database์˜ ์„ฑ๋Šฅ์„ ๋†’ํžˆ๋Š” ๊ฒƒ ์ž…๋‹ˆ๋‹ค.

 

Soft Parsing : Library Cache์— ์ €์žฅ๋˜์–ด ์žˆ๋Š” SQL๋ฌธ์„ ์ˆ˜ํ–‰ํ•˜์—ฌ Parse ์ž‘์—…์—†์ด ๊ธฐ์กด์— ์žˆ๋Š” ์‹คํ–‰๊ณ„ํš๋Œ€๋กœ ์‹คํ–‰

Hard Parsing : Parsing ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜์—ฌ SQL๋ฌธ ํ™•์ธ ๋ฐ ์‹คํ–‰๊ณ„ํš์„ ์ƒˆ๋กœ ์ƒ์„ฑํ•จ

 

Shared Pool์€ ์‹คํ–‰๋˜์–ด์˜จ SQL ๋ฌธ์žฅ์„ ์˜ค๋žซ๋™์•ˆ ๊ด€๋ฆฌํ•˜์—ฌ Soft Parsing์„ ์ˆ˜ํ–‰ํ•˜๋„๋ก ํ•˜๋Š” ๊ฒƒ์ด ํ•ต์‹ฌ์ž…๋‹ˆ๋‹ค.

 

 

Shared Pool ๊ตฌ์„ฑ

Shared Pool์€ ์•„๋ž˜์˜ ๊ตฌ์„ฑ์š”์†Œ๋ฅผ ๊ฐ–๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

 

Library Cache : Parsing ์ •๋ณด๋ฅผ ์ €์žฅํ•˜๋Š” ๋ฉ”๋ชจ๋ฆฌ

Data Dictionary Cache : Parsing์— ํ•„์š”ํ•œ Data Dictionary ์ •๋ณด๋ฅผ ์ €์žฅํ•˜๋Š” ๋ฉ”๋ชจ๋ฆฌ

Result Cache : Parsing ์—†์ด ๊ฒฐ๊ณผ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋„๋ก Query์˜ ๊ฒฐ๊ณผ๊ฐ’๋งŒ ์ €์žฅํ•˜๋Š” ๋ฉ”๋ชจ๋ฆฌ

Reserved Pool : Parsing ํฌ๊ธฐ๊ฐ€ ํฐ ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•˜๋Š” ๋ฉ”๋ชจ๋ฆฌ

 

ํ•ด๋‹น ์š”์†Œ๋ณ„ ์ž์„ธํ•œ ์ •๋ณด๋ฅผ ์œ„ํ•ด ๋งํฌ๋ฅผ ํ™•์ธํ•ด์ฃผ์„ธ์š”.

 

Library Cache

 

[ORACLE] Library cache ์—ญํ•  ๋ฐ ํ™•์ธ

Oracle Library Cache Library Cache๋Š” Oracle Instance SGA Shared Pool ์˜์—ญ์— ์กด์žฌํ•œ๋‹ค. ์กด์žฌ์˜ ๊ถ๊ทน์ ์ธ ๋ชฉํ‘œ๋Š” Oracle์˜ ์„ฑ๋Šฅ์„ ๋†’์—ฌ์ฃผ๊ธฐ ์œ„ํ•จ์ด๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ SQL ๋ฌธ์žฅ์„ ์งˆ์˜ ํ–ˆ์„๋•Œ Oracle ๋‚ด๋ถ€์—์„œ๋Š” Par..

myjamong.tistory.com

 

Data Dictionary Cache

 

[ORACLE] Data Dictionary Cache ์—ญํ• 

Data Dictionary Cache Data Dictionary Cache๋Š” Data Dictionary Object ์ •๋ณด๋ฅผ ์ €์žฅํ•˜๋Š” ๊ณต๊ฐ„์ด๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ SQL Query๋ฅผ ์งˆ์˜ ํ–ˆ์„ ๋•Œ Parsing ์ž‘์—…์„ ํ•ฉ๋‹ˆ๋‹ค. Library Cache์— ํ•ด๋‹น Query๊ฐ€ ์กด์žฌํ•˜์ง€ ์•Š์•„ Ha..

myjamong.tistory.com

 

Result Cache

 

[ORACLE] Result Cache ์—ญํ•  ๋ฐ ์‹ค์Šต

Result Cache Result Cache๋Š” Oracle 11g์—์„œ ์ฒ˜์Œ ์†Œ๊ฐœ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. Result Cache๋Š” ์‚ฌ์šฉ์ž๋“ค์˜ ๋Œ€๊ธฐ ์ƒํ™ฉ์„ ์ค„์—ฌ์ค„ ์ˆ˜ ์žˆ๋Š” ๋Œ€์•ˆ์œผ๋กœ ์‚ฌ์šฉ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ์–ด๋–ค ์‚ฌ์šฉ์ž๊ฐ€ SQL ๋ฌธ์žฅ์„ ์งˆ์˜ ํ–ˆ์„๋•Œ Server Process..

myjamong.tistory.com

 

Reserved Pool

 

[ORACLE] Reserved Pool ์—ญํ•  ๋ฐ ํ™•์ธ

Reserved Pool Oracle Reserved Pool์€ Shared Pool์— ํฌ๊ธฐ๊ฐ€ ํฐ ์˜ค๋ธŒ์ ํŠธ๋ฅผ ์ €์žฅํ•ด์•ผํ•˜๋Š” ๊ฒฝ์šฐ ์‚ฌ์šฉ๋˜๋Š” ๋ฉ”๋ชจ๋ฆฌ์ž…๋‹ˆ๋‹ค. Parsing๋œ SQL์ด๋‚˜ PL/SQL ๋ฌธ์žฅ ๋ฐ ์‹คํ–‰๊ณ„ํš๋“ค์€ Library Cache์— ์ €์žฅ์„ ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ..

myjamong.tistory.com

 

 

๋Œ“๊ธ€