Oracle.1Z0-052-3

一、源題
QUESTION 74
View the Exhibit. You want to create a tablespace to contain objects with block size 16 KB. But while configuring the storage you find that the block size that you can provide is only 8 KB. Which configuration could have enabled the block selection of 16 KB?

image.png

A. Choosing the extent allocation type to uniform
B. Choosing the Segment Space Management option to manual
C. Setting autoextension on for the data file mentioned for the tablespace
D. Setting the DB_16K_CACHE_SIZE parameter for the database instance to a nonzero value
Correct Answer: D
二、題目翻譯
查看下表。你想創建一個表空間包含16KB塊大小的對象。但是當配置存儲的時候你發現你只能提供8KB塊大小。哪些配置可以讓你選擇使用16KB?
A. 選擇extent分配類型為uniform
B. 選擇段空間管理方式為手動
C. 設置表空間涉及的數據文件為自動擴展
D. 設置數據庫實例參數DB_16K_CACHE_SIZE為非零值

答案:D
三、題目解析

  1. 9i之后可以使用多種塊大小,首先使用一個標準的數據塊,然后最多可以定義4種其他的數據塊,值為2的n次方,范圍是2~32(這里也就5種)
  2. 使用其他塊大小的時候,必須首先設置 db_nk_cache_size 的大小
SQL> show parameter k_cache_size
NAME                                 TYPE        VALUE
db_16k_cache_size                    big integer 0
db_2k_cache_size                     big integer 0
db_32k_cache_size                    big integer 0
db_4k_cache_size                     big integer 0
db_8k_cache_size                     big integer 0

首先應該設置這里對應的值,這里需要注意的是與數據庫塊大小相同的不能設置
create tablespace cache_size datafile 'cache_size_001.dbf' size 16M BLOCKSIZE 16K; --這里的16k必須先設置db_16k_cache_size

  1. 標準數據庫大小用于系統表空間和臨時表空間
  2. 數據塊的內容和參數
    i.塊頭
    存儲數據塊的地址、表目錄、行目錄和事務槽,頭部從上往下增長
    ii.數據區
    位于數據塊的底部,當插入行的時候從下向上增長
    iii.空閑區
    位于中間,最初始是連續的,當刪除和插入后導致碎片化,smon會進行合并空閑區的操作
    5.手工數據塊的管理
    i.插入操作的時候,oracle將保留數據塊15%的空閑空間,為將來的更新做準備
    ii.當空閑區小于15%的時候,oracle將該數據從空閑隊列(freelists)中去掉
    iii.如果刪除或修改造成了數據行的縮小,雖然大于了15%,但是使用的空間大于30,因此還是不能插入
    iv.只有當小于30(pctused),該數據塊才可以重新放入空閑隊列中

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e25494/memory.htm#ADMIN11218

一、源題
QUESTION 75
You are installing Oracle Database 11g on a machine. When you run the installer, the Universal Installer (OUI) shows the message that says one of the product-specific prerequisite checks has failed:

Checking available swap space requirements ... 
Expected result: 1512MB 
Actual Result: 1018MB
Check complete. 
The overall result of this check is: Failed <<<< Problem: The system does not have the required swap space.

What happens to the installation in this situation?
A. It can be continued.
B. It resizes the swap space automatically when you proceed further.
C. It can be continued, but the instance cannot be started without increasing the swap space.
D. It shows a message saying one or more prerequisite checks have failed and the installation cannot proceed.
Correct Answer: A
二、題目翻譯
你正在機器上安裝Oracle Database 11g。當你運行安裝,Universal Installer (OUI)顯示消息一項檢查沒有通過:

Checking available swap space requirements ... 
Expected result: 1512MB 
Actual Result: 1018MB
Check complete. 
The overall result of this check is: Failed <<<< Problem: The system does not have the required swap space.

這種情況下安裝發生了什么問題?
A. 可以繼續安裝
B. 進一步執行會自動調整SWAP空間大小
C. 可以繼續,但是實例不能啟動,如果不增加swap空間
D. 消息顯示一個或多個先決條件檢查失敗,安裝無法繼續進行

答案:A
三、題目解析
1512M是期望值,不是必須達到的值,一般主要達到150M,就可以安裝,選擇A

一、源題
QUESTION 76
Which two statements about the background process of the database writer are true? (Choose two.)
A. It is possible to have multiple database writers in an Oracle instance.
B. It writes dirty buffers, if any, to data files whenever a checkpoint occurs.
C. It writes dirty buffers, if any, to data files whenever a transaction commits.
D. It writes dirty buffers, if any, to data files before the log writer (LGWR) writes.
Correct Answer: AB
二、題目翻譯
哪兩個語句是正確的關于數據庫寫的后臺進程是正確的?(選擇兩個)
A. 可能有多個數據庫寫在一個數據庫實例中
B. 如果發生檢查點時,它會寫臟緩沖區到數據文件
C. 如果發生事務提交,它會寫臟緩沖區到數據文件
D. 在發生LGWR之前,它會寫臟緩沖區到數據文件

答案:AB
三、題目解析
雖然對于大多數系統來說,一個數據庫寫進程(DBW0) 已經足夠,但如果系統需要頻繁修改數據,則可以配置附加進程(DBW1到DBW9以及DBWa到DBWj)以改進寫性能(A正確,可以有很多個dbwr進程)。
DBWR觸發條件

  1. 產生檢查點
  2. 臟數據緩沖區達到閥值 默認 10%
    3.掃描整個data buffer沒有空閑data buffer 中包含臟的和未臟的優先寫臟數據列表 再寫未臟塊
  3. timeout 超時,如果DBWR沒事做 會被每三秒喚醒一次去巡檢 寫不寫不一定
  4. 表級別的truncate 或 drop 也會觸發數據寫
  5. 修改表空間的 read only
  6. 做表空間的offline (離線)
  7. 熱備份 begin backup 命令

LGWR 觸發條件:
1.用戶進程提交事務處理時
2.重做日志緩沖區的三分之一已滿時
3.重做日志緩沖區達到1M的redo條目
4.在DBWn進程將經過修改的緩沖區寫入磁盤(如果需要)之前
5.每隔3 秒

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e40540/process.htm#CNCPT9840

一、源題
QUESTION 77
The TRANS_SUMMARY table contains product-wise transaction details that get updated with every transaction in the system. Each row has cumulative transaction details of a single product and every product is identified by a product code, which is the primary key. As part of the archival process, the company wants to transfer the rows in the TRANS_SUMMARY table to the TRANS_SUMMARY_DUP table at the end of every quarter of the year. Along with existing products, the company deals with many new products during every quarter. Which method is best suited for this quarterly data transfer?
A. Using the MERGE command
B. Using the SQL*Loader utility
C. Using the correlated UPDATE command
D. Using the INSERT command to perform bulk operation
Correct Answer: A

二、題目翻譯
TRANS_SUMMARY表包含生產方面的事務細節如系統中的每筆交易。每一行累積記錄單個產品的交易細節并且每個產品使用產品碼也就是主鍵來鑒別。作為歸檔的一部分過程,公司想在每年的季度末轉移TRANS_SUMMARY表的行到TRANS_SUMMARY_DUP表。隨同現有的產品,公司在每季度期間交易很多新產品。哪種方法是最適合這個季度數據傳輸的?
A. 使用MERGE命令
B. 使用SQL*Load功能
C. 使用相關的UPDATE命令
D. 使用INSERT命令執行批量操作

