Oracle Database performance tuning involves configuring initialization parameters for optimal speed, memory usage, and resource allocation. Key categories include memory management, CPU and process management, disk I/O performance, query optimization, redo and undo performance, parallel execution, networking, and performance views. Automatic Memory Management is recommended for general workloads, while manual tuning is preferred for specific performance needs.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views
Oracle-Database-Performance-setting-Parameters
Oracle Database performance tuning involves configuring initialization parameters for optimal speed, memory usage, and resource allocation. Key categories include memory management, CPU and process management, disk I/O performance, query optimization, redo and undo performance, parallel execution, networking, and performance views. Automatic Memory Management is recommended for general workloads, while manual tuning is preferred for specific performance needs.
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2
Oracle Database Performance Tuning Parameters
Oracle Database performance tuning involves configuring various initialization
parameters to optimize speed, memory usage, and resource allocation. Below are the key performance-related parameters categorized for better understanding:
1. Memory Management Parameters
Automatic Memory Management (Recommended) MEMORY_TARGET – Specifies the total memory allocated to Oracle (SGA + PGA). MEMORY_MAX_TARGET – Maximum memory allocation for automatic management. Shared Global Area (SGA) Parameters SGA_TARGET – Automatically manages memory allocation within SGA components. SGA_MAX_SIZE – Defines the upper limit of SGA memory. DB_CACHE_SIZE – Sets the size of the database buffer cache. SHARED_POOL_SIZE – Allocates memory for SQL execution plans and dictionary cache. LARGE_POOL_SIZE – Required for parallel queries and RMAN operations. Program Global Area (PGA) Parameters PGA_AGGREGATE_TARGET – Defines the target memory for sorting, hash joins, and SQL work areas. WORKAREA_SIZE_POLICY – Controls memory usage for sorting (AUTO is recommended). 2. CPU and Process Management PROCESSES – Sets the maximum number of user connections. SESSIONS – Defines the number of concurrent database sessions. CPU_COUNT – Specifies the number of CPUs Oracle can use. PARALLEL_MAX_SERVERS – Controls the maximum parallel execution servers. DB_WRITER_PROCESSES – Defines the number of database writer processes (useful for large databases). 3. Disk I/O Performance Parameters DB_BLOCK_SIZE – Determines the size of database blocks (typically 8K). DB_FILE_MULTIBLOCK_READ_COUNT – Controls the number of blocks read in a single I/O operation (tuning read performance). LOG_BUFFER – Specifies redo log buffer size (increasing it reduces redo log contention). 4. Query Optimization Parameters OPTIMIZER_MODE – Defines the SQL execution approach (ALL_ROWS, FIRST_ROWS, RULE). OPTIMIZER_INDEX_CACHING – Specifies the percentage of index blocks in the cache (higher values favor index usage). OPTIMIZER_INDEX_COST_ADJ – Adjusts the cost of index scans vs. full table scans. CURSOR_SHARING – Controls how SQL statements are shared (EXACT, FORCE, SIMILAR). 5. Redo & Undo Performance Parameters UNDO_TABLESPACE – Specifies the tablespace for automatic undo management. UNDO_RETENTION – Determines how long undo records are retained. REDO_LOG_BUFFER – Defines the size of redo log buffers (tuning required for high DML workloads). 6. Parallel Execution & Concurrency PARALLEL_THREADS_PER_CPU – Determines the number of parallel execution threads per CPU. PARALLEL_DEGREE_POLICY – Controls automatic parallel execution (AUTO, MANUAL). OPEN_CURSORS – Limits the number of open cursors per session. 7. Networking & Connection Performance SESSION_CACHED_CURSORS – Reduces parse time by caching frequently used cursors. DB_KEEP_CACHE_SIZE – Defines a cache area for frequently accessed small tables. SQLNET.EXPIRE_TIME – Controls session timeout to free unused connections. 8. Automatic Workload Repository (AWR) & Performance Views STATISTICS_LEVEL – Controls the level of statistics collection (TYPICAL, ALL, BASIC). DB_CACHE_ADVICE – Enables cache performance advisory (helps in tuning memory allocations). Conclusion Optimizing Oracle performance depends on workload requirements. Using Automatic Memory Management (AMM) is recommended for general workloads, while manual tuning is better for fine-tuned performance.