Can you use a commit statement within a database trigger?

Answers were Sorted based on User's Feedback



Can you use a commit statement within a database trigger?..

Answer / charan

Hi this is charan...
Actually Not allowed TCL commands in trigger...but it is possible we are not use directly these commands...to over come this problem oracle introduced one concept is called "Autonomous Transactions" .through autonomous transaction we are using tcl commands in Trigger concept....This is according to my knowledge

Is This Answer Correct ?    2 Yes 1 No

Can you use a commit statement within a database trigger?..

Answer / karthik

yes, by autonomous transaction we can use commit.

Is This Answer Correct ?    1 Yes 0 No

Can you use a commit statement within a database trigger?..

Answer / vaibhav

No

Is This Answer Correct ?    2 Yes 2 No

Can you use a commit statement within a database trigger?..

Answer / usingh

Yes, using AUTONOMOUS_TRANSACTION Pragma you can COMMIT and ROLLBACK.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Oracle General Interview Questions

Explain cascading triggers.

0 Answers  


Explain what are the characteristics of data files?

0 Answers  


What is data file?

0 Answers  


What privilege is needed for a user to query tables in another schema?

0 Answers  


What is the purpose of init.ora. ? how many init.ora exist in oracle installation? suppose there are 3 database on one oracle server, how many init.ora do I have? what are various database objects? how will you identify memmory related performace issue in oralce? any idea about basic architure difference of oracle and db2? comment on which is better , with reasons? what is a fuction based index? is it recommended to use the same. ? what is global temporay table? what is teh signification of the parameter session_cached_cursor ?

1 Answers   HDFC,


How do I manually uninstall oracle client?

0 Answers  


what is RAID technology?which is better RAID 0+1 OR RAID 5?

2 Answers   CSC,


Explain table?

0 Answers  


primary key is foreign key for the same table?

2 Answers   Oracle,


Explain the family trees and connection by clause

0 Answers  


5. Display full details from the ORDER_LINE table where the item number is (first condition) between 1 and 200 (no > or < operators) OR the item number is greater than 1000 AND (second condition) the item cost is not in the list 1000, 2000, 3000 OR the order number is not equal to 1000.

3 Answers   Wipro,


How to commit the current transaction in oracle?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)