答案:A
三、題目解析
使用MERGE命令可在一個命令中執行UPDATE 和INSERT 。可將一個源中的數據合并到另一個源,因而可選擇插入新行和更新特定列(如果行已經存在)。
這道題的意思是將TRANS_SUMMARY里的數據合并到TRANS_SUMMARY_DUP表里,如果TRANS_SUMMARY_DUP有存在的產品,則保留,如果是新產品,則插入。

一、源題
QUESTION 78
Which two statements are true regarding a PL/SQL package body? (Choose two.)
A. It cannot be created without a package specification.
B. It cannot invoke subprograms defined in other packages.
C. It can contain only the subprograms defined in the package specification.
D. It can be changed and recompiled without making the package specification invalid.
Correct Answer: AD
二、題目翻譯
哪兩句關于PL/SQL包主體的描述是正確的?
A. 沒有包定義,不能創建包體
B. 不能調用其他包的子程序
C. 只能包含指定的包中定義的子程序
D. 沒有標記指定的包為無效的時候可以被修改和重新編譯

答案:AD
三、題目解析
程序包體:
? 與程序包說明是分開的。因此,可以更改并重新編譯程序包體代碼,此時不會將與程序包說明相關的其它對象標記為無效。
? 包含程序包說明中定義的子程序的代碼。這是負責完成工作的部分。程序包說明表明了如何調用程序包中的子程序;程序包體是代碼段。
? 只有在編譯了程序包說明之后才能編譯程序包體。可以在沒有程序包體的情況下創建程序包說明,但不能在沒有程序包說明的情況下創建程序包體。
? 通過包裝可隱藏代碼明細。包裝是一個可打亂PL/SQL 源代碼的獨立程序,所以可不暴露源代碼的情況下傳送PL/SQL 應用程序。

A,沒有包裝說明它不能創建。正確。只有在編譯了程序包說明之后才能編譯程序包體。可以在沒有程序包體的情況下創建程序包說明,但不能在沒有程序包說明的情況下創建程序包體。
B,它不能調用其他包中定義的子程序。錯誤,可以調用。
C,它只能包含包說明中定義的子程序。錯誤,可以調用不在包裝包說明的子程序。
D,它可以改變和重新編譯,而不使包裝規格無效。正確。與程序包說明是分開的。因此,可以更改并重新編譯程序包體代碼,此時不會將與程序包說明相關的其它對象標記為無效。

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/create_package_body.htm#LNPLS01372

一、源題
QUESTION 79
In your database instance, the user sessions are connected to the database server from the remote machines. You want to achieve the following for these users:

  1. The user account must be locked after four unsuccessful login attempts.
  2. The user must be prompted to change the password at regular intervals.
  3. The user may not have more than three simultaneous sessions.
  4. The user session must automatically be logged off if more than 10 minutes elapsed time used.
    How would you accomplish the above?
    A. By assigning profiles for the users
    B. By implementing Fine-Grained Auditing (FGA)
    C. By granting a secure application role to the users
    D. By implementing the Database Resource Manager plan
    Correct Answer: A
    二、題目翻譯
    在你的數據庫實例中,用戶會話從遠程機器連接數據庫服務器。你想這些用戶達到下面:
  5.    用戶帳戶必須鎖定在四次嘗試登錄失敗之后
    
  6.    用戶必須被提示定期更改密碼
    
  7.    用戶不能有超過三個并發會話
    
  8.    用戶必須自動注銷如果超過10分鐘運行時間
    

你將如何完成上述所示?
A. 通過指定用戶profile
B. 通過實行Fine-Grained Auditing (FGA)
C. 通過授予一個安全的應用角色給用戶
D. 通過實行Database Resource Manager plan

答案:A
三、題目解析
可以通過配置profile來達到限制上面的目標

SQL> select * from dba_profiles where profile='DEFAULT';

PROFILE                        RESOURCE_NAME                    RESOURCE LIMIT
------------------------------ -------------------------------- -------- ----------------------------------------
DEFAULT                        COMPOSITE_LIMIT                  KERNEL   UNLIMITED
DEFAULT                        SESSIONS_PER_USER                KERNEL   UNLIMITED
DEFAULT                        CPU_PER_SESSION                  KERNEL   UNLIMITED
DEFAULT                        CPU_PER_CALL                     KERNEL   UNLIMITED
DEFAULT                        LOGICAL_READS_PER_SESSION        KERNEL   UNLIMITED
DEFAULT                        LOGICAL_READS_PER_CALL           KERNEL   UNLIMITED
DEFAULT                        IDLE_TIME                        KERNEL   UNLIMITED
DEFAULT                        CONNECT_TIME                     KERNEL   UNLIMITED
DEFAULT                        PRIVATE_SGA                      KERNEL   UNLIMITED
DEFAULT                        FAILED_LOGIN_ATTEMPTS            PASSWORD 10
DEFAULT                        PASSWORD_LIFE_TIME               PASSWORD 180

PROFILE                        RESOURCE_NAME                    RESOURCE LIMIT
------------------------------ -------------------------------- -------- ----------------------------------------
DEFAULT                        PASSWORD_REUSE_TIME              PASSWORD UNLIMITED
DEFAULT                        PASSWORD_REUSE_MAX               PASSWORD UNLIMITED
DEFAULT                        PASSWORD_VERIFY_FUNCTION         PASSWORD NULL
DEFAULT                        PASSWORD_LOCK_TIME               PASSWORD 1
DEFAULT                        PASSWORD_GRACE_TIME              PASSWORD 7

16 rows selected.

一、源題
QUESTION 80
Observe the information in the columns:

  1. The SGA
  2. The cursor state
  3. User-session data
  4. The stack space
    a. Text and parsed forms of all SQL statements
    b. Run-time memory values for the SQL statement, such as rows retrieved
    c. Security and resource usage information
    d. Local variables for the process
    Which option has the correct match between the memory areas and their contents?
    A. 1-c, 2-b, 3-d, 4-a
    B. 1-b, 2-c, 3-d, 4-a
    C. 1-a, 2-b, 3-c, 4-d
    D. 1-a, 2-b, 3-d, 4-c
    Correct Answer: C

二、題目翻譯
觀察列中的信息:

  1.    SGA
    
  2.    游標狀態
    
  3.    用戶會話數據
    
  4.    Stack space
    

a. 所有SQL語句的文本和解析形式
b. SQL語句的運行時間內存值,例如行檢索
c. 安全性和資源使用信息
d. 程序的本地變量

哪個選項是正確的關于內存區域和他們的解釋?

A. 1-c, 2-b, 3-d, 4-a
B. 1-b, 2-c, 3-d, 4-a
C. 1-a, 2-b, 3-c, 4-d
D. 1-a, 2-b, 3-d, 4-c

答案:C
三、題目解析
本題主要是考察一些概念問題

一、源題
QUESTION 81
You are using Enterprise Manager to schedule backups for your database. Which type of script would be generated by the backup scheduler?
A. XML script
B. PL/SQL script
C. Operating system script
D. Recovery Manager (RMAN) script
Correct Answer: D
二、題目翻譯
你正在使用Enterprise Manager調度備份你的數據庫。哪種類型的腳本會產生通過備份調度?
A. XML腳本
B. PL/SQL腳本
C. 操作系統腳本
D. RMAN腳本

答案:D
三、題目解析
如果你啟用自動備份,Oracle Enterprise Manager調度一個日常備份job使用RMAN備份所有的數據文件到FRA上。

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/install.112/e47689/install_overview.htm#LADBI1073

