Showing posts with label Oracle_Issue. Show all posts
Showing posts with label Oracle_Issue. Show all posts

[FATAL] [DBT-11101] The block size (0MB) for the tablespace SYSAUX does not match the configured block size (0MB)


On creation of database through OEM with a block size of 32K is failing @ pre-requiste step(error is below).

[FATAL] [DBT-11101] The block size (0MB) for the tablespace SYSAUX does not match the configured block size (0MB).
ACTION: To use block size of (0MB), set initialization parameter db_8k_cache_size.

On checking the template file (QC_12201_32k_DB_TEMPLATE.dbt), default tablespaces block sizes are explicitly set to “8192” where this doesn’t work, as the database block size is set to “32K”. Per oracle, If we want to create tablespaces with non-standard block size(other than database block size), we may need to set the non standard block size buffers  parameter db_8k_cache_size to certain MB(per requirement), Legimate  values are from 2K to 32K,so that the oracle can load the content of the datafile with the block size of “8k” into “32k” buffer size.

For now, created with dbca & tablespaces have been picked with blocksize of 32K (No issue). We might face issue only when mismatches happens.

TABLESPACE_NAME      BLOCK_SIZE
------------------------------ ----------
SYSTEM                              32768
SYSAUX                              32768
UNDOTBS1                        32768
TEMP                                  32768
USERS                                 32768

In our case, since db blocksize and tablespace blocksize have mismatches, Assuming that we may need to add “blocksize” parameter to ‘32K’ in the template” or “set the ‘db_nk_cache_size’ parameter with certain memory.

Content of template:
         
8192
--
8192

Refer below link for explanation :
https://docs.oracle.com/cd/B28359_01/server.111/b28310/memory004.htm#i1014186 (Navigate to “Setting the Buffer Cache Initialization Parameters“)

ORA-12542: TNS:address already in use In windows

One of our client getting the issue at application level, while getting some reports they experienced the issue ORA-12542: TNS:Address already in use.

Resolution for this issue is add the parameter MaxRange value 65534 in REG_DWORD. When I did this the issue got resolved.

Cause : In windows environment the available ports  are exhausted and the request is trying to use the port which is in TIME_WAIT state and given error ORA-12542: TNS:Address already in use.

Below are the steps to resolve the issue.

1. Go to run and regedit.
2. Go to HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>services>Tcpip>Parameters.
3. Right click on Parameter>New>Key select QWORD for 64bit, DWORD for 32bit



4. One Newfile will created at right side, then rename it to MaxUserPort and select that file  , select Decimal radio button , enter the value 65534.