Memory Management

  Home  Oracle  Memory Management


“Oracle Memory Management Interview Questions and Answers will guide us that Oracle Memory management is the act of managing computer memory. This involves providing ways to allocate partions of memory to programs at their request, and freeing it for reuse when no longer needed. The management of main memory is critical to the computer system. So learn the basics and advance level Oracle Memory Management with the help of this Oracle Memory Management Interview Questions with Answers guide”



61 Memory Management Questions And Answers

6⟩ What is a shared pool?

The Shared Pool environment contains both fixed and variable structures. The Fixed structures remain relatively the same size, whereas the variable structures grow and shrink based on user and program requirements.

Used To Store

Most Recently Executed SQL Statements

Most Recently used Data definitions

It Consists of two Key performance - related memory structures

Library Cache & Data Dictionary Cache

Shared Pool is sized by SHARED_POOL_SIZE

 142 views

7⟩ What is a data segment?

Data segment are the physical areas within a database block in which the data associated with tables and clusters are stored.

 126 views

10⟩ What is Database Buffers?

Database buffers are cache in the SGA used to hold the data blocks that are read from the data segments in the database such as tables, indexes and clusters DB_BLOCK_BUFFERS parameter in INIT.ORA decides the size.

 116 views

13⟩ What is meant by free extent?

A free extent is a collection of continuous free blocks in tablespace. When a segment is dropped its extents are reallocated and are marked as free.

 135 views

15⟩ How can we organize the tablespaces in Oracle database to have maximum performance?

Store data in tablespaces to avoid disk contension.system tablespace-recursive callsuserdata-users objectsindex tablespace-for indexesrollback segmnets-undo tablespace or manual rollback segmentsplace application specific data in respective tablespaces.Place all these tablespaces in saperate disks.Try to implement raid-0 (striping) for better performance.

 152 views

17⟩ What is redo log buffer?

Changes made to entries are written to the on-line redo log files. So that they can be used in roll forward operations during database recoveries. Before writing them into the redo log files, they will first brought to redo log buffers in SGA and LGWR will write into files frequently.

LOG_BUFFER parameter will decide the size.

 121 views

18⟩ What is meant by recursive hints?

Number of times processes repeatedly query the dictionary table is called recursive hints. It is due to the data dictionary cache is too small. By increasing the SHARED_POOL_SIZE parameter we can optimize the size of Data Dictionary Cache.

 141 views

20⟩ How will you estimate the space required by a non-clustered tables?

Calculate the total header size

Calculate the available dataspace per data block

Calculate the combined column lengths of the average row

Calculate the total average row size.

Calculate the average number rows that can fit in a block

Calculate the number of blocks and bytes required for the table.

After arriving the calculation, add 10 % additional space to calculate the initial extent size for a working table.

 126 views