一、源題
QUESTION 82
Note the following functionalities of various background processes:

  1. Record the checkpoint information in data file headers.

  2. Perform recovery at instance startup.

  3. Cleanup unused temporary segments.

  4. Free the resources used by a user process when it fails.

  5. Dynamically register database services with listeners.

  6. Monitor sessions for idle session timeout.
    Which option has the correct functionalities listed for a background process?
    A. Archiver Process (ARCn): 1, 2, 5
    B. System Monitor Process (SMON): 1, 4, 5
    C. Process Monitor Process (PMON): 4, 5, 6
    D. Database Writer Process (DBWn): 1, 3, 4
    Correct Answer: C
    二、題目翻譯
    注意下面各種各樣的后臺進程的功能:

  7.    記錄檢查點信息在數據文件頭
    
  8.    執行實例恢復在啟動的時候
    
  9.    清除沒使用的臨時段
    
  10.    用戶進程故障時釋放用戶使用的資源
    
  11.    使用監聽動態注冊數據庫服務
    
  12.    為空閑會話超時監視會話
    

哪個選項是正確的列出的后臺進程和它的功能?

A. Archiver Process (ARCn): 1, 2, 5
B. System Monitor Process (SMON): 1, 4, 5
C. Process Monitor Process (PMON): 4, 5, 6
D. Database Writer Process (DBWn): 1, 3, 4

答案:C
三、題目解析

  1. Record the checkpoint information in data file headers. --CKPT
  2. Perform recovery at instance startup.--SMON
  3. Cleanup unused temporary segments.--SMON
  4. Free the resources used by a user process when it fails. PMON
  5. Dynamically register database services with listeners. PMON
  6. Monitor sessions for idle session timeout. PMON

一、SMON:系統監控進程
1.主要是已經提交的數據但是還沒有進行寫入數據文件給斷電了,重啟的時候,smon就會進行恢復
a.執行前滾,將已經寫入重做日志文件但是還沒有寫入到數據文件中的數據(使用scn號碼來識別提交記錄的)
b.打開數據庫
c.回滾沒有提交的事務
2.還可以進行磁盤空間維護工作
a.回收或者合并數據文件中相連的空閑區
b.釋放臨時段

二、PMON:進程監督進程
1.當某個進程崩潰,PMON將負責進行如下的清理工作
a.回滾用戶當前事務
b.釋放用戶所加的所有表一級和行一級的鎖
c.釋放用戶所有的其他資源等

三、ARCn:歸檔日志進程
1.當一組重做日志文件寫滿后,會寫另外一組,當最后一組寫滿后會在寫第一組,叫做日志切換
2.如果沒有開歸檔,那么覆蓋后就無法進行恢復了
3.如果開了歸檔,那么就會使用arch進程進行寫入歸檔日志文件中,oracle會確保在一組重做日志的歸檔操作完成之前不會重新使用該組日志

四、DBWn:數據庫寫進程
1.11g之前只可以有09,10個進程,11g之后可以有36個,09和a~z,通過 db_writer_processes 來設置個數的,如果啟動的時候沒有說明個數
那么是由cpu的個數來決定的該參數的
2.當以下情況發生時,DBWR會將高速緩沖區中的數據寫入到數據文件中
a.當臟緩沖區的數量超過了所設定的限額
b.所設定的時間間隔已到
c.有進程需要高速緩沖區,但是沒有空閑的高速緩沖區空間時候
d.校驗(檢查點)發生時
e.某個表被刪除或者截斷(truncate,drop)
f.某個表空間被設置為只讀
g.表空間進行聯機備份時
h.表空間被設置為脫機時

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e40540/process.htm#CNCPT9840

一、源題
QUESTION 83
Which statement is true about a whole consistent database backup on a database running in ARCHIVELOG mode?
A. The backup will consist of used data blocks only.
B. The database must be shut down to accomplish the backup.
C. The backup can be accomplished without shutting down the database.
D. The backup will contain all database files that have never been backed up.
二、題目翻譯
哪些語句是正確的關于運行在ARCHIVELOG模式下的一致性數據庫備份?
A. 只備份使用過的數據塊
B. 數據庫必須shutdown來完成備份
C. 備份可以在不shutdown數據庫的情況下完成
D. 備份將包含所有的未備份過的數據文件
答案:B
三、題目解析
一致性備份必須在數據庫正常關閉的情況下進行,這個時候redo,數據文件和控制文件的scn都是一致的

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmcncpt.htm#BRADV99964

一、源題
QUESTION 84
Which statement is true about the UNDO_RETENTION parameter when retention guarantee is not enabled?
A. It is the time period after which the undo data becomes obsolete.
B. It is the time period after which the committed undo data would be transferred to a temporary tablespace.
C. It is the minimum time period up to which the committed undo data would be retained if free undo space is available.
D. It is the time period after which the undo data is transferred to the Flash Recovery Area to provide read consistency.
Correct Answer: C
哪句是正確的關于UNDO_RETENTION參數在retention guarantee沒啟用的時候?

A. 它是undo數據變得失效之后的時間
B. 它是提交的undo數據被傳輸到臨時表空間之后的時間
C. 它是undo空間可用的情況下保留提交的undo數據的最小時間
D. 它是undo數據傳輸到快速閃回區用來提高讀一致性所需的時間

答案:C
當 retention guarantee 沒有設置時,即undo數據 不強制保留UNDO_RETENTION 所設置的時間內,如果是undo表空間是自動增長,即在足夠的空閑空間下,則可能會保留到UNDO_RETENTION 所設置的時間。如果undo表空間是固定的,則UNDO_RETENTION 可能會被忽略,undo數據可能被覆蓋。
參考官方文檔:
http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmflash.htm#BRADV89743

一、源題
QUESTION 85
You have a large amount of historical data in a flat file. Some analysts in your organization need to query this data in the file. The file is too large to load the data in it into your current database. Which is the most effective method to access this data in your database?
A. Use the database link.
B. Use the SQL*Loader utility.
C. Use the Oracle Data Pump utility.
D. Create an external table and leave the data in the flat file.
Correct Answer: D

二、題目翻譯
你有大量的歷史數據在平面文件中。在你的公司中一些分析師需要查詢這個文件中的數據。文件太大對你目前的數據庫來說。哪種方法是最有效的去訪問數據?
A. 使用database link
B. 使用SQL*Load功能
C. 使用Oracle Data Pump功能
D. 創建一個外部表并保留數據在平面文件中
答案:D
三、題目解析
因為題目中提到文件過大,不能導入到數據庫中,故排除BC,又因為數據存在平面文件中,不是數據庫文件,故A也不可行。答案選擇D,使用外部表來訪問

外部表,參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e22490/et_concepts.htm#SUTIL011

QUESTION 86
Which statements are true regarding the creation of an incident package file by using the EM Workbench Support? (Choose all that apply.)
A. You can add SQL test cases to the incident package.
B. You can add or remove the trace files to the package.
C. You cannot create an incremental incident package when the physical files are purged from the ADR.
D. You can create the incremental incident package ZIP file for new or modified diagnostic information for the incident package already created.
Correct Answer: ABD
二、題目翻譯
哪些語句是正確的關于使用EM Workbench Support創建一個事件包文件?(選擇所有正確的)
A. 你可以在事件包添加SQL測試用例
B. 你可以在事件包添加或移除追蹤文件
C. 你不能創建一個增量事件包當物理文件從ADR刪除
D. 你可以創建增量事件包壓縮文件為新的或修改事件包已經創建的診斷信息。

答案:ABD
三、題目解析
參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e25494/diag.htm#CHDFBEAE

一、源題
QUESTION 87
You are managing an Oracle Database 11g database. You want to ensure the recovery of the database to the point of failure. Which configuration will you do to accomplish the task?
A. Multiplex all database files.
B. Configure the Flash Recovery Area.
C. Configure the database instance for ARCHIVELOG mode.
D. Configure the FAST_START_MTTR_TARGET initialization parameter.
Correct Answer: C
二、題目翻譯
你正在管理一個Oracle Database 11g數據庫。你想確保數據庫的時間點恢復。哪些配置你需要做來完成這個任務?
A. 多路復用所有的數據文件
B. 配置Flash Recovery Area
C. 配置數據庫實例為ARCHIVELOG模式
D. 配置FAST_START_MTTR_TARGET參數
答案:C
三、題目解析
指定時間點恢復,需要歸檔日志,所以必須處于歸檔模式,才能進行恢復,答案選擇C

一、源題
QUESTION 88
View the Exhibit and examine the user information.
The user has been granted CONNECT and RESOURCE roles and no individual system privileges. The SL_REP user executes this command to create a table:

SQL> CREATE TABLE orders (
oid number(6), odate date,
ccode number(4), oamt number(10,2)
) TABLESPACE purchase_space;

The PURCHASE_SPACE tablespace already exists in the database.
Which statement describes the effect of the command?

image.png

A. The command executes successfully and creates the table in the USERS tablespace.
B. The command executes successfully and creates the table in the PURCHASE_SPACE tablespace.
C. The command produces an error because the user does not have the privilege to createthe table.
D. The command produces an error because the user does not have quota in the PURCHASE_SPACE tablespace.
Correct Answer: B

查看下表檢查用戶信息
用戶被授予CONNECT和RESOURCE角色并且沒有單獨的系統權限。SL_REP用戶執行這個命令去創建一個表:
SQL> CREATE TABLE orders (
oid number(6), odate date,
ccode number(4), oamt number(10,2)
) TABLESPACE purchase_space;

哪個語句是正確描述這個命令的影響?
A. 命令執行成功并且創建表在USERS表空間
B. 命令執行成功并且創建表在PURCHASE_SPACE表空間
C. 命令執行報錯因為用戶沒有權限創建表
D. 命令執行報錯因為用戶在PURCHASE_SPACE表空間沒有配額

答案:B
RESOURCE角色包含Create Table系統權限,所以可以創建表,創建語句中指定了表空間,故B正確

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/network.112/e36292/authorization.htm#DBSEG99936

四、測試

[oracle@oel ~]$ sqlplus / as sysdba
SQL> drop user sl_rep cascade; --刪除以前的這個用戶

User dropped.
SQL> select name from v$datafile;  --查看目前的數據文件

NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/prod/system01.dbf
/u01/app/oracle/oradata/prod/sysaux01.dbf
/u01/app/oracle/oradata/prod/undotbs01.dbf
/u01/app/oracle/oradata/prod/example01.dbf
/u01/app/oracle/oradata/prod/tbs01.dbf

SQL> create tablespace users datafile '/u01/app/oracle/oradata/prod/users01.dbf' size 400m; --創建users表空間

Tablespace created.

SQL> create user SL_REP identified by oracle account unlock default tablespace users; --創建 SL_REP,并將默認表空間指定為users

User created.

SQL> grant connect,resource to sl_rep; --給sl_rep授權

Grant succeeded.

SQL> create tablespace PURCHASE_SPACE datafile '/u01/app/oracle/oradata/prod/ps01.dbf' size 10m; 創建PURCHASE_SPACE表空間

Tablespace created.

SQL> conn sl_rep/oracle --以sl_rep登陸
Connected.
--可以看到能夠創建這個表
SQL> CREATE TABLE orders (  
  2  oid number(6), odate date,
  3  ccode number(4), oamt number(10,2)
  4  ) TABLESPACE purchase_space;

Table created.

一、源題
QUESTION 89
A constraint in a table is defined with the INITIALLY IMMEDIATE clause. You executed the ALTER TABLE command with the ENABLE VALIDATE option to enable the constraint that was disabled. What are the two effects of this command? (Choose two.)
A. It fails if any existing row violates the constraint.
B. It does not validate the existing data in the table.
C. It enables the constraint to be enforced at the end of each transaction.
D. It prevents insert, update, and delete operations on the table while the constraint is in the process of being enabled.
Correct Answer: AD
二、題目翻譯
一個表上的約束使用INITIALLY IMMEDIATE子句定義。你執行ALTER TABLE命令使用ENABLE VALIDATE選項去啟用被禁用的約束。這個命令的兩個影響是什么?(選擇兩個)
A. 將會失敗如果任何現有行違反約束
B. 它不會驗證表中已經存在的數據
C. 它會啟用約束強制執行在每個事務的末期
D. 阻止在表上的插入、更新和刪除操作當約束被啟用的時候

答案:AD
三、題目解析
INITIALLY IMMEDIATE表示初始化立即執行,在每條語句執行結束時檢驗約束
ENABLE VALIDATE表示原有的和新加的數據都必須遵循約束條件
A正確,B錯誤,ENABLE VALIDATE會驗證已經存在的數據是否違反約束
C錯,INITIALLY DEFERRED才是事務提交之后檢查約束
D正確,會阻止插入、更新和刪除操作來保證數據一致性

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e41084/clauses002.htm

一、源題
QUESTION 90
The session of user SCOTT receives the following error after executing an UPDATE command on the EMP table:
ERROR at line 1:
ORA-00060: deadlock detected while waiting for resource
On investigation, you find that a session opened by user JIM has a transaction that caused the deadlock.
Which two statements are true regarding the session of SCOTT in this scenario? (Choose two.)
A. The session is terminated after receiving the error and JIM can continue with his transaction.
B. SCOTT should perform a COMMIT or ROLLBACK to allow JIM to continue with his transaction.
C. The session is rolled back after receiving the error and JIM can continue with his transaction.
D. SCOTT has to reexecute the last command in the transaction after he commits the transaction.
Correct Answer: BD

二、題目翻譯
用戶SCOTT收到下面錯誤在EMP表上執行一個UPDATE命令之后:
ERROR at line 1:
ORA-00060: deadlock detected while waiting for resource

經調查,你發現用戶JIM打開的會話有一個事務導致死鎖
哪兩句是正確的關于這個場景下的SCOTT?(選擇兩個)
A. 會話中止在收到報錯之后并且JIM可以繼續它的事務
B. SCOTT需要執行一個COMMIT或者ROLLBACK去允許JIM繼續它的事務
C. 會話回滾在收到報錯之后并且JIM可以繼續它的事務
D. SCOTT不得不重新執行事務的最后一個命令在它提交它的事務之后
答案:BD
三、題目解析
死鎖是鎖定沖突的特殊示例。兩個或多個會話等待由對方鎖定的數據時,就會發生死鎖。因為每個會話都在等待另一個會話釋放鎖定,所以任何一個會話都不能完成事務處理,也不能解決沖突。Oracle 數據庫會自動檢測死鎖并終止語句,同時顯示錯誤消息。更正這種錯誤的適當做法是執行提交或回退,這樣做會在一個會話中釋放任何其它鎖定,以便其它會話可繼續完成其事務處理。scott必須提交或回退,才能更正檢測到的死鎖誤。如果執行提交,則必須重新提交第二次更新才能完成事務處理。如果執行回退,則必須同時重新提交這兩個語句才能完成事務處理。

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e40540/consist.htm#CNCPT1336

一、源題
QUESTION 91
Examine the following statement that is used to modify the primary key constraint on the SALES table:
SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE;
Which three statements are true regarding the above command? (Choose three.)
A. The constraint remains valid.
B. The index on the constraint is dropped.
C. It allows the loading of data into the table using SQL *Loader.
D. New data conforms to the constraint, but existing data is not checked.
E. It allows the data manipulation on the table using INSERT/UPDATE/DELETE SQL statements.
Correct Answer: ABC
二、題目翻譯
檢查下面用于修改SALES表主鍵約束的語句:
SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE;

哪三句是正確的關于上面的命令?(選擇三個)
A. 約束仍然有效
B. 約束上的索引被刪除
C. 允許使用SQL*Load加載數據到表中
D. 新的數據符合約束,已經存在的數據不會被檢查
E. 允許在表上對數據使用INSERT/UPDATE/DELETE SQL語句
答案:ABC
三、題目解析
DISABLE 和ENABLE 是針對新增的數據是否符合約束,NOVALIDATE 和VALIDATE是針對已經存在的數據是否符合約束。
DISABLE NOVALIDATE:不檢查新數據和現有數據,因此這些數據可能不符合約束條件。當數據來自驗證過的源,而且表是只讀表時,通常會使用此狀態。因此,不會將新數據輸入表中。在已清理了數據的數據倉庫環境中使用NOVALIDATE。此時不需要進行驗證,因而可以節省很多時間。
DISABLE VALIDATE:如果約束條件處于此狀態,則不允許對有約束條件的列進行任何修改。因為如果在驗證現有數據后,又允許將未經檢查的數據輸入表中,就會出現不一致的情況。通常,在必須驗證現有數據但不進行修改時,以及不需要索引來提高性能時,可使用此狀態。
ENABLE NOVALIDATE:新數據符合約束條件,但現有數據處于未知狀態。通常在確信表中只存在純凈數據和符合規則的數據的情況下使用該狀態,此時不需要進行驗證。但是,不允許將違反規則的新數據輸入到系統中。
ENABLE VALIDATE:新數據與現有數據均符合約束條件。這是約束條件的典型狀態和默認狀態。

A正確,因為DISABLE VALIDATE對現有的數據仍然有約束
B正確,因為DISABLE VALIDATE狀態會刪除索引
C正確,因為DISABLE VALIDATE對新增加的數據沒有約束
D錯誤,因為DISABLE VALIDATE是對現有的數據有約束,新增的沒有
E錯誤,因為DISABLE VALIDATE不允許對有約束條件的列進行任何修改

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e41084/clauses002.htm#i1002038

一、源題
QUESTION 92
You execute the following command to change the status of the SALES tablespace:
SQL> ALTER TABLESPACE sales OFFLINE;
Which statements describe the effect of the command? (Choose all that apply.)
A. The tablespace would require recovery to go back online.
B. A checkpoint is taken on all data files that are associated with the SALES tablespace.
C. The sessions that subsequently try to access the objects in the SALES tablespace receivean error.
D. The new status of the SALES tablespace is recorded in the control file when the database instance is closed.
Correct Answer: BC
二、題目翻譯
你執行下面的命令改變SALES表空間的狀態:
SQL> ALTER TABLESPACE sales OFFLINE;
哪些語句描述了命令的影響?(選擇所有合適的)
A. 表空間需要恢復才能回到online狀態
B. 檢查點會記錄在SALES表空間關聯的所有數據文件
C. 會話隨后訪問SALES表空間的對象會收到一個錯誤
D. 當數據庫實例關閉,SALES表空間的新狀態被記錄在控制文件中

答案:BC
三、題目解析
表空間offline選項:
Normal(正常):如果表空間中的任何數據文件不存在任何錯誤狀態,可通過正常方式使表空間脫機.表空間脫機時,會對表空間中的所有數據文件設置檢查點,可以確保將所有數據寫入磁盤.

Temporary(臨時):如果表空間中的一個或多個文件存在錯誤狀態,也可以使表空間暫時脫機.尚未脫機的數據文件脫機時,會對這些數據文件設置檢查點.如果沒有任何文件脫機,但是使用了臨時子句,使表空間重新聯機時便不需要執行介質恢復.但是,如果因寫錯誤而導致表空間的一個或多個文件脫機,而且設置了表空間臨時脫機,那么表空間需要執行恢復后才能重新聯機.

Immediate(立即)表空間可以立即脫機,Oracle 數據庫不需要對任何數據文件設置檢查點.如果指定了"Immediate",則必須先對表空間執行介質恢復 recover tablespace ,才能使表空間聯機.如果數據庫在 NOARCHIVELOG 模式下運行,則無法立即使表空間脫機.

因為是正常的offline表空間,所以不需恢復,即可online,A錯
正常的offline表空間,會對所有數據文件設置檢查點,B對
不能訪問offline的表空間,C對
表空間offline時會立即記錄在控制文件,而不是關閉的時候才記錄,D錯

一、源題
QUESTION 93
Identify the two situations in which you use the alert log file in your database to check the details. (Choose two.)
A. Running a query on a table returns "ORA-600: Internal Error."
B. Inserting a value in a table returns "ORA-01722: invalid number."
C. Creating a table returns "ORA-00955: name is already used by an existing object."
D. Inserting a value in a table returns "ORA-00001: unique constraint (SYS.PK_TECHP) violated."
E. Inserting a row in a table returns "ORA-00060: deadlock detected while waiting for resource."
Correct Answer: AE
二、題目翻譯
指出那兩種日志會出現在數據庫告警日志中?
A. 在一個表上查詢返回"ORA-600: Internal Error."
B. 在一個表上插入一個值返回"ORA-01722: invalid number."
C. 創建一個表返回"ORA-00955: name is already used by an existing object."
D. 在一個表上插入一個值返回"ORA-00001: unique constraint (SYS.PK_TECHP) violated."
E. 在一個表上插入一行數據返回"ORA-00060: deadlock detected while waiting for resource."
正確答案: AE
三、題目解析
每個數據庫都有一個alert_<sid >.log文件。此文件位于數據庫所在的服務器中,如果設置了$ORACLE_BASE,則此文件默認存儲在$ORACLE_BASE/diag/rdbms/<db_name>/<SID>/trace中。
數據庫預警文件是按時間順序列出消息的日志文件,例如:
? 啟動時使用的任何非默認初始化參數
? 已發生的所有內部錯誤( ORA-600) 、塊損壞錯誤( ORA-1578 ) 和死鎖錯誤( ORA-60 )
? 管理操作,如SQL 語句CREATE 、ALTER、DROP DATABASE 和TABLESPACE,以及Enterprise Manager 或SQL*Plus 語句STARTUP、SHUTDOWN 、ARCHIVE LOG和RECOVER
? 與共享服務器和分派程序進程的功能相關的多個消息和錯誤
? 自動刷新實體化視圖時發生的錯誤
Oracle DB 使用預警日志來保留這些事件的記錄,以此作為在操作員控制臺上顯示這些信息的替代方法。(許多系統會同時在控制臺中顯示這些信息。)如果某個管理操作成功完成,系統會將“completed(已完成)”消息和一個時間戳寫入預警日志中。

一、源題
QUESTION 94
You are working on a database that must be functioning 24 hours a day, 7 days a week. The database is configured in ARCHIVELOG mode.
Which two options do you have for performing user-managed backups? (Choose two.)
A. You can perform consistent backups only.
B. You can perform a complete database backup without shutting down the database instance.
C. You can back up data files only when all data files have the same SCN recorded in the control file.
D. You can back up only those data files whose headers are frozen by using ALTER TABLESPACE BEGIN BACKUP or ALTER DATABASE BEGIN BACKUP commands.
Correct Answer: BD
二、題目翻譯
你工作在一個7×24小時工作的數據庫。數據庫配置為ARCHIVELOG模式。
哪兩個種是你可以執行用戶管理的備份?(選擇兩個)
A. 你只可以執行一致性備份
B. 你可以執行一個完整的數據庫備份在數據庫實例不關閉的情況下
C. 你可以備份數據文件只有在在控制文件中所有數據文件擁有相同的SCN記錄時
D. 你可以備份只有那些文件頭使用ALTER TABLESPACE BEGIN BACKUP或者ALTER DATABASE BEGIN BACKUP命令凍結的數據文件
答案:BD
三、題目解析
歸檔模式:可以進行一致性備份(冷備)和非一致性備份(熱備)。
非歸檔模式:一致性備份(冷備)
一致性備份(冷備份):在數據庫正常關閉情況下做備份,數據庫處于一致性狀態。
(可以用于歸檔和非歸檔),所有SCN號一致。缺點:數據庫需要關閉。
非一致性備份(熱備份):數據庫在open狀態下備份(用于歸檔模式),
使用alter database/tablespace xxx begin backup開始備份,此時會凍結數據文件文件頭。

一、源題
QUESTION 95
You have set Tablespace Full Metrics Threshold values for the USERS tablespace as follows:
Warning (%): 90
Critical (%): 95
Which background process is responsible for issuing alerts when the threshold is crossed?
A. System monitor (SMON)
B. Process monitor (PMON)
C. Memory manager process (MMAN)
D. Manageability Monitor process (MMON)
Correct Answer: D
二、題目翻譯
你設置USERS表空間的Tablespace Full Metrics Threshold值為下面:
Warning (%): 90
Critical (%): 95
哪個后臺進程負責閾值超出時發出警報?

A. System monitor (SMON)
B. Process monitor (PMON)
C. Memory manager process (MMAN)
D. Manageability Monitor process (MMON)

答案:D
可管理性監視器進程(MMON),可執行各種與可管理性相關的后臺任務,例如:
? 每當給定的度量超過其閾值時發出預警
? 通過衍生附加進程(MMON 從屬進程)獲取快照
? 捕獲近期已做修改的SQL 對象的統計值

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e40540/process.htm#BABJAIBD

一、源題
QUESTION 96
User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, or any data definition language (DDL) command:
SQL> SELECT ename FROM emp 2 WHERE job='CLERK' FOR UPDATE OF empno;
SCOTT has opened another session to work with the database instance. Which three operations would wait when issued in SCOTT's second session? (Choose three.)
A. LOCK TABLE emp IN SHARE MODE;
B. LOCK TABLE emp IN EXCLUSIVE MODE;
C. UPDATE emp SET sal=sal*1.2 WHERE job='MANAGER'
D. INSERT INTO emp(empno,ename) VALUES (1289,'Harry');
E. SELECT ename FROM emp WHERE job='CLERK' FOR UPDATE OF empno;
Correct Answer: ABE

二、題目翻譯
用戶SCOTT執行下面命令在EMP表上但是沒有COMMIT,ROLLBACK或者任何DDL命令:
SQL> SELECT ename FROM emp 2 WHERE job='CLERK' FOR UPDATE OF empno;
SCOTT打開了另一個會話與數據庫實例。哪三種操作會等待當在SCOTT的第二個會話執行的時候?(選擇三個)
A. LOCK TABLE emp IN SHARE MODE;
B. LOCK TABLE emp IN EXCLUSIVE MODE;
C. UPDATE emp SET sal=sal*1.2 WHERE job='MANAGER'
D. INSERT INTO emp(empno,ename) VALUES (1289,'Harry');
E. SELECT ename FROM emp WHERE job='CLERK' FOR UPDATE OF empno;
答案:ABE
三、題目解析
這個select ... for update 是在TX加上了S鎖,在TM上增加了SX鎖,
因此不能在TX上增加X鎖,不能在TM上增加S、SSX、X鎖
A:正確,這個相當于TMS鎖
B:正確,這個是TM的X鎖
C:這里只是TM的SX鎖
D:和C一樣
E:正確,這里是SX鎖,鎖的是不同的記錄

一、源題
QUESTION 97
Which three statements are true about logical structures of the Oracle database? (Choose three.)
A. Each segment contains one or more extents.
B. Multiple tablespaces can share a single data file.
C. A data block is the smallest unit of input/output (I/O) in data files.
D. It is possible to have tablespaces of different block sizes in a database.
E. Each data block in the database always corresponds to one operating system block.
Correct Answer: ACD
二、題目翻譯
哪三個語句是正確的關于Oracle數據庫的邏輯結構?(選擇三個)
A. 每個段包含一個或多個區
B. 多個表空間可以共用一個數據文件
C. 數據塊是數據文件最小的I/O單元
D. 一個數據庫中可能有不同的塊大小的表空間
E. 數據庫中的每個數據塊總是和操作系統塊保持一致
答案:ACD
三、題目解析
A段是由一個或多個去組成的,故正確
B一個數據文件只能屬于一個表空間,一個表空間可以有多個數據文件,錯誤
C Oracle Data Block是最小的I/O單位,正確
D 可以指定非標準快大小的表空間
E 數據庫里的塊大小可以和操作系統一致,也可以是其的整倍數,錯誤

一、源題
QUESTION 98
You are managing an Oracle Database 11g database. You configured the database to run in ARCHIVELOG mode.
Which two statements are true in this scenario? (Choose two.)
A. You must shut down the database instance to perform the backups.
B. You must configure the Flash Recovery Area (FRA) for the database.
C. You can perform complete database backups without closing the database.
D. All the previous closed database backups including control files become invalid after you configure the database to ARCHIVELOG mode.
Correct Answer: CD
二、題目翻譯
你正在管理一個Oracle Database 11g數據庫。你配置數據庫為ARCHIVELOG模式。哪兩句是正確的在這個場景?(選擇兩個)
A. 你必須關閉數據庫才能執行備份
B. 你必須為數據庫配置Flash Recovery Area
C. 你可以執行完整的數據庫備份沒有關閉數據庫的情況下
D. 在你設置數據庫為ARCHIVELOG模式之后,所有之前的相關數據庫備份包括控制文件變得無效

答案:CD
三、題目解析
A.在歸檔模式下,可以進行數據庫非一致性備份,即熱備份。不需要關閉數據庫來備份。
B.在歸檔模式下,不用必須指定快速恢復區,歸檔日志可以重新自己指定本地位置或遠程位置來歸檔。
C.在歸檔模式下,可以進行完成的數據庫備份,而不需要數據庫關閉。
D.在非歸檔轉為歸檔模式后,或者重新配置成歸檔模式,之前所有的備份,包括控制文件,都已經變為無效的,因為日志信息的序列號是重頭開始的。

