1Z0-050習(xí)題解析(1-10)

QUESTION 1

Identify the two direct sources from where SQL plans can be loaded into the SQL plan baselines. (Choose two.)
A. Cursor cache
B. Stored outline
C. SQL Tuning Set

D. Automatic Workload Repository (AWR) snapshots
Answer: AC

解析: AWR snapshot 需要先導(dǎo)入到sql tuning set;
To load plans from a SQL tuning set, use the LOAD_PLANS_FROM_SQLSET function of the DBMS_SPM package. To load plans from Automatic Workload Repository (AWR), load the plans stored in AWR snapshots into a SQL tuning set before using the LOAD_PLANS_FROM_SQLSET function as described in this section. To load plans from the shared SQL area, use the LOAD_PLANS_FROM_CURSOR_CACHE function of the DBMS_SPM package.

QUESTION 2

Which two statements about workload capture and replay operations are true? (Choose two.)
A. The clients must be created manually on the test machines to perform more realistic testing.
B. Restart the database in RESTRICTED mode before beginning workload replay to enable a clean state for workload replay.
C. Restart the database in RESTRICTED mode before beginning workload capture to enable a clean state for capturing the workload.
D. The application state of the capture system must be identical to the application state of the replay system when the workload replay begins.

Answer: CD

參考

QUESTION 3

View the Exhibit exhibit1 to examine the series of SQL commands

Paste_Image.png

View the Exhibit exhibit2 to examine the plans available in the SQL plan baseline.

Paste_Image.png

The baseline in the first row of the Exhibit is created when OPTIMIZER_MODE was set to FIRST_ROWS.
Which statement is true if the SQL query in exhibit1 is executed again when the value of
OPTIMIZER_MODE is set to FIRST_ROWS?
A. The optimizer uses a new plan because none of the plans in the exhibit2 are fixed plans.
B. The optimizer uses the plan in the second row of the exhibit2 because it is an accepted plan.
C. The optimizer uses the plan in the first row of the exhibit2 because it is the latest generated plan.
D. The optimizer uses the plan in the first row of the exhibit2 because OPTIMIZER_MODE was set to
FIRST_ROW during its creation.
Answer: B

解析:Oracle 在執(zhí)行SQL語句時,有兩種優(yōu)化方法:即基于規(guī)則的RBO和基于代價的CBO赴涵。 在SQL執(zhí)教的時候媒怯,到底采用何種優(yōu)化方法,就由Oracle參數(shù) optimizer_mode 來決定髓窜。

SQL> show parameter optimizer_mode
NAME                                  TYPE         VALUE
 ------------------------------------ ----------- -----------------------------
 optimizer_mode                        string       CHOOSE

optimizer_mode 參數(shù)值共有以下四個:
第一:CHOOSE
這個是Oracle的默認(rèn)值扇苞。采用這個值時,Oracle即可以采用基于規(guī)則RBO寄纵,也可以采用基于代價的CBO鳖敷,到底使用那個值,取決于當(dāng)前SQL的被訪問的表中是不是有可以使用的統(tǒng)計信息擂啥。
如果有多個被訪問的表哄陶,其中有一個或多個有統(tǒng)計信息,那么Oralce會對沒有統(tǒng)計信息的表進行采樣統(tǒng)計(即不全部采樣)哺壶,統(tǒng)計完成后屋吨,使用基于代價的優(yōu)化方法CBO。
如果所有被訪問的表都沒有統(tǒng)計信息山宾,Oracle就會采用基于規(guī)則的優(yōu)化方法RBO至扰。
第二:ALL_ROWS
不管是不是有統(tǒng)計信息,全部采用基于成本的優(yōu)化方法CBO资锰。
第三:FIRST_ROWS_n
FIRST_ROWS_n后面的n值可以為1,100,1000
不管是不是有統(tǒng)計信息敢课,全部采用基于成本的優(yōu)化方法CBO,并以最快的速度,返回前N行記錄直秆。
第四:FIRST_ROWS
使用成本和試探法相結(jié)合的方法濒募,查找一種可以最快返回前面少數(shù)行的方法;這個參數(shù)主要用于向后兼容圾结。
第五:RULE
這個參數(shù)正好和ALL_ROWS相反瑰剃,不管是不是統(tǒng)計信息,全部采用基于規(guī)則的優(yōu)化方法筝野。
如何更改 optimizer_mode 的參數(shù)呢晌姚?可以用以下的方法。

