TNS-12570: TNS:packet reader failure

I have a few client boxes that are reporting getting these errors.
Fatal NI connect error 12570, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Oracle)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=FBC1)(CID=(PROGRAM=C:\Mercator\Mercntsv.exe)(HOST=MERCATOR2)(USER=SYSTEM))))
VERSION INFORMATION:
     TNS for 32-bit Windows: Version 9.2.0.7.0 - Production
     Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 9.2.0.7.0 - Production
Time: 01-APR-2008 18:05:04
Tracing not turned on.
Tns error struct:
ns main err code: 12570
TNS-12570: TNS:packet reader failure
ns secondary err code: 12560
nt main err code: 530
TNS-00530: Protocol adapter error
nt secondary err code: 53
nt OS err code: 0
They seem to occur sporadically - the application running on it will be fine for 4 minutes, then a flurry of these errors in the space of 2 seconds, then fine for a little while. The network guy is looking at things from his end, but how do I debug this to make sure I have done everything I can?
The server isn't reporting any issues that I can see (but I may not have my debug levels set correctly to catch this), and both client and server are running the same version.
Any ideas how I should be proceeding?
Edit: Sorry, misleading title
Message was edited by:
jlaidlaw
Message was edited by:
jlaidlaw

The troubleshooting section of the Net administrators manual would have been a good place to start.
It would have told you how to enable tracing, by putting the following in sqlnet.ora
on the client.
trace_level_client=16
trace_unique_client=true
trace_directory_client=anything
This will provide a plethora of bytes, and the error message, as well as accompanying messages which are usually not shown.
trace_level_client=0 disables tracing,
But the problem is with the network, you won't find anything
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Message: ORA-12570: TNS:packet reader failure

    Hi,
    when i execute the below program,getting "Message: ORA-12570: TNS:packet reader failure" error. java version is 1.3.1 and oracle
    version is :9.1.
    able to connect to database using sql plus with the same user-id and
    password.
    Any help in this regard is appreciated.
    Thanks
    Chat
    import java.sql.*;
    import java.io.*;
    import java.util.Date;
    class JdbcTest
      public static void main (String args [])
        System.out.println ("Loading Oracle driver");
        try
          Class.forName ("oracle.jdbc.OracleDriver");
         System.out.println ("Connecting to the local database");
        Connection conn =
          DriverManager.getConnection("jdbc:oracle:oci8:@orcl,scott,tiger");
        System.out.println("debug 1 ....\n");
        Statement stmt = conn.createStatement ();
        System.out.println("debug 2 ....\n");
        // Query the employee names
        ResultSet rset = stmt.executeQuery ("select ename from emp");
        while (rset.next ())
          // Print the name out
          System.out.println (rset.getString (1));
      } catch (ClassNotFoundException cnfe){
          System.out.println ("Could not load the driver");
          cnfe.printStackTrace ();
      } catch (SQLException sqle) {
              System.out.println( "State  : " + sqle.getSQLState()  ) ;
               System.out.println( "Message: " + sqle.getMessage()   ) ;
               System.out.println( "Error  : " + sqle.getErrorCode() ) ;
      } catch (Exception e) {
          System.out.println ("Could not load the driver");
          e.printStackTrace ();
    C:\mjava>java JdbcTest
    Loading Oracle driver
    Connecting to the local database
    State  : 66000
    Message: ORA-12570: TNS:packet reader failure
    Error  : 12570
    C:\mjava>

    Hi Chat,
    You are using the oci8 driver and you may or may not be aware that oci8 is a type 3 driver that requires that the Oracle client be installed on the computer that is running the Java program. It also requires that you setup Oracle networking correctly, usually by putting an entry into your Oracle tnsnames.ora file.
    If there is no reason in particular that you are using the oci8 driver, then you should use the thin driver instead. The thin driver is a type 4 driver and does not require the Oracle client to be installed, and does not require configuration of Oracle networking. You do have to download the Oracle JDBC drivers from the Oracle website to the computer you are going to run your program on, and then place the oracle .jar files that contain the driver into the programs CLASSPATH. This can be done by setting an environment variable or by passing it to java.exe as a command line parameter. The url for the thin driver looks something like this, but you should check the Oracle doc for specifics or search this forum for more examples:
    jdbc:oracle:thin:@myserver:1521:mydatabaseWhen using a type 3 driver you should verify that you have Oracle networking properly configured for the computer that will be running your Java program by either connecting to the database using SQL/Plus or 'ping' the database using Oracle's tnsping utility. Make sure you check for valid connectivity before trying to run your Java program.

  • Random ORA-12570: TNS:packet reader failure errors

    We are seeing random ORA-12570: TNS:packet reader failure errors. Trace files regularly show the following entries:
    2012-09-06 14:45:01.974959 : nttrd:entry
    2012-09-06 14:45:23.327987 : ntt2err:entry
    2012-09-06 14:45:23.328093 : ntt2err:soc 844 error - operation=5, ntresnt[0]=530, ntresnt[1]=53, ntresnt[2]=0
    2012-09-06 14:45:23.328112 : ntt2err:exit
    2012-09-06 14:45:23.328127 : nttrd:exit
    2012-09-06 14:45:23.328177 : nserror:nsres: id=0, op=68, ns=12570, ns2=12560; nt[0]=530, nt[1]=53, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
    Oracle Client is Server 2008 R2 on VMWare.

    Hi;
    Please also review:
    ORA-12570 ON CONNECTION ATTEMPT IN SERVER MANAGER WITH NO NETWORK CONNECTION [ID 91210.1]
    But As mention here rise SR please
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • Ora Error:12570: TNS Packet Reader Failure

    Hi,
    I installed Oracle 8.1.5 on windows NT 4.0(Service Pack 5). When I am trying to create a local database. After completeing 85% of process. I am getting TNS Packet Reader Failure Error. All this is happening when i am not connected to network. I am able to create a local database if i am connected to my Office Network. Please Can anyone help me?
    Details once again:
    Oracle 8.1.5
    Windows NT 4.0(Service Pack 5)
    Network Protocol is TCP/IP(Protcol used for database)
    TCP/IP Port number is 1521
    Thanks
    skumar

    I am getting this error message
    ORA-12570: TNS:packet reader failure
    i haven't got any sensible detail about it.
    Does anyone know about it.
    Ajwat The configuration of your environment variables are not correct
    (ORACLE_HOME, ORACLE_SID,...)

  • Ora-12570: TNS:Packet Reader Failure....

    Hello Everyone,
    Today i deinstalled Oracle 8i personal edition and installed again. When I am trying to login as system/manager, i am getting "Ora-12570: TNS:Packet Reader Failure" Can any one help me to come out of this problem? I look forward to your reply.
    Thanks In Advance.
    Sunil

    Hi Nepali...
    Sorry I for got to mention that oracle is installed on Windows Nt4.0. Do i need to remove evertying related to oracle in windows registery. This is installed on my laptop, probably i may not be able to install on another p.c.

  • (Urgent) TNS-12570 TNS:packet reader failure

    Hi
    I have oracle 9.0.2 and developer 6i installed on the same machine for development purpose. Every thing was running fine but today when I tried to connect the form builder to database it raised following error:
    TNS-12570 TNS:packet reader failure
    Cause: An error occurred during a data receive. This message is not normally visible to the user.
    Action: For further details, turn on tracing and re-execute the operation. If the error persists, contact Oracle Support Services.
    when I tried to connect from remote machine on LAN it raised following error:
    TNS-12537 TNS:connection closed
    Cause: "End of file" condition has been reached; partner has disconnected. This is an informational message.
    Action: No action required.
    Do you have any solution to this problem
    Regards
    Faisal

    Recently found the same problem in my system. I got this problem after installing McAfee Internet Security suite which installs personal firewall.
    I un-installed oracle and re installed it result is same.I am using oracle 8i (8.1.5)
    Funny part is if I give SID in sql plus then only i get this error otherwise if I put scott/tiger in sqlplus without SID it connects to database.
    This does not solves my purpose coz one of my application connects to database in which dburl contains SID.
    Thanks in advance
    satyen

  • ORA-12570 TNS PACKET FAILURE

    I am trying to instal oracle(8 1 5) on my window 2000. Everything works fine but when it get to were to build the starter database, I get thisd message
    ora-12570 TNS packet failure.
    Can someone take me what I need to do to fix this problem. I can't get it work but we I get to the service area the database was installed.
    Please this is a big problem to me. I will really appreciate quick respond if you have come across a similar problem.
    God bless you.

    Try using the option to build scripts to create the database instead of creating the database. Then run the script to create database from the cmd window.
    If using TCP/IP, can you ping localhost successfully ?

  • ORA-12570 TNS PACKET READER FALIURE

    Dear Gurus
    I am using following:
    1- Oracle 10g (10.1.0.2.0) at server level using operating system Windows 2003 server.
    2- Windows Vista 32 Bit (Service Pack 2) client
    3- Oracle 9.2.0.1.0 Install at client machince (administrative level)
    4- Forms6i, Report6i
    now the problem is that when I install Oracle 9.2.0.1.0. on my CLIENT machine and try to connect to the server error generate
    ORA-12514: TNS:Listner could not resolve SERVICE_NAME given in Descriptor.
    and when i connect forms then error generate ORA-12570 TNS PACKET READER FALIURE
    Can any one help me in this regard
    Salman

    with the new 9i install you may now have a new oracle home with a new tnsnames. ora
    here you have to add the necessary connection profiles (or copy the old tnsnames.ora to the new).
    look here also: Re: connecting to database
    update: this is a double thread ....
    Edited by: jowal on 29.11.2010 09:11

  • ORA-12571-TNS: PACKET WRITER FAILURE

    Hi All,
    am using oracle 6i and facing this problem when am connecting Forms to Database..
    Error Encounterd:ORA-12571-TNS: PACKET WRITER FAILURE.
    Plz help.
    Regards,
    Neha

    this error usually network problem..... i googled it found some solutions try
    his is usually due to an improper sqlnet.ora setting. Here are some possible causes and remedies:
    ** Loose network cables. This error has been observed when there was a loose cable connection to the SCSI disk array (on an Oracle Parallel Server system). Related errors were also subsequently noted in the NT event log.*
    ** IP address conflict (Oracle 9.0.1).*
    ** Authentication services. One solution is to edit the sqlnet.ora file and change the line:*
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    to
    SQLNET.AUTHENTICATION_SERVICES= (NONE)
    After saving the updated file, he was able to hit the retry button on the install and the creation of the database succeeded.

  • ORA-12571 TNS PACKET WRITER FAILURE --urgent help required

    I'm facing ORA-12571 TNS PACKET WRITER FAILURE error
    Platform is windows 2000/ tomcat / appache server / oracle 8.1.7
    This is not frequently happening. When the load increases, I'm facing this error? What type of parameters should I concentrate.
    DB is running on MTS.
    It is urgent.
    Could anyone throw some light on it?

    This question probably best belongs on the General database forum.

  • 12571 - ORA-12571: TNS:packet writer failure Failed SQL stmt

    hi, sir,
       My script work successfully and when i am try to script mover software every thing done fine but at the end i face this(12571 - ORA-12571: TNS:packet writer failure Failed SQL stmt) error. so I read few article they told about this is antivirus issue, so please tell me, can i re-run the script mover or not.
    Samiullah

    Hi Neeraj,
    This is My Listerner file
    # listener.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    HRCS9 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.2.204)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    SID_LIST_HRCS9 =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
          (PROGRAM = extproc)
    This is my tns file
    # tnsnames.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    HRCS9 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.2.204)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = HRCS9)
    both file working good and ping
    Samiullah

  • ORA-12571 TNS : Packet Writter Failure

    Hi all,
    When I try to connect the DBA Studio (in the WIN 2000 SP 3), client of Oracle , the error message is
    "ORA-12571 : TNS : Packet writer failure."
    But in the TNSNAME.ORA file is working fine. meaning SQL*Plus and other Oracle client can connect.
    Only the GUI application(like DBA Studio,enterprise manager) are giving this error.
    How can I solve this ploblem?
    Thanks.

    yes I few more tnsnames.ora file other directory for other version and application.
    For this same version HOME directory, only one file is there.
    so, SQL*Plus is connecting by using this file , but not for GUI applications.(DBA studio,Enterprise manager)

  • TNS-12571:TNS PACKET WRITER FAILURE

    Hello Oracle Gurus,
    Our Oracle 9i database is hosted somewhere else and is behind the firewall. When accessing this database through TOAD, even after 2 minutes of inactivity, we get the "TNS-12571: TNS Packet writer failure" and we have to reconnect to the database again. This occurs in all of the client machines. The Oracle 9i database's firewall is open for the ip address from which we are using TOAD/SQL*Plus.
    Is there any configuration that needs to be changed on the Oracle Client or server side to solve this issue? I appreciate your help.
    Thanks,
    Saku

    Hi,
    you can set sqlnet_expire_time option in sqlnet.ora file on the database server and set the time less than 2 mins. This to identify if the problem is because of some firewall configuration or other network related issue which causes the onnection to die.
    this parameter should keep all the client connection alive but results in extra trafic.

  • TNS Packet writer failure and end-of-file on communication channel

    Hello Sir/Mam,
    I m working on oracle server 9i. when i insert data into Blob,Nclob,Clob field which is larger than 4KB, this message occur everytimes.(TNS Packet writer failure or end-of-file on communication channel).
    Can u tell me why this happen when i insert large data from 4KB.
    I m using oledb to insert data into a table.if datasize is less than 4 KB ,its easily insert.
    My Code Module is this
    BOOL CconnectivityDlg::OpenOracleFile()
         BOOL bResult=FALSE;
         bFile = FALSE;
         dwFileSize = 0;
         CString csVirtualPath;      
         CFileDialog dlg(TRUE);
         if(dlg.DoModal()==IDOK)
              StrName = dlg.GetPathName();
         hFile1=CreateFile(StrName,GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE,
                                       NULL,OPEN_EXISTING, NULL,NULL);
         unsigned int count =0;
              if(hFile1==INVALID_HANDLE_VALUE)
                   if(count<5)
                        count++;
                        Sleep(1000);
                   else
                        return bResult;
         DWORD dwHighPart,dwLowPart;
         dwLowPart = GetFileSize(hFile1,&dwHighPart);
         LARGE_INTEGER NewFilePointer;
         NewFilePointer.LowPart = dwLowPart;
         NewFilePointer.HighPart = dwHighPart;
         dwFileSize = NewFilePointer.QuadPart;     
         bFile     = TRUE;
         bResult = TRUE;     
         if(hFile1)
              CloseHandle(hFile1);
              hFile1 =NULL;
         return bResult;
    BOOL CconnectivityDlg::CreateConnection()
         BOOL bResult = FALSE;     
         CString Count,strFileSaveName;
         Count.Empty();
         strFileSaveName.Empty();
         unsigned int nCounter = 0;     
    repeat:     
         if(!AfxOleInit())
              return FALSE;
         m_pConn.CreateInstance (__uuidof(Connection));
         CString strConn ;
         strConn.Empty();
         m_pConn->CursorLocation = adUseClient;
         strConn     =_T("Provider=MSDAORA;OSAuthent=1;Data Source =LOVE;Connect as =SYSDBA;");
         try
              m_pConn->Open(_bstr_t(strConn),_bstr_t("system"),_bstr_t("system"),adConnectUnspecified);
              bResult = TRUE;
         catch(_com_error& e)
              CString sBuff = GetErrorDescription(e);
              AfxMessageBox(sBuff);
              return 0;          
         catch(...)
              AfxMessageBox(_T("UnknownError"));
              return 0;
         m_pCom.CreateInstance(__uuidof(Command));
         try
              m_pCom->ActiveConnection = m_pConn;
         catch(_com_error& e)
              CString sBuff = GetErrorDescription(e);
              AfxMessageBox((sBuff));          
         catch(...)
              AfxMessageBox(_T("UnknownError"));
         return bResult;
    CString CconnectivityDlg::insertimage()
         CString Query,ColmnName;
         Query.Empty();
         ColmnName = _T("FIRST");//Coloumn Name
         Query = _T("insert into SINGLE(FIRST) values (?)"); //Table in which i want to insert data of Nclob type.
         hFile1 = CreateFile(StrName,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);//File from i read the data to insert into nclob field
         DWORD dwHighPart,dwLowPart;
         dwLowPart = GetFileSize(hFile1,&dwHighPart);
         LARGE_INTEGER NewFilePointer;
         NewFilePointer.LowPart = dwLowPart;
         NewFilePointer.HighPart = dwHighPart;
         dwFileSize = NewFilePointer.QuadPart;     
         BYTE *ImageData = new BYTE[dwFileSize+2];
         memset(ImageData,0,dwFileSize+2);
         BOOL bRead = ReadFile(hFile1,ImageData,dwFileSize,&dw,NULL);
         VARIANT varChunk;
         long lngOffset=0;
         UCHAR chData;
         SAFEARRAY FAR *psa = NULL;
         SAFEARRAYBOUND rgsabound[1];
         rgsabound[0].lLbound=0;
         rgsabound[0].cElements=dwFileSize;
         psa = SafeArrayCreate(VT_UI1,1,rgsabound);
         HRESULT hr;
         while(lngOffset < (long)dwFileSize)
              chData = ((UCHAR*)ImageData)[lngOffset];
              hr = SafeArrayPutElement(psa,&lngOffset,&chData);
              lngOffset++;                                        
         lngOffset     = 0;
         varChunk.vt=VT_ARRAY|VT_UI1;
         varChunk.parray=psa;
              try
              m_pCom->Parameters->Append(m_pCom->CreateParameter(_bstr_t(ColmnName),adLongVarWChar,adParamInput,(ADO_LONGPTR)dwFileSize,varChunk));
              VariantClear(&varChunk);
         catch(_com_error& e)
              CString sBuff = GetErrorDescription(e);
              AfxMessageBox(sBuff);
         if(ImageData)
              delete[] ImageData;
              ImageData = NULL;
         try
              m_pCom->CommandText=_bstr_t(Query);
              m_pConn->CursorLocation = adUseClient;
              m_pCom->CommandTimeout=0;
              m_pCom->Execute(NULL,NULL,adCmdText);
         catch(_com_error& e)
              CString sBuff = GetErrorDescription(e);
              AfxMessageBox(sBuff);
         return 0;
    CString CconnectivityDlg::GetErrorDescription(_com_error& e)
    bstrt bstrSource(e.Source());
    bstrt bstrDescription(e.Description());
    _TCHAR szTemp[1024];
    CString strInfo ;
    wsprintf(szTemp, _T("Message : %s\n"), e.ErrorMessage());
    strInfo = szTemp;
    wsprintf(szTemp, _T("Code : 0x%08lx\n"), e.Error());
    strInfo += szTemp;
    wsprintf(szTemp, T("Source : %s\n"), bstrSource.length() ? (LPCTSTR)bstrSource : T("null"));
    strInfo += szTemp;
    wsprintf(szTemp, T("Description : %s\n"), bstrDescription.length() ? (LPCTSTR)bstrDescription : T("null"));
    strInfo += szTemp;
         CString str     =     strInfo;
         if(str.Find(_T("not a valid password"),0) > 0)
              strInfo     =     _T("File is password protected") ;
    return strInfo;
    }

    user7728510 wrote:
    Hi,
    for what i know, MSDAORA provider doesn't support Oracle data types introduced since <font face="tahoma,verdana,sans-serif" size="1" color="#000">version</font> 8, as CLOB, BLOB and so on, so i think that it uses varchar2 up to the 4k limits and then causes this error.
    Have you tried with the OraOLEDB.Oracle.1 provider instead?Nice writing, Thanks for your explanation!

  • Help - Newbie - getting "ORA-12571: TNS: packet writer failure" ERROR

    Hi all,
    Not sure where to post this, so trying for the general forum to start...
    I have also searched and read all the forums for help on this already as well the Oracle documentation and anything I could find from several on-line searches, etc.
    I have Oracle 8i Enterprise Edition and Oracle Forms 6i installed on Win2K. Everything worked fine when it was just Oracle 8i running, ie: connecting to the database in SQLPlus Worksheet, but when I try and connect to the database in the datablock wizard in forms I get the ORA-12571: TNS: packet writer failure error!
    Don't tell me to re-install, I've done that like 6 times already. I've check the tnsnames.ora files and tried that fix already. I don't know what else to try short of fdisk and redoing everything from scratch again, but I don't have time for that as this machine is used daily for other tasks.
    Any help or suggestions are appreciated!!!
    Thx in advance!
    Michelle.
    PS: Note to Oracle support staff if you are listening (pardon the pun). Your one line of help for ORA-12571 in the existing support files is rather similar to the Hitchhikers Guide to the Galaxy's info for Earth... After seeing how many people have posted about this problem and how few resources or real answers there are out there, you might want to consider updating the info on this error, because is deserves something more than "mostly harmless"!

    This question probably best belongs on the General database forum.

