Oracle中db_16k_cache_size的设定测试
发表于:2025-01-31 作者:千家信息网编辑
千家信息网最后更新 2025年01月31日,Oracle中db_16k_cache_size的设定测试参考:http://blog.chinaunix.net/uid-23622436-id-3234873.html官方文档:http://do
千家信息网最后更新 2025年01月31日Oracle中db_16k_cache_size的设定测试
Oracle中db_16k_cache_size的设定测试
参考:http://blog.chinaunix.net/uid-23622436-id-3234873.html
官方文档:http://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams046.htm#REFRN10027
创建非标准块表空间,需要设置db_nk_cache_size值后,方可创建表空间。
默认的db block是8k, 但当需要使用2k,4k,16k,32k的block size时,就需要设定db_nk_cache_size,其中n是2,4,16或32.
1、以创建16K的表空间块为例,db_16k_cache_size初始为0,创建表空间失败。
SYS@PROD3> show parameter block
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_block_buffers integer 0
db_block_checking string FALSE
db_block_checksum string TYPICAL
db_block_size integer 8192
db_file_multiblock_read_count integer 128
SYS@PROD3> show parameter 16k
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_16k_cache_size big integer 0
SYS@PROD3> show parameter db_create_file_dest
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_create_file_dest string /u01/app/oracle/oradata/PROD3
SYS@PROD3> create tablespace tb16 datafile size 10m blocksize 16k;
create tablespace tb16 datafile size 10m blocksize 16k
*
ERROR at line 1:
ORA-29339: tablespace block size 16384 does not match configured block sizes
2、修改db_16k_cache_size参数值后,创建表空间成功;
SYS@PROD3> alter system set db_16k_cache_size=20m;
SYS@PROD3> create tablespace tb16 datafile size 10m blocksize 16k;
SYS@PROD3> create table table16 tablespace tb16 as select * from dba_objects ;
3、重新将该db_16k_cache_size设置为0,数据插入失败。
SYS@PROD3> alter system set db_16k_cache_size=0;
SYS@PROD3> show parameter 16
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_16k_cache_size big integer 0
SYS@PROD3> insert into table16 select * from dba_objects ;
insert into table16 select * from dba_objects
*
ERROR at line 1:
ORA-00379: no free buffers available in buffer pool DEFAULT for block size 16K
4、db_16k_cache_size参数值默认是0,设置后最小值为系统CPU数*4M,最大值取决于db_buffer值;
SYS@PROD3> alter system set db_16k_cache_size=1m;
SYS@PROD3> show parameter 16k
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_16k_cache_size big integer 8M
官方文档中该参数说明;
http://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams046.htm#REFRN10027
DB_nK_CACHE_SIZE
Property Description
Parameter type Big integer
Syntax DB_[2 | 4 | 8 | 16 | 32]K_CACHE_SIZE = integer [K | M | G]
Default value 0 (additional block size caches are not configured by default)
Modifiable ALTER SYSTEM
Range of values Minimum: 0 (values greater than zero are automatically modified to be either the user-specified size rounded up to the granule size or 4 MB * number of CPUs, whichever is greater)
Maximum: operating system-dependent
Basic No
DB_nK_CACHE_SIZE (where n = 2, 4, 8, 16, 32) specifies the size of the cache for the nK buffers. You can set this parameter only when DB_BLOCK_SIZE has a value other than nK. For example, if DB_BLOCK_SIZE=4096, then it is illegal to specify the parameter DB_4K_CACHE_SIZE (because the size for the 4 KB block cache is already specified by DB_CACHE_SIZE).
Do not set this parameter to zero if there are any online tablespaces with an nK block size.
Operating system-specific block size restrictions apply. For example, you cannot set DB_32K_CACHE_SIZE if the operating system's maximum block size is less than 32 KB. Also, you cannot set DB_2K_CACHE_SIZE if the minimum block size is greater than 2 KB.
Oracle中db_16k_cache_size的设定测试
参考:http://blog.chinaunix.net/uid-23622436-id-3234873.html
官方文档:http://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams046.htm#REFRN10027
创建非标准块表空间,需要设置db_nk_cache_size值后,方可创建表空间。
默认的db block是8k, 但当需要使用2k,4k,16k,32k的block size时,就需要设定db_nk_cache_size,其中n是2,4,16或32.
1、以创建16K的表空间块为例,db_16k_cache_size初始为0,创建表空间失败。
SYS@PROD3> show parameter block
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_block_buffers integer 0
db_block_checking string FALSE
db_block_checksum string TYPICAL
db_block_size integer 8192
db_file_multiblock_read_count integer 128
SYS@PROD3> show parameter 16k
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_16k_cache_size big integer 0
SYS@PROD3> show parameter db_create_file_dest
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_create_file_dest string /u01/app/oracle/oradata/PROD3
SYS@PROD3> create tablespace tb16 datafile size 10m blocksize 16k;
create tablespace tb16 datafile size 10m blocksize 16k
*
ERROR at line 1:
ORA-29339: tablespace block size 16384 does not match configured block sizes
2、修改db_16k_cache_size参数值后,创建表空间成功;
SYS@PROD3> alter system set db_16k_cache_size=20m;
SYS@PROD3> create tablespace tb16 datafile size 10m blocksize 16k;
SYS@PROD3> create table table16 tablespace tb16 as select * from dba_objects ;
3、重新将该db_16k_cache_size设置为0,数据插入失败。
SYS@PROD3> alter system set db_16k_cache_size=0;
SYS@PROD3> show parameter 16
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_16k_cache_size big integer 0
SYS@PROD3> insert into table16 select * from dba_objects ;
insert into table16 select * from dba_objects
*
ERROR at line 1:
ORA-00379: no free buffers available in buffer pool DEFAULT for block size 16K
4、db_16k_cache_size参数值默认是0,设置后最小值为系统CPU数*4M,最大值取决于db_buffer值;
SYS@PROD3> alter system set db_16k_cache_size=1m;
SYS@PROD3> show parameter 16k
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_16k_cache_size big integer 8M
官方文档中该参数说明;
http://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams046.htm#REFRN10027
DB_nK_CACHE_SIZE
Property Description
Parameter type Big integer
Syntax DB_[2 | 4 | 8 | 16 | 32]K_CACHE_SIZE = integer [K | M | G]
Default value 0 (additional block size caches are not configured by default)
Modifiable ALTER SYSTEM
Range of values Minimum: 0 (values greater than zero are automatically modified to be either the user-specified size rounded up to the granule size or 4 MB * number of CPUs, whichever is greater)
Maximum: operating system-dependent
Basic No
DB_nK_CACHE_SIZE (where n = 2, 4, 8, 16, 32) specifies the size of the cache for the nK buffers. You can set this parameter only when DB_BLOCK_SIZE has a value other than nK. For example, if DB_BLOCK_SIZE=4096, then it is illegal to specify the parameter DB_4K_CACHE_SIZE (because the size for the 4 KB block cache is already specified by DB_CACHE_SIZE).
Do not set this parameter to zero if there are any online tablespaces with an nK block size.
Operating system-specific block size restrictions apply. For example, you cannot set DB_32K_CACHE_SIZE if the operating system's maximum block size is less than 32 KB. Also, you cannot set DB_2K_CACHE_SIZE if the minimum block size is greater than 2 KB.
空间
参数
官方
文档
测试
最大
最小
成功
取决于
数据
最大值
标准
系统
参考
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
腾讯云登陆服务器凭证
广州应用软件开发哪家公司好
北京软件开发平均人月
绿色兵团网络安全
怎样停止数据库运行
命令提示符怎么备份数据库
网络安全构建实验
华为公司网络安全归因
软件开发8g内存够用吗
英雄联盟网没问题无法连接服务器
戴旭教授谈网络安全
应用层软件开发好吗
网络安全法安全服务机构
数据库怎么进行null解锁
怎么把文件安装到云服务器里
基于ROS物体识别软件开发
欧盟网络安全会议
cbm的数据库主题词检索
浙江统一软件开发以客为尊
核心期刊遴选数据库期刊好吗
软件开发出来不和需求不一致
网络安全粉笔
数据库系统中的核心是
网络安全进学校活动具体内容
堡垒之夜免费服务器
网络安全构建实验
智龙迷城数据库
互联网科技社
打开找链接提示更新数据库
ios app应用软件开发