补偿框架就位后,发生错误时,成功的事务会被保留,这样会维持一致的数据库。
With a compensation framework in place, when an error occurs the successful transactions are reversed, resulting in a consistent database.
当发生数据毁坏事故,例如软件故障、硬件故障、错误的应用程序逻辑和用户错误后,可以使用这些备份将数据库恢复到适当的状态。
These backups can be used to restore databases to their proper state after data corruption events, such as software failures, hardware failures, bad application logic, and user errors.
如果在获取对象之后关闭Hibernate会话和相关联的数据库连接,在访问关联之前没有恢复,那么就会发生这种错误。
This error can occur if the Hibernate session and associated database connection is closed after the object was retrieved, but before the association was accessed.
为了促使一个锁定超时错误发生,我们首先建立一个数据库连接,并执行一些sql语句来模拟表employee上的真实事务。
To force a lock timeout error, establish a first database connection and execute some SQL statements simulating a real transaction on the table employee.
在选择同步还是异步写日志时,要考虑的一个重要因素就是当数据库管理器发生错误时情况会怎样。
An important factor to take into account when selecting between synchronous or asynchronous log writing is what happens when a database manager error occurs.
在发生错误的情况下,该事务可以通过回滚使数据库恢复到更改前的状态,并将MQ消息发送回输入队列中。
In case of errors the transaction can be rolled back leaving the database unchanged and the MQ message is sent back to the input queue.
如果在创建、更新或者删除一个实体bean时发生错误,那么可以还原到数据库的前一状态并且通知用户存在问题。
If an error occurs while creating, updating, or deleting an entity bean, the previous state of the database can be restored, and the user can be notified that there was a problem.
当用户错误发生时,无论是由于应用程序逻辑或手动操作的错误,在数据库中的数据都会不正确的被更改或删除。
User errors occur when, either due to an error in application logic or a manual mistake, data in a database is changed or deleted incorrectly.
他已经将数据库恢复到发生错误的应用程序逻辑之前的状态。
He has restored the database to the state before the bad application logic occurred. Erik verifies this by using data Studio Administrator to check the table row counts as follows.
他已经将数据库恢复到发生错误的应用程序逻辑之前的状态。
He has restored the database to the state before the bad application logic occurred. Erik verifies this by using data Studio Administrator to check the table row counts as follows.
应用推荐