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 connect to a local oracle 10g xe server?

729


Give the advantages and disadvantages of clusters.

787


What are the differences between number and binary_float in oracle?

831


Query to retrieve record for a many to many relationship ?

2291


How to start your 10g xe server?

784


What is meant by joins? List out the types of joins.

720


How do I spool to a csv formatted file using sqlplus?

719


How to invoke the data pump export utility?

786


How to export data to a csv file?

848


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

1720


Differentiate between function and procedure in oracle.

779


What do you mean by merge in oracle?

762


Which dictionary view(s) would you first look at to understand or get a high-level idea of a given Advanced Replication environment?

1686


How to upsert (update or insert into a table)?

745


What privilege is needed for a user to create tables in oracle?

750