Connect the DB2 client to the server

Source: Internet
Author: User

After the DB2 server is installed, the client is installed on another machine.

The client uses the configuration assistant step by step. When connecting to the server, an error message is returned:

Sqlcode:-30081 sqlstate: 08001, which indicates a TCP/IP error, which is hard to solve.

After checking for half a day, I don't know what the problem is, but I can use the console to query the connection on the server.

So I checked the information on the Internet and found the solution as follows:

Open the CLP console on the client and execute
1. Add nodes to the customer
DB2 catalog TCPIP node generate (node name) Remote 10. 146. ***. *** (Server IP) server 50000 (port)
2. Add a database to a node
DB2 Catalog Database sample (Database Name) as sample (alias) at node generate (name of the node to be mounted)
3. Set the encoding format of the database
Db2set db2codepage = 1386 (GBK), 819 (UTF-8)
4. --- command abort

DB2 terminate

 

The third step can be skipped.

Refresh the server in connect to see the server you just added.

Done.

What is puzzling:

1. When using the assistant configuration, you can find other DB2 services created by others, but I cannot find them. Is there anything unconfigured;

2. I cannot connect to the console using the assistant, but the link can be successfully linked from the console. Is it a software issue or a configuration issue?

Hope you can give me some advice!

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.