Solved

TCPIP and SQLAnywhere

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sybase SQL Anywhere ISQL 8 980
SQL Syntax 6 392
Loading very large range partitioned tables in Sybase/ASE 15.7 5 166
Sysbase Central connection fails 3 61
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
For months I had no idea how to 'discover' the IP address of the other end of a link (without asking someone who knows), and it drove me batty. Think about it. You can't use Cisco Discovery Protocol (CDP) because it's not implemented on the ASAs.…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

816 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