Oracle 11G OCP 1Z0-053 41

LuiseDalian發表於2014-08-13
(41)You have applications that have frequently executed queries,and produce small and static result sets.

You configure the sqlnet.ora file in the client machine to set a nonzero value for the OCI_RESULT_CACHE_MAX_SIZE parameter.

What is the purpose of this configuration?

A. to avoid round trips to the server by enabling caching of query results in client memory

B. to improve performance by storing a copy of the data from the private SQL area of the PGA

C. to enhance the query performance by creating a cache in the client memory for sorting operations

D. to avoid the storing of query plans and results in the server by creating a cache in the client memory

答案:(A)

解析:

《Call Interface Programmer's Guide》 10.4.4.1

客戶端配置檔案是可選的,會覆蓋在init.ora初始化引數檔案中的設定.這些引數是sqlnet.ora檔案的一部分.

可以設定的引數有:

OCI_RESULT_CACHE_MAX_SIZE--每個程式的query cache的最大位元組數.

                                                  如果在sqlnet.ora檔案中指定的大小 < 32768, 則讀取這個sqlnet.ora檔案的客戶端程式會禁用客戶端結果快取功能

OCI_RESULT_CACHE_MAX_RSET_SIZE--針對全域性進行設定(單位為位元組)

OCI_RESULT_CACHE_MAX_RSET_ROWS--針對全域性進行設定(單位為行)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17013648/viewspace-1250225/,如需轉載,請註明出處,否則將追究法律責任。

相關文章