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 The Significance Of Having Storage Clause? |
|
Answer» We can plan the storage for a table as how much initial extents are REQUIRED, how much can be extended next, how much % should leave FREE for managing ROW UPDATING, etc., We can plan the storage for a table as how much initial extents are required, how much can be extended next, how much % should leave free for managing row updating, etc., |
|
| 52. |
How Does Space Allocation Table Place Within A Block? |
|
Answer» Each block CONTAINS entries as FOLLOWS Each block contains entries as follows |
|
| 53. |
What Is The Role Of Pctfree Parameter Is Storage Clause? |
|
Answer» This is USED to RESERVE certain AMOUNT of space in a BLOCK for expansion of ROWS. This is used to reserve certain amount of space in a block for expansion of rows. |
|
| 54. |
What Is The Optimal Parameter? |
|
Answer» It is USED to SET the optimal LENGTH of a ROLLBACK segment. It is used to set the optimal length of a rollback segment. |
|
| 55. |
What Is The Functionality Of System Table Space? |
|
Answer» To manage the database level TRANSACTIONS such as MODIFICATIONS of the DATA dictionary table that record information about the FREE space usage. To manage the database level transactions such as modifications of the data dictionary table that record information about the free space usage. |
|
| 56. |
How Will You Create Multiple Rollback Segments In A Database? |
|
Answer» - Create a database, which implicitly creates a SYSTEM ROLLBACK segment in a SYSTEM tablespace. - Create a database, which implicitly creates a SYSTEM rollback segment in a SYSTEM tablespace. |
|
| 57. |
How The Space Utilization Takes Place Within Rollback Segments? |
|
Answer» 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 (number of extents is BASED on the optimal size) 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 (number of extents is based on the optimal size) |
|
| 58. |
Why Query Fails Sometimes? |
|
Answer» ROLLBACK segment dynamically extent to HANDLE larger transactions entry loads. Rollback segment dynamically extent to handle larger transactions entry loads. |
|
| 59. |
How Will You Monitor The Space Allocation? |
|
Answer» By QUERYING DBA_SEGMENT table/view By querying DBA_SEGMENT table/view |
|
| 60. |
How Can We Plan Storage For Very Large Tables? |
| Answer» | |
| 61. |
It Is Possible To Use Raw Devices As Data Files And What Are The Advantages Over File System Files? |
|
Answer» The ADVANTAGES over file system files are that I/O will be IMPROVED because Oracle is bye-passing the kernel which WRITING into disk. Disk CORRUPTION will be very less. The advantages over file system files are that I/O will be improved because Oracle is bye-passing the kernel which writing into disk. Disk corruption will be very less. |
|
| 62. |
How To Implement The Multiple Control Files For An Existing Database? |
|
Answer» SHUTDOWN the database Shutdown the database |
|
| 63. |
What Is Redo Log File Mirroring? How Can Be Achieved? |
|
Answer» PROCESS of having a copy of redo log files is called MIRRORING. Process of having a copy of redo log files is called mirroring. |
|
| 64. |
What Is Advantage Of Having Disk Shadowing / Mirroring? |
|
Answer» Shadow set of disks save as a BACKUP in the event of disk failure. In most operating systems 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. Shadow set of disks save as a backup in the event of disk failure. In most operating systems 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. |
|
| 65. |
What Is Use Of Rollback Segments In Oracle Database? |
|
Answer» They allow the database to MAINTAIN READ CONSISTENCY between multiple TRANSACTIONS. They allow the database to maintain read consistency between multiple transactions. |
|
| 66. |
What Is A Rollback Segment Entry? |
|
Answer» It is the SET of before image data blocks that contain rows that are modified by a TRANSACTION. It is the set of before image data blocks that contain rows that are modified by a transaction. |
|
| 67. |
What Is Hit Ratio? |
|
Answer» It is a measure of well the data cache buffer is handling REQUESTS for data. It is a measure of well the data cache buffer is handling requests for data. |
|
| 68. |
When Will Be A Segment Released? |
|
Answer» When Segment is DROPPED. When Segment is dropped. |
|
| 69. |
What Are Disadvantages Of Having Raw Devices? |
|
Answer» We should depend on export/import utility for backup/recovery (FULLY reliable) We should depend on export/import utility for backup/recovery (fully reliable) |
|
| 70. |
List The Factors That Can Affect The Accuracy Of The Estimations? |
|
Answer» - The space used transaction entries and DELETED records, does not BECOME free immediately after completion due to delayed cleanout. - The space used transaction entries and deleted records, does not become free immediately after completion due to delayed cleanout. |
|
| 71. |
What Is User Account In Oracle Database? |
|
Answer» A USER account is not a physical STRUCTURE in database but it is having important relationship to the objects in the database and will be having certain PRIVILEGES. A user account is not a physical structure in database but it is having important relationship to the objects in the database and will be having certain privileges. |
|
| 72. |
How Will You Enforce Security Using Stored Procedures? |
|
Answer» Don’t grant user ACCESS DIRECTLY to tables within the application. Don’t grant user access directly to tables within the application. |
|
| 73. |
What Are The Dictionary Tables Used To Monitor A Database Space? |
|
Answer» DBA_FREE_SPACE DBA_FREE_SPACE |
|
| 74. |
What Are The Types Of Sql Statement? |
|
Answer» Data Definition LANGUAGE: CREATE, ALTER, DROP, TRUNCATE, REVOKE, NO AUDIT & COMMIT. Transactional CONTROL: COMMIT & ROLLBACK. Session Control: ALTERSESSION & SET ROLE. SYSTEM Control: ALTER SYSTEM. Data Definition Language: CREATE, ALTER, DROP, TRUNCATE, REVOKE, NO AUDIT & COMMIT. Transactional Control: COMMIT & ROLLBACK. Session Control: ALTERSESSION & SET ROLE. System Control: ALTER SYSTEM. |
|
| 75. |
What Is Difference Between Truncate & Delete? |
|
Answer» TRUNCATE commits after DELETING entire table i.e., cannot be rolled back. TRUNCATE commits after deleting entire table i.e., cannot be rolled back. |
|
| 76. |
What Is A Join? Explain The Different Types Of Joins? |
|
Answer» Join is a query, which retrieves RELATED columns or rows from multiple tables. Self Join – Joining the table with itself. Equi Join – Joining TWO tables by EQUATING two common columns. Non-Equi Join – Joining two tables by equating two common columns. Outer Join – Joining two tables in such a way that query can also retrieve rows that do not have CORRESPONDING join VALUE in the other table. Join is a query, which retrieves related columns or rows from multiple tables. Self Join – Joining the table with itself. Equi Join – Joining two tables by equating two common columns. Non-Equi Join – Joining two tables by equating two common columns. Outer Join – Joining two tables in such a way that query can also retrieve rows that do not have corresponding join value in the other table. |
|
| 77. |
What Is The Sub-query? |
|
Answer» Sub-query is a query WHOSE RETURN VALUES are used in filtering conditions of the main query. Sub-query is a query whose return values are used in filtering conditions of the main query. |
|
| 78. |
What Is Correlated Sub-query? |
|
Answer» CORRELATED sub-QUERY is a sub-query, which has REFERENCE to the MAIN query. Correlated sub-query is a sub-query, which has reference to the main query. |
|
| 79. |
Explain Connect By Prior? |
|
Answer» RETRIEVES ROWS in HIERARCHICAL order EG: select EMPNO, ename from emp where. Retrieves rows in hierarchical order eg: select empno, ename from emp where. |
|
| 80. |
Difference Between Substr And Instr? |
|
Answer» INSTR (STRING1, String2 (n, (m)), SUBSTR (String1 n, m) INSTR (String1, String2 (n, (m)), SUBSTR (String1 n, m) |
|
| 81. |
Explain Union, Minus, Union All And Intersect? |
|
Answer» INTERSECT - returns all distinct rows SELECTED by both queries. INTERSECT - returns all distinct rows selected by both queries. |
|
| 82. |
What Is An Integrity Constraint? |
|
Answer» INTEGRITY CONSTRAINT is a rule that restricts values to a COLUMN in a table. Integrity constraint is a rule that restricts values to a column in a table. |
|
| 83. |
What Is Referential Integrity Constraint? |
|
Answer» MAINTAINING DATA INTEGRITY through a set of rules that restrict the VALUES of one or more columns of the tables based on the values of primary key or unique key of the REFERENCED table. Maintaining data integrity through a set of rules that restrict the values of one or more columns of the tables based on the values of primary key or unique key of the referenced table. |
|
| 84. |
What Is The Usage Of Savepoints? |
|
Answer» SAVEPOINTS are used to SUBDIVIDE a transaction into SMALLER parts. It enables rolling back part of a transaction. Maximum of five save points are ALLOWED. SAVEPOINTS are used to subdivide a transaction into smaller parts. It enables rolling back part of a transaction. Maximum of five save points are allowed. |
|
| 85. |
What Is On Delete Cascade? |
|
Answer» When ON DELETE CASCADE is SPECIFIED Oracle maintains referential integrity by automatically removing DEPENDENT foreign key values if a referenced primary or unique key value is REMOVED. When ON DELETE CASCADE is specified Oracle maintains referential integrity by automatically removing dependent foreign key values if a referenced primary or unique key value is removed. |
|
| 86. |
What Are The Data Types Allowed In A Table? |
|
Answer» CHAR, VARCHAR2, NUMBER, DATE, RAW, LONG and LONG RAW. CHAR, VARCHAR2, NUMBER, DATE, RAW, LONG and LONG RAW. |
|
| 87. |
What Is Difference Between Char And Varchar2? What Is The Maximum Size Allowed For Each Type? |
| Answer» | |
| 88. |
How Many Long Columns Are Allowed In A Table? Is It Possible To Use Long Columns In Where Clause Or Order By? |
|
Answer» Only ONE LONG COLUMN is allowed. It is not POSSIBLE to USE LONG column in WHERE or ORDER BY clause. Only one LONG column is allowed. It is not possible to use LONG column in WHERE or ORDER BY clause. |
|
| 89. |
What Are The Pre-requisites To Modify Datatype Of A Column And To Add A Column With Not Null Constraint? |
|
Answer» - To MODIFY the datatype of a column the column MUST be EMPTY. - To modify the datatype of a column the column must be empty. |
|
| 90. |
Where The Integrity Constraints Are Stored In Data Dictionary? |
|
Answer» The INTEGRITY CONSTRAINTS are STORED in USER_CONSTRAINTS. The integrity constraints are stored in USER_CONSTRAINTS. |
|
| 91. |
How Will You Activate/deactivate Integrity Constraints? |
|
Answer» The INTEGRITY CONSTRAINTS can be enabled or disabled by ALTER TABLE ENABLE CONSTRAINT / DISABLE CONSTRAINT. The integrity constraints can be enabled or disabled by ALTER TABLE ENABLE CONSTRAINT / DISABLE CONSTRAINT. |
|
| 92. |
If Unique Key Constraint On Date Column Is Created, Will It Validate The Rows That Are Inserted With Sysdate? |
|
Answer» It won’t, Because SYSDATE FORMAT CONTAINS TIME ATTACHED with it. It won’t, Because SYSDATE format contains time attached with it. |
|
| 93. |
What Is A Database Link? |
|
Answer» DATABASE link is a named PATH through which a REMOTE database can be accessed. Database link is a named path through which a remote database can be accessed. |
|
| 94. |
How To Access The Current Value And Next Value From A Sequence? Is It Possible To Access The Current Value In A Session Before Accessing Next Value? |
|
Answer» Sequence NAME CURRVAL, sequence name NEXTVAL. It is not possible. Only if you ACCESS next VALUE in the session, CURRENT value can be accessed. Sequence name CURRVAL, sequence name NEXTVAL. It is not possible. Only if you access next value in the session, current value can be accessed. |
|
| 95. |
What Is Cycle/no Cycle In A Sequence? |
|
Answer» CYCLE specifies that the sequence continue to generate values after reaching EITHER MAXIMUM or minimum value. After pan-ascending sequence reaches its maximum value, it GENERATES its minimum value. After a descending sequence reaches its minimum, it generates its maximum. NO CYCLE specifies that the sequence cannot generate more values after reaching its maximum or minimum value. CYCLE specifies that the sequence continue to generate values after reaching either maximum or minimum value. After pan-ascending sequence reaches its maximum value, it generates its minimum value. After a descending sequence reaches its minimum, it generates its maximum. NO CYCLE specifies that the sequence cannot generate more values after reaching its maximum or minimum value. |
|
| 96. |
What Are The Advantages Of View? |
|
Answer» - To protect some of the COLUMNS of a table from other users. - To protect some of the columns of a table from other users. |
|
| 97. |
Can A View Be Updated/inserted/deleted? If Yes - Under What Conditions? |
|
Answer» A VIEW can be updated/deleted/inserted if it has only ONE base table if the view is based on columns from one or more tables then insert, UPDATE and delete is not POSSIBLE. A View can be updated/deleted/inserted if it has only one base table if the view is based on columns from one or more tables then insert, update and delete is not possible. |
|
| 98. |
If A View On A Single Base Table Is Manipulated Will The Changes Be Reflected On The Base Table? |
|
Answer» If changes are MADE to the TABLES and these tables are the base tables of a view, then the changes will be REFERENCE on the view. If changes are made to the tables and these tables are the base tables of a view, then the changes will be reference on the view. |
|