QuestionQ49Verified/PL/SQL Language FundamentalsCopy linkReport a problemAsk AstroTutorSave questionReview these statements: Which two statements are true?Choose twoANeither table will have a row inserted and committed.BBoth tables will have a row inserted and committed.CThe transaction for the bank_activity_proc is independent of the bank_transaction_proc.DThe bank_activity_proc will not compile because of the commit.EOnly one table will have a row inserted and committed.Show AnswerAnswerExplanationAn autonomous PL/SQL routine runs in a transaction independent of its caller. The COMMIT in bank_activity_proc commits its bank_activity insert, while the later ROLLBACK reverses the uncommitted bank_transaction insert in the outer transaction. A COMMIT is valid in an autonomous routine. Oracle Database PL/SQL Language Reference — Autonomous TransactionsLearn moreOracle Database PL/SQL Language Reference — Autonomous TransactionsShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion