Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

TCPIP and SQLAnywhere

Posted on 1998-07-27
3
Medium Priority
?
1,719 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

Check out what's been happening in the Experts Exchange community.
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

704 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