SQL> alter session set optimizer_mode='RULE';
會話已更改歇竟。

參考oracle 11g新特性之執(zhí)行計劃管理

QUESTION 4

Which statement describes the effect of table redefinition on the triggers attached to the table?
A. All triggers on the table remain valid.
B. All triggers on the table are invalidated and are automatically revalidated with the next DML execution on
the table.
C. All triggers on the table are invalidated and must be manually recompiled before the next DML execution
on the table.
D. Only triggers that are affected by the changes to the structure of the table are invalidated and
automatically revalidated with the next DML execution on the table.
Answer: B

參考

  1. OCP 1Z0 053 109
  2. 在線重定義表

QUESTION 5

USER_DATA is a nonencrypted tablespace that contains a set of tables with data. You want to convert all existing data in the USER_DATA tablespace and the new data into the encrypted format. Which methods would you use to achieve this? (Choose all that apply.)
A. Use Data Pump to transfer the existing data to a new encrypted tablespace.
B. Use ALTER TABLE..MOVE to transfer the existing data to a new encrypted tablespace.
C. Use CREATE TABLE AS SELECT to transfer the existing data to a new encrypted tablespace.
D. Enable row movement for each table to be encrypted and then use ALTER TABLESPACE to encrypt the tablespace.
E. Encrypt the USER_DATA tablespace using the ALTER TABLESPACE statement so that all the data in the tablespace is automatically encrypted.
Answer: ABC

QUESTION 6

Evaluate the following block of code:

BEGIN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (acl => 'mycompany-com-permissions.xml',
principal => 'ACCT_MGR',
is_grant => TRUE,
privilege => 'connect');
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (acl => 'mycompany-com-permissions.xml',
host => '*.mycompany.com');
END;

What is the outcome of the above code?
A. It produces an error because a fully qualified host name needs to be specified.
B. It produces an error because the range of ports associated with the hosts has not been specified.
C. It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT and RESOLVE privileges.
D. It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT privilege but not the RESOLVE privilege.

Answer: C

參考:http://blog.csdn.net/rlhua/article/details/15029727
創(chuàng)建訪問控制列表(ACL)挥唠。
ACL 是在XML 文件中保存的用戶和權(quán)限的列表。以acl參數(shù)命名的XML 文檔與XML DB中的/sys/acl/文件夾相關(guān)焕议。在題中例中宝磨,ACCT_MGR被授予connect權(quán)限。ACL 中的用戶名區(qū)分大小寫盅安,而且必須與會話的用戶名相匹配懊烤。只有resolve和connect權(quán)限,connect權(quán)限包含resolve權(quán)限宽堆。可選參數(shù)可以指定這些權(quán)限的開始和結(jié)束時間戳茸习。要將更多用戶和權(quán)限添加到此ACL 中畜隶,可使用ADD_PRIVILEGE過程。

QUESTION 7

Which steps are mandatory to enable Direct NFS?
Mount all required file systems using the kernel NFS driver.
Create an oranfstab file containing the attributes for each NFS server to be accessed using Direct NFS.
Replace the ODM library libodm11.so_stub with libodm11.so. A. 2 and 3
B. 1 and 3
C. 1 and 2
D. 1, 2 and 3

Answer: B

