You want execution of large database operations to suspend, and then resume, in the event of space allocation failures.

You set the value of the initialization parameter RESUMABLE_TIMEOUT to 3600.

Which two statements are true?

A.Before a statement executes in resumable mode, the ALTER SESSION ENABLE RESUMABLE statement must be issued in its session

B.Data Manipulation Language (DML) operations are resumable, provided that they are not embedded in a PL/SQL block.

C.A resumable statement can be suspended and resumed only once during execution.

D.A suspended statement will report an error if no corrective action has taken place during a timeout period.

E. Suspending a statement automatically results in suspending a transaction and releasing all the resources held by the transaction.

Answer: AD

【解析】

可恢复空间分配的工作方式为:

仅当通过以下操作之一为语句的会话启用了可恢复空间分配时,该语句才以可恢复模式执行:

该ALTER SESSION ENABLE RESUMABLE声明是在语句执行前的会议时发出的RESUMABLE_TIMEOUT初始化参数设置为非零值。

该ALTER SESSION ENABLE RESUMABLE TIMEOUT timeout_value语句在执行之前在会话中发出,并且timeout_value是非零值。

当出现以下情况之一时,可恢复语句被挂起(这些条件导致非可恢复语句被发出相应的错误信号):

空间不足

达到最大范围的条件

超出空间配额条件。

当中止可恢复语句的执行时,有一些机制可以执行用户提供的操作,记录错误以及查询语句执行的状态。暂停可恢复语句后,将执行以下操作:

该错误在警报日志中报告。

系统发出“可恢复的会话已挂起”警报。

如果用户在AFTER SUSPEND系统事件上注册了触发器,则将执行用户触发器。用户提供的PL / SQL过程可以使用DBMS_RESUMABLE包和DBA_或USER_RESUMABLE视图访问错误消息数据。

挂起语句会自动导致挂起事务。因此,所有事务资源都通过语句中止和恢复来保留。

解决错误情况后(例如,由于用户干预或其他查询释放的排序空间),被挂起的语句将自动恢复执行,并清除“可恢复的会话被挂起”警报。

可以使用该DBMS_RESUMABLE.ABORT()过程强制执行已暂停的语句引发异常。DBA或发出该语句的用户可以调用此过程。

由RESUMABLE_TIMEOUT初始化参数或ALTER SESSION ENABLE RESUMABLE TIMEOUT语句中的超时值指定的暂停超时间隔与可恢复语句相关联。如果在超时间隔内未解决错误条件,则会暂停在超时间隔内暂停的可恢复语句,并将异常返回给用户。

可恢复语句可以在执行期间被挂起和恢复多次。

【官方手册】

https://docs.oracle.com/en/database/oracle/oracle-database/19/admin/managing-space-for-schema-objects.html#GUID-46AE3FD8-95D4-4CFA-9F3C-B80C5AFDE75B

1z0-062 题库解析6的更多相关文章

  1. 【OCP|052】OCP最新题库解析(052)--小麦苗解答版

    [OCP|052]OCP最新题库解析(052)--小麦苗解答版 OCP最新题库解析历史连接(052):http://mp.weixin.qq.com/s/bUgn4-uciSndji_pUbLZfA ...

  2. OCP考试062题库出现大量新题-19

    choose three Which three statements are true about Oracle Data Pump? A) Oracle Data Pump export and ...

  3. OCP 12c考试题,062题库出现大量新题-第20道

    choose three Your database is configured for ARCHIVELOG mode, and a daily full database backup is ta ...

  4. OCP考试062题库出现大量新题-18

    choose two Examine this command executed on a client that is remote from the database server. SQL> ...

  5. 【2019】OCP 12c 062题库更新大量新题-7

    7.daily_ords_lst is created in locally managed tablespace ORDERS_TBS which uses automatic segment sp ...

  6. 【新题】OCP 062题库出现很多新题-6

    6.Which four statements are true about database instance behavior? A) Redo log files can be renamed ...

  7. OCP 12c 062题库大更新,出现大量新题-5

    5.One of your databases supports an OLTP workload. The default undo tablespace is fixed size with: 1 ...

  8. 1z0-062 题库解析5

    题目: Which three statements are true about Flashback Database? A. Flashback logs are written sequenti ...

  9. 1z0-062 题库解析4

    题目: Examine this parameter: NAME                     TYPE          VALUE ------------------------ -- ...

  10. 1z0-062 题库解析3

    The hr user executes the following query on the employees table but does not issue commit, rollback, ...

随机推荐

  1. 第一种方式:cookie的优化与购物车实例

    一 Cookie 的优化 1.1 一般而言,我们设置cookie是在php中设置 例如: <?php setcookie('testKey1','hello world',0,'/'); //# ...

  2. [转]在ASP.NET WebAPI 中使用缓存【Redis】

    初步看了下CacheCow与OutputCache,感觉还是CacheOutput比较符合自己的要求,使用也很简单 PM>Install-Package Strathweb.CacheOutpu ...

  3. InetlliJ IDEA的快捷键及各种配置

    在IDEA中新建Maven工程,之后再新建一个Maven模块,此时在模块中的src/main/java中右键新建Java文件时,发现只能新建普通文件,不能新建Java类了,怎么回事,和eclipse的 ...

  4. P1091 剧院广场

    题目描述 柏林首都的剧院广场呈长方形,面积为 \(n \times m\) 平方米.在这座城市的周年纪念日之际,人们决定用方形花岗岩石板铺设广场.每块石板的大小都是 \(a \times a\) . ...

  5. 洛谷4139 bzoj 3884 上帝与集合的正确用法

    传送门 •题意 求$2^{2^{2^{2^{2^{2^{...^{2}}}}}}}$ (无穷个2) 对p取模的值 •思路 设答案为f(p) $2^{2^{2^{2^{2^{2^{...^{2}}}}} ...

  6. Javascript中数组方法reduce的妙用之处

    Javascript数组方法中,相比map.filter.forEach等常用的迭代方法,reduce常常被我们所忽略,今天一起来探究一下reduce在我们实战开发当中,能有哪些妙用之处,下面从red ...

  7. 两种方法,轻松上手ConfigMap!

    属性配置文件在任何应用程序中都非常重要.它们不仅可以让应用程序具备灵活性,还能够根据文件中配置的值产生不同的功能.实际上,在staging.开发.测试.UAT或生产环境中,我们都使用属性配置文件来驱动 ...

  8. ios设备iframe无法滚动

    在使用IFRAME,你需要使用一个元素(如DIV)来包装他们 <div class="scroll-wrapper"> <iframe src="&qu ...

  9. 安装低版本Microsoft .NET Framework 4.5受阻解决方案

    在VS目标框中找不到Microsoft .NET Framework 4.5,项目出错,安装受阻.... 1.Microsoft .NET Framework 安装了高版本后,低版本通过网上上下载的d ...

  10. 超简单!pytorch入门教程(四):准备图片数据集

    在训练神经网络之前,我们必须有数据,作为资深伸手党,必须知道以下几个数据提供源: 一.CIFAR-10 CIFAR-10图片样本截图 CIFAR-10是多伦多大学提供的图片数据库,图片分辨率压缩至32 ...