While importing TTS we found below error:
ORA-29339: tablespace block size 32768 does not match configured block sizes
Then, on target DB we execute below:
SQL> show parameter db_32k_cache_size;
NAME TYPE VALUE
------------------------------------
db_32k_cache_size big integer 0
here value=0, so, (32768/1024=)32K cache in not congigured. Inorder to import this TTS, first we need to configure this.
According to oracle doc, before configuring this we need to consider below:
- We cannot configure db_nk_cache_size in db_block_size=n. We cannot configure db_32k_cache_size in db_block_size=32768.[ORA-00380]
- This parameter cannot be set to zero if there are any online tablespaces with an nK block size
- We need to consider Operating system-specific block size restrictions[ORA-00382]
We 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.
- For 10g and later, nK-cache values are not automatically managed by Oracle and settings for them are subtracted from the total SGA_TARGET before the remainder is distributed amongst the other, automatically managed, SGA components (like the default cache, shared, large and java pools).
So, if SGA_TARGET=8GB and DB_32K_CACHE_SIZE=1GB, then 7GB of memory is available for distribution amongst the automatically-managed SGA components.
- For for 9i and earlier, we need to readjust other memory component size within sga_max_size [ORA-00384]
Our DB was a 9i DB, so we first shirnk db_cache_size by 50M and then set db_32k_cache_size=50M:
SQL> alter system set db_cache_size=158M scope=both;
SQL> alter system set db_32k_cache_size=50M scope=both;
SQL> create pfile from spfile;
Solutions provided here, may or may not be from trusted sources. Please check in test environment before implement these in production.
Showing posts with label db_32K_cache_size. Show all posts
Showing posts with label db_32K_cache_size. Show all posts
Tuesday, March 29, 2011
Tuesday, January 19, 2010
db_32K_cache_size
A few days ago I was asked to create a replica of a tablespace on production database.
OS of production was HP-UX and my test environment was Redhat 5.4(x86).
I created a database there and collect the exact tablespace creation script.
I run below tablespace creation script:
create tablespace MYTBS datafile '/data01/oradata/MYTBS/mytbs01.dbf' size 50M blocksize 32k;
and got below error:
ORA-00382: 32768 not a valid block size, valid range [2048..16384]
I thought that above error occurred as i didn't had 32K cache configured.
I i tried to configure as below:
SQL> alter system set db_32K_cache_size=5M;
alter system set db_32K_cache_size=5M
*
ERROR at line 1: ORA-32017: failure in updating SPFILE
ORA-00382: 32768 not a valid block size, valid range [..]
Then I search for it and found that not all cache size can be configured on all system.
It is Operating System dependent. As my OS was RHEL5.1 it was not possible to create db_32K_cache_size.
Please read metalink/MOS doc id 138242.1 for details
OS of production was HP-UX and my test environment was Redhat 5.4(x86).
I created a database there and collect the exact tablespace creation script.
I run below tablespace creation script:
create tablespace MYTBS datafile '/data01/oradata/MYTBS/mytbs01.dbf' size 50M blocksize 32k;
and got below error:
ORA-00382: 32768 not a valid block size, valid range [2048..16384]
I thought that above error occurred as i didn't had 32K cache configured.
I i tried to configure as below:
SQL> alter system set db_32K_cache_size=5M;
alter system set db_32K_cache_size=5M
*
ERROR at line 1: ORA-32017: failure in updating SPFILE
ORA-00382: 32768 not a valid block size, valid range [..]
Then I search for it and found that not all cache size can be configured on all system.
It is Operating System dependent. As my OS was RHEL5.1 it was not possible to create db_32K_cache_size.
Please read metalink/MOS doc id 138242.1 for details
Subscribe to:
Posts (Atom)