Data Access Interview Preparation Guide
Download PDF
Add New Question

Data Access Frequently Asked Questions in various Oracle Data Access Interviews asked by the interviewer. So learn Data Access with the help of this Oracle Data Access Interview questions and answers guide and feel free to comment as your suggestions, questions and answers on any Oracle Data Access Interview Question or answer by the comment feature available on the page.

18 Oracle Data Access Questions and Answers:

1 :: Explain Can we delete tuples in a table based on date column? And how?

Use this SQL query :delete from student_tab A where ROWID > ( select min(ROWID) from student_tab B where A.roll_number = B.roll_number);Note : Table Name = student_tab Key to table = roll_number

Yes ,, we can delete entries from a table based on the date column,,Only we have to mention the date format or other wise we'll have to make use of the sys date.
Post Your Answer

2 :: Explain What is the effect of setting the value "ALL_ROWS" for OPTIMIZER_GOAL parameter of the ALTER SESSION command?

This value causes the optimizer to the cost-based approach for all SQL statements in the session regardless of the presence of statistics and to optimize with a goal of best throughput.
Post Your Answer

3 :: Explain What is Read-Only Transaction?

A Read-Only transaction ensures that the results of each query executed in the transaction are consistant with respect to the same point in time.
Post Your Answer

4 :: Explain What is Execution Plan?

The combination of the steps the optimizer chooses to execute a statement is called an execution plan.
Post Your Answer

5 :: Explain What is SAVE POINT?

For long transactions that contain many SQL statements, intermediate markers or savepoints can be declared which can be used to divide a transaction into smaller parts. This allows the option of later rolling back all work performed from the current point in the transaction to a declared savepoint within the transaction.
Post Your Answer

6 :: Explain What is the effect of setting the value "CHOOSE" for OPTIMIZER_GOAL, parameter of the ALTER SESSION Command?

The Optimizer chooses Cost_based approach and optimizes with the goal of best throughput if statistics for atleast one of the tables accessed by the SQL statement exist in the data dictionary. Otherwise the OPTIMIZER chooses RULE_based approach.
Post Your Answer

7 :: What is RULE-based approach to optimization?

Choosing an executing planbased on the access paths available and the ranks of these access paths.
Post Your Answer

8 :: Explain Transaction?

A Transaction is a logical unit of work that comprises one or more SQL statements executed by a single user.
Post Your Answer

9 :: Explain What does COMMIT do?

COMMIT makes permanent the changes resulting from all SQL statements in the transaction. The changes made by the SQL statements of a transaction become visible to other user sessions transactions that start only after transaction is committed.
Post Your Answer

10 :: Explain What is the function of Optimizer?

The goal of the optimizer is to choose the most efficient way to execute a SQL statement.
Post Your Answer
Add New Question