教学文章
Technology Exchange
400电话

免费咨询热线
400-090-9964

教学文章

Oracle 19c OCP 认证考试 082 题库(第26题)- 2024年修正版

时间:2024-09-25 来源:

【优技教育】Oracle 19c OCP 082题库(Q 26题)- 2024年修正版

考试科目:1Z0-082

考试题量:90

通过分数:60%

考试时间:150min

本文为(CUUG 原创)整理并解析,转发请注明出处,禁止抄袭及未经注明出处的转载。

原文地址:http://www.cuug.com/index.php?s=/home/article/detail/id/3412.html

第26题:

Q 26、

Choose two.

Which two are true about global temporary tables?

    A) Backup and recovery operations are available for these tables.

    B) Their data is always stored in the default temporary tablespace of the user who created them.

    C) If the ON COMMIT clause is transaction specific, all rows in the table are deleted after each COMMIT or ROLLBACK.

    D) Indexes can be created on them.

    E) They can be created only by a user with the DBA role, but can be accessed by all users who can create a session,

    F) If the ON COMMIT clause is session specific, the table is dropped when the session is terminated.

Answer:CD

(解析:有关临时表的考点出现比较多。不管是基于那种级别,临时表是不会因为会话结束而被删除,数据会被删除,但是保留表结构。以下是临时表的特点:

1. 创建 SQL 语句

    CREATE GLOBAL TEMPORARY TABLE tablename (columns) [ ON COMMIT PRESERVE | DELETE ROWS ]

    SQL> create global temporary table emp_temp(eno number) on commit delete rows;

    -- transaction level duration,事务级别,此为默认选项

    SQL> create global temporary table emp_temp(eno number) on commit preserve rows;

    -- session level duration,会话级别

2. 隔离性:

    数据只在会话或者事务级别可见。不同用户可以使用同一个临时表,但是看到的都是各自的数据。

3. 表上可以创建索引、视图、触发器等对象。

4. 索引只有在临时表是 empty 时可创建。

5. 临时表不产生数据的 redo,但是会生成 undo 的 redo。

6. 临时表目前只支持 GLOBAL 的,所以创建语句为 create global temporary table XXX。

7. 使用 truncate 只对当前会话有效。

8. 不能 export/import 表上的数据,只能导入导出表定义。

9. 临时段在第一次 insert 或 CATS 时产生。


Oracle 19c OCP认证需要到Oracle指定的WDP机构,有了培训记录之后才能考试,考试需要考2科,分别是082(60%及格)和083(57%及格),两科都通过之后才能拿到证书。证书如下:


CUUG是甲骨文的金牌WDP合作机构,30多年品牌,培养了数万名数据库人才。想快速通过19c OCP考试的同学可以扫码联系老师咨询。