一、源題
QUESTION 99
View the Exhibit to examine the output of the DBA_OUTSTANDING_ALERTS view. After 30 minutes, you executed the following command:

SQL> SELECT reason,metric_value FROM dba_outstanding_alerts; 
REASON METRIC_VALUE
----------------------------------------------- ----------------
Tablespace [TEST] is [28 perce 28.125 nt] full 28.125
image.png

What could be the reason for the elimination of the other rows in the output?
A. An Automatic Workload Repository snapshot has been taken recently.
B. The non-threshold-based alerts are transferred to DBA_ALERT_HISTORY.
C. The threshold alerts conditions are cleared and the alerts are transferred to BA_ALERT_HISTORY.
D. The threshold alerts related to database metrics are permanently stored in DBA_ALERT_HISTORY but not the threshold alerts related to instance metrics.
Correct Answer: C
二、題目翻譯
查看下圖檢查DBA_OUTSTANDING_ALERTS視圖的輸出。30分鐘之后,你執行下面的命令:

SQL> SELECT reason,metric_value FROM dba_outstanding_alerts; 
REASON METRIC_VALUE
----------------------------------------------- ----------------
Tablespace [TEST] is [28 perce 28.125 nt] full 28.125

可能是什么原因消除輸出中的行?

A. 采取最近一個自動負載知識庫快照
B. 非基于閾值的alert被轉移到DBA_ALERT_HISTORY
C. 基于閾值的alert條件被清除并且alert轉移到DBA_ALERT_HISTORY
D. 基于閾值的alert數據庫相關的指標被永久的存儲在DBA_ALERT_HISTORY而不是基于閾值的alert實例相關的指標

答案:C
三、題目解析
服務器生成預警分為兩種類型:閾值預警和非閾值預警。
大多數服務器生成的預警是通過對數據庫度量設置警告閾值和嚴重閾值來配置的。可為120 多個度量定義閾值,這些度量包括:
? 每秒的物理讀取次數
? 每秒的用戶提交次數
?SQL 服務響應時間
除了表空間的空間占用率度量與數據庫相關外,其它度量都與實例相關。閾值預警又稱為“有狀態預警”,清空預警條件后,會自動清空這些預警。有狀態預警顯示在
DBA_OUTSTANDING_ALERTS中,清空后會轉到DBA_ALERT_HISTORY。
服務器生成的其它預警對應于特定的數據庫事件,如ORA-*錯誤、“快照太舊”錯誤、“恢復區空閑空間過少”和“可恢復會話被掛起”等。這些都不是基于閾值的預警,又稱
為“無狀態預警”。無狀態預警會直接轉到歷史記錄表。只在Database Control 環境中,清空無狀態預警才有意義,因為Database Control 會在自身的資料檔案庫中存儲無狀態預警。

一、源題
QUESTION 100
You have two database servers SEMP and SACCT. The database in the SEMP server maintains the employee information and the database in the SACCT server maintains the accounts payable information. The employees submit the expense reports to the accounts payable department. A user of the accounts payable database wants to extract the employee information from the database in the SEMP server for cross verification.
Which schema object enables the user to access the information from the remote database?
A. Cluster
B. Database link
C. Mapping table
D. Materialized view
Correct Answer: B
二、題目翻譯
你有兩個數據庫服務器SEMP和SACCT。SEMP服務器上的數據庫維護員工的信息,SACCT服務器上的數據庫維護賬戶應付款信息。員工提交賬戶應付款部門的費用報告。一個賬戶應付款數據庫的用戶想提取員工信息從SEMP服務器上數據庫進行交叉驗證

哪個方案對象啟用可以使用戶訪問遠程數據庫的信息?
A. Cluster
B. Database link
C. Mapping table
D. Materialized view

答案:B
三、題目解析
使用DB Link可以實現數據庫的遠程連接,關于DB Link的介紹,
參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e25494/ds_concepts.htm#ADMIN12084

一、源題
QUESTION 101
In a new installation of Oracle Database 11g, you perform these activities:

  1. Organize software and data on different subdirectories to avoid poor performance.
  2. Use consistent naming conventions for database files.
  3. Separate administrative information pertaining to the database in different directories.
    Which option corresponds to the type of activities you performed?
    A. Oracle Managed Files
    B. Oracle Grid Architecture
    C. Optimal Flexible Architecture
    D. Oracle database architecture
    E. Automatic Storage Management
    Correct Answer: C

二、題目翻譯
在一個新安裝的Oracle Database 11g數據庫,你執行下面活動:

  1.    組織軟件和數據在不同的子目錄,避免性能不佳
    
  2.    使用統一的命名慣例為數據庫文件
    
  3.    分開管理權限信息在不同目錄
    

哪個選項對應的你指定的活動?

A. Oracle Managed Files
B. Oracle Grid Architecture
C. Optimal Flexible Architecture
D. Oracle database architecture
E. Automatic Storage Management

答案:C
三、題目解析
OFA其實就是一種Oracle的一種規范,其意義就是用一種統一的給文件和文件夾的規則,和文件存放目錄的規則做一個約定。這樣,我們不管是安裝多個版本的Oracle Database也好,因為目錄規范,命名規范,這樣軟件不會沖突,方便管理,文件也方便查找。通過遵循OFA的指導,使得整個系統可以更加靈活

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/install.112/e47689/appendix_ofa.htm#LADBI1377

一、源題
QUESTION 102
You configured the Flash Recovery Area (FRA) for your database. The database instance is running in ARCHIVELOG mode. The default location for the archived redo log files is the Flash Recovery Area. Which two files are removed automatically if the space is required in the FRA as per the retention policy? (Choose two.)
A. Flashback log files
B. Backups that have become obsolete
C. User managed backups of the data files and control files
D. Archived redo log files that have multiple copies in a different archive location and not backed up
Correct Answer: AB
二、題目翻譯
你為你的數據庫配置Flash Recovery Area(FRA)。數據庫實例處于ARCHIVELOG模式。默認的歸檔日志路徑是Flash Recovery Area
哪兩個文件自動刪除如果FRA按照保留策略需要空間?
A. 閃回日志文件
B. 廢棄的備份
C. 用戶管理的數據文件和控制文件備份
D. 沒有備份的歸檔日志文件有多路復用的備份在不同的歸檔路徑
答案:AB
三、題目解析
快速恢復區的空間管理由備份保留策略控制。保留策略確定文件何時過時,即何時這些文
件對達到數據恢復目標已不再有用。Oracle DB 通過刪除不再需要的文件自動管理該存儲。

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmcncpt.htm#BRADV89505

一、源題
QUESTION 103
All the database users are presently connected to the database instance and working. The HR user has opened three database sessions and executed the following command in one of his sessions:

SQL> UPDATE persons SET ccode='U031' WHERE ccode='U029'; 
123 rows updated. 
SQL> DELETE FROM persons WHERE exp='Y';
3 rows deleted.

The SYS user opens a new session after HR executed the above commands. Which sessions can see the effect of the UPDATE and DELETE commands?
A. All sessions of the HR user only
B. All sessions of the HR user and the SYS user
C. The session of the HR user that executed the commands
D. All the sessions for which the database users have access privilege to the PERSONS table
Correct Answer: C
二、題目翻譯
所有的數據庫用戶正在連接數據庫實例進行工作。HR用戶打開了三個數據庫會話并執行下面的命令在其中一個會話:

