【OCP学习1Z0-053记录19】【11g】客户机缓存特性 CLIENT_RESULT_CACHE_SIZE

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
Answer: A
 
 
CLIENT_RESULT_CACHE_SIZE
默认值为零,这意味着禁用了客户机缓存特性。要启用客户机结果缓存特性,请将大小设置为32768字节(32 KB)或更大。这是每个进程结果集缓存的客户机的最小大小。所有OCI客户机进程都得到这个最小大小。

这可以被sqlnet覆盖。只有在服务器上通过初始化参数theCLIENT_RESULT_CACHE_SIZE启用该特性时,才可以使用配置参数OCI_RESULT_CACHE_MAX_SIZE。
通过显示CLIENT_RESULT_CACHE_SIZE参数的值,可以查看当前默认的最大大小。要增加这个最大大小,可以设置CLIENT_RESULT_CACHE_SIZE。但是,由于CLIENT_RESULT_CACHE_SIZE是一个静态参数,如果使用ALTER SYSTEM语句,则必须包含SCOPE = SPFILE子句,并且必须在对该参数进行任何更改之前重新启动数据库


注意,如果在服务器上禁用了客户机结果缓存特性,则会忽略客户机配置参数OCI_RESULT_CACHE_MAX_SIZE,并且不能在客户机上启用客户机结果缓存。


客户端配置文件
客户机配置文件是可选的,它覆盖服务器init中设置的缓存参数。奥拉的初始化文件。这些参数是sqlnet.orafile的一部分。以下可选参数可用于客户端配置:
OCI_RESULT_CACHE_MAX_SIZE(可选)——每个进程查询缓存的最大字节大小。在客户端sqlnet中指定小于32768的大小。orafile禁用读取此sqlnet的客户机进程的客户机结果缓存特性。ora文件。

猜你喜欢

转载自blog.csdn.net/viviliving/article/details/89000126