ORA - 12537: TNS: connection closed

Often when active clone to be done to create a new environment, we land up into couple of issues. I will discuss about one issues during this process.

Action : Create a new database on different machine from a source.

Error: ORA - 12537: TNS: connection closed


In order to duplicate the environment was using below

rman log /tmp/duplicate.log

connect target sys/<password>@<source tns alias>

connect auxiliary sys/<password>@<target tns alias>

run{

allocate channel ch1 device type disk;

allocate channel ch2 device type disk;

allocate channel ch3 device type disk;

allocate channel ch4 device type disk;

allocate auxiliary channel ax1 device type disk;

allocate auxiliary channel ax2 device type disk;

allocate auxiliary channel ax3 device type disk;

allocate auxiliary channel ax4 device type disk;

DUPLICATE TARGET DATABASE TO <TARGET_DBNAME>

FROM ACTIVE DATABASE

NOFILENAMECHECK;

}


While making connection to Auxiliary database received mentioned error ORA - 12537: TNS: connection closed. This error is very generic and will not give you exact cause of the problem. In order to identify detailed error look at the listener log file.

In listener log found following error

TNS-12518: TNS: listener could not hand off client connection

 TNS-12547: TNS: lost contact

  TNS-12560: TNS: protocol adapter error

   Linux Error: 32: Broken pipe

This error above will give sufficient clue to identify something on linux layer and it also mention it's not able to hand off connection to database.

This error usually comes when you have incorrect permission for oracle binary and both listener and database runs as separate user. Which is normally a case when people runs Grid as different use and database as different user.

$ORACLE_HOME/bin/oracle

This permission of above binary should looks like

-rwsr-s--x 1 oracle asmadmin 

If permission is not as above then it needs to be correct as

chmod 6751 $ORACLE_HOME/bin/oracle


Retry the connection and it should work. I many case have seen changing permission as oracle user doesn't work and need root to execute this.


References

DOC Id: 1069517.1 ORA-12537/ORA-12547 or TNS-12518

Comments

Popular posts from this blog

How to Solve - "WAIT FOR EMON PROCESS NTFNS"

Query Regression - "OR" Transformation Oracle 19c