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

Iam learning oracle developer 2000.. can anyone give me then tutorials sites or PDF related to developer 2000 please send me the details @ mak2786@gmail.com thanks Arun

1661


What is a package in oracle?

562


How do I start tns listener?

538


How can I create database in oracle?

565


How to retrieve data from an explicit cursor?

557






What is a package ? What are the advantages of package ?

599


How do I limit the number of rows returned by an oracle query after ordering?

627


Does oracle partitioning improve performance?

548


Compare and contrast between sql and sql server and explain its various functions?

527


Is insert autocommit in oracle?

601


What is save point in oracle database?

725


How to delete multiple rows from a table in oracle?

561


What is the effect of setting the value "all_rows" for optimizer_goal parameter of the alter session command? What are the factors that affect optimizer in choosing an optimization approach?

520


How will you identify oracle database software release?

525


How to set a transaction to be read only in oracle?

578