Maybe you are looking for

  • PO print-preview  for a PO with all  deleted line items

    Hello MM Gurus, I am not able to print preview of a PO for which i deleted all the line items. It gives me a message saying that no print relevant changes. Client need to print such POs. Client expects a text like "item cancelled " for deleted PO ite

  • Calendar sync with Exchange server is unidirectional

    Hello I can synchronize my BB 8900 with the Exchange calendar in bidirectional mode using the USB cable. When I switch it to wireless mode in my calendar options at the BB device, the synchronisation works only from the computer to the BB but not the

  • I need to get back individually erased photos and videos from my iMac with no backups to help. Please help

    i need to get back individually erased photos and videos from my iMac with no backups to help. this is an attempt to consolidate all my data, new and old so I can uninstall Maverick and put Mountain Lion back on my iMac.  Any help would be greatly ap

  • Blur animator applied to text is not working

    I have some extruded text that I'm trying to blur on.  I've created an opacity animator and added blur, taking the blur up to 300.  But I'm not seeing the blur effect at all.  Is the Ray Tracing render not supporting blur?  Or is there another settin

  • HT201441 if i don;t have same icloud account ?

    Dear sir, im working an telephone shop in kuwait.here a lot of people don't know what is icloud.so put any account in icloud.now problem when come new version ios 7.0.2 .every one update new version.then ask icloud account.a lot of people cant use th