oracle表空间大小如何设置,Oracle如何设置表空间数据文件大小
航空院校
oracle表空间⼤⼩如何设置,Oracle如何设置表空间数据⽂件⼤
Oracle数据⽂件默认⼤⼩上限是32G,如果要数据⽂件⼤于32G,需要在数据库创建之初就设置好。
表空间数据⽂件容量与DB_BLOCK_SIZE有关,在初始建库时,DB_BLOCK_SIZE要根据实际需要,设置为 4K,8K、16K、32K、64K等⼏种⼤⼩,ORACLE的物理⽂件最⼤只允许4194304个数据块(由操作系统决定),表空间数据⽂件的最⼤值为
西游转4194304×DB_BLOCK_SIZE/1024M。
妹妹背着洋娃娃恐怖
即:
4k最⼤表空间为:16384M=16G
8K最⼤表空间为:32768M=32G
16k最⼤表空间为:65536M=64G
32K最⼤表空间为:131072M=128G
64k最⼤表空间为:262144M=256G
如何借钱
在windows下只能使⽤2K,4K,8K,16K的块⼤⼩,在⽂档中的描述如下。
Oracle Database Administrator's Guide
10g Release 2 (10.2)
Part Number B14231-02
霭的读音/B19306_01/server.102/b14231/create.htm#sthref372中有如下描述:
Tablespaces of nonstandard block sizes can be created using the CREATE TABLESPACE statement and specifying the BLOCKSIZE clause. These nonstandard block sizes can have any of the following power-of-two values: 2K, 4K, 8K, 16K or 32K. Platform-specific restrictions regarding the maximum block size apply, so some of these sizes may not be allowed on some platforms.
To use nonstandard block sizes, you must configure subcaches within the buffer cache area of the SGA memory for all of the nonstandard block sizes that you intend to use. The initialization parameters used for configuring these subcaches are described in the next section, "Managing the System Global Area (SGA)".
后⼀段说明使⽤⾮标准块要设置相应的内存参数。
Oracle是SGA⾃动共享内存管理,初始化参数db_4k_cache_size=0、db_8k_cache_size=0、db_16k_cache_size=0、
db_32k_cache_size = 0、db_64k_cache_size = 0,使⽤
如果要创建表空间并指定其⽂件⼤⼩(由创建表空间的BLOCK_SIZE决定),需重新设置db_4k_cache_size、db_8k_cache_size、
db_16k_cache_size、db_32k_cache_size、db_64k_cache_size的值。
其中windows系统只⽀持4k、8k、16k的设置。
设置好上述参数的值后,创建表空间:
新手养猪都要注意什么SIZE:数据⽂件⼤⼩,不能超过BLOCKSIZE 16k(对应db_16k_cache_size)的⼤⼩16M*4194304/1024M=65536M=64G的值。
以上就是Oracle如何设置表空间数据⽂件⼤⼩的详细内容,更多关于oracle表空间数据⽂件的资料请关注服务器之家其它相关⽂章!

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。