解析:
參考:http://czmmiao.iteye.com/blog/1965839
Enabling Direct NFS
You must follow these steps to enable Direct NFS:

  1. You must mount all NFS mount points with your kernel NFS client. You must make sure you mount any file systems you plan on using through ODM NFS and make the file systems available to Oracle over regular NFS mounts.
  2. If you want to specify Oracle-specific options to Direct NFS, you’ll need an oranfstab file. This is an optional step. The oranfstab file must have the following attributes so the database can access all NFS servers through Direct NFS:
  3. You must replace the standard ODM library, libnfsodm10.so, with the ODM NFS library, as shown here:
    $ cd $ORACLE_HOME/lib
    $ cp libodmll.so libodmll.so_stub
    $ ln -s libnfsodm11.so libodm11.so
    You can disable the Direct NFS client by using any of the following three methods.
    Delete the oranfstab file.
    Replace the ODM NFS library with the stub libodm11.so file.
    Modify the oranfstab file by deleting the specific NFS server or the network paths to the NFS server.
    If the database can’t open the NFS server using Direct NFS, it will use the operating system kernel client instead.

QUESTION 8

Which statements are true regarding the concept of problems and incidents in the fault diagnosability infrastructure for Oracle Database 11g? (Choose all that apply.)
A. The problem key is the same as the incident number.
B. Every problem has a problem key, which is a text string that describes the problem.
C. The database makes an entry into the alert log file when problems and incidents occur.
D. The database sends an incident alert to the Oracle Enterprise Manager Database Home page.
E. Only the incident metadata and dumps are stored in the Automatic Diagnostic Repository (ADR).

Answer: BCD

解析:
http://docs.oracle.com/cd/B28359_01/server.111/b28310/diag001.htm#ADMIN11008

QUESTION 9

You are managing an Oracle Database 11g database. You want to take a backup on tape drives of the USERS tablespace that has a single data file of 900 MB. You have tape drives of 300 MB each. To accomplish the backup, you issued the following RMAN command:

RMAN>BACKUP 
SECTION SIZE 300M 
TABLESPACE users; 

What configuration should be effected to accomplish faster and optimized backups by using the above command?
A. The SBT channel must be configured, with the MAXPIECESIZE set to 300 MB.
B. The SBT channel must be configured, with the parallelism(平行) setting for the SBT device set to 3.
C. The COMPATIBLE initialization parameter for the database instance must be set to at least 10.0.
D. The SBT channel must be configured, with the default parallelism setting for the SBT device set to 1.

Answer: B

解析:
參考:

  1. 官方文檔說明
  2. Oracle 11g New 使用RMAN 增強功能

根據(jù)Note: You cannot use SECTION SIZE with MAXPIECESIZE or with INCREMENTAL LEVEL 1.這句話号胚,說明A錯誤

根據(jù)RMAN channels can process each step independently and in parallel籽慢,應(yīng)該選擇B,可以并行備份猫胁。

Oracle 數(shù)據(jù)文件最大為128 TB箱亿。
在以前的版本中,RMAN 備份的最小單位是整個文件弃秆。這對于如此大的文件不適用届惋。在Oracle Database 11g中,將在多個并行服務(wù)器進程之間分配各個文件的工作量菠赚。如果指定了SECTION SIZE選項脑豹,則RMAN 可以將一個大文件分解為多個部分,然后獨立備份和還原這些部分衡查。
換句話說瘩欺,RMAN 可以對每個文件使用多個通道。每個通道備份一個文件部分。每個文件部分都是文件中一系列連續(xù)的塊俱饿「柚啵可按串行或并行方式獨立處理每個文件部分。以多個單獨部分的形式備份文件拍埠,既可以提高性能又可以重新啟動大型文件備份失驶。多部分備份作業(yè)可生成一個多片段備份集。每個片段都包含一個文件部分械拍。多部分備份的所有部分的大小都相同(最后一部分可能除外)突勇。每個文件最多有256 個部分。提示:在備份駐留在少量磁盤上的大型文件時坷虑,不宜使用很高的并行度甲馋。此功能已內(nèi)置到RMAN 中。除Oracle Database 11g的常規(guī)安裝外迄损,不需要其它安裝定躏。因為早期版本無法還原多部分備份,所以必須至少將COMPATIBLE設(shè)置為11.0芹敌。

