Creating an ODBC connection to the sample IQ database  Creating the schema for the Sybase IQ database

Chapter 2: Database Setup for Risk Analytics Platform

Starting and connecting to the sample IQ database

Although there are several ways to start a Sybase IQ server and connect to a database, these procedures give you some simple ways to get started.

StepsStarting the sample IQ database from the command line

  1. On the system where you created the Sybase IQ database, start the IQ server with the sample database.

    For example, to start the server from the command line using the edited configuration file, change directory to the directory containing the .cfg and .db files and enter:

    start_asiq @RAP_RAPIQ.cfg RAP_RAPIQ.db
    

    Be sure to use the -n switch to name the server, either in the configuration file, or on the command line when you start the server.

  2. Connect to the sample IQ database with the user ID DBA and password SQL.

    For example, to connect using Interactive SQL from the machine where the Sybase IQ server RAPIQ and the database RAPIQ are running, you can enter on the command line:

    dbisql -c "uid=DBA;pwd=SQL;eng=RAPIQ_RAPIQ;
    dbn=RAP_RAPIQ;dbf=RAP_RAPIQ.db;
    links=tcpip{port=2638;host=IQ_server}"
    

StepsStarting the sample IQ database from Sybase Central

In Windows, you can also use Sybase Central to start the server and connect to the sample database.

  1. Click Start, point to Programs | Sybase | Adaptive Server IQ 12.6 | Sybase Central Java Edition.

  2. In Sybase Central, click Sybase IQ, click the Utilities tab, and double-click Start Server.

    A dialog box prompts you for the start-up options.

  3. Select Single server and click Next.

  4. On the Connection Parameters dialog, type the appropriate connection parameters. See the following table for system defaults.

    Field name...

    Value

    Server Name

    server_name

    Host machine

    host_name

    Port number

    port_number

    Database Name

    database_name

    Username

    DBA

    Password

    SQL

  5. Click Next.

  6. Specify the full path to the database file, then click Next.

  7. Click Finish to start the server.

NoteOther startup and connection options If you are a UNIX user, see the Sybase IQ Installation and Configuration Guide for more information.





Copyright © 2005. Sybase Inc. All rights reserved. Creating the schema for the Sybase IQ database

View this book as PDF