SQL> UPDATE persons SET ccode='U031' WHERE ccode='U029'; 
123 rows updated. 
SQL> DELETE FROM persons WHERE exp='Y';
3 rows deleted.

SYS用戶打開一個新的會話在HR執行上面的命令后。哪個會話可以看到UPDATE和DELETE命令的影響?
A. 只有HR用戶打開的所有會話
B. HR和SYS的所有會話
C. HR用戶執行命令的會話
D. 數據庫用戶有訪問PERSONS表權限的用的所有會話
答案:C
三、題目解析
因為update和delete之后沒有commit,所以只能執行語句的會話才能看到結果。

一、源題
QUESTION 104
The user HR receives the following error while inserting data into the TTK table:
ERROR at line 1:

ORA-01653: unable to extend table HR.TTK by 128 in tablespace SMD Upon investigation, you find that SMD is a small file tablespace.

Which three action would allow the user to insert data? (Choose three.)
A. Add a data file to the SMD tablespace.
B. Add a data file to the temporary tablespace associated with the user HR.
C. Resize the data file associated with the SMD tablespace to make it larger.
D. Alter the data file associated with the SMD tablespace to grow automatically.
E. Change the segment space management for the SMD tablespace to automatic.
Correct Answer: ACD
二、題目翻譯
HR用戶收到下面的錯誤當插入數據到TTK表中:

ERROR at line 1:
ORA-01653: unable to extend table HR.TTK by 128 in tablespace SMD Upon investigation, you find that SMD is a small file tablespace.

哪三種動作允許用戶插入數據?(選擇三個)
A. 添加數據文件到SMD表空間
B. 添加數據文件到與HR用戶相關聯的臨時表空間
C. 調整SMD表空間相關的數據文件使之更大
D. 變更SMD表空間相關的數據文件為自動增長
E. 改變SMD表空間的段空間管理為自動

答案:ACD
三、題目解析
增大表空間有三種方法:

SQL> create tablespace SMD datafile '/u01/app/oracle/oradata/prod/smd01.dbf' size 1m; 

Tablespace created.
--1、增加一個文件
SQL> ALTER TABLESPACE SMD ADD DATAFILE '/u01/app/oracle/oradata/prod/smd02.dbf' SIZE 1M; 

Tablespace altered.
--2、改變原來數據文件的大小
SQL> ALTER DATABASE DATAFILE '/u01/app/oracle/oradata/prod/smd02.dbf' RESIZE 2M;

Database altered.
--3、設置自動增長
SQL> ALTER TABLESPACE SMD ADD DATAFILE '/u01/app/oracle/oradata/prod/smd03.dbf' SIZE 10M AUTOEXTEND ON NEXT 512K MAXSIZE 250M;

Tablespace altered.

故答案選ACD

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e25494/tspaces.htm#ADMIN13453

一、源題
QUESTION 105
Which two statements are true about checkpointing? (Choose two.)
A. The checkpoint frequency decreases with the smaller redo log file size.
B. It ensures that all committed data is written to the data files during normal shutdown.
C. The frequent full checkpoint in a database can cause the overall degradation of the database performance.
D. It prompts the Checkpoint (CKPT) process to write data to the data files and redo information to the online redo log files.
Correct Answer: BC
二、題目翻譯
哪兩句關于檢查點的描述是正確的?(選擇兩個)
A. 檢查點出現的頻率會減少隨著redo日志文件變小
B. 它確保所有已經提交的數據被寫入到數據文件在關機期間
C. 頻繁的完全檢查點會導致數據庫性能全線下降
D. 它提示檢查點進程(CKPT)寫數據到數據文件和寫redo信息到在線redo日志文件中

答案:BC
三、題目解析
A.當重做日志文件太小的情況下,會頻繁的切換日志,檢查點信息寫入數據文件的頻率會增加而不是減少。A錯。
B.在正常關庫,會生成完全檢查點,CKPT會讓DBWn進程將所有已經提交的都寫進數據文件,B對。
C.頻繁的發生檢查點會增加I/O的讀寫次數,造成數據庫性能的下降,故C對。
D.LGWR是將重做信息寫進重做日志里,DBWn是將數據寫進數據文件,CKPT 進程寫入的檢查點信息(包括檢查點位置、系統更改編號(SCN)、聯機重做日志文件中恢復開始的位置、有關日志的信息等等)到控制文件和數據文件頭部。.D錯。

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e40540/process.htm#BABEACIA

一、源題
QUESTION 106
Which two statements are true regarding the Oracle Data Pump export and import operations? (Choose two.)
A. You cannot export data from a remote database.
B. You can rename tables during an import operation.
C. You can overwrite existing dump files during an export operation.
D. You can compress the data during export but not the metadata because it is not supported.
Correct Answer: BC
二、題目翻譯
哪兩句是正確的關于Oracle Data Pump的導入和導出操作?(選擇兩個)
A. 你不能從遠程數據庫導出數據
B. 你可以重命名表在導入期間
C. 你可以覆蓋已經存在的dump文件在導出操作期間
D. 你可以在導出期間壓縮數據除了元數據因為它不支持

答案:BC
三、題目解析
可以從遠程導出,使用network_link參數
可以壓縮元數據和數據,參數compression的選項有ALL,DATA_ONLY,METADATA_ONLY和NONE

參考官方文檔:
http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#SUTIL201

一、源題
QUESTION 107
View the Exhibit. You are creating an additional database by using the Database Configuration Assistant (DBCA). You opted to create a General Purpose database and during the database creation realize that the Block Size field is not enabled.
What could be the reason for this?

image.png

A. You have chosen the File System option as the storage option.
B. You have chosen the Automatic Storage Management (ASM) as the storage option.
C. The data block size can be increased only when DBCA is invoked from Oracle Universal Installer (OUI).
D. You are using General Purpose template and not the Custom Database template to create the database.
Correct Answer: D
二、題目翻譯
查看下圖。你正在創建一個數據庫通過使用Database Configuration Assistant(DBCA)。你選擇創建一個一般用途數據庫并且在數據庫創建期間意識到Block Size field沒有啟用。
原因可能是什么?
A. 你選擇了文件系統作為存儲選項
B. 你選擇了ASM作為存儲選項
C. 數據塊大小只能被增大當DBCA從Oracle Universal Installer(OUI)調起
D. 你正在使用一般用途模板而不是普通數據庫模板創建數據庫
答案:D
三、題目解析
是因為之前創建數據庫時,選擇的是按照一般目的模板來創建的,故塊大小為固定的,不能改。

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 227,702評論 6 531
  • 序言:濱河連續發生了三起死亡事件,死亡現場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發現死者居然都...
    沈念sama閱讀 98,143評論 3 415
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 175,553評論 0 373
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 62,620評論 1 307
  • 正文 為了忘掉前任,我火速辦了婚禮,結果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 71,416評論 6 405
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發上,一...
    開封第一講書人閱讀 54,940評論 1 321
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 43,024評論 3 440
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 42,170評論 0 287
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當地人在樹林里發現了一具尸體,經...
    沈念sama閱讀 48,709評論 1 333
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 40,597評論 3 354
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發現自己被綠了。 大學時的朋友給我發了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 42,784評論 1 369
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 38,291評論 5 357
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質發生泄漏。R本人自食惡果不足惜,卻給世界環境...
    茶點故事閱讀 44,029評論 3 347
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 34,407評論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 35,663評論 1 280
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 51,403評論 3 390
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 47,746評論 2 370

推薦閱讀更多精彩內容