Explain how to start a new transaction in Oracle.

Explain how to start a new transaction in Oracle.

An oracle transaction is a set of SQL statements written to perform a task. A transaction begins with the first SQL statement and ends when COMMITTED or ROLLED BACK.

Example:
update emp_salary
     set salary = salary + 1500
where
     employee_no = 145';
commit;

Explain how to start a new transaction in Oracle.

Oracle server implicitly starts a new transaction with the following two conditions:

- The first executable statement of a new user session automatically starts a new transaction.
- After a transaction has ended, the next executable statement then starts a new transaction.

There is no SQL statement to explicitly start a new transaction.
Explain how to end the current transaction in Oracle
Explain how to end the current transaction in Oracle - ...
Explain how oracle optimizer works
The optimization is determining the most efficient way to execute a SQL statement after considering the factors related to the objects referenced and the conditions specified in the query...
Optimization methods, i.e. cost-based approach and role-based optimization
Oracle decides how to retrieve the necessary data whenever a valid SQL statement is processed....
Post your comment