The Ping utility
The Ping utility
Syntax
Description
Switches
122
The Ping utility is provided to assist in diagnosing connection problems.
dbping [ switches ]
Switch
–c "keyword=value; ..."
–d
-l library
-m
–o filename
–q
The
dbping
command-line utility is provided to help debug connection
problems. It takes a full or partial connection string and returns a message
indicating whether the attempt to locate a server or database, or to connect,
was successful.
On UNIX, a threaded version is also supplied, as the
Connection parameters (–c)
parameters, see "Connection parameters" on page 64 of the book ASA User's
Guide. If the connection parameters are not specified, connection parameters
from the SQLCONNECT environment variable are used, if set.
Make database connection (–d)
If you do not supply the
-d
server specified by the
-c
dbping
reports success only if connects to the server and also connect to a
database.
For example, if you have a server named blair running the database
the following succeeds:
dbping -c "eng=blair;dbn=sample"
The following command fails, with the message
specified database not found
dbping -d -c "eng=blair;dbn=sample"
Description
Database connection parameters
Make a database connection if the server is found
Use specified ODBC driver or driver manager
library.
Use ODBC Driver Manager. Otherwise, connect
using embedded SQL.
Log output messages to a file
Operate quietly—do not print messages
For a description of the connection
Ping the database, not just the server.
switch, then
reports success if it finds the
dbping
switch. If you do supply the
Ping database failed --
:
dbping_r
executable.
switch, then
-d
,
sample
Need help?
Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?
Questions and answers