Paste_Image.png

QUESTION 10

When executing a SQL workload, you choose to generate execution plans only, without collecting execution statistics.
Which two statements describe the implications of this? (Choose two.)
A. It produces less accurate results of the comparison analysis.
B. It automatically calls the SQL Tuning Advisor for recommendations.
C. It shortens the time of execution and reduces the impact on system resources.
D. Only the changes in the execution plan, and not performance regression, are detected.

Answer: AC

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末痊远,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子氏捞,更是在濱河造成了極大的恐慌碧聪,老刑警劉巖,帶你破解...
    沈念sama閱讀 217,084評論 6 503
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件液茎,死亡現(xiàn)場離奇詭異逞姿,居然都是意外死亡,警方通過查閱死者的電腦和手機捆等,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,623評論 3 392
  • 文/潘曉璐 我一進店門滞造,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人栋烤,你說我怎么就攤上這事谒养。” “怎么了明郭?”我有些...
    開封第一講書人閱讀 163,450評論 0 353
  • 文/不壞的土叔 我叫張陵买窟,是天一觀的道長。 經(jīng)常有香客問我达址,道長蔑祟,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,322評論 1 293
  • 正文 為了忘掉前任沉唠,我火速辦了婚禮疆虚,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己径簿,他們只是感情好罢屈,可當(dāng)我...
    茶點故事閱讀 67,370評論 6 390
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著篇亭,像睡著了一般缠捌。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上译蒂,一...
    開封第一講書人閱讀 51,274評論 1 300
  • 那天曼月,我揣著相機與錄音,去河邊找鬼柔昼。 笑死哑芹,一個胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的捕透。 我是一名探鬼主播聪姿,決...
    沈念sama閱讀 40,126評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼乙嘀!你這毒婦竟也來了末购?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 38,980評論 0 275
  • 序言:老撾萬榮一對情侶失蹤虎谢,失蹤者是張志新(化名)和其女友劉穎盟榴,沒想到半個月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體婴噩,經(jīng)...
    沈念sama閱讀 45,414評論 1 313
  • 正文 獨居荒郊野嶺守林人離奇死亡曹货,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,599評論 3 334
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了讳推。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 39,773評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡玩般,死狀恐怖银觅,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情坏为,我是刑警寧澤究驴,帶...
    沈念sama閱讀 35,470評論 5 344
  • 正文 年R本政府宣布,位于F島的核電站匀伏,受9級特大地震影響洒忧,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜够颠,卻給世界環(huán)境...
    茶點故事閱讀 41,080評論 3 327
  • 文/蒙蒙 一熙侍、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦蛉抓、人聲如沸庆尘。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,713評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽驶忌。三九已至,卻和暖如春笑跛,著一層夾襖步出監(jiān)牢的瞬間付魔,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 32,852評論 1 269
  • 我被黑心中介騙來泰國打工飞蹂, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留几苍,地道東北人。 一個月前我還...
    沈念sama閱讀 47,865評論 2 370
  • 正文 我出身青樓晤柄,卻偏偏與公主長得像擦剑,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子芥颈,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 44,689評論 2 354

推薦閱讀更多精彩內(nèi)容

  • 一惠勒、源題QUESTION 36Your database is open and the LISTENER lis...
    貓貓_tomluo閱讀 1,234評論 0 2
  • 大千世界大舞臺 蕓蕓眾生演戲來 自己的劇本自己編 自己的角色自安排 是否出彩靠自己 同臺的緣份要珍愛 相互合作靈犀...
    風(fēng)起龍飛閱讀 396評論 6 7
  • 以前覺得自己接受不了愛情降溫的落差 那就應(yīng)該在最開始的時候不要那么灼熱 因為一切總會歸于平淡被雞毛蒜皮和事無巨細(xì)淹...
    萱萱_萱閱讀 431評論 0 3