Solved

TCPIP and SQLAnywhere

Posted on 1998-07-27
3
1,574 Views
Last Modified: 2008-02-01
Is there a way to specify the tcpip address of a server that has a db engine running without having to send a brodcast?
0
Comment
Question by:florenzo
  • 2
3 Comments
 
LVL 2

Expert Comment

by:jbiswas
ID: 1098157
No this is not how SQL Anywhere works. There is no place to mention a tcpip port number, because it does not work with a TCPIP port number like Sybase. What it sends is a signal to a logical equivalent of a UDP port. (User Datagram Protocol) A protocol within the TCP/IP protocol suite that is used in place of TCP when a reliable delivery is not required. For example, UDP is used for realtime audio and video traffic where lost packets are simply ignored, because there is no time to retransmit. If UDP is used and a reliable delivery is required, packet sequence checking and error notification must be written into the applications and this is how SQL Anywhere works.


0
 

Author Comment

by:florenzo
ID: 1098158
What are the ServerPort and ClientPort options for?
0
 
LVL 2

Accepted Solution

by:
jbiswas earned 50 total points
ID: 1098159
The ClientPort and ServerPort was introduced in v5.5.0.2. This is a port number that the server listens to.
I did some research and found the following out. You can specify a no broadcast in the dbclient command line and specify an IP address.The first step in debugging problems related to a specific communication protocol is to start the database client with the -Z switch (Z must be in upper case). This switch provides additional diagnostic information about the communications link. This additional information is displayed along with other messages in the database client window:

dbclient -Z -x tcpip{dobroadcast=no;host=<server xxx>;myip=<client xxx} joelin1 (OK)

here is the messages at the client side that I get
****************myip=199.93.181.97****************

1: -x

2: tcpip{dobroadcast=no;host=199.93.181.123;myip=199.93.181.97}

3: joelin1

4: -Z

5: -o

6: outjg1.txt

Sybase SQL Anywhere Network Requestor Version 5.5.02 Build #1495

Copyright by Sybase, Inc., and its subsidiaries, 1988, 1997.

All rights reserved. Sybase is a trademark of Sybase, Inc.

Trying to start TCPIP link ...

Loading WSOCK32.DLL

Listener threads to start: 2

Threads started: 2

TCPIP link started successfully

Starting with 200 buffers of size 512 bytes

Looking for joelin1

Not performing a broadcast

Trying 199.93.181.123

Found server:

0200 da05 7bb5 5dc7 0000 0000 0000 0000

Found server joelin1 on TCPIP link

Liveness timeout 120, liveness retransmit period 30

started

Shutting down listener thread: 0

Shutting down listener thread: 1

****************************************

TCP/IP Communication Protocol (taken from a whitepaper)

If you are having problems establishing a connection between the database client and database server using TCP/IP, you should:

1) Ensure you specified the database server name in the same case (upper, lower, mixed) as was specified when the database server was started. This name is case sensitive when using TCP/IP.

2) Ensure you are using a supported TCP/IP protocol stack, as listed in your Read Me First booklet (for Version 4.0) or the Network Guide (for Version 5.0)

3) Try starting the client specifying the host name and/or IP address on which the database server is running, For example:

   DBCLIENT -x tcpip{host=193.198.100.45} sample

will attempt to find the database server named sample on a machine with an IP address of 193.198.100.45. Alternatively, you can specify the host name of this machine if this information is included in your host names table. (If you receive errors when specifying the host name, try the IP address to ensure your system is not having problems resolving the host name.)

4) If you are using Novells LAN Workplace, ensure that you have started NOVASYNC.EXE before starting a database server or client on the machine.

5) If the messages from the client startup indicate that the client was unable to determine the local IP address (or host name), you may specify the clients IP address on the database client startup, for example:

   DBCLIENT -x tcpip{host=193.198.100.45;myip=123.456.789.012} sample

will attempt to find the database server named sample on a machine with an IP address of 193.198.100.45 and specifying that this client machines IP address is 123.456.789.012. (Note: The MYIP parameter was available starting with version 4.0C.)

6) Verify the port number being used by the database server. The default port number is 1498. A different port number is required if you are starting 2 database servers on a single machine and both of those server will accept requests through TCP/IP. You may explicitly specify the port number on which the database server is listening for requests. For example:

   DBCLIENT -x tcpip{host=193.198.100.45;port=5050} sample

will attempt to connect to a database server named sample, listening to requests on port 5050 on a machine with an IP address of 193.198.100.45.
Mostly the server uses port 1498 for UDP frametype transmission.The destination port is 1498 by default.By using the clientport and serverport on the 5.5.02 dbclient and dbsrv50 they can specify both the client port and the server port.



0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Hyena v12.2 is now available for downloading and is available in English, French, German and Spanish versions.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now