Using the odbcsql Utility to Submit SQL Statements
The Siebel Server installation program installs
the odbcsql utility in the SIEBSRVR_ROOT\bin
directory (Windows) or the SIEBSRVR_ROOT/bin
directory (UNIX) of the Siebel Server. Siebel
CRM uses this program to perform operations on the DB2 database whenever
these operations are performed from the midtier, that is, from the
Siebel Server.
You can use odbcsql to submit SQL statements, for example, to obtain the DB2 storage group names for data and indexes which you have to specify during the Siebel database installation process.
You can also use odbcsql to test your ODBC data source after you install the Siebel Server.
To execute odbcsql
Navigate to the SIEBSRVR_ROOT
\bin
directory (Windows) or the SIEBSRVR_ROOT/bin
directory (UNIX) and enter the following from the command prompt:odbcsql /s database_alias /u username /p password
for example:
odbcsql /s siebsrvr_siebel /u sadmin /p dgt^js12*gzs
where:
/s
is the source ODBC DSN for the connection/u
is the user ID/p
is the password
If the odbcsql connection is successful, you can enter queries against the DB2 catalog tables. For example, the following query returns a list of all DB2 storage groups:
SELECT NAME FROM SYSIBM.SYSSTOGROUP;
To exit odbcsql, enter EXIT. For additional information on the utility, enter the following at a command prompt:
odbcsql /help
The odbcsql utility is also useful in troubleshooting postinstallation connectivity problems that arise in the ODBC layer of your installation.