Professional Documents
Culture Documents
Sizes in a Database
This is one of the most exciting new features for the DBA, especially now a day there are many databases where
you can hardly distinguish between OLTP and DSS….
In the pre-9i releases, you define the BLOCK_SIZE when creating the database and it cannot be changed. In 9i also
this is true. In addition to the standard block size of the database, you can create tablespaces with different block
size. The block size of the tablespace is specified using the BLOCK SIZE clause of CREATE TABLESPACE.
For you to use this feature, you need to set the right buffer cache parameter. The DB_CACHE_SIZE specifies the
buffer cache size for the objects in tablespaces created with the standard block size. DB_nK_CACHE_SIZE
parameter sets the appropriate buffer cache for the non-standard block sized tablespace. ‘n’ could be 2, 4, 8, 16 or
32 but it should not be equal to your standard block size. The default values for DB_nK_CACHE_SIZE parameters
are 0.
Look at the above parameters; since the database was upgraded from 8i, it is still using the old style buffer cache
sizing using DB_BLOCK_BUFFERS. Here we cannot set any of the DB_nK_CACHE_SIZE parameter because
you have not used the DB_CACHE_SIZE parameter to start the database.
System altered.
System altered.
Tablespace created.
SQL>
SQL> select block_size from dba_tablespaces
2 where tablespace_name = 'TEST_BIJU';
BLOCK_SIZE
----------
4096
1 row selected.
Tablespace dropped.
SQL>