Statement-Level Rollback Resumable Space Allocation【每日一译】--2012-11-05

If at any time during execution a SQL statement causes an error, all effects of the
statement are rolled back. The effect of the rollback is as if that statement had never

been run. This operation is a statement-level rollback.

如果在任何时间执行一个SQL语句导致一个错误,所有此语句的影响将回滚。回滚的影响

也意味着它从来没有被执行。这个操作是语句级别的回滚。

Errors discovered during SQL statement execution cause statement-level rollbacks. An
example of such an error is attempting to insert a duplicate value in a primary key.
Single SQL statements involved in a deadlock (competition for the same data) can also
cause a statement-level rollback. Errors discovered during SQL statement parsing,
such as a syntax error, have not yet been run, so they do not cause a statement-level

rollback.

在SQL执行时发现错误导致语句级别的回滚。一个列子比如一个错误是试图插入一个重复值

到一个主键。单独的SQL语句引起的死锁(相同数据的竞争)也可以导致语句级别的回滚。

错误发现在SQL语句解析,比如语法错误,没有被执行,所以它们没有导致一个语句级别的回滚。

A SQL statement that fails causes the loss only of any work it would have performed
itself. It does not cause the loss of any work that preceded it in the current transaction. If the
statement is a DDL statement, then the implicit commit that immediately preceded it is

not undone.

一个SQL语句失败导致的丢失仅对于它自已完成的任何工作。它不会导致任何工作的丢失在当前

的事务之前。如果这个语句是一个DDL语句,隐式提交将迅速的在这个回滚之前。

Note: Users cannot directly refer to implicit savepoints in rollback
statements

备注:用户不能直接干预隐式保存点在回滚语句。

Resumable Space Allocation
Oracle provides a means for suspending, and later resuming, the execution of large
database operations in the event of space allocation failures. This enables an
administrator to take corrective action, instead of the Oracle database server returning
an error to the user. After the error condition is corrected, the suspended operation
automatically resumes.

可恢复式的空间分配

ORACLE 提供了一个对于延期和稍后恢复的方法,对于大数据库操作执行在空间分配时

的错误事件中。它允许管理员去调整操作来代替数据库返回一个错误给用户。当错误的条件

正确后,延期的操作将自动恢复。

A statement runs in a resumable mode only when the client explicitly enables
resumable semantics for the session using the ALTER SESSION statement.
Resumable space allocation is suspended when one of the following conditions occur:

一个语句运行在一个可恢复模式仅当客户端显式允许可恢复的语义对用会话使用ALTER SESSION

语句。可恢复的空间分配会延期当下面几种条件发生时:

■ Out of space condition
■ Maximum extents reached condition
■ Space quota exceeded condition

#超出空间条件

#达到最大的区块

#空间配额超出

For nonresumable space allocation, these conditions result in errors and the statement
is rolled back.

对于不可恢复的空间分配,这些条件导致的错误并且执行的语句将回滚。
Suspending a statement automatically results in suspending the transaction. Thus all
transactional resources are held through a statement suspend and resume.

自动的延迟语句导致事务的延期。那样所有的事务资源被保留的通过一个语句延迟和恢复。
When the error condition disappears (for example, as a result of user intervention or
perhaps sort space released by other queries), the suspended statement automatically
resumes execution.

当错误条件消失时(比如,一个用户的干预或者可能排序空间释放被其它的查询),延期语句将

自动恢复执行。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
资源包主要包含以下内容: ASP项目源码:每个资源包中都包含完整的ASP项目源码,这些源码采用了经典的ASP技术开发,结构清晰、注释详细,帮助用户轻松理解整个项目的逻辑和实现方式。通过这些源码,用户可以学习到ASP的基本语法、服务器端脚本编写方法、数据库操作、用户权限管理等关键技术。 数据库设计文件:为了方便用户更好地理解系统的后台逻辑,每个项目中都附带了完整的数据库设计文件。这些文件通常包括数据库结构图、数据表设计文档,以及示例数据SQL脚本。用户可以通过这些文件快速搭建项目所需的数据库环境,并了解各个数据表之间的关系和作用。 详细的开发文档:每个资源包都附有详细的开发文档,文档内容包括项目背景介绍、功能模块说明、系统流程图、用户界面设计以及关键代码解析等。这些文档为用户提供了深入的学习材料,使得即便是从零开始的开发者也能逐步掌握项目开发的全过程。 项目演示与使用指南:为帮助用户更好地理解和使用这些ASP项目,每个资源包中都包含项目的演示文件和使用指南。演示文件通常以视频或图文形式展示项目的主要功能和操作流程,使用指南则详细说明了如何配置开发环境、部署项目以及常见问题的解决方法。 毕业设计参考:对于正在准备毕业设计的学生来说,这些资源包是绝佳的参考材料。每个项目不仅功能完善、结构清晰,还符合常见的毕业设计要求和标准。通过这些项目,学生可以学习到如何从零开始构建一个完整的Web系统,并积累丰富的项目经验。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值