troubleshooting Question

Oracle error: ORA-01086: savepoint START_TRANSACTION never established

Avatar of AidenA
AidenA asked on
Oracle DatabaseASP.NETSQL
4 Comments1 Solution5445 ViewsLast Modified:
Hi, I'm getting the above error when I run a transaction. I've traced the error to the below queries. So, it seems that if I raise an error before the following queries run, then the rollback succeeds without any problem. However, if I raise an error after the first 'ALTER TRIGGER...' statement then I get the above error (ORA-01086) and the rollback cannot complete. Obviously the alter trigger (or execute immediate?) statement is preventing Oracle from being able to do a rollback.

So, my question is, what's going on here exactly, and how can I fix it?

Thanks, Aiden


EXECUTE IMMEDIATE 'ALTER TRIGGER ctc_table_trig DISABLE';

DELETE FROM CTC_Table;

EXECUTE IMMEDIATE 'ALTER TRIGGER ctc_table_trig ENABLE';
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros