ORA-02074: cannot string in a distributed transaction
Cause:  A commit or rollback was attempted from session
        other than the parent of a distributed transaction.Action: Only commit or rollback from the parent session 已经说的很明白了,只能在主会话中提交或回滚事务,或者启用
自治的事务.
PRAGMA AUTONOMOUS_TRANSACTION