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.
| 51. |
What Is A Sub-plan? |
|
Answer» A resource sub-PLAN is a plan, which GETS the resource to allocate from a higher-level plan. It is CREATED in a similar manner as a plan. However, a top-level plan gets to allocate 100% of the resources while a sub-plan can allocate only the resources allocated to it by the top-level plan. A resource sub-plan is a plan, which gets the resource to allocate from a higher-level plan. It is created in a similar manner as a plan. However, a top-level plan gets to allocate 100% of the resources while a sub-plan can allocate only the resources allocated to it by the top-level plan. |
|
| 52. |
What Is Canceling Sql And Terminating Sessions? |
|
Answer» You can specify the directives to cancel long-running SQL queries or to terminate long-running sessions based on the amount of SYSTEM resources CONSUMED. In other words, you can cancel SQL queries or kill sessions if consumer group MEETS certain criteria. The CRITERION is specified using the SWITCH_TIME and SWITCH_ESTIMATE parameters. The option to CANCEL_SQL or KILL_SESSION can be specified by the SWITCH_GROUP parameter. You can specify the directives to cancel long-running SQL queries or to terminate long-running sessions based on the amount of system resources consumed. In other words, you can cancel SQL queries or kill sessions if consumer group meets certain criteria. The criterion is specified using the SWITCH_TIME and SWITCH_ESTIMATE parameters. The option to CANCEL_SQL or KILL_SESSION can be specified by the SWITCH_GROUP parameter. |
|
| 53. |
What Is Automatic Consumer Group Switching? |
|
Answer» It is a type of RESOURCE allocation method USED to automatically switch the CONSUMER GROUP if the switch criterion is met. The switch group is specified USING the SWITCH_GROUP parameter. Switch criteria can be set using the SWITCH_TIME and SWITCH_ESTIMATE parameters. It is a type of resource allocation method used to automatically switch the consumer group if the switch criterion is met. The switch group is specified using the SWITCH_GROUP parameter. Switch criteria can be set using the SWITCH_TIME and SWITCH_ESTIMATE parameters. |
|
| 54. |
What Is Parallel Degree Limit? |
|
Answer» Parallel DEGREE limit is an allocation METHOD for degree of parallelism. It specifies the maximum degree of parallelism for an operation. It can be set using the PARALLEL_DEGREE_LIMIT_P1 parameter. Parallel degree limit is an allocation method for degree of parallelism. It specifies the maximum degree of parallelism for an operation. It can be set using the PARALLEL_DEGREE_LIMIT_P1 parameter. |
|
| 55. |
What Is A Cpu Method Or Parameter? |
|
Answer» ORACLE uses eight levels of CPU allocation, namely CPU_P1 to CPU_P8, to prioritize and allocate CPU usage AMONG the COMPETING USER sessions. Oracle uses eight levels of CPU allocation, namely CPU_P1 to CPU_P8, to prioritize and allocate CPU usage among the competing user sessions. |
|
| 56. |
Can You Switch Users Between Resource Consumer Groups? If Yes, How? |
|
Answer» You can SWITCH users between resource consumer GROUPS by using any of the following THREE procedures:
You can switch users between resource consumer groups by using any of the following three procedures: |
|
| 57. |
Define Resource Consumer Group. |
|
Answer» A resource consumer group is used to classify USERS into logical group BASED on their resource consumption requirements.
A resource consumer group is used to classify users into logical group based on their resource consumption requirements. |
|
| 58. |
What Are The Components Or Elements Of Drm? |
|
Answer» The THREE MAIN COMPONENTS or ELEMENTS of DRM are given as FOLLOWS:
The three main components or elements of DRM are given as follows: |
|
| 59. |
What Is A Drm? |
Answer»
|
|
| 60. |
How Can You Manage Operating System Resources From The Database? |
|
Answer» You can use Database RESOURCE Manager (DRM) to MANAGE OPERATING system RESOURCES. You can use Database Resource Manager (DRM) to manage operating system resources. |
|
| 61. |
How Can You Find Out Whether A Database Is Primary Or Standby? |
|
Answer» You can query the V$database VIEW. The database_role column provides the RELEVANT information. You can query the v$database view. The database_role column provides the relevant information. |
|
| 62. |
What Is The Difference Between Logical Standby Database And Physical Standby Database? |
|
Answer» A PHYSICAL standby DATABASE is PHYSICALLY same as PRODUCTION database, It has same file structure as production database while logical database can have different physical structure as COMPARED to production database. A physical standby database is physically same as production database, It has same file structure as production database while logical database can have different physical structure as compared to production database. |
|
| 63. |
What Is The Maximum Number Of Standby Databases That Can Be Associated With A Production Database? |
|
Answer» A production DATABASE can have maximum of nine STANDBY DATABASES. A production database can have maximum of nine standby databases. |
|
| 64. |
What Is Role Transition And When Does It Happen? |
|
Answer» ROLE transition is the change of role between primary and STANDBY databases.
Role transition is the change of role between primary and standby databases. |
|
| 65. |
What Happens When Standby Database Is Not Available? |
|
Answer» If standby DATABASE is not available and the changes are MADE in primary database, then there will be a GAP in the SEQUENCE of archive logs. The INFORMATION about archive logs in these gaps can be found in the v$archive_gap view. If standby database is not available and the changes are made in primary database, then there will be a gap in the sequence of archive logs. The information about archive logs in these gaps can be found in the v$archive_gap view. |
|
| 66. |
What Are The Services Required On Standby Database? |
|
Answer» Standby database requires Fetch ARCHIVE Log (FAL) CLIENT to request and fetch archive log files from primary database, REMOTE file SERVER to receive archived log files from primary database, archiver process to archive redo logs applied to standby database, and Managed Recovery Process (MRP) to apply redo logs to the standby database. Standby database requires Fetch Archive Log (FAL) client to request and fetch archive log files from primary database, remote file server to receive archived log files from primary database, archiver process to archive redo logs applied to standby database, and Managed Recovery Process (MRP) to apply redo logs to the standby database. |
|
| 67. |
What Are The Services Required On Primary Database? |
|
Answer» Primary database requires LOG WRITER to generate log information, archiver process to generate archive log files, and fetch archive log server to REQUEST the archive log files from STANDBY database. Primary database requires log writer to generate log information, archiver process to generate archive log files, and fetch archive log server to request the archive log files from standby database. |
|
| 68. |
Why Do You Need To Have Data Guard? What Are The Benefits Of Using Data Guard? |
|
Answer» Data guard SETUP ensures that another database is available as a copy of production database at almost real time. As a RESULT, we have higher protection for enterprise data and the new database is available very quickly WITHOUT the need to actually restore and recover from backup. THEREFORE, data guard offers an EXCELLENT disaster recovery solution. Data guard setup ensures that another database is available as a copy of production database at almost real time. As a result, we have higher protection for enterprise data and the new database is available very quickly without the need to actually restore and recover from backup. Therefore, data guard offers an excellent disaster recovery solution. |
|
| 69. |
Why Is 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. |
|
| 70. |
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. |
|
| 71. |
How Do You Handle Ora-01000: Maximum Open Cursors Exceeded Error? |
|
Answer» The ORA-01000: MAXIMUM OPEN cursors EXCEEDED ERROR can be handled by checking the parameter setting for OPEN_CURSORS. You can resolve the error by closing the cursors that are no LONGER in use, raising the OPEN__CURSORS parameter within your initialization file, and restarting the Oracle database. The ORA-01000: maximum open cursors exceeded error can be handled by checking the parameter setting for OPEN_CURSORS. You can resolve the error by closing the cursors that are no longer in use, raising the OPEN__CURSORS parameter within your initialization file, and restarting the Oracle database. |
|
| 72. |
What Is Cost-based Optimizer? |
|
Answer» Cost-based optimizer is the optimizer COMPONENT of the Oracle, which is RECOMMENDED and supported by Oracle. It DETERMINES query plans based on overall cost of usage of each resource to get the BEST possible plan with respect to the resource usage cost. Cost-based optimizer is the optimizer component of the Oracle, which is recommended and supported by Oracle. It determines query plans based on overall cost of usage of each resource to get the best possible plan with respect to the resource usage cost. |
|
| 73. |
Which Parameters Affect The Behavior Of Merge Join? |
|
Answer» The BEHAVIOR of merge JOIN is INFLUENCED by the initialization PARAMETERS: sort_area_size and db__file_muitiblock_read_count. The behavior of merge join is influenced by the initialization parameters: sort_area_size and db__file_muitiblock_read_count. |
|
| 74. |
Explain Wait Events. |
|
Answer» Wait event occurs when a USER PROCESS is kept WAITING because of some problem, such as an I/O bottleneck or a busy CPU. Wait event occurs when a user process is kept waiting because of some problem, such as an I/O bottleneck or a busy CPU. |
|
| 75. |
What Is A Latch? How Is It Used In Oracle? |
|
Answer» A LATCH is a semaphore or an on/off switch in Oracle DATABASE that a process must access in order to conduct certain type of ACTIVITIES. Latches govern the usage of Oracle's internal resources by its processes. They enforce serial access to the resources and LIMIT the amount of time for which a single process can USE a resource. A latch is a semaphore or an on/off switch in Oracle database that a process must access in order to conduct certain type of activities. Latches govern the usage of Oracle's internal resources by its processes. They enforce serial access to the resources and limit the amount of time for which a single process can use a resource. |
|
| 76. |
How Can You Identify Locked Object? |
|
Answer» After you get ID1 from the V$lock view for locked OBJECT, you can query the dba_objects view to get the NAME of the object. After you get ID1 from the v$lock view for locked object, you can query the dba_objects view to get the name of the object. |
|
| 77. |
Describe The Oracle Wait Interface. |
|
Answer» The Oracle Wait INTERFACE is the set of data dictionary tables that STORE information about wait events. Oracle offers multiple views to GIVE information about wait events, such as v$system_event and v$session_event. The Oracle Wait Interface is the set of data dictionary tables that store information about wait events. Oracle offers multiple views to give information about wait events, such as v$system_event and v$session_event. |
|
| 78. |
What Are Dynamic Performance Views? Who Has The Access To These Views? |
|
Answer» DYNAMIC performance VIEWS are also called V$ views. These views provide INFORMATION about the sessions. Dynamic performance views are also called V$ views. These views provide information about the sessions. |
|
| 79. |
How Can You Monitor Performance Of The Database Pro-actively? |
|
Answer» Several tools, such as ORACLE Enterprise Manager, and UTILITIES from third party are available for monitoring database PERFORMANCE. HOWEVER, all these tools or utilities depend on statistics gathered by Oracle, which are available through dynamic performance VIEWS. Several tools, such as Oracle Enterprise Manager, and utilities from third party are available for monitoring database performance. However, all these tools or utilities depend on statistics gathered by Oracle, which are available through dynamic performance views. |
|
| 80. |
Which Utility Can You Use To Make Trace File More Readable? |
|
Answer» You can USE the TKPROF utility to MAKE user process TRACE file more readable. TKPROF CONVERTS raw INFORMATION into formatted output in user process trace file. You can use the TKPROF utility to make user process trace file more readable. TKPROF converts raw information into formatted output in user process trace file. |
|
| 81. |
What Is The Use Of Alert Log File? Where Can You Find The 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.
The LOCATION of ALERT log file is specified in the BACKGROUND_DUMP_DEST parameter. 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. The location of ALERT log file is specified in the BACKGROUND_DUMP_DEST parameter. |
|
| 82. |
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. |
|
| 83. |
Who Owns The Operating System Files Created By The Utl_file Package? |
|
Answer» The OPERATING system FILES generated by utl_file are OWNED by operating system USER ORACLE. The operating system files generated by utl_file are owned by operating system user Oracle. |
|
| 84. |
How Can You Communicate With Operating System Files From Oracle? |
|
Answer» You can use the utl_file PACKAGE to communicate with OPERATING system files from PL/SQL code. This package provides MULTIPLE functions to open, read, WRITE, and CLOSE the operating system files. You can use the utl_file package to communicate with operating system files from PL/SQL code. This package provides multiple functions to open, read, write, and close the operating system files. |
|
| 85. |
How Can You Generate Profile Of Pl/sql Applications To Identify Performance Bottlenecks? |
|
Answer» You can use the dbms_profiler PACKAGE to collect and store PROFILE INFORMATION about a PL/SQL application. You can use the dbms_profiler package to collect and store profile information about a PL/SQL application. |
|
| 86. |
What Functionality Does Oracle Provide To Secure Sensitive Information? |
|
Answer» You can USE the dbms__obfuscation_toolkit package to encrypt sensitive information. The Data ENCRYPTION STANDARD (DES) or triple DES ALGORITHM can be USED to encrypt the data. You can use the dbms__obfuscation_toolkit package to encrypt sensitive information. The Data Encryption Standard (DES) or triple DES algorithm can be used to encrypt the data. |
|
| 87. |
How Can You Initialize Log Miner? |
|
Answer» You can USE the DBMS_LOGMNR.START_LOGMNR PROCEDURE to INITIALIZE the LOG MINER. You can use the DBMS_LOGMNR.START_LOGMNR procedure to initialize the log miner. |
|
| 88. |
How Can You Get Actual Data Change Values From Previous Transactions In Oracle? |
|
Answer» Oracle provides a feature called log MINER, which can be used to VIEW DATA changes from PREVIOUS transactions. Oracle provides a feature called log miner, which can be used to view data changes from previous transactions. |
|
| 89. |
How Can You Schedule A Job In Database? |
|
Answer» You can use the dbms_scheduler package to CREATE and schedule a DATABASE JOB. You can use the dbms_scheduler package to create and schedule a database job. |
|
| 90. |
How Can You Create A User-defined Lock? |
|
Answer» The dbms_lock PACKAGE can be USED to CREATE user-defined LOCKS. The dbms_lock package can be used to create user-defined locks. |
|
| 91. |
What Is A User-defined Lock? |
|
Answer» Oracle manages DATABASE resources through locking mechanism. These locks are usually managed by the SYSTEM and are released on COMMIT or rollback of a transaction. Oracle manages database resources through locking mechanism. These locks are usually managed by the system and are released on commit or rollback of a transaction. |
|
| 92. |
How Can You Enable Flashback Feature? |
|
Answer» Oracle provides the dbms_flashback package to USE FLASHBACK FEATURE. The package has the FOLLOWING procedures to facilitate this feature:
Oracle provides the dbms_flashback package to use flashback feature. The package has the following procedures to facilitate this feature: |
|
| 93. |
What Are The Benefits Of Flashback Feature? |
|
Answer» Flashback feature provides the following benefits:
Flashback feature provides the following benefits: |
|
| 94. |
What Do You Understand By Flashback Feature Of Oracle? |
|
Answer» Flashback FEATURE allows you to use a flashback version of the DATABASE, that is, you can query the database from a state in the past BASED on a specific System CHANGE Number (SCN) or time in the past. Flashback feature allows you to use a flashback version of the database, that is, you can query the database from a state in the past based on a specific System Change Number (SCN) or time in the past. |
|
| 95. |
How Can You Implement Fine-grained Auditing? |
|
Answer» ORACLE has PROVIDED a package called dbms_fga to IMPLEMENT fine-grained auditing. It CONTAINS the following PROCEDURES:
Oracle has provided a package called dbms_fga to implement fine-grained auditing. It contains the following procedures: |
|
| 96. |
What Do You Understand By Fine-grained Auditing? |
|
Answer» Fine-grained auditing can be used to implement auditing at a LOW LEVEL of granularity. It ALLOWS you to audit a TRANSACTION when a SPECIFIC column or a row is changed. Fine-grained auditing can be used to implement auditing at a low level of granularity. It allows you to audit a transaction when a specific column or a row is changed. |
|
| 97. |
Suppose You Want To Audit Specific Activities On Sensitive Data. How Can You Achieve That? |
|
Answer» You can USE the fine-grained AUDITING FEATURE of ORACLE. You can use the fine-grained auditing feature of Oracle. |
|
| 98. |
How Can You Process Messages In Order Asynchronously? |
|
Answer» ORACLE provides a PACKAGE called dbms_aq package to queue the messages, which can be consumed by ANOTHER SESSION or application in ORDER. Oracle provides a package called dbms_aq package to queue the messages, which can be consumed by another session or application in order. |
|
| 99. |
When Does An Alert Gets Signaled? |
|
Answer» ALERTS are transaction-based. Whenever, a transaction CAUSING event of INTEREST commits, the alert is SIGNALED. Alerts are transaction-based. Whenever, a transaction causing event of interest commits, the alert is signaled. |
|
| 100. |
How Can A Session Indicate Its Interest In Receiving Alerts? |
|
Answer» A session can register itself for a specific TYPE of alert or all alerts by USING the register procedure. Such sessions are CALLED WAITING sessions. A session can register itself for a specific type of alert or all alerts by using the register procedure. Such sessions are called waiting sessions. |
|