【優技教育】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考試的同學可以掃碼聯系老師咨詢。