Last Update: 26 August 2009
Product: StarSQL for UNIX
Version: 5.5x or later
Article ID: SQV00SU001
This Quick Start Guide describes how to install, configure and use StarSQL for UNIX and its associated components, StarLicense and StarAdmin. Read the complete document before starting your installation.
This document is intended for first-time users of StarSQL. Users who are upgrading an existing installation should refer to the Release Notes and the StarSQL for UNIX User's Guide for upgrade instructions.
The estimated time to complete all tasks is approximately 1 hour and 15 minutes.
The same individual or a combination of individuals must be capable of performing in the following three roles in order to successfully complete the evaluation.
Steps 3 and 4 below may be performed at the same time (or even step 4 before step 3.) Otherwise perform the steps in the order described. Note that some of the steps provide information used in subsequent steps.
Estimated Time: 5 minutes
All software packages are distributed as compressed files that you download from the StarQuest Ventures Web site. From a web browser enter the address http://www.starquest.com/ and click on Download for Trial under the Products menu. Request to download StarSQL for the platform of interest (i.e., Linux, Solaris, HP-UX, etc.). When the request is fulfilled, you will receive both 32-bit and 64-bit versions of StarSQL for UNIX.
Estimated Time: Less than 5 minutes
After submitting a request to download StarSQL for UNIX, you will receive an e-mail containing a Registration Key and download links for the StarLicense, StarAdmin and StarSQL for UNIX (32-bit and 64-bit) components. The registration key will be used in step 3 to obtain a temporary license valid for 15 days and the download links will be used in steps 3-5 below.
Estimated Time: 15 minutes
Estimated Time: 15 minutes
The user who installs StarAdmin must be an administrator (Windows) or root user (UNIX/Linux) on the platform. The database connectivity information collected in this section will be provided to the Client-Platform Administrator for use in step 5d.
Download StarAdmin using the download link from step 2 and execute setup.exe (Windows), setuplinux.bin (Linux), or setupsolaris.bin (Solaris). After the installation is complete, click Finish.
| Connection Parameter | Description | Your Value |
| Host | The network Host Name or IP address of the DB2 host. | |
| Port | DB2 for z/OS users: the port number can be found on the DSNTIP5 panel. DB2/400 users: use the WRKSRVTBLE command and look for the DRDA entry with the port number. DB2 for Windows, Linux and Unix users: in the DB2 Control Center, right-click the DB2 instance, select Setup DB2 Server for VSE & VM: the DBNAME directory contains an entry for each DB2 server that specifies the TCP/IP port number to use (the TCPPORT parameter). |
|
| Database Name | DB2 for z/OS users: this is the DDF Location Name of the database. DB2/400 users: run the AS/400 command WRKRDBDIRE and locate the entry with a Remote Location value of *LOCAL. If such an entry does not exist, create it with the 1=ADD option. DB2 for Windows, Linux and Unix users: in the left pane of the DB2 Control Center, the databases are shown below the "Database" folder. DB2 Server for VSE & VM: for VSE the database name typically is defined in the DBNAME directory, and for VM the dbname parameter is specified in the CMS Communications Directory in the CMS file of type NAMES. |
|
| Package Collection | Set this value to STARSQL. DB2/400 users only: create an empty library on the host called STARSQL or set this value to the name of an existing library (e.g., QGPL). |
|
| Username/Password | A DB2 user account that has authority to create and bind packages on the database. |
If the packages are created and bound successfully, the summary output will look similar to the following:
Package binding starting: Wed Jul 29 14:44:03 PDT 2009
UID=SUPERUSER
HostName=DB2HOST.DOMAIN.COM
Port=446
Server=DB2PROD
PkgColID=STARSQL
AutoTypDefOvr=
BindRules=RUN
CustomizePrdid=No
UseJumboPackages=No
UseEncryption=Anyjdbc:StarSQL_JDBC://DB2HOST.DOMAIN.COM:446/DB2PROD;collection=STARSQL
SQL package SWNC0000 in collection STARSQL has been created.
Granted execute privileges on STARSQL.SWNC0000 to PUBLIC
SQL package SWRU0000 in collection STARSQL has been created.
Granted execute privileges on STARSQL.SWRU0000 to PUBLIC
SQL package SWRC0000 in collection STARSQL has been created.
Granted execute privileges on STARSQL.SWRC0000 to PUBLIC
SQL package SWRR0000 in collection STARSQL has been created.
Granted execute privileges on STARSQL.SWRR0000 to PUBLIC
SQL package SWTS0000 in collection STARSQL has been created.
Granted execute privileges on STARSQL.SWTS0000 to PUBLIC
SQL package SWNC1000 in collection STARSQL has been created.
Granted execute privileges on STARSQL.SWNC1000 to PUBLIC
SQL package SWRU1000 in collection STARSQL has been created.
Granted execute privileges on STARSQL.SWRU1000 to PUBLIC
SQL package SWRC1000 in collection STARSQL has been created.
Granted execute privileges on STARSQL.SWRC1000 to PUBLIC
SQL package SWRR1000 in collection STARSQL has been created.
Granted execute privileges on STARSQL.SWRR1000 to PUBLIC
SQL package SWTS1000 in collection STARSQL has been created.
Granted execute privileges on STARSQL.SWTS1000 to PUBLIC
SQL package QSYS2 in collection STARSQL has been created.
Granted execute privileges on STARSQL.QSYS2 to PUBLICPackage binding completed: Wed Jul 29 14:44:55 PDT 2009
If any errors are reported, review the suggested resolutions in the Binding StarSQL Packages Using StarAdmin technical document, correct the problem and execute the bind operation again. If you are unable to resolve the error condition, copy the entire Summary text and send it to StarQuest Customer Support at contact@starquest.com.
Estimated Time: Less than 5 minutes
# uncompress linux.tar.Z
# tar -xvf linux.tar -C /tmp/starsql
or
# tar -xvf linux-rpm.tar -C /tmp/starsql
| UNIX Platform | Default StarSQL32-bit Installation Directory | Default StarSQL64-bit Installation Directory |
|---|---|---|
| AIX | /usr/lpp/starsql | Platform not yet supported. |
| FreeBSD | /usr/local/share/starsql | Platform not yet supported. |
| HP-UX | /opt/starsql | /opt/starsql64 |
| Linux | /usr/share/starsql | /usr/share/starsql64 |
| Solaris | /opt/starsql | /opt/starsql64 |
As the setup script runs you must respond to various prompts, answering y (Yes) to proceed with the installation. Following is an example of the script, prompts, and responses when the StarSQL 32-bit installation script is run on Linux.
# ./setup
This script uses rpm to install StarSQL to /usr/share/starsql and should be run as root.
Do you wish to continue (y/n)? yThis script will now run /usr/share/starsql/etc/post_install
Do you wish to continue (y/n)? yThe existing ODBC Driver Manager (version 2.2.11), as indicated by /usr/bin/odbcinst, does not meet the minimum version requirement (2.2.12).
The StarQuest-supplied unixODBC Driver Manager in /usr/share/starsql/odbc will be used for installation.
odbcinst: Driver installed. Usage count increased to 1.
Target directory is /usr/local/etcThe StarQuest-supplied unixODBC Driver Manager was used for installation.
Be sure to modify your PATH to use /usr/share/starsql/odbc/bin and modify your LD_LIBRARY_PATH or ld.so.conf to include /usr/share/starsql/odbc/lib.Installation done.
Estimated Time: Less than 5 minutes
StarSQL supports the following unixODBC driver manager versions:
If the installation script reports that a suitable version of the unixODBC driver manager is already installed, proceed to step 5c. Otherwise, set environment variables to use the newly installed copy of unixODBC.
export PATH=/usr/share/starsql/odbc/bin:$PATH
export LD_LIBRARY_PATH=/usr/share/starsql/odbc/lib:$LD_LIBRARY_PATH
$ which odbcinst
/usr/share/starsql/odbc/bin/odbcinst$ which ODBCConfig
/usr/share/starsql/odbc/bin/ODBCConfig
Estimated Time: Less than 5 minutes
To successfully complete this section, you will need the following StarLicense server information from the System Administrator, obtained in step 3.
Estimated Time: 10 minutes
To successfully complete this section, you will need all of the database connectivity information from the Database Administrator, obtained in step 4.
$ odbcinst -j
unixODBC 2.2.14
DRIVERS............: /usr/local/etc/odbcinst.ini
SYSTEM DATA SOURCES: /usr/local/etc/odbc.ini
FILE DATA SOURCES..: /usr/local/etc/ODBCDataSources
USER DATA SOURCES..: /home/user/.odbc.ini
[<your DSN name>]
Driver=<StarSQL or StarSQL64>
HostName=<host name or IP address of your DB2 server>
Port=<DB2 port, typically 446>
Server=<your database server name>
PkgColId=<your package collection>
The following example shows only the required data source parameters and was created using the sample Summary output from StarAdmin obtained in step 4.
# StarSQL sample odbc.ini
[DB2DSN]
Driver=StarSQL
HostName=DB2HOST.DOMAIN.COM
Port=446
Server=DB2PROD
PkgColID=STARSQLThe StarSQL for UNIX User's Guide provides details about all the required and optional data source configuration parameters. You will also find a sample DSN in the starsql/etc/odbc.ini file. If you would like to configure User DSNs or use the ODBCConfig application to configure System or User DSNs, refer to the StarSQL for UNIX User's Guide for instructions.
Estimated Time: 5 minutes
To complete this section, you will need a DB2 user ID that has authority to connect to DB2 and the name of the DSN configured in step 5d. The samples below assume that the DSN used to test connectivity is the sample DSN, shown in step 5d.
$ ./starping
Enter Data Source: DB2DSN
Enter User Name: DB2USER
Enter Password: DB2PASSConnection Succeeded!
Driver Name: libswodbc.so
Driver Version: 5.51.XXXXDatabase Name: DB2PROD
DBMS: DB2 Universal DataBase
Version: 08.02.0007
simpleconn <DSN> <UID> <PWD> <# of connections>
For example, the following command tests one StarSQL connection to a DSN named DB2DSN:
$ ./simpleconn DB2DSN DB2USER DB2PASS 1
Connection #1
Driver Name: libswodbc.so
Driver Version: 5.51.XXXX
Database Name: DB2 Universal DataBase
Database Version: 08.02.0007
This Quick Start Guide is intended to help you install the StarQuest software and access DB2 data as quickly as possible.
As you use the StarSQL software, refer to the product documentation for more information. StarSQL includes man pages and a User's Guide that provide more information about driver configuration and defining ODBC data sources.
If you encounter any problems while using the evaluation software, please send an e-mail to StarQuest Customer Support at contact@starquest.com or call (+1) 415-669-9619 for assistance.
StarSQL man pages
StarLicense man pages
StarLicense for UNIX Quick Start Guide
StarSQL for UNIX User's Guide
The information in technical documents comes without any warranty or applicability for a specific purpose. The author(s) or distributor(s) will not accept responsibility for any damage incurred directly or indirectly through use of the information contained in these documents. The instructions may need to be modified to be appropriate for the hardware and software that has been installed and configured within a particular organization. The information in technical documents should be considered only as an example and may include information from various sources, including IBM, Microsoft, and other organizations.