-
What is the OPTIMAL parameter?
It is used to set the optimal length of a rollback segment.
-
How the space utilization takes place within rollback segments ?
It will try to fit the transaction in a cyclic fashion to all existing extents. Once it found an extent is in use then it forced to acquire a new extent (No. of extents is based on the optimal size)
-
-
How can we plan storage for very large tables ?
Limit the number of extents in the tableSeparate Table from its indexes.Allocate Sufficient temporary storage.
-
How will you estimate the space required by a non-clustered tables?
Calculate the total header sizeCalculate the available dataspace per data blockCalculate the combined column lengths of the average rowCalculate the total average row size.Calculate the average number rows that can fit in a blockCalculate the number of blocks and bytes required for the table. After arriving the calculation, add 10 % additional space to calculate the initial extent...
-
What is a Control file ?
Database overall physical architecture is maintained in a file called control file. It will be used to maintain internal consistency and guide recovery operations. Multiple copies of control files are advisable.
-
What is meant by Redo Log file mirroring ? How it can be achieved?
Process of having a copy of redo log files is called mirroring. This can be achieved by creating group of log files together, so that LGWR will automatically writes them to all the members of the current on-line redo log group. If any one group fails then database automatically switch over to next group. It degrades performance.
-
What is advantage of having disk shadowing/ Mirroring ?
Shadow set of disks save as a backup in the event of disk failure. In most Operating System if any disk failure occurs it automatically switchover to place of failed disk. Improved performance because most OS support volume shadowing can direct file I/O request to use the shadow set of files instead of the main set of files. This reduces I/O load on the main set of disks.
-
What is hit ratio ?
It is a measure of well the data cache buffer is handling requests for data. Hit Ratio = (Logical Reads - Physical Reads - Hits Misses)/ Logical Reads.
-
When will be a segment released ?
When Segment is dropped.When Shrink (RBS only)When truncated (TRUNCATE used with drop storage option)
-
What are disadvantages of having raw devices ?
We should depend on export/import utility for backup/recovery (fully reliable) The tar command cannot be used for physical file backup, instead we can use dd command which is less flexible and has limited recoveries.
-
List the factors that can affect the accuracy of the estimations?
The space used transaction entries and a deleted record does not become free immediately after completion due to delayed cleanout. Trailing nulls and length bytes are not stored. Inserts of, updates to and deletes of rows as well as columns larger than a single datablock, can cause fragmentation and chained row pieces.
-
What is the use of FILE option in EXP command?
To give the export file name.
-
What is the use of COMPRESS option in EXP command ?
Flag to indicate whether export should compress fragmented segments into single extents.
-
What is the use of GRANT option in EXP command?
A flag to indicate whether grants on databse objects will be exported or not. Value is 'Y' or 'N'.
-
What is the use of INDEXES option in EXP command ?
A flag to indicate whether indexes on tables will be exported.
-
What is the use of ROWS option in EXP command ?
Flag to indicate whether table rows should be exported. If 'N' only DDL statements for the database objects will be created.
-
What is the use of CONSTRAINTS option in EXP command ?
A flag to indicate whether constraints on table need to be exported.
-
What is the use of FULL option in EXP command ?
A flag to indicate whether full databse export should be performed.
-
What is the use of OWNER option in EXP command ?
List of table accounts should be exported.
Oracle Memory Management Interview Questions
Ans