Sybase connection problem: ct_connect (): network packet layer: internal net Library error: Net-lib protocol driver C

Source: Internet
Author: User

After installing Sybase yesterday, you can use the client tool dbartisan 8.6.1 to connect to the data. The message "datasource connection failed." is always displayed .",

The error message output by the console is as follows: 09:19:42. 656 programlayer (5), origin (3), severity (5), number (4)Ct_connect (): network packet layer: internal net library error: Net-Lib protocol driver call to connect two endpoints failed (08001)

After a long time of hard work, I did not find the reason why I couldn't connect. I was so depressed. First, I checked whether the service was started, changed the user's Sa password to a non-empty password, or failed to connect, I searched the internet, but still did not find a solution. Without a compromise, I tried to connect to the database of the company's server to see if it could be connected (the database of the server is certainly okay, and my colleagues are working on that database ), if the database on the server cannot be connected, my client tool dbartisan 8.6.1 may be faulty. The result is yes. The database connected to the server can be connected normally.

When I couldn't find my clue, I suddenly remembered that Sybase had a dsedit utility tool to configure client connection. So I opened this tool, I found the connection configuration of my local database and compared it with the configuration I just made in dbartisan 8.6.1. Huang Tianyan had no pains and finally found the problem, it was originally set in dbartisan 8.6.1Connection PortNo, the dsedit utility tool shows that the connection port of my database is 5010 (I don't know how the connection port of my database has changed to 5010, And I didn't modify the Port during installation, is it because I have installed it before ?), The connection port I set in dbartisan 8.6.1 is 5000. it is OK to change the connection port to 5010. The problem is finally solved successfully!
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.