ORA-02043: must end current transaction before executing string
Cause: a transaction is in progress and one of the following commands commands is issued: COMMIT FORCE, ROLLBACK FORCE, or ALTER SYSTEM ENABLE DISTRIBUTED RECOVERY in single process mode.
Action: COMMIT or ROLLBACK the current transaction and resubmit command.
ORA-02043 错误是Oracle数据库的一种常见的错误。这是由于当前正在执行的事务还没有结束,但是尝试去执行Database指令时,就会产生这个错误。
ORA-02043: must end current transaction before executing string
Cause: An attempt was made to execute a statement without first completing the current transaction.
例如,当你正在执行 UPDATE命令,但是你还没有用 COMMIT or ROLLBACK 来显示地结束当前事务,并且马上去执行另外一个 DATABASE指令,就会遇到这个错误。
首先,应该明确你正在执行哪条指令,你是否正在处理一个活动的事务,你是否运行COMMIT or ROLLBACK来结束这个事务。 如果你判定是处于活动的事务中,那么你必须用COMMIT 或者ROLLBACK 来结束,然后再运行另一条指令。