Solved

TCPIP and SQLAnywhere

Posted on 1998-07-27
3
1,620 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains the steps required to use the default Photos screensaver to display branding/corporate images
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

838 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