InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
How Can You Detect Block Corruption? |
|
Answer» There are four methods for detecting block corruption, which are given as follows:
There are four methods for detecting block corruption, which are given as follows: |
|
| 2. |
How Do You Handle Ora-01403: No Data Found Error? |
|
Answer» You can HANDLE ORA- 01403: no data found error by TERMINATING the PROCESSING for the SELECT statement. You can handle ORA- 01403: no data found error by terminating the processing for the select statement. |
|
| 3. |
What Are The Different Types Of Locking Modes? |
|
Answer» Lock modes VARY from 0 to 6 in order of increasing exclusively, GIVEN as follows:
You can get the information on modes of TM and TX locks by using the LMODE and REQUEST columns. Both the locks use the same numbering for lock modes.
Lock modes vary from 0 to 6 in order of increasing exclusively, given as follows: You can get the information on modes of TM and TX locks by using the LMODE and REQUEST columns. Both the locks use the same numbering for lock modes. |
|
| 4. |
Name A Few Places You Will Look To Get More Details On A Performance Issue? |
|
Answer» Oracle records the INFORMATION about DIFFERENT kind of ERRORS and the processes in the files, such as ALERT log, user process TRACE files and background process trace files. Oracle records the information about different kind of errors and the processes in the files, such as ALERT log, user process trace files and background process trace files. |
|
| 5. |
Describe The Oracle Wait Interface? |
Answer»
|
|
| 6. |
How Can You Monitor Performance Of The Database Proactively? |
Answer»
|
|
| 7. |
Which Trace File Is Used For Performance Tuning And Why? |
|
Answer» User process trace file is USED for performance TUNING because it CONTAINS INFORMATION about execution plan and resource consumption. This information can be used for performance tuning. These files are located in the directory specified in the BACKGROUND_DUMP_DIRECTORY parameter. User process trace file is used for performance tuning because it contains information about execution plan and resource consumption. This information can be used for performance tuning. These files are located in the directory specified in the BACKGROUND_DUMP_DIRECTORY parameter. |
|
| 8. |
What Do The Db_file_sequential_read And Db_file_scattered_read Events Indicate? |
Answer»
|
|
| 9. |
What Do You Understand By Db File Scattered Read? |
| Answer» | |
| 10. |
What Is The Main Reason For Block Corruption? |
|
Answer» Block corruption or physical corruption occurs when a block on a physical disk BECOMES unreadable or inconsistent to the STATE that the data is UNUSABLE. Block corruption can be caused by many different sources; and therefore, it is difficult to find the exact reason of block corruption. However, it is mostly due to human error with the use of software (patches) firmware, or hardware bugs. You can avoid this by testing all the hardware and software patches thoroughly in the test environment. In addition, you can use mirrored disk to PROTECT your data. Block corruption or physical corruption occurs when a block on a physical disk becomes unreadable or inconsistent to the state that the data is unusable. Block corruption can be caused by many different sources; and therefore, it is difficult to find the exact reason of block corruption. However, it is mostly due to human error with the use of software (patches) firmware, or hardware bugs. You can avoid this by testing all the hardware and software patches thoroughly in the test environment. In addition, you can use mirrored disk to protect your data. |
|
| 11. |
Which Tools Are Available To Monitor Performance? |
Answer»
|
|
| 12. |
What Is A User Process Trace File? |
|
Answer» A user process trace file is a trace file that is produced by user session. HOWEVER, this is an optional file, which is generated if the user wants to generate the file. This file is generated when the value of SQL_TRACE PARAMETER is SET to TRUE for a session.
A user process trace file is a trace file that is produced by user session. However, this is an optional file, which is generated if the user wants to generate the file. This file is generated when the value of SQL_TRACE parameter is set to TRUE for a session. |
|
| 13. |
What Is The Difference Between Latches And Enqueues? |
Answer»
|
|
| 14. |
What Are The Background Trace Files? |
|
Answer» Background TRACE files are associated with background PROCESSES and are generated when CERTAIN background process experiences an error. The information in background trace files is GENERALLY used for trouble shooting. Background trace files are associated with background processes and are generated when certain background process experiences an error. The information in background trace files is generally used for trouble shooting. |
|
| 15. |
What Is A Latch? How It Is Used In Oracle? |
Answer»
|
|
| 16. |
What Is A Lock? |
|
Answer» Lock is a mechanism provided by Oracle to reserve a DATABASE object so that different sessions do not interfere in each other's work. LOCKING helps in ensuring data consistency and maintaining database objects in USABLE state in a multi user environment. However, it can cause one session to block ANOTHER. Lock is a mechanism provided by Oracle to reserve a database object so that different sessions do not interfere in each other's work. Locking helps in ensuring data consistency and maintaining database objects in usable state in a multi user environment. However, it can cause one session to block another. |
|
| 17. |
What Is The Use Of Alert Log File? |
|
Answer» The ALERT log is a log file that records database wide EVENTS. The INFORMATION in the ALERT log file is GENERALLY used for trouble shooting. FOLLOWING events are recorded in the ALERT log file:
The ALERT log is a log file that records database wide events. The information in the ALERT log file is generally used for trouble shooting. Following events are recorded in the ALERT log file: |
|
| 18. |
What Is The Significance Of Latches With Respect To Performance Tuning? |
Answer»
WHENEVER there is a contention for latch, it indicates that there is a performance ISSUE, which may be due to EITHER of the two following REASONS:
Whenever there is a contention for latch, it indicates that there is a performance issue, which may be due to either of the two following reasons: |
|
| 19. |
What Are Different Types Of Locks? |
|
Answer» There are two different types of locks, which are given as follows:
There are two different types of locks, which are given as follows: |
|
| 20. |
How Do You Handle Ora – 01403: No Data Found Error? |
|
Answer» You can handle ORA- 01403: no DATA FOUND ERROR by terminating the processing for the SELECT STATEMENT. You can handle ORA- 01403: no data found error by terminating the processing for the SELECT statement. |
|
| 21. |
What Is The Ora-01555: Snapshot Too Old Error? How Can It Be Avoided? |
|
Answer» The ORA-01555: snapshot too OLD error indicates that the query cannot find the snapshot it is LOOKING for in the rollback SEGMENT. Rollback segment is designed to hold data blocks that are being CHANGED. It is required to hold old snapshot until the transaction is committed. However, it holds the data until the space is required for other TRANSACTIONS. The ORA-01555: snapshot too old error indicates that the query cannot find the snapshot it is looking for in the rollback segment. Rollback segment is designed to hold data blocks that are being changed. It is required to hold old snapshot until the transaction is committed. However, it holds the data until the space is required for other transactions. |
|
| 22. |
How Can You Get More Details About The Blocking Session? |
|
Answer» You can use the V$SESSION or gv$session view in Real Application Clusters (RAC) environment to get the session information. You can use the v$session or gv$session view in Real Application Clusters (RAC) environment to get the session information. |
|
| 23. |
Why Union All Faster Than Union? |
|
Answer» The UNION OPERATION REMOVES redundancy while UNION ALL does not; therefore, the UNION operation NEEDS to perform sort. As a RESULT, UNION ALL performs BETTER as it does not need to perform any sort. The UNION operation removes redundancy while UNION ALL does not; therefore, the UNION operation needs to perform sort. As a result, UNION ALL performs better as it does not need to perform any sort. |
|
| 24. |
Which Parameters Affect The Behaviour Of Merge Join? |
|
Answer» The behavior of MERGE JOIN is INFLUENCED by the INITIALIZATION parameters:
The behavior of merge join is influenced by the initialization parameters: |
|
| 25. |
What Is Cost Based Optimizer? |
Answer»
|
|
| 26. |
Explain Wait Events? |
| Answer» | |
| 27. |
What Is Db File Sequential Read Wait Event? |
|
Answer» The db file sequential read wait event PERFORMS single block read operations against indexes, TABLES, control files, rollback segments and data file headers. It has THREE parameters: file#, firstblock# and block count. The db file sequential read wait event performs single block read operations against indexes, tables, control files, rollback segments and data file headers. It has three parameters: file#, firstblock# and block count. |
|
| 28. |
What Is The Statspack Tool? |
| Answer» | |
| 29. |
What Are Dynamic Performance Views? |
|
Answer» Dynamic performance VIEWS are ALSO called V$ views. These views provided INFORMATION about the sessions. Any Oracle user can get information from dynamic performance views if the user has the select any table privilege. This privilege is GENERALLY granted through the SELECT_CATALOG_ROLE etc. Dynamic performance views are also called V$ views. These views provided information about the sessions. Any Oracle user can get information from dynamic performance views if the user has the select any table privilege. This privilege is generally granted through the SELECT_CATALOG_ROLE etc. |
|
| 30. |
Name Two Files Used For Network Connection To A Database? |
|
Answer» TNSNAMES.ORA and SQLNET.ORA TNSNAMES.ORA and SQLNET.ORA |
|
| 31. |
You Have Just Compile A Pl/sql Package But Got Errors, How Would You View The Errors? |
|
Answer» SHOW ERRORS |
|
| 32. |
Give Two Methods You Could Use To Determine What Ddl Changes Have Been Made? |
|
Answer» You COULD USE Logminer or STREAMS You could use Logminer or Streams |
|
| 33. |
What Command Would You Use To Encrypt A Pl/sql Application? |
|
Answer» WRAP WRAP |
|
| 34. |
Explain An Ora-01555? |
|
Answer» You GET this error when you get a snapshot too old within rollback. It can USUALLY be solved by INCREASING the UNDO retention or increasing the size of ROLLBACKS. You should also look at the logic involved in the application getting the error message. You get this error when you get a snapshot too old within rollback. It can usually be solved by increasing the undo retention or increasing the size of rollbacks. You should also look at the logic involved in the application getting the error message. |
|
| 35. |
Give The Stages Of Instance Start Up To A Usable State Where Normal Users May Access It? |
| Answer» | |
| 36. |
Give The Two Types Of Tables Involved In Producing A Star Schema And The Type Of Data They Hold? |
|
Answer» Fact tables and DIMENSION tables. A fact table contains MEASUREMENTS while dimension tables will contain DATA that will help describe the fact tables. Fact tables and dimension tables. A fact table contains measurements while dimension tables will contain data that will help describe the fact tables. |
|
| 37. |
Give Two Examples Of How You Might Determine The Structure Of The Table Dept? |
|
Answer» USE the DESCRIBE COMMAND or use the dbms_metadata.get_ddl PACKAGE. Use the describe command or use the dbms_metadata.get_ddl package. |
|
| 38. |
Explain The Difference Between A Data Block, An Extent And A Segment.? |
|
Answer» A data block is the smallest UNIT of logical storage for a DATABASE object. As OBJECTS grow they take chunks of ADDITIONAL storage that are composed of contiguous data BLOCKS. These groupings of contiguous data blocks are called extents. All the extents that an object takes when grouped together are considered the segment of the database object. A data block is the smallest unit of logical storage for a database object. As objects grow they take chunks of additional storage that are composed of contiguous data blocks. These groupings of contiguous data blocks are called extents. All the extents that an object takes when grouped together are considered the segment of the database object. |
|
| 39. |
Explain The Difference Between A Hot Backup And A Cold Backup And The Benefits Associated With Each? |
|
Answer» A HOT backup is basically TAKING a backup of the DATABASE while it is STILL up and running and it must be in archive log mode. A cold backup is taking a backup of the database while it is shut down and does not require being in archive log mode. The benefit of taking a hot backup is that the database is still available for use while the backup is occurring and you can RECOVER the database to any point in time. The benefit of taking a cold backup is that it is typically easier to administer the backup and recovery process. In addition, since you are taking cold backups the database does not require being in archive log mode and thus there will be a slight performance gain as the database is not cutting archive logs to disk. A hot backup is basically taking a backup of the database while it is still up and running and it must be in archive log mode. A cold backup is taking a backup of the database while it is shut down and does not require being in archive log mode. The benefit of taking a hot backup is that the database is still available for use while the backup is occurring and you can recover the database to any point in time. The benefit of taking a cold backup is that it is typically easier to administer the backup and recovery process. In addition, since you are taking cold backups the database does not require being in archive log mode and thus there will be a slight performance gain as the database is not cutting archive logs to disk. |
|