can you write commit in triggers?

Answer Posted / sudhir

by default Trigger doesnt allow a commit;

however we can create a stored procedure which will only do
commit.

create or replace procedure to_commit_trigger
begin
commit();

end to_commit_trigger


now execute this stored procedure to_commit_trigger inside a
trigger to perform a commit. However it will cause serious
performance issues.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get execution path reports on query statements?

566


What is recovery manager(rman) backup in Oracle?

629


How view is different from a table?

557


State the difference along with examples between Oracle 9i, Oracle 10g and Oracle 11i.

609


6. Display the client name and order date for all orders using the traditional method.

1751






What is instant client oracle?

543


How to pass parameters to procedures?

555


What is the exact use of Collections?

1682


What is a directory object?

591


What is Undo Management Advisor in Oracle?

613


Where are the settings stored for each instance in oracle?

625


How to retrieve data from an explicit cursor?

559


How to commit the current transaction in oracle?

578


20. Using a set operator, display the client number of all clients who have never placed an order.

1800


Assuming today is Monday, how would you use the DBMS_JOB package to schedule the execution of a given procedure owned by SCOTT to start Wednesday at 9AM and to run subsequently every other day at 2AM.

1504