ORA-12571: TNS packet writer failure

Posted on 2004-11-23
Medium Priority
Last Modified: 2013-12-12
Hi everyone, ive developed a fleet tracking software using VB6 and Oracle 9i. Ill give u a brief desc of how the software works. Each vehicle is fitted with a firm wear which gives its position every 5 minutes to our main server. The server then sends this information to the customers via their username and password. The software then picks up this information, places the vehicle on the map and then stores the details in the oracle database which is always held locally on the PC. Thats the gist of it. The problem im having is anytime the cable that connects the PC to the internet is removed, the software crashes with the above error message. Ive stepped throught the code and it errors when i try to create a recordset using data from the oracle database while the cable has been disconnected. But if i try runing the same SQL statement in SQLplus while the same cable has been disconnected, it works fine. Any ideas as to why this is happening?  
Question by:oagunbiade

Accepted Solution

Nievergelt earned 250 total points
ID: 12686447
If you catch the error and retry the recordset creation after the cable is connected, does the error still occur?
Could you post the section of code in question?

Author Comment

ID: 12714052
If i retry the recordset creation after the cable is connected, the error still occurs. But ive found a way round this. Because the error generates a unique code, i recreate the connection any time the error is generated and this works fine. Thanks anyways.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question