




下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、Monitoring and Managing MemoryObjectivesAfter completing this lesson, you should be able to:Describe the memory components in the SGAImplement Automatic Shared Memory ManagementManually configure SGA parametersUse automatic PGA memory managementOracle Memory StructuresJava poolDatabasebuffer cacheSh
2、ared poolRedo log bufferLarge poolSGAStreams poolServerprocess1PGAServerprocess2PGABack-groundprocessPGAKeep buffer cacheRecycle buffer cachenK Block Size buffer cachesOracle Memory StructuresFull Notes PageBuffer CacheData filesSGACheckpoint queue.DBWnServerDB_BLOCK_SIZEDB_CACHE_SIZEDB_RECYCLE_CACH
3、E_SIZEDB_KEEP_CACHE_SIZELRU lists.DB buffer cacheUsing Multiple Buffer PoolsSGADB buffer cachesKeep poolRecycle poolDefault poolUsing Multiple Buffer PoolsCREATE INDEX cust_idx STORAGE (BUFFER_POOL KEEP );ALTER TABLE oe.customers STORAGE (BUFFER_POOL RECYCLE);ALTER INDEX oe.cust_lname_ix STORAGE (BU
4、FFER_POOL KEEP);Shared poolLibrarycacheDatadictionarycacheUGAShared poolShared pool Defined by SHARED_POOL_SIZELibrary cache contains statement text, parsed code, and execution plan.Data dictionary cache contains definitions for tables, columns, and privileges from the data dictionary tables.UGA con
5、tains session information for Oracle Shared Server users when a large pool is not configured.Shared PoolShared poolDatabase buffer cacheRedo logbuffer Large pool Large PoolLibrary cacheDictionary cacheUser global areaCan be configured as a separate memory area in the SGAIs sized by the LARGE_POOL_SI
6、ZE parameterIs used to store data in memory for:Backup and restore operationsSession data for the shared serversParallel query messagingUGA and Oracle Shared ServerShared poolPGAShared poolorlarge poolStackspacePGAStackspaceCursor stateUser session dataUGADedicated server configurationShared server
7、configurationUser session dataCursor stateUGAJava PoolCan be configured as a separate memory area in the SGAIs sized by the JAVA_POOL_SIZE parameter Is used to store data in memory for all session-specific Java code and data within the JVM Shared poolDatabase buffer cacheRedo logbuffer Large pool Li
8、brary cacheDictionary cacheUser global areaThe Redo Log BufferSQL UPDATE employees 2 SET salary=salary*1.1 3 WHERE employee_id=736;Serverprocess LGWRControl filesARCnArchivedlog filesRedo log filesData filesShared poolRedo logbuffer Library cacheDictionary cacheUser global areaDatabase buffer cacheA
9、utomatic Shared Memory Management: OverviewAutomatically adapts to workload changesMaximizes memory utilizationHelps eliminate out-of-memory errorsBuffer cacheLarge poolShared poolJava poolBuffer cacheLarge poolShared poolJava poolOnline usersBatch jobsBenefits of Automatic Shared Memory ManagementD
10、B_CACHE_SIZESHARED_POOL_SIZELARGE_POOL_SIZEJAVA_POOL_SIZETotal SGA sizeSGA_TARGETSGA Tuning PrinciplesBased on workload information, MMAN captures statistics periodically in the background.MMAN uses the different memory advisories.Memory is moved to where it is most needed.Using an SPFILE is mended:
11、Component sizes saved across shutdownsSaved values used to bootstrap component sizesAvoids having to relearn optimal valuesDatabase Control andAutomatic Shared Memory ManagementManual ConfigurationSGA_TARGET = 8G Total SGA size = 8 GBJava poolDatabasebuffer cacheRedo log bufferShared poolLarge poolF
12、ixed SGASTATISTICS_LEVEL = TYPICAL Auto-tunedAuto-tunedAuto-tunedAuto-tunedStreams poolKeepbuffer poolBehavior of Auto-TunedSGA ParametersWhen SGA_TARGET is not set or is set to zero:Auto-tuned parameters behave as previously.SHARED_POOL_SIZE may need to be increased from settings used on earlier da
13、tabase versions.When SGA_TARGET is set to a non-zero value:Default value of auto-tuned parameters is zero.If set to a non-zero value, the specified value is used as a minimum size.SELECT SUM(bytes)/1024/1024 FROM v$sgastatWHERE pool = shared pool;SELECT component,current_size/1024/1024|MFROM v$ pone
14、nts;Behavior of Manually Tuned SGA ParametersSome components are not auto-tuned.KEEP and RECYCLE buffer cachesMultiple block size cachesLog bufferStreams poolThese components must be manually configured using database parameters.The memory used by these components reduces the amount of memory availa
15、ble for auto-tuning the SGA.Using the V$PARAMETER ViewSGA_TARGET = 8GSELECT name, value, isdefault FROM v$parameterWHERE name LIKE %size;DB_CACHE_SIZE = 0JAVA_POOL_SIZE = 0LARGE_POOL_SIZE = 0SHARED_POOL_SIZE = 0 Resizing SGA_TARGETThe SGA_TARGET initialization parameter:Is dynamicCan be increased up
16、 to SGA_MAX_SIZECan be reduced until all components reach their minimum sizeA change in the value of SGA_TARGET affects only automatically sized components.SGA size = 8 GBDisabling Automatic Shared Memory Management Setting SGA_TARGET to zero disables auto-tuning.Auto parameters are set to their cur
17、rent sizes.SGA size as a whole is unaffected.Parameters:sga_target = 8Gshared_pool_size=1GParameters:sga_target = 0db_cache_size = 4Gshared_pool_size = 2Glarge_pool_size = 512Mjava_pool_size = 512MSGA size = 8 GBOriginal valuesManually Resizing Dynamic SGA ParametersFor auto-tuned parameters, manual
18、 resizing:Results in immediate component resize if the new value is greater than the current sizeChanges the minimum size if the new value is smaller than the current sizeManually tuned parameter resizing affects only the tunable portion of the SGA.Program Global Area (PGA)PGAServerprocessPGAShared
19、poolorlarge poolPGADedicatedconnectionsSharedserverPGAShared serverconnectionsPrivateSQLareasCursorand SQLareaSessionmemoryWorkareaAutomatic PGA Memory ManagementDynamically adjusts the amount of PGA memory dedicated to work areasMemory allocated to work areas is derived from the PGA_AGGREGATE_TARGET parameterHelps to maximize the performance of all the memory-intensive SQL operationsEnabled by default PGA Management ResourcesStatistics to manage the PGA_AGGREGATE_TARGET initialization
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025屆高考物理大一輪復習課件 第七章 第37課時 專題強化:用三大觀點解決動力學問題
- 數字化糧庫智慧糧倉信息化可視化解決方案
- 組織行為學視角下的互聯網行業“996”加班文化
- 分管教育教學副校長工作總結:以學促行?以研提質?筑牢教育教學發展根基
- 小學語文課堂教學策略的有效性研究
- 遼寧省葫蘆島市綏中縣2025年中考二模道德與法治試卷(含答案)
- 西普試題及答案
- 東北三省精準教學2025屆高三下學期聯考三模英語試卷(不含音頻) - 原卷
- 2025年山東省濟南市中考英語模擬試題(含答案)
- 建筑項目進度控制與資源配置的有效策略
- 2025企業清潔服務合同模板
- 天車安全操作課件
- 2025年中國遙控車行業市場前景預測及投資價值評估分析報告
- GB 45671-2025建筑防水涂料安全技術規范
- 2024年益陽市中心醫院備案制人員招聘真題
- 《危險貨物港口作業重大事故隱患判定指南》解讀與培訓
- 直播保密協議書
- 林業安全生產宣傳要點
- GB/T 45565-2025鋰離子電池編碼規則
- 2024-2025學年人教版數學六年級下學期期末試卷(含答案)
- 經濟博弈論課后答案及補充習題答案
評論
0/150
提交評論