Sybase IQ: Installation and Configuration Guide
Sybase IQ: Installation and Configuration Guide
Sybase IQ
15.1
[ WINDOWS ]
DOCUMENT ID: DC30056-01-1510-01
To order additional documents, U.S. and Canadian customers should call Customer Fulfillment at (800) 685-8225, fax (617) 229-9845.
Customers in other countries with a U.S. license agreement may contact Customer Fulfillment via the above fax number. All other
international customers should contact their Sybase subsidiary or local distributor. Upgrades are provided only at regularly scheduled
software release dates. No part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic,
mechanical, manual, optical, or otherwise, without the prior written permission of Sybase, Inc.
Sybase trademarks can be viewed at the Sybase trademarks page at http://www.sybase.com/detail?id=1011207. Sybase and the
marks listed are trademarks of Sybase, Inc. ® indicates registration in the United States of America.
Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Unicode and the Unicode Logo are registered trademarks of Unicode, Inc.
All other company and product names mentioned may be trademarks of the respective companies with which they are associated.
Use, duplication, or disclosure by the government is subject to the restrictions set forth in subparagraph (c)(1)(ii) of DFARS 52.227-7013
for the DOD and as set forth in FAR 52.227-19(a)-(d) for civilian agencies.
iv Sybase IQ
Contents
vi Sybase IQ
Installation and Configuration Guide vii
viii Sybase IQ
About This Book
Subject The Sybase® IQ 15.1 Installation and Configuration Guide for Windows
provides information you need to install Sybase IQ. This book includes:
• Installation procedures for Sybase IQ Server and Client components.
• Instructions on how to install Sybase IQ with SySAM 2.
• Migration procedures for legacy databases.
Audience This book is intended for Sybase System Administrators and other
qualified personnel who are familiar with their system’s environment,
networks, disk resources, and media devices.
Related documents The Sybase IQ 15.1 documentation set includes:
• Release Bulletin provides information about last-minute changes to
the product and documentation.
• Advanced Security in Sybase IQ covers the use of user encrypted
columns within the Sybase IQ data repository. You need a separate
license to install this product option.
• Sybase IQ Error Messages lists Sybase IQ error messages referenced
by Sybase error code, SQLCode, and SQLState, and SQL
preprocessor errors and warnings.
• IMSL Numerical Library User’s Guide: Volume 2 of 2 C Stat Library
contains a concise description of the IMSL C Stat Library time series
C functions. This book is only available to RAP – The Trading
Edition™ Enterprise users.
• Introduction to Sybase IQ includes hands-on exercises for those
unfamiliar with Sybase IQ or with the Sybase Central™ database
management tool.
• Large Objects Management explains storage and retrieval of Binary
Large Objects (BLOBs) and Character Large Objects (CLOBs)
within the Sybase IQ data repository. You need a separate license to
install this product option.
• New Features in Sybase IQ 15.0 documents new features and
behavior changes for version 15.0.
x Sybase IQ
About This Book
2 Either select the product family and product under Search by Base
Product; or select the platform and product under Search by Platform.
3 Select Search to display the availability and certification report for the
selection.
2 Either select the product family and product under Search by Base
Product; or select the platform and product under Search by Platform.
xii Sybase IQ
About This Book
3 Select Search to display the availability and certification report for the
selection.
xiv Sybase IQ
About This Book
The demo database Sybase IQ includes scripts to create a demo database (iqdemo.db). Many of the
queries and code samples in this document use the demo database as a data
source.
The demo database contains internal information about a small company
(employees, departments, and financial data), as well as product (products),
and sales information (sales orders, customers, and contacts).
See the Sybase IQ installation guide for your platform or talk to your system
administrator for more information about the demo database.
Accessibility This document is available in an HTML version that is specialized for
features accessibility. You can navigate the HTML with an adaptive technology such as
a screen reader, or view it with a screen enlarger.
Sybase IQ 15.1 and the HTML documentation have been tested for compliance
with U.S. government Section 508 Accessibility requirements. Documents that
comply with Section 508 generally also meet non-U.S. accessibility guidelines,
such as the World Wide Web Consortium (W3C) guidelines for Web sites.
xvi Sybase IQ
CH A PTE R 1 Preparing for Installation
About this chapter This chapter describes preinstallation requirements and considerations.
Contents
Topic Page
Overview 2
Planning your installation 4
Disk space and memory requirements 6
Pre-installation tasks 7
Installing your software 10
Overview
Sybase IQ is a high-performance decision support server designed specifically
for data warehousing.
Sybase IQ is part of the Adaptive Server® product family that includes
Adaptive Server Enterprise and SQL Anywhere. Component Integration
Services embedded within Sybase IQ provide direct access to relational and
non-relational databases on mainframe, UNIX, or Windows servers.
Product editions
Sybase IQ is available in the following editions:
• Enterprise Edition
• Small Business Edition
• Single Application Server Edition
• Evaluation Edition
2 Sybase IQ
CHAPTER 1 Preparing for Installation
Licensing requirements
Sybase IQ is available in Evaluation and Licensed Editions.
Installing an unlicensed Evaluation Edition of Sybase IQ provides full access
to all features and options available in the Enterprise Edition. To run an
unlicensed database beyond a 30 day evaluation period, however, you must
purchase and install an appropriate Sybase Software Asset Management
(SySAM) license.
To install and configure any product edition and any optional feature, you
should know which features you are licensed to use. See “Licensing your
software” on page 13 for information about obtaining and installing your
license.
Installation media
Sybase IQ includes installation media for server and client installations.
Media Description
Sybase IQ Product DVD Installs Sybase IQ server components and other support
tools.
Sybase IQ Network Client CD Installs the components required for client connections
to a Sybase IQ network server.
4 Sybase IQ
CHAPTER 1 Preparing for Installation
• After you change upgrade your hardware platform, follow the appropriate
workflow in “Migrating Data” on page 43 to migrate your databases.
Notes
• If you created your Sybase IQ database on a Linux 32–bit version prior to
Sybase IQ 12.6 ESD #2, you must first install IQ 12.6 ESD #2 for Linux
32–bit and create a new data backup before converting to another
platform.
• Sybase IQ 12.6 ESD #2 and higher releases support migration between
Windows and Linux.
6 Sybase IQ
CHAPTER 1 Preparing for Installation
Note Servers require additional disk space for data storage. See Chapter 3,
“Working with Database Objects” in the System Administration Guide for
information about estimating the disk space you need for your IQ data.
Pre-installation tasks
Perform the following tasks before you install Sybase IQ. You may need to
refer to your operating system documentation for specific commands.
Note Do not use a patch that is earlier than the version suggested for your
operating system. Use the patch recommended by the operating system vendor,
even if it supersedes the patch listed under “Platforms and operating systems”
on page 2.
Enable 4GT
Enabling 4-gigabyte tuning (4GT) increases the amount of physical memory
available to memory-intensive applications running on Windows Server 2003,
Enterprise Edition, or Windows Server 2003, Datacenter Edition.
To enable 4GT, add the /3GB parameter to the start-up lines in the boot.ini file
by. For example:
[boot loader] timeout=5 default=multi(0)disk(0)rdisk(0)
partition(1)\WINNT
[operating systems] multi(0)disk(0)rdisk(0)
partition(1)\WINNT="Microsoft Windows 2000
Professional"
/fastdetect /3GB
8 Sybase IQ
CHAPTER 1 Preparing for Installation
Notes
• Setting Sybase IQ cache sizes with 4GT support allows the size of the main
and temporary caches to be increased up to a combined total of 2GB.
• With Windows platforms that support 4GT, a Sybase IQ process can
extend beyond the 2GB address space boundary, up to a total of 3GB.
However, the total size of the two IQ buffer caches cannot exceed 2GB.
This is due to the Windows restriction that prevents a single memory
allocation from crossing the 2GB boundary.
10 Sybase IQ
CHAPTER 1 Preparing for Installation
Silent installs Silent install scripts perform standard IQ installations without the need to
interact with the product. These scripts are configured to perform typical server
installations by default; custom installs require additional configuration. See
“Silent Installations” on page 105 for more information.
Installation types Typical and custom installation types are available.Typical installations install
features suitable for most production environments. Custom installs let you
choose the components you want to install. You can select group packages,
individual items, or a combination of the two.
12 Sybase IQ
CH A PTE R 2 Licensing your software
About this chapter This chapter provides information about generating a SySAM license for
Sybase IQ 15.1 server.
Contents
Topic Page
Overview 14
Before you generate your license 17
Generate your SySAM license 19
Installing a new license server 21
Overview
Generate your SySAM license before you install your server or client
components. SySAM is a licensing mechanism that provides system
administrators with a means to enable and monitor their site's use of Sybase
products.
Sybase IQ includes separate SySAM licenses for each product edition and
separate licenses for any optional features available for that edition. For
example, all Sybase IQ product editions require a CPU license, but an MPXO
license is available only for the Enterprise and Single Application editions
where multiplex is offered as a separate purchase option.
Available licenses
Available licenses are determined by the product edition and options you
purchase for that product edition.
14 Sybase IQ
CHAPTER 2 Licensing your software
Demo/Evaluation Edition
No license is required for the Evaluation Edition. The Evaluation Edition is an
unlicensed server that provides full access to all features and options available
in the Enterprise Edition. To run an unlicensed database beyond a 30 day
evaluation period, however, you must purchase and install an appropriate
license.
16 Sybase IQ
CHAPTER 2 Licensing your software
You can also use a system level command to find the host ID. For platform-
specific commands and examples, see Hostids for FLEXnet Licensing-Supported
Platforms at http://www.ece.uci.edu/eceware/flexlm/chap9.htm. For additional
information, see the FAQs after you logon to the Sybase Product Download
Center (SPDC).
Note
Some platforms derive the host ID from the network adapter address. If your
machine has multiple network adapters, the command you use to get the host
ID may return one host ID for each network adapter. If this occurs, choose only
ONE from the list of host IDs. Sybase recommends that you use the value
associated with the primary wired Ethernet adapter. Do not use values
associated with internal loop back adapters.
18 Sybase IQ
CHAPTER 2 Licensing your software
Unserved licenses
Before you generate your license, you need the host ID and host name of the
server where you plan to install Sybase IQ. See “Get your host ID” on page 18
and “Determine the host name” on page 18 for more information.
Note If you chose an unserved license model, you can now install Sybase IQ
server components. During installation, the installer will prompt you for
information about your license.
Served licenses
Before you generate your license, you need the host ID of the license server.
You may also want to specify the host name to simplify future license
administration. See “Get your host ID” on page 18 and “Determine the host
name” on page 18 for more information.
20 Sybase IQ
CHAPTER 2 Licensing your software
Notes
Served licenses require a license server. If you do not plan to use an existing
license server, you must install one before you install Sybase IQ. See
“Installing a new license server” on page 21 for additional information.
7 Choose Custom as the installation type you want to perform, click Next.
3 Use the sysam status command to verify that the license server is running.
If the server is running, you can expect to see output like this:
Starting the SYSAM service
The SYSAM service is starting.
The SYSAM service was started successfully.
lmutil - Copyright (c) 1989-2006 Macrovision Europe
Ltd. and/or Macrovision Corporation. All Rights
Reserved. Flexible License Manager status on Wed
5/24/2006 15:04
License server status: 27000@mysysamserver
License file(s) on <server name>:
/opt/sybase/SYSAM_0/licenses/mysysamserver_60302031
5.lic
22 Sybase IQ
CHAPTER 2 Licensing your software
Notes
• To verify your license, you can run the sp_iqlmconfig stored procedure in
Interactive SQL (iqisql) or check the Sybase IQ error log and
<dbname>.iqmsg file.
In the error log, a line beginning with “Checked out license...”
indicates that the license configuration is successful. If you see a “Sysam:
FLEXnet Licensing error:” message, check with your Sybase
representative to resolve the issue.
• The SySAM License Server Installer installs both IPv4 only and
IPv4/IPv6 dual stack License Server binaries during installation and
configures use of IPv4 only binaries. You can use the SySAM script to
configure the appropriate version of the license server: sysam configure
[IPv6|IPv4].
For example: sysam configure IPv6 will configure use of the IPv4/IPv6
dual stack binaries. For more information, see SySAM Users Guide.
• If you have problems activating your license, see “Troubleshooting
SySAM” on page 119.
24 Sybase IQ
CH A PTE R 3 Installing Sybase IQ Server
About this chapter This chapter provides instructions for installing Sybase IQ for operation
as a network server.
Contents
Topic Page
Overview 26
Installing Server components 29
Post-installation tasks 31
Uninstalling Sybase IQ server 32
Overview
Installing Sybase IQ server is part of a planned installation sequence. Follow
the installation path you chose in “Planning your installation” on page 4. Read
this section for information you should know before you begin your server
installation:
26 Sybase IQ
CHAPTER 3 Installing Sybase IQ Server
Server components
Server components are grouped by feature. In this table, items marked as
default are installed in a typical installation.
Feature Components Default Notes
Sybase IQ Sybase IQ Server • Installs server software, client
Sybase IQ Client • tools, and ODBC drivers.
Sybase IQ ODBC •
Sybase Central Sybase Central Viewer • Viewer and plug–in are required
Sybase Central Plug–in • for Sybase Central.
jConnect • Required for JDBC connections.
Sybase Software Asset Network License Server Network license server utilities,
Management License Utilities • and FLEXnet Licensing utilities
Plug–in compatibility
Sybase Central is a graphically-based administration console for Sybase
products. The Sybase IQ Server 15.1 plug-in for Sybase Central is NOT
compatible with 12.x servers. You can only use the 15.x plug-in with 15.x
servers; you cannot use it to connect to 12.x servers.
Sybase
Central
IQ Plug–in Sybase IQ Toolkit Agent JRE
15.x Compatible only with 15.x servers. You 6.0 or later Agent – 15.x JRE – 6.0
cannot use the 15.x plug-in to connect to 12.x required agent required
servers. required
12.7 12.5 and higher fully supported. Earlier IQ 4.3 or later 12.7 Agent 1.4.2
versions minimally supported. required required required
12.6 12.6 or 12.5 fully supported. Earlier IQ 4.3 or later 12.6 Agent 1.4.2
versions minimally supported. required required required
12.5 12.5 or earlier 3.2 required 12.5 Agent 1.2.2
required required
(1.3.1 on
Linux)
28 Sybase IQ
CHAPTER 3 Installing Sybase IQ Server
Sybase IQ installation The Sybase IQ installation directory is a child of %SYBASE% directory called
directory IQ-15_1.
This directory contains files, scripts, and other objects required to run Sybase
IQ server. This document uses the variable %IQDIR151% to refer to the
Sybase IQ installation directory. A list of the major subdirectories you are
likely to use in this directory during installation appears in the table below.
Directory Contents
Assembly ADO.NET and .NET assembly files.
bin<platform> Utilities you use to start and manage your server. <platform> value is
64 or 32 depending on your installation.
charsets Character encoding files.
demo Contains a readme that identifies the location of the demo database
scripts and sample data: C:\Documents and Settings\All
Users\SybaseIQ\demo directory.
install Installation history file.
java Different jar files.
logfiles Various logfiles. Sybase IQ writes log files to this directory.
lsunload Local Store Unload utility.
scripts Sample scripts and stored procedures.
SDK Subdirectories for various language utilities.
snmp Definitions for Simplet Network Management Protocol servers.
sun Local copy of the JRE to support Java in the database.
Sysam Local SySAM configuration information.
support Contains a Web page with links to online resources.
unload Various unload scripts, files and utilities.
7 When the installer prompts you for the Sybase IQ license key(s), do one
of the following:
• Use an editor to open the license you downloaded from the SPDC site,
and paste the license in the license key text box.
• Click Browse, navigate to the license location, and, choose your
license.
• Click Use previously deployed license server, then specify the
server’s Host Name and Port Number. Use this option if you want to
use a previously deployed license server.
• Click Continue installation without a license key. Use this option to
install Sybase IQ in grace mode.
8 Click Next, then choose the appropriate Product Edition and License Type.
9 Click Next, then follow the instructions on the screen to complete your
installation.
30 Sybase IQ
CHAPTER 3 Installing Sybase IQ Server
Notes
• If you decide to install Sybase IQ in grace mode, you can install the
product without a license, and activate a 30 grace period. You must obtain
an appropriate license from Sybase before the grace period ends.
• To verify your license, you can run the sp_iqlmconfig stored procedure in
Interactive SQL (iqisql) or check the Sybase IQ error log and
<dbname>.iqmsg file.
• In the server log, a line beginning with “Checked out license...”
indicates that the license configuration is successful. If you see a “Sysam:
FLEXnet Licensing error:” message, check with your Sybase
representative to resolve the issue.
Post-installation tasks
• Check the Sybase Support Page at http://www.sybase.com/support for
software updates. This site provides access to product updates and a
variety of downloads to help you get the most out of your Sybase products
and solutions.
• If you are upgrading from 15.0, use an account with DBA privileges to
connect to the server and database with dbisql. Run the ALTER DATABASE
UPGRADE command. For additional information about this command, see
ALTER DATABASE statement in Reference: Statements and Options.
• If you are upgrading from a 12.x version of Sybase IQ, see “Migrating
Data” on page 43 for information about migrating 12.x databases to
Sybase IQ 15.1.
• See “Testing installed products” on page 33 for information about starting
your server, running queries with Interactive SQL, and working with the
demo database.
• See “Installing Sybase IQ Client Components” on page 39 for
information about installing Sybase IQ Client tools.
• See Introduction to Sybase IQ for hands-on exercises if you are unfamiliar
with Sybase IQ and the Sybase Central management console.
32 Sybase IQ
CH A PTE R 4 Testing installed products
About this chapter This chapter tells you how to start Sybase IQ and use the demo database
to test your installation.
Contents
Topic Page
Demo database 34
Running interactive SQL queries 35
Demo database
Sybase IQ includes scripts to create a demo database. In the
%ALLUSERSPROFILE%\SybaseIQ\demo directory, you will see the script
mkiqdemo.bat. This script creates the demo database by modifying, then
running the script mkiqdemo.sql, which will load in data from the sub-directory
\adata.
The sample data supports an imaginary sporting goods company. The sample
database has been updated for the 15.1 release. If you are upgrading from a
previous edition, see “Table names” on page 34 for demo database table
names.
Table names This table includes the former names and new names of sample tables so that
you can update scripts or applications.
12.7 name 15.0 name 15.0 owner
contact Contacts GROUPO
customer Customers GROUPO
department Departments GROUPO
emp1 emp1 DBA
employee Employees GROUPO
fin_code FinancialCodes GROUPO
fin_data FinancialData GROUPO
iq_dummy iq_dummy DBA
product Products GROUPO
sale sale DBA
sales_order_items SalesOrderItems GROUPO
sales_order SalesOrders GROUPO
SYSOPTIONDEFAULTS DBA
Note The previous demo database, Megaphone Telco, is not included with
Sybase IQ 15.1
34 Sybase IQ
CHAPTER 4 Testing installed products
Note For customers who are use to the older asiqdemo database, you can still
create that database by passing in the flag -old to the mkiqdemo.bat script.
Notes
• Sybase Central and Interactive SQL no longer support jConnect. Sybase
Central and Interactive SQL use the SQL Anywhere JDBC Driver.
jConnect is provided with Sybase IQ 15.1 for customer application
backward compatibility purposes.
• As a general rule, the jConnect driver cannot use ODBC data sources.
However, Sybase Central and Interactive SQL are special cases. When
you use the jConnect driver in either of them, you can specify an ODBC
data source to establish a connection.
Creating databases To create your own databases, start and connect to the utility database, as
described in the Sybase IQ System Administration Guide.
Starting your own To start your own databases, use the start_iq utility.
databases
To run start_iq, at the Command Prompt, change to a directory where the
configuration and database files are located, and use the following command
format:
start_iq @configuration_filename.cfg dbname.db
This command starts the database and sets parameters named in the (optional)
configuration (.cfg) file.
36 Sybase IQ
CHAPTER 4 Testing installed products
You can use a configuration file to specify options that you want to set
whenever you start your server. A configuration file for the demo database is
installed in the %ALLUSERSPROFILE%\SybaseIQ\demo directory as an
example. For details about configuration files, see “Using configuration files”
on page 92.
Note The directory where the server is started becomes the default directory
for all server files created by Sybase IQ.
Note Do not discard this document after installing Sybase IQ. You may need
these required parameters later.
For a complete list and description of start-up parameters, see “The database
server” in Chapter 1 of the Sybase IQ Utility Guide.
If you have Sybase Central, you can use the Start Database Server wizard, as
documented in the Introduction to Sybase IQ, instead of start_iq.
The server process runs in the background. It sends output to a server log file,
%ALLUSERSPROFILE%\SybaseIQ\logfiles\servername.NNNN.srvlog,
where NNN is the number of times the server has been started. For example,
%ALLUSERSPROFILE%\SybaseIQ\logfiles\localhost_iqdemo.0006.srvlog.
Stopping servers To stop a server, click the Sybase IQ icon to open the server window, then click
Shutdown. You can also stop a server using the STOP ENGINE command from
DBISQL or any front-end client, or using the Stop utility, as documented in the
Sybase IQ Reference Manual, Chapter 4, “Database Administration Utilities.”
Note When you stop a server using the DBSTOP command, you need to
specify the same parameters used to start that server.
38 Sybase IQ
CH A PTE R 5 Installing Sybase IQ Client
Components
About this chapter This chapter tells you how to install Sybase IQ client components. These
components are required to connect to a network server. For information
about installing Sybase IQ Server Components, see Chapter 3, “Installing
Sybase IQ Server”.
Contents
Topic Page
Overview 40
Installing client components on Windows 41
Uninstalling Sybase IQ client 42
Overview
The Sybase IQ Client Tools Installation CD includes all of the client tools you
need to connect a client machine to an Sybase IQ Server on the network.
Client components
Client components are grouped by feature. Items marked as default are
installed in Typical installations.
Feature Components Default Notes
Sybase IQ Sybase IQ Client • Installs client tools, and ODBC
Sybase IQ ODBC • drivers.
Sybase Central Sybase Central Viewer • Viewer and plug–in are required
Sybase Central Plug–in • for Sybase Central.
jConnect • Required for JDBC connections.
40 Sybase IQ
CHAPTER 5 Installing Sybase IQ Client Components
4 Choose the product edition you want to configure, then click Next.
5 Choose a location, then read and accept the license agreement. Click Next.
You must accept an appropriate licence agreement to install Sybase IQ.
You can review all available license agreements on the Sybase Web site at
http://www.sybase.com/softwarelicenses.
42 Sybase IQ
CH A PTE R 6 Migrating Data
About this chapter This chapter explains how to migrate data from previous Sybase IQ
versions to Sybase IQ 15.1.
Contents
Topic Page
Overview 44
Migration utilities 47
Avoiding potential migration problems 62
Migrating simplex databases 66
Migrating multiplex databases 70
Post-migration tasks 87
Overview
All Sybase IQ databases follow the same basic migration process. Platform
migration and multiplex migration includes some extra additional steps.
Sybase strongly recommends that you read this entire chapter before
performing any migration.
Install Sybase IQ 15.1 before you migrate your 12.x databases. Sybase IQ 15.1
includes tools that you can use to migrate your databases. See “Installing
Sybase IQ for the first time” on page 4 for a summary of all installation tasks.
44 Sybase IQ
CHAPTER 6 Migrating Data
Notes
• If you created your Sybase IQ database on a Linux 32–bit version prior to
Sybase IQ 12.6 ESD #2, you must first install IQ 12.6 ESD #2 for Linux
32–bit and create a new data backup before converting to another
platform.
• Sybase IQ 12.6 ESD #2 and higher releases support migration between
Windows and Linux.
If the database was created with the Java options off, append the keywords
JAVA OFF JCONNECT OFF to the preceding command.
Note Now that your database has been converted to the new platform, you can
proceed with migrating the 12.x database to Sybase IQ 15.1.
46 Sybase IQ
CHAPTER 6 Migrating Data
Migration utilities
Sybase provides utilities that you can use to migrate your 12.x data to Sybase
IQ 15.1.
Note Schema unload mode is not supported for Sybase IQ 12.6. You must use
Sybase IQ 12.7 ESD 5 or later to use this option.
In Sybase IQ 15.1, all user data should reside in a user dbspace comprised of
one or more files. Migration converts main dbspaces into files under one user
dbspace, IQ_MAIN, for the IQ main store, and temporary dbspaces into files
under a single temporary dbspace, IQ_SYSTEM_TEMP, for a single IQ
Temporary Store. Existing Catalog Store dbspaces remain as dbspaces with a
single file. All of the old main dbspaces become files in the new iq_main user
main dbspace. Migration sets the option PUBLIC.default_dbspace to the value
“iq_main.”
The logical names for files created from converted dbspaces are the dbspace
name followed by an underscore and the file ID. For example, a main dbspace
with file ID 16384 becomes IQ_SYSTEM_MAIN_16384.
48 Sybase IQ
CHAPTER 6 Migrating Data
For details on creating new dbspaces after migration and how to move objects
from one dbspace to another, see “SQL syntax for dbspace management and
partitioning”, in Chapter 1, “New Features in Sybase IQ 15.0,” in the New
Features Guide.
Migration creates a new system file for the IQ_SYSTEM_MAIN dbspace that
contains no tables. By default the name of this file is new_main_store.iq, but
you can use the ms_filename argument to specify another filename. The
iqunload utility computes the size of the new IQ_SYSTEM_MAIN based on
the size of your existing database.
If you accept the default settings for iqunload -au -c, then the new store marked
as ‘MAIN’ has DBSpaceName = ‘IQ_SYSTEM_MAIN’, DBFileName =
‘IQ_SYSTEM_MAIN’ and path = ‘new_main_store.iq.’ For MPX migration,
the location of the new main store must be visible to all nodes on the multiplex,
and the -ms_filename argument is required to specify the path instead of the
default value of new_main_store.iq.
When you migrate a database, you may specify which file to use for the new
IQ_SYSTEM_MAIN dbspace, its name, whether or not to use a raw device,
and the size of the main store and its reserve. See “Understanding iqunload”
on page 51 for iqunload parameters that determine these specifications and their
defaults. For main store size guidelines, see the New Features Guide.
Examples Example 1 Schema unloading allows you to verify schema correctness and
approximates how long migration may take.
For example:
• Make sure that you have copied the required scripts to your IQ 12.x server.
See “Correcting invalid SQL syntax” on page 63 for more information.
• Run iqunload -n to create the empty schema. This creates a SQL file with
the entire schema called reload.sql in the current directory. The reload.sql
file also contains a template CREATE DATABASE command that is
commented out.
Note The generated reload.sql will not contain any checkpoints. If you
have a very large schema, you may wish to edit the reload.sql and add a
few checkpoints now and then. If you do not, then IQ will end up with a
lot of object metadata objects requiring lots of (-iqmc) main cache memory.
For example:
CREATE DATABASE 'test.db'
IQ PATH 'test.iq'
IQ SIZE 10240
TEMPORARY PATH 'test.iqtmp'
TEMPORARY SIZE 5120
• Start the new database, connect to it, and execute the reload.sql file
generated by iqunload -n against the new database. The execution time
roughly approximates the actual time to allow for database migration,
excluding validation checks.
Example 2 You can specify the IQ_SYSTEM_MAIN size in the database
migration command. The -ms_size parameter requires a value in MB, not GB.
Omit -ms_size and -ms_reserve if specifying a raw device. For a raw device,
you must specify an unused raw partition.
For example, this statement creates an IQ_SYSTEM_MAIN on a raw device:
iqunload -au -ms_filename \\\\.\\PhysicalDrive1 -c
"UID=DBA;PWD=SQL;DBF=latest.db"
Example 3 In CREATE DATABASE syntax, size units are in MB, not GB. The
following statement creates a database with 100 GB IQ_SYSTEM_MAIN
with 100 GB reserve:
CREATE DATABASE 'test.db'
IQ PATH 'test.iq'
IQ SIZE 102400
IQ RESERVE 102400
TEMPORARY PATH 'test.iqtmp'
TEMPORARY SIZE 5120
50 Sybase IQ
CHAPTER 6 Migrating Data
Understanding iqunload
iqunload is a command line utility. Refer to this section for information about
syntax, parameters, usage, examples, and permissions.
Syntax iqunload [ options ]
data:[ environment variable | file ]
Parameters The iqunload utility takes one or more parameters.
Table 6-1: iqunload parameters
Option Description
-ap <size> (Optional) Set page size for the new catalog store.
-au (Required, except when specifying -n) Migrate the
database.
You can specify-au or-n as an argument, but not both.
Option Description
-c “keyword=value;...” (Required) Supply database connection parameters. You
must specify a DBF parameter to specify the name of the
database file for migration. The file path is either absolute
or relative to the server startup directory.
-dc (Optional) Recalculate computed columns in the
database.
-ms_filename Specify filename for new empty IQ_SYSTEM_MAIN
store created during database migration. If not specified,
the default new main store will be a file system file called
new_main_store.iq.
-ms_filename is optional for a simplex migration, but is
required for a multiplex migration
-ms_reserve (Optional) Size of new IQ_SYSTEM_MAIN reserve in
MB. If unspecified, defaults to zero.
-ms_size (Optional) Size of new IQ_SYSTEM_MAIN store in
MB, computed by Sybase IQ based on the database size.
The minimum, assuming a default page size, is 200MB.
If the user specifies –ms_size value smaller than the
computed value, IQ uses the computed value; otherwise
the user–specified value is used.
-n (Optional, except for schema unload.) Unload schema
definition only. You can specify-au or-n as an argument,
but not both.
52 Sybase IQ
CHAPTER 6 Migrating Data
iqunload –n -c
“UID=DBA;PWD=SQL;DBF=D:\\test_dir\\test2\\test2.db;
ENG=myserver_test2” –r
“D:\test\unload_dir\test2_reload.sql”
Example 3 Migrate database test3.db. The START connection parameter
specifies switches for starting the database being reloaded. The –new_startline
parameter specifies switches for starting the utility_db to create the new
catalog store.
iqunload –au -c “
UID=DBA;PWD=SQL;DBF=D:\\test\\test3\\test3.db;START=–
ch 128M –iqmc 50" –new_startline "–ch 256M –iqtc 400"
Note Do not include -iqnotemp XYZ in the new start line or else migration will
fail. As part of the migration process, temp files will be added to
IQ_SYSTEM_TEMP. If the server is started with iqnotemp then the iqunload
will NOT be able to add these temp files.
Example 4 Migrate the database iq_demo.db using a raw device for a new
IQ_SYSTEM_MAIN store.
Syntax example if you have a second physical drive 2:
iqunload –au –c
"UID=DBA;PWD=SQL;DBF=asiqdemo.db" -ms_filename
\\\\.\\PhysicalDrive2
Syntax example if you have a logical partition K:
iqunload –au –c
"UID=DBA;PWD=SQL;DBF=asiqdemo.db" -ms_filename
\\\\.\\K:
You may optionally specify the size and reserve size for the
IQ_SYSTEM_MAIN store, for example:
–ms_size 10000 –ms_reserve 1000
Example 5 Migrate a database and specify startup parameters using a
configuration file.
iqunload –au –c
"UID=DBA;PWD=SQL;DBF=asiqdemo.db;[email protected]"
Note that the user ID and password must be those for the old database. (The
default password for 12.6 and 12.7 was upper case “SQL.”)
Usage The specified user ID must have DBA authority.
For schema unloads, the iqunload utility requires the following minimum
server versions:
• Sybase IQ version 12.6 ESD #11.
• Sybase IQ version 12.7 ESD #5.
For schema unload, start your existing 12.6 or 12.7 server and specify the -n
parameter on the iqunload command. Schema unload creates schema load
scripts and output files in the current directory.
When migrating a database, specify -au parameter.
Determining switches for migration The iqunload utility starts and
communicates with a special IQ 12.7 server and the Sybase IQ 15.1 server.
This section documents the default switches sent to these servers to help you
understand the cache settings. You can use this information to determine if your
existing IQ 12.7 / 12.6 server requires switches to be set during migration.
For most cases, you can skip to “Results of iqunload” on page 55.
The -au parameter causes the utility to start two servers:
• iqunlspt – A special unload engine based on Sybase IQ 12.7 ESD 5.
Note Make sure that your server starts cleanly in IQ 12.6 or 12.7 to minimize
startup times.
iqunlspt starts on your Sybase IQ 12.6 or 12.7 database with the following
command line arguments:
iqunlspt.exe -iqnotemp 100 -iqro 1 -c 48MB -gc 20 -gd
all -gk all -gl all -gm 1 -gu all -ti 4400 -x shmem
iqunlspt also includes the -n parameter followed by a special randomly
generated server name.
54 Sybase IQ
CHAPTER 6 Migrating Data
These cache settings suffice for most migration cases, although you may need
to increase these values. At migration, data queries execute against the system
catalogs, not IQ data, so the iqunlspt engine needs lower cache levels than
complex IQ queries or multiple concurrent users. Note that the time required to
start your existing Sybase IQ 12.6 or 12.7 database will also be required to start
the iqunlspt.exe process. This time is included in the startup time for the
iqunload.exe.
iqsrv15 starts with the following command line arguments:
iqsrv15 -gp 4096 -c 40p -gc 20 -gd all -gk all -gl all
-gm 1 -gu all -qi -qs -ti 4400
iqsrv15 also includes the -n parameter followed by a special randomly
generated server name. The -c 40p setting provides a larger cache for the
catalog store, allowing the Sybase IQ 15.1 engine to execute many schema
DDL statements.
Both of the server start commands above use the default values for -iqmc and -
iqtc. If your Sybase IQ 12.6/12.7 server requires larger values for startup
performance, consider adding these to the START= parameter (see docs
below).
The iqunload utility generates script and output files in
Results of iqunload
the %IQTMP15% directory and removes them on completion.
By default, Sybase IQ allocates the lesser of 256MB or 40% of physical
memory for the Catalog Store cache size upper limit. Insufficient cache causes
iqunload errors like Tried to allocate 4167598080 bytes, failed.
If desired, you can control the upper and lower limits for the Catalog Store
cache size by setting the –ch and -cl startup switches through the StartLine
[START] connection parameter. For details about -ch and –cl, see the Utility
Guide.
Users with wide tables (large numbers of column/null values) should not
decrease the Catalog Store page size for database migration.
If the database being migrated contains invalid views, Sybase IQ completes
migration but issues user warnings. For example, this might occur if tables
involved in a view were dropped.
If you set the IQTMP15 environment variable, you must set it to a valid
directory name.
If the database being migrated is encrypted, then you must specify the DBKEY
connection parameter to provide the encryption key for the database. The
migrated database uses the same encryption key.
The iqunload utility automatically starts the old version of the server (12.6 or
12.7) in order to upgrade the catalog .db file, and shuts down the old server
after the unload completes. The utility uses default values for the various cache
sizes (catalog cache, main cache, cache). If the database being migrated is
normally run with much higher cache values, specify these values as part of the
START connection parameter to ensure that the server has adequate cache for
the database being unloaded.
The current defaults are 48MB for the catalog cache size, 32MB for the main
cache size and 24MB for the cache size.
Logging and Extra logging To start the Sybase IQ 15.1 server with extra logging, use the
correcting errors -new_startline parameter on the iqunload command to specify diagnostic
parameters -z and -zr all.
For example:
iqunload -au -c "UID=DBA;PWD=SQL;DBF=W:\\iq-
15\\unload\\127\\db\\iq127db.db" -new_startline "-z -zr
all" -o d:\\iq15db.out
This statement causes the new iqsrv15 database engine to produce more
verbose logging output to the file d:\iq15db.out.
For details about the -z diagnostic parameter, see the Utility Guide. For
information about request logging (-zr), which has been updated for 15.1, see
“Request logging” in SQL Anywhere Server – SQL Usage > Monitoring and
Improving Database Performance > Improving database performance > Other
diagnostic tools and techniques.
To start the bundled Sybase IQ 12.7 engine with extra logging, use the START=
connection property to specify the -z and -zr all parameters. For example:
iqunload -v -au -c "UID=DBA;PWD=SQL;DBF=W:\\iq-
15\\unload\\127\\db\\iq127db.db;START=-z -zr all -o
d:\\iq127db.out"
This statement causes the bundled Sybase IQ 12.7 engine to produce more
verbose logging output to the file d:\iq127db.out.
Examine the output file iq15db.out or iq127db.out for server error messages.
Cannot start database If the iqunload utility cannot start a database, it
returns an error and echoes the command line so that you can correct errors.
Server not found If you see a message like the following, iqunload started
the database but could not connect:
SQL error:Database server not found
56 Sybase IQ
CHAPTER 6 Migrating Data
Check to see if an iqunlspt process is running, and stop the process before
retrying iqunload.
Open Task Manager and click the Processes tab. Locate the image name
iqunlspt. Right-click iqunlspt and choose End Process.
If you try to run iqunload without killing the orphaned iqunlspt process, you
may see the following error:
SQL error: Unable to start specified database:
autostarting database failed.
Obsolete stored procedures logged Migration replaces 12.7 login
procedures to support new Sybase IQ 15.1 login management functionality.
The procedure sp_login_environment replaces the 12.7 default login procedure
DBA.sp_iq_process_login and the post-login procedure
dbo.sa_post_login_procedure replaces 12.7 default post-login procedure
DBA.sp_iq_process_post_login. The iqunload utility generally replaces obsolete
options with their new defaults, but if the 12.7 option is set on a specific user
instead of PUBLIC (the default), the log file may report errors like the
following:
E. 10/31 16:53:40. Login procedure
'DBA.sp_iq_process_login' caused SQLSTATE '52W09'
E. 10/31 16:53:40. Procedure 'sp_iq_process_login' not
found
-o d:\iq15console.out
Note The value shown for -c is arbitrary. You should set switches
appropriately for your system. The value for -c is in bytes. To specify
megabytes, use the m suffix, as shown.
58 Sybase IQ
CHAPTER 6 Migrating Data
Running iqlsunload
iqlsunload is a command line utility. Refer to this section for information about
syntax, parameters, usage, examples, and permissions.
Syntax iqlsunload [ options ] directory [ @data ]
Parameter Description
-y Replace existing reload schema SQL script without
confirmation.
Usage The iqlsunload utility requires a minimum server version of Sybase IQ 12.7
ESD #5.
The database must be running before you run iqlsunload.
The specified directory is a path relative to the database on the database server,
not relative to the path where iqlsunload is executed.
The iqlsunload tool connects to the database using connection parameters -c in
a way which is consistent with other tools like dbping and dbisql as described
in the Sybase IQ Utility Guide.
On Windows, you must specify double instead of single slashes in all path and
file names.
You must run the iqlsunload tool from within the %IQDIR15%\lsunload
directory so that it picks up updated libraries before resolving any IQ 12.7
libraries.
Objects unloaded Unloading the local store does not unload database
objects that are not part of the local store.
The -al parameter unloads the following persistent objects:
• Base tables
• Global temporary tables
• Indexes
• Domains (user-defined data types)
• Constraints (column check constraint, table constraint, primary key,
foreign key, unique, default, IQ unique, not null)
• Views
• Stored procedures and functions
• Messages
• Remote servers and external logins
• Events
Sybase IQ 15.1 no longer allows users with empty user names. Users of this
type could formerly be created using statements like:
60 Sybase IQ
CHAPTER 6 Migrating Data
62 Sybase IQ
CHAPTER 6 Migrating Data
Problem Solution
Views that use Transact–SQL™ outer joins (by Add the following line to the reload script:
specifying *= or =*) may not be created properly SET TEMPORARY OPTION
when they are reloaded. tsql_outer_joins='on'
and also set this option for your database.
You should later rewrite any views or Stored
Procedures that use Transact–SQL outer joins.
Stored procedures that use Transact–SQL outer joins Rewrite views and stored procedures.
may not work correctly.
Functions that have OUT or INOUT parameters cannot OUT and INOUT parameters are no longer
be reloaded. supported. The functions must be dropped before
doing a reload.
Note If the examples in the above two tables do not apply to you, skip the next
section, and proceed directly to either “Migrating simplex databases” on page
66 or “Migrating multiplex databases” on page 70.
64 Sybase IQ
CHAPTER 6 Migrating Data
5 Use Interactive SQL to run the reload.sql script that contains the unloaded
schema against the new Sybase IQ 15.1 database. This loads the schema
of the old database into an Sybase IQ 15.1 database. If there are any SQL
syntax errors, you will receive warnings when running the SQL script.
Ignore the errors found in order to get a complete list of the problems.
Modify the database to be migrated to eliminate the errors found. See
“Correcting invalid SQL syntax” on page 63 to determine how to fix the
problems.
6 Perform this process iteratively if necessary until you can cleanly reload
the schema unloaded from the database to be migrated, against the empty
15.1 database.
Task summary
• Review “Upgrading from a previous version” on page 44 for steps
common to all database migrations.
• Run sp_iqcheckdb to check the validity of your current databases. Repair
any index and allocation problems. See “Verify your databases” on page
67 for more information.
• Shutdown your 12.x servers. See “Shutdown your 12.x server” on page 67
for more information.
• Run iqunload with the appropriate parameters to migrate your databases.
See “Migrate your simplex database” on page 68 for more information.
• Start the migrated database in readonly mode. Update the appropriate
configuration settings and database options. See “Start the 15.1 migrated
database” on page 69 for more information.
• Use sp_iqcheckdb to verify the migrated database. See“Verify the
migrated databases” on page 69 for more information.
• Complete any necessary post-migration tasks. See “Post-migration tasks”
on page 87 for more information.
66 Sybase IQ
CHAPTER 6 Migrating Data
❖ Running sp_iqcheckdb
1 Start version 12.6 or 12.7 and connect to your database.
2 Issue a CHECKPOINT command.
3 Run sp_iqcheckdb in verify mode.
sp_iqcheckdb 'verify database'
If you run the procedure from Interactive SQL, redirect output to a file by
typing the following:
sp_iqcheckdb 'verify database' >& filename
4 Issue a COMMIT statement.
Examine the sp_iqcheckdb report for errors. Repair any index and
allocation problems.
Output:
Sybase IQ Unload Utility Version 15.0.0.5120
Connecting and initializing
Unloading user and group definitions
Unloading table definitions
Unloading index definitions
Unloading functions
Unloading view definitions
Unloading procedures
Unloading triggers
Unloading SQL Remote definitions
Creating new database
Creating indexes for (1/14)
"DBA"."sales_order"
Creating indexes for(2/14)
"DBA"."sales_order_items"
Creating indexes for (3/14) "DBA"."contact"
Creating indexes for (4/14) "DBA"."customer"
Creating indexes for (5/14) "DBA"."fin_code"
Creating indexes for (6/14) "DBA"."fin_data"
Creating indexes for (7/14) "DBA"."product"
Creating indexes for (8/14) "DBA"."department"
Creating indexes for (9/14) "DBA"."employee"
68 Sybase IQ
CHAPTER 6 Migrating Data
Note In this step, you run the IQ 15.1 version of sp_iqcheckdb, which uses
input parameters, rather than database options, to specify the type of database
consistency checking.
❖ Running sp_iqcheckdb
1 Start the database using the read-only switch, -iqro 1.
When starting the coordinator in 15.1, use the same port used by the 12.6
or 12.7 writer server.
2 Issue a CHECKPOINT command.
Task summary
• Review “Upgrading from a previous version” on page 44 for steps
common to all database migrations.
• Synchronize and shutdown multiplex all query nodes. See “Synchronize
and shutdown multiplex query nodes” on page 71 for more information.
• Migrate local stores, if necessary. This step is only required if you created
local stores for your 12.x multiplex query nodes. See “Migrate your local
stores” on page 73 for more information.
• Run sp_iqcheckdb to check the validity of your 12.x databases. Repair any
index and allocation problems. See “Verify the 12.x databases before
migration” on page 79 for more information.
70 Sybase IQ
CHAPTER 6 Migrating Data
• Start the multiplex write server in single node mode. See “Start the
multiplex write server in single node mode” on page 80 for more
information.
• Shutdown your 12.x server and backup your database. See “Shutdown
your 12.x server” on page 80 for more information.
• Run iqunload with the appropriate parameters to migrate your databases.
See “Use iqunload to migrate your database” on page 80 for more
information.
• Use the -iqro 1 -iqmpx_sn 1 switches to start the writer in READONLY
mode. See “Start the 15.1 migrated database” on page 83.
• Run sp_iqcheckdb to verify your migrated databases, then backup the
databases. See “Verify the migrated databases” on page 83 for more
information.
• Synchronize the secondary nodes from the coordinator node. See
“Manually synchronize the secondary nodes” on page 84 for more
information.
• Start the secondary nodes, then import the schema and data for the local
stores into the coordinator. See “Start the secondary nodes” on page 86 for
more information.
• Set the failover mode for the failover node. See “Set the failover node” on
page 86 for more information.
• Complete any necessary post-migration tasks. See “Post-migration tasks”
on page 87 for more information.
72 Sybase IQ
CHAPTER 6 Migrating Data
The reload_schema.sql script produced for each query node will contain
the same schema definition for employee.
2 Execute the reload_schema.sql from one of the query nodes against either
the existing 12.7 writer or the new Sybase IQ 15.1 main store.
3 Execute the reload_data.sql script from each of the query nodes against
the same server used in the previous step.
This procedure creates the employee table once but loads each of the query
node data sets.
Query server data If the same table exists on each query node with overlapping data sets, you
overlap must resolve the issue. You may edit the extract data files to ensure that the data
sets are unique, or you may decide to just rename the tables and then reload all
the unique tables.
74 Sybase IQ
CHAPTER 6 Migrating Data
SET @max_row_id =
( SELECT MAX( rowid( "sales_order" ) )+1
FROM "DBA"."sales_order" );
SET @load_statement =
'LOAD TABLE "DBA"."sales_order"
(id, cust_id, order_date, fin_code_id NULL(
'''||@null_string||''' ) , region NULL(
'''||@null_string||''' ) , sales_rep)
FROM
'''||@extract_directory||'DBA_sales_order_1_1_DATA_1.
inp'',
'''||@extract_directory||'DBA_sales_order_1_1_DATA_2.
inp'',
'''||@extract_directory||'DBA_sales_order_1_1_DATA_3.
inp'',
'''||@extract_directory||'DBA_sales_order_1_1_DATA_4.
inp'',
'''||@extract_directory||'DBA_sales_order_1_1_DATA_5.
inp'',
'''||@extract_directory||'DBA_sales_order_1_1_DATA_6.
inp'',
'''||@extract_directory||'DBA_sales_order_1_1_DATA_7.
inp'',
'''||@extract_directory||'DBA_sales_order_1_1_DATA_8.
inp'' ROW DELIMITED BY ''\n'' QUOTES ON
ESCAPES OFF DEFAULTS OFF FORMAT ASCII
IGNORE CONSTRAINT ALL 0 START ROW ID
'||@max_row_id;
CALL IqExecuteCommand( @load_statement );
ALTER TABLE "DBA"."sales_order" MODIFY cust_id NOT
NULL;
76 Sybase IQ
CHAPTER 6 Migrating Data
NULL;
The preceding example shows query server schema and data that require
intervention during migration. Your situation may vary, but you have complete
control of the content of the final reload_schema.sql and reload_data sql files.
5 Edit the extract_data.sql script to remove objects that you do not wish to
migrate. These objects are generally the same ones that you removed from
reload_schema.sql.
6 Use Interactive SQL to run extract_data.sql from your 12.7 local store.
You now have unloaded the schema and data for local objects in the 12.7
local store.
7 Run the reload_schema.sql and load_data.sql scripts against the 12.7
write server.
Note If you prefer, you may wait until the write server has been migrated
to 15.1 and run the reload_schema.sql and load_data.sql scripts against
the new 15.1 coordinator.
78 Sybase IQ
CHAPTER 6 Migrating Data
Note In this step, run the IQ 12.6 or 12.7 version of sp_iqcheckdb, depending
on the version from which you are migrating. These versions of sp_iqcheckdb
use input parameters, rather than database options, to specify the type of
database consistency checking.
❖ Running sp_iqcheckdb
1 Start version 12.6 or 12.7 and connect to your database.
2 Issue a CHECKPOINT command.
3 Run sp_iqcheckdb in verify mode.
sp_iqcheckdb 'verify database'
If you run the procedure from Interactive SQL, redirect output to a file by
typing the following:
sp_iqcheckdb 'verify database' >& filename
4 Issue a COMMIT statement.
80 Sybase IQ
CHAPTER 6 Migrating Data
• You need to specify the engine name in the -c connection parameters. This
is the same name that your
<mpx_dir>\<writer_node>\start_server.bat<mpx_dir>/<writer_node>/
start_server script file uses to start the writer node. The iqunload utility
attempts to start the database server as simplex first. This start requires that
the name of the server match the naming conventions for the multiplex
nodes. Once the iqunload detects that the server is a multiplex node, it shuts
the node down and restarts it with the iqmpx_sn 1 option.
• The name of the new main store needs to be visible and accessible by all
nodes of the multiplex. This is important because main store filename
defaults to new_system_main.iq. This path is relative to the catalog
database file (.db). Later, when the15.1 multiplex is synchronized, the
catalog is replicated to the secondary nodes, formerly known as the query
nodes. If you leave the default value for the main store name unchanged,
the path remains new_system_main.iq and secondary nodes are unable to
find the shared main store.
For multiplex writers, required arguments are ENG=, DBF=, and -ms_filename:
• The ENG= argument specifies the multiplex main engine name. This is
because the iqunload utility attempts to start the database to determine if
the database is a simplex or multiplex database. If multiplex, then the
server name is enforced. If you are unsure of the servername, check the
administrative script start_server in the database directory.
• The DBF= argument must specify the actual path that you used to create
the multiplex. If you are unsure of this, look at the SYSIQFILE table in
your 12.7 server to verify the database path.
• The -ms_filename argument specifies the location of the new main store.
This path must be visible and accessible by all servers in the multiplex.
Make sure that you begin all paths supplied as values for the arguments DBF=
and -ms_filename with double backslashes.
For example:
iqunload -au -c
"UID=DBA;PWD=SQL;DBF=d:\\marshall\\work\\iq-
127\\mpx\\main\\main.db;ENG=mpx_main" -ms_filename
d:\\marshall\\work\\iq-
127\\mpx\\main\\new_main_store.iq
Sybase IQ Unload Utility Version 15.0.0.5120
Connecting and initializing
2008-11-23 22:32:07 Unloading user and group
definitions
2008-11-23 22:32:08 Unloading table definitions
2008-11-23 22:32:09 Unloading index definitions
2008-11-23 22:32:09 Unloading functions
2008-11-23 22:32:09 Unloading view definitions
2008-11-23 22:32:09 Unloading procedures
2008-11-23 22:32:09 Unloading triggers
2008-11-23 22:32:09 Unloading SQL Remote
definitions
2008-11-23 22:32:09 Unloading MobiLink definitions
2008-11-23 22:32:10 Creating new database
2008-11-23 22:32:48 Reloading user and group
definitions
2008-11-23 22:32:48 Reloading table definitions
2008-11-23 22:32:53 Reloading index definitions
2008-11-23 22:32:53 Reloading functions
2008-11-23 22:32:53 Reloading view definitions
2008-11-23 22:32:53 Reloading procedures
2008-11-23 22:32:53 Reloading triggers
2008-11-23 22:32:53 Reloading SQL Remote
definitions
2008-11-23 22:32:53 Reloading MobiLink definitions
Successfully backed up file "D:\marshall\work\iq-
127\mpx\main\sa_dbspace.db" by renaming it to
"D:\marshall\work\iq-
127\mpx\main\sa_dbspace.db.before_schema_reload".
Successfully backed up file "d:\marshall\work\iq-
127\mpx\main\main.db" by renaming it to
"d:\marshall\work\iq-
127\mpx\main\main.db.before_schema_reload".
Successfully backed up file "d:\marshall\work\iq-
127\mpx\main\main.iqmsg" by renaming it to
"d:\marshall\work\iq-
127\mpx\main\main.iqmsg.before_schema_reload".
Successfully reloaded schema of database
"d:\marshall\work\iq-127\mpx\main\main.db".
82 Sybase IQ
CHAPTER 6 Migrating Data
Note In this step, you run the IQ 15.1 version of sp_iqcheckdb, which uses
input parameters, rather than database options, to specify the type of database
consistency checking.
❖ Running sp_iqcheckdb
1 Start the database using the read-only switch, -iqro 1. Start the coordinator
(the 12.6 or 12.7 write server) using both -iqro 1 and single node mode, -
iqmpx_sn 1.
When starting the coordinator in 15.1, use the same port used by the 12.6
or 12.7 writer server.
2 Issue a CHECKPOINT command.
3 Run sp_iqcheckdb in verify mode.
sp_iqcheckdb 'verify database'
If you run the procedure from Interactive SQL, redirect output to a file by
typing the following:
dbisql -c "..." "sp_iqcheckdb ('verify database')"
>& filename
where “...” represents startup parameters for your database.
4 Issue a COMMIT statement.
Because we started the server in readonly mode, the server cannot complete
some post migration bookkeeping tasks, and the verification will report some
problems with Block Count Mismatch, Blocks Leaked and Unallocated Blocks
in Use. All other segments of the verify database should not report any errors.
For example:
'** Block Count Mismatch','79','*****'
'** Blocks Leaked','25','*****'
'** Unallocated Blocks in Use','104','*****'
Examine the sp_iqcheckdb report for errors. For information on interpreting the
sp_iqcheckdb results and corrective action, refer to Chapter 2, “System
Recovery and Database Repair,” in Sybase IQ Troubleshooting and Recovery
Guide. If you need to contact Sybase Technical Support, you must provide the
output from sp_iqcheckdb.
84 Sybase IQ
CHAPTER 6 Migrating Data
d:\work\iq-127\mpx\q1\q1.iqmsg d:\work\iq-
127\mpx\q1\q1.iqmsg.before_schema_reload
2 Issue a dbbackup command to synchronize servers. You might have a
different name for the query node's catalog file, depending on your
configuration. In the following example, q1.db is the catalog file name on
the query node:
dbbackup -y -x -c
"uid=dba;pwd=sql;eng=mpx_main;dbf=d:\\work\\iq-
127\\mpx\\main\\main.db" d:\work\iq-127\mpx\q1
SQL Anywhere Backup Utility Version 11.0.0.5020
Debug
(702 of 699 pages, 100% complete)
Transaction log truncated
Database backup completed
3 If your query nodes do not use a different catalog database name, skip to
Step 4.
Step 2 synchronized the catalog database file from the coordinator. If you
prefer to use the same catalog database file name as the coordinator, adjust
any server start/stop administration scripts on the secondary nodes to use
the new name.
To retain the same catalog database file names:
a Rename the synchronized coordinator catalog database file name.
Assuming the coordinator file was called main.db and the secondary
server was called q1.db
rename main.db q1.db
b Rename the log file for the query node. This is necessary as the file
renamed above still contains an internal pointer to main.log:
dblog -t q1.log q1.db
4 Start the secondary server in normal mode:
start_iq.exe @params.cfg -n mpx_q1 -x
tcpip{port=62632} -o d:\work\iq-127\mpx\q1\o.out -Z
-zr all -zo d:\work\iq-127\mpx\q1\zo.out D:\work\iq-
127\mpx\q1\main.db
The above command line is derived from your existing query server
start_server administration script.
5 Repeat the preceding steps on the remaining secondary nodes that you
want to migrate.
86 Sybase IQ
CHAPTER 6 Migrating Data
Post-migration tasks
After you migrate you databases, you may want to perform these post-
migration tasks.
This backup after the migration is recommended but not required. If you use
the IQ BACKUP statement instead of a system–level backup, you can run
backups and queries concurrently.
88 Sybase IQ
CHAPTER 6 Migrating Data
For a multiplex migration, back up the coordinator only in this manner. For
secondary servers, run the dbbackup utility from the secondary server
directory.
If you do not use multiplex capability, your migration is complete. The
following sections apply only to multiplex migration.
90 Sybase IQ
CH A PTE R 7 Configuring Sybase IQ
About this chapter This chapter describes configuration files, start up options, client access,
backups, and other configuration issues.
Contents
Topic Page
Using configuration files 92
Installing Sybase IQ as a Service 93
Configuring backup devices 94
92 Sybase IQ
CHAPTER 7 Configuring Sybase IQ
Notes
• Copy any input files that you use to load your databases into the directory
where the service starts, not where the database files are located. On most
systems, the services start-up defaults to the %SYSTEMROOT%\system32
directory.
• To use Sybase IQ as a Windows service when raw device access is
required, you must grant the service Administrator privileges.
• Use Modify an Existing Service or Delete an Existing Service in the Add
Service utility to change or delete Sybase IQ services.
Suppressing Windows If you run the database server as a Windows service, you can set the
event log messages Software\Sybase\Adaptive Server Anywhere\11.0.1 registry entry to suppress
event log entries.
To control event log entries, set the EventLogMask key, which is of type
REG_DWORD. The value is a bit mask containing the internal bit values for
the different types of event messages:
errors EVENTLOG_ERROR_TYPE 0x0001
warnings EVENTLOG_WARNING_TYPE 0x0002
information EVENTLOG_INFORMATION_TYPE 0x0004
94 Sybase IQ
CHAPTER 7 Configuring Sybase IQ
Notes
• The iAnywhere JDBC driver is the default driver for Sybase Central and
dbisql.
Notes
• Although you can use new ODBC 3.5.x features such as descriptors in
your ODBC applications, ODBC 2.x applications will continue to work
with Sybase IQ.
• For more information about ODBC, see the ODBC Programmer's
Reference, available from Microsoft Corporation as part of the ODBC
software development kit or from the Microsoft Web site at
http://www.microsoft.com.
96 Sybase IQ
CHAPTER 7 Configuring Sybase IQ
• Run C:\WINDOWS\SysWOW64\odbcad32.exe
Other methods of launching ODBC Administrator from the Control Panel or
Run box do not return desired results. If you type “odbcad32” instead of the
full path in the Run text box, ODBC lists only one driver (SQL Server driver)
and prevents adding Data Source Names. The Version or Company column in
the driver list may include the value “(Not Marked).”
Attempts to add a DSN starting the ODBC Administrator incorrectly may
return one of the following errors:
• The setup routines for the Adaptive Server IQ ODBC
driver could not be loaded due to system error code 126.
Note The AUTOSTOP parameter is required in file data sources and odbc.ini
files. Always be set to NO.
On Windows XP and 2000, the ODBC Administrator adds new data sources
for you. Each data source allows you to access a database over a network by
means of ODBC.
98 Sybase IQ
CHAPTER 7 Configuring Sybase IQ
• If the data source is on your local machine, type a start line and
database name (without the .db extension).
• If the data source is on a remote system, click the Network tab, and
select the appropriate protocol and options.
For example, to use TCP/IP to connect to server on a host named
localhost2k and port 1870, click the TCP/IP box and type
host=localhost2k:port=1870 in the text box.
Note You cannot connect to a Sybase IQ 15.1 server using an ODBC Data
Source Name created for a 12.5 server, even if you specify the same server
name, port number, and database name. Use the ODBC Data Source
Administrator to remove DSNs created in 12.5 and add new DSNs.
You can use files as data sources instead of databases. File data sources are
stored as files with the extension .dsn. For information about creating a file data
source, see the System Administration Guide.
100 Sybase IQ
CHAPTER 7 Configuring Sybase IQ
User Datagram There are several entries into the TCP/IP protocol stack. IQ employs the User
Protocol Datagram Protocol (UDP). Although it is called a transport protocol here and
elsewhere, UDP provides little more than a user interface to the network layer
IP. In particular, UDP is not a guaranteed transmission protocol.
Verified TCP/IP Many vendors supply TCP/IP protocol stacks and associated software. IQ
protocol stacks communications have been explicitly verified with the following TCP/IP
implementations.
• Windows Microsoft Winsock version 2.0.
Using TCP/IP with Windows NT 3.5 and later ship with TCP/IP software that uses NDIS network
Windows drivers. Install TCP/IP Protocol from Control Panel, Network Settings.
This software allows an IQ server for Windows or an IQ client application to
use Windows TCP/IP.
Tuning Sybase IQ Although the default packet size for TCP/IP is 512 bytes, a larger packet size
performance under may improve query response time, especially for queries transferring a large
TCP/IP
amount of data between a client and a server process. You can set the packet
size using the -p parameter on both the IQ client and the database server
command lines.
102 Sybase IQ
CHAPTER 7 Configuring Sybase IQ
104 Sybase IQ
A P PE N DI X A Silent Installations
About this chapter This chapter tells you how to install Sybase IQ without having to interact
with the standard installation wizard.
Contents
Topic Page
Overview 106
Installing IQ silently 106
Uninstalling IQ silently 110
Sample configuration files 110
Overview
Your installation media includes scripts that perform standard IQ installs and
uninstalls without the need to interact with the product. These scripts are
configured to perform typical installations by default; custom installation tasks
require additional configuration.
The installation media includes installation scripts, an appropriate JRE,
CLASSPATH settings, java command string, and pointers to the text file that
contains the feature selections and configuration options.
Note Client and Server silent installation scripts share the same filenames. Be
sure that you are running the correct script when you are installing or
uninstalling IQ components.
Installing IQ silently
IQ silent installation scripts support typical and custom installations. See
“Editing the installation parameters” on page 107 for information about
changing the installation defaults; see “Running a silent install” on page 107
for information about running a silent install.
Task summary
The following list summarizes the tasks required to run a silent install.
• Update the installation parameters, if necessary. Installation parameters
are stored in SilentInstall.txt and match the defaults in a typical
installation. If you want to change any installation options, you need to
edit this file and save your changes on the file system. See “Editing the
installation parameters” on page 107 for more information.
• Run the silent install scripts. Be sure to complete all preinstallation tasks
before you run the installer. See “Running a silent install” on page 107 and
“Completing the installation” on page 109 for more information.
106 Sybase IQ
APPENDIX A Silent Installations
Argument Description
licensed_user Installs the licensed version of Sybase IQ.
eval_user Installs the evaluation version of Sybase IQ.
Typical install You can run a typical silent install directly from the installation CD. The
command you use to launch the install must include a version switch (–
licensed_user or – eval_user) and a – license acceptance switch:
<DVD drive>\SilentInstall.bat -licensed_user
-I_accept_sybase_license
If you do not have the %SYBASE% environment variable set, you must also
specify the -dst parameter and the destination directory as parameters.
Custom install Custom install commands must include the –txt switch that points to the
location of the modified SilentInstall.txt as well as a version switch and –
license acceptance switch:
<path>\SilentInstall.bat –txt <path>\SilentInstall.txt
-licensed_user -I_accept_sybase_license
If you do not have the %SYBASE% environment variable set, you must also
specify the -dst parameter and the destination directory as parameters.
Running silent install You must have sufficient user permissions to run applications in Microsoft
scripts on Microsoft Vista. If you do not have administrator privileges and want to run a silent install
Vista
or uninstall, open a command prompt as an Administrator, then execute the
silent install or uninstall from the command line.
For example:
1 Click Start, right-click Command Prompt, choose Run as
administrator.
2 Change to the directory on the local file system where you saved your
updated installation script(s).
3 Run the command to execute the script.
For example:
SilentInstall.bat -licensed_user
–I_accept_sybase_license –dst <path to destination
directory>\Sybase_server
108 Sybase IQ
APPENDIX A Silent Installations
Notes
• If you change the license acceptance parameter in the SilentInstall.txt file,
you do not need to specify that option on the command line.
• You can monitor silent installs by running a tail command on the log file.
The default name and location of this file is
\%ALLUSERSPROFILE%\SybaseIQ\logfiles\IQ15Console.log. This
location and log file name can be changed by adding –cl and the log
location as a command line parameter when launching the silent install.
Note After you install the software, Sybase strongly recommends that you
check the online support Web site for software updates. If a software update
(EBF) has been released, it contains bug fixes made after this product shipped.
Uninstalling IQ silently
IQ silent uninstallation scripts support typical and custom uninstallations. See
“Editing the uninstall parameters” on page 110 for information about changing
the uninstall parameters; see “Running a silent install” on page 107 for
information about running the uninstaller.
Note You must run a silent uninstall from the installation directory, not the
installation media.
Uninstalling IQ components
SilentUninstall.bat is the name of the script that you use to uninstall IQ
components. How you run the uninstall depends on whether you are
“Uninstalling all components” on page 110 or “Uninstalling some
components” on page 110.
Uninstalling all If you installed IQ with all defaults, you can run a typical silent uninstall
components directly from the installation directory. To run the uninstall, open a command
window, and use the following command:
%SYBASE%\uninstall\IQ\SilentUninstall.bat
Uninstalling some To perform a custom uninstall, the command you use to run SilentUninstall.bat
components must include the –txt switch that points to the location of a modified
SilentUninstall.txt:
%SYBASE%\uninstall\IQ\SilentUninstall.bat -txt
<directory name>\SilentUninstall.txt
Running silent You must have sufficient user permissions to run applications in Microsoft
uninstall scripts on Vista. If you do not have administrator privileges and want to run a silent
Microsoft Vista
uninstall, open a command prompt as an Administrator, then execute the silent
uninstall from the command line.
110 Sybase IQ
APPENDIX A Silent Installations
SilentInstall.txt
Use this example to review the server settings in a typical SilentInstall.txt file.
Client versions follow the same conventions.
################################################################
########################### SILENT INSTALLER ################################
#############################################################################
#############################################################################
# IMPORTANT NOTE BEFORE STARTING (If you have previously installed IQ):
# 1. Ensure IQ Server is not running.
#############################################################################
#############################################################################
# By setting the following argument to "true", you are agreeing to the
# Sybase License Agreement.
#############################################################################
-V AgreeToSybaseLicense="false"
#############################################################################
# By setting the following argument to "true", you wish to ignore the warning
# about installing Sybase IQ even though a previous version of Sybase IQ has
# been found.
#############################################################################
-V IgnorePreviousVersion="false"
#############################################################################
# By setting the following argument to "false" you wish to use the Evaluation
# version. By setting the following argument to "true" you wish to use the
# Licensed Version. You can specify a license file below if you select a
# licensed version.
#############################################################################
-V Variable_IQDemoSelect_LicensedYesRB="false"
#############################################################################
# NOTE: The following two variables apply to WINDOWS Platform Only
#
# The install will try to detect if Sybase Open Client is in the environment.
# To prevent conflicts, IQ will append the IQ executable directory to the end
# of the search PATH when it finds Sybase Open Client in the environment.
#
# In rare cases, appending to the end of the PATH can fail due to the length
# of the PATH exceeding the maximum system length, or if an invalid or corrupt
# entry preceeds IQ. If IQ is missing from the path after the install
# completes, please shorten or clean the current PATH and then reboot before
# attempting a reinstall.
#
# If you wish to modify the install behavior you can uncomment and modify
# the two variables below:
# Variable_OverridePrependOrAppendToPath"true" to override install
# behavior
# "false" to use install
# behavior
# Variable_IQAppendPath_Prepend_IQBinDir"true" to prepend
# "false" to append
#############################################################################
### -V Variable_OverridePrependOrAppendToPath="false"
### -V Variable_IQAppendPath_Prepend_IQBinDir="true"
#############################################################################
#
# Sybase Software Asset Management License
#
# Sybase Data Integration Suite requires Sybase Software Asset Management
# (SySAM) license key(s). If you have not yet obtained the license key(s), go
# to
# SPDC at http://sybase.subscribenet.com to obtain the license keys.
#
# You can specify the license file or license server where the license key(s)
# were previously deployed.
#
# -W sysamLicense.proceedWithoutLicense - Select this if you want to
# continue installation without
# a
# license key.
# -W sysamLicense.useExistingLicenseServer - Valid values are "true" or
# "false". Set to "true" if you
# want to use previously
# deployed
# license server or "false" if
# want to specify the license
# file.
# -W sysamLicense.licenseFile - Specify the Sybase Software
# Asset Management license file.
# -W sysamLicense.licenseServerHostName - Enter the hostname where the
112 Sybase IQ
APPENDIX A Silent Installations
-W sysamLicense.proceedWithoutLicense=true
### -W sysamLicense.useExistingLicenseServer=false
### -W sysamLicense.licenseFile=
### -W sysamLicense.licenseServerHostName=localhost
### -W sysamLicense.licenseServerPortNumber=
#############################################################################
#
#
# Please select the product edition you would like to configure. For Enterprise
# and Small Business Editions, you also need to select the license type for this
# installation. For the productEdition and licenseType fields below, enter the
# 2-letter codes listed below that correspond to your license.
#
# sysamProductType.productEdition - Valid values are
# "EE" - Enterprise Edition,
# "SE" - Small Business Edition
# "SA" - Single Application Edition
#
# sysamProductType.licenseType - Valid values are dependant on the
# product edition.
# For Enterprise Edition the license type
# can be
# "CP" - CPU License
# "DT" - CPU Development and Testing License
# "SF" - CPU Standby License
# "AC" - OEM CPU License
# "BC" - OEM Standby CPU License
# "EV" - Evaluation License
# "" - Unknown
#
# For Small Business Edition the license type
# can be
# "CH" - Chip License
# "DH" - Chip Development and Testing License
# "SH" - Chip Standby License
# "AH" - OEM Chip License
# "BH" - OEM Standby Chip License
# "EV" - Evaluation License
# "" - Unknown
#
# For Single Application Edition the license type
# can be
# "CP" - CPU License
# "EV" - Evaluation License
# "" - Unknown
#############################################################################
-W sysamProductType.productEdition="EE"
-W sysamProductType.licenseType="DT"
#############################################################################
# Sybase Software Asset Management email alerts
#
# If you would like to configure email alerts, set
# -V Variable_IQSySAMEmail_AlertsYesRB=true
# -V Variable_IQSySAMEmail_AlertsNoRB=false
# and uncomment and set the other variables appropriately.
#
# Valid values for -V Variable_IQSySAMEmail_SeverityTF= are:
# WARNING, INFORMATIONAL, and ERROR
#############################################################################
-V Variable_IQSySAMEmail_AlertsYesRB=false
-V Variable_IQSySAMEmail_AlertsNoRB=true
# -V Variable_IQSySAMEmail_HostTF=smtp
# -V Variable_IQSySAMEmail_PortTF=25
# -V Variable_IQSySAMEmail_SenderTF=" "
# -V Variable_IQSySAMEmail_RecipientTF=" "
# -V Variable_IQSySAMEmail_SeverityTF=" "
#############################################################################
# Enable/Disable features to be installed by setting the value to
# "true" or "false".
#
# Legal values are:
# true - Indicates that the feature is selected for installation
# false - Indicates that the feature is not selected for installation
#
# In order to install a sub feature, all parent features must also be
# selected.
#
# Note: You will need to remember these same features if running the
# Silent Uninstall.
#
114 Sybase IQ
APPENDIX A Silent Installations
# "SybaseIQ" Feature
-P SybaseIQ.active="true"
# "IQServer" Feature
-P IQServer.active="true"
# "IQOpenClient" Feature
-P IQOpenClient.active="true"
# "IQClient" Feature
-P IQClient.active="true"
# "IQODBC" Feature
-P IQODBC.active="true"
# "SybaseCentral" Feature
-P SybaseCentral.active="true"
# "SCJViewer" Feature
-P SCJViewer.active="true"
# "SCJPlugin" Feature - requires SCJViewer to be installed
-P SCJPlugin.active="true"
# "jConnect" Feature
-P jConnect.active="true"
# "SybaseSySAM" Feature
-P SybaseSySAM.active="true"
# "NetworkLicenseServer" Feature
-P NetworkLicenseServer.active="false"
# "LicenseUtilities" Feature
-P LicenseUtilities.active="true"
#############################################################################
# Please do not modify the values below.
#############################################################################
-V Variable_Silent="true"
-W InstallType.active="false"
-P copyJRE.active="true"
-P SilentUninstall.active="true"
-P copyJRE1.active="true"
-P SilentUninstall1.active="true"
-silent
SilentUninstall.txt
Use this example to review the server settings in a typical SilentUninstall.txt
file. Client versions follow the same conventions.
#############################################################################
########################### SILENT UNINSTALLER ##############################
#############################################################################
#############################################################################
# Enable/Disable features to be uninstalled by setting the value to
# "true" or "false".
#
# Legal values are:
# true - Indicates that the feature is selected for removal
# false - Indicates that the feature is not selected for removal
#
# For example, to select "Server:" for removal, use
#
# -P Server.activeForUninstall=true
#
#############################################################################
# "SybaseIQ" Feature
-P SybaseIQ.activeForUninstall="true"
# "IQServer" Feature
-P IQServer.activeForUninstall="true"
# "IQOpenClient" Feature
-P IQOpenClient.activeForUninstall="true"
# "IQClient" Feature
-P IQClient.activeForUninstall="true"
# "IQODBC" Feature
-P IQODBC.activeForUninstall="true"
# "SybaseCentral" Feature
-P SybaseCentral.activeForUninstall="true"
# "SCJViewer" Feature - removal of SCJViewer requires that SCJPlugin
# be removed as well
-P SCJViewer.activeForUninstall="true"
# "SCJPlugin" Feature
-P SCJPlugin.activeForUninstall="true"
# "jConnect" Feature
-P jConnect.activeForUninstall="true"
# "SybaseSySAM" Feature
-P SybaseSySAM.activeForUninstall="true"
# "NetworkLicenseServer" Feature
-P NetworkLicenseServer.activeForUninstall="true"
# "LicenseUtilities" Feature
116 Sybase IQ
APPENDIX A Silent Installations
-P LicenseUtilities.activeForUninstall="true"
#############################################################################
# Please do not modify the values below.
#############################################################################
-G removeExistingResponse=yesToAll
-G removeModifiedResponse=yesToAll
-silent
118 Sybase IQ
A P PE N DI X B Troubleshooting SySAM
About this Chapter If SySAM 2 related errors are not addressed in a timely fashion, Sybase
IQ may cease to function. This section includes information about
troubleshooting the most common SySAM related errors.
For the most up to date information about troubleshooting SySAM, see the
SySAM FAQ at http://www.sybase.com/products/allproductsa-z/sysam.
Contents
Topic Page
Where to look for SySAM-related errors 120
SySAM grace mode 120
SySAM grace period 120
Enabling and changing e-mail notifications 121
Calling Sybase technical support for SySAM-related issues 121
License checkout and verification 123
Diagnosing SySAM issues 123
120 Sybase IQ
APPENDIX B Troubleshooting SySAM
To change the severity that triggers e-mails, set the e-mail severity property.
Values are: ERROR, WARNING, INFORMATIONAL and NONE.
To change the list of e-mail recipients, set the e-mail recipients property to the
comma separated list of e-mail addresses. E-mail addresses can include
distribution lists, e-mail address for a pager device, and anything that is capable
of receiving SMTP messages.
Note IQ_SYSTEM_MAIN and one more user dbspace is provided with the
server; a third dbspace requires a IQ_VLDGMGMT license.
122 Sybase IQ
APPENDIX B Troubleshooting SySAM
License verification Table B-2 identifies when SySAM verifies different licenses.
Table B-2: License verification table
Consistent Checks on
checks on startup after Checks on
License startup feature enabled feature access
IQ_SECURITY • •
IQ_MPXNODE • •
IQ_VLDBMGMT • •
IQ_LOB •
IQ_CORE •
IQ_UDF •
Note Changes to licensed features may not appear until the server is restarted.
Checked out licences remain in use until you restart the server.
124 Sybase IQ
APPENDIX B Troubleshooting SySAM
126 Sybase IQ
APPENDIX B Troubleshooting SySAM
Served models • Verify that the license server is running and reachable from the machine
you are using. Use sysam status to verify that you can access the license
server. If you cannot access the license server, see if the license server is
running.
• If the license server is running, use sysam status -f feature_name to
determine whether the license server is serving a license for the given
feature. If not, obtain the correct licenses from SPDC.
• All licenses on the license server may be in use. If sysam status -f
feature_name indicates that no licenses are available, obtain additional
licenses or shutdown Sybase IQ.
Unserved models • The license for the given feature may not be copied in the local licenses
directory. Obtain the correct licenses from SPDC and copy them to the
local licenses directory.
• The license may have been activated for a different machine or activated
with incorrect Host ID. Check-in and reactivate the license with the correct
Host ID.
Wrong license • The available licenses are for a different operating system or architecture.
Obtain license for the correct platform from SPDC.
• If you are running in a terminal server environment, unserved licenses
cannot be used. Set up served licenses for a terminal server environment.
• The available license may not authorize use of this version of Sybase IQ.
• For information about date based versioning, see Appendix B, Installing
Product Updates, EBFs, and Support Renewal in the Sybase Software
Asset Management Users Guide.
• For information about how to update your license, see the Updating your
Sybase licenses section in Chapter 3, Getting and Using your License, in
the Sybase Software Asset Management Users Guide.
product edition or If the diag command shows the license for the given feature is available for
license type check-out, the reason that Sybase IQ cannot check-out the license could be that
the product edition or license type does not match the requirement.
• If the edition and license type configuration parameters are set, Sybase IQ
uses only the license that matches these settings.
• Run sp_iqlmconfig to see the configured values.
• Check the VENDOR_STRING attribute of the licenses to make sure a
matching license exists. If a matching license does not exist, obtain a
suitable license from SPDC or adjust the Sybase IQ configuration.
If Sybase IQ cannot start because the grace period expired, examine the
iq.default.lmp file located in the %IQDIR15%/Sysam directory under your
parent installation directory for values. These values are stored in two lines that
start with PE= and LT=. These lines are present only if the configuration is set.
See “Sybase IQ cannot find license for an optional feature, even though the
license exists” on page 128 for more information.
Sybase IQ shows graced licenses even after the issue has been
fixed
Sybase IQ performs license checks periodically, and the license status is not
immediately updated. It is updated only after the next heartbeat cycle is
completed. This may take a few hours.
128 Sybase IQ
APPENDIX B Troubleshooting SySAM
Sybase IQ does not start with the expected edition or license type
If the edition and license type configuration parameters are not set, Sybase IQ
uses the first available IQ_CORE license. If you have multiple IQ_CORE
licenses with different editions and license types, which license is the first
available depends on many factors such as license file directory sort order,
available licenses on the license server, and so on.
Because the edition and license type cannot be guaranteed, Sybase
recommends that you set the edition and license type configuration parameters.
When these parameters are set, you are assured that Sybase IQ starts with that
configuration. If a matching license were to be unavailable, Sybase IQ starts
under grace (if available) to allow you to resolve the licensing issue.
130 Sybase IQ
Index
A Sybase IQ client 40
client installation
accessibility
client components 40
documentation xv
demo database 41
Adaptive Server Enterprise
overview 40
inserting data from 101
parent installation directory 41
Add Service utility 93
prerequisites 40
adding IQ as a Windows Service 93
running the installer 41
adding startup switches 52
samples directory 41
Administrator privilege
Sybase IQ installation directory 41
granting to IQ as a Windows service 94
typical installation 41
after upgrading
COMMLINKS parameter 100
updating configuration files 87
compliance
autostarting database 57
section 508 xv
AUTOSTOP parameter 100
components
certifications xii
configuration files 92
B security 92
configuration parameters
backing up databases set by start_asiq 37
after upgrade 87 connecting
procedure 87 using OLE DB 100
BLANK PADDING connection parameters 100
migration 62 connections
blank users 61 restricting 46
constraints
migration 62
unenforced 62
C conventions
cache sizes 56 documentation xiii, xiv
catalog cache 56 syntax xiii
certifications typographic xiv
documentation
updated xii
changing hardware platforms 45
client components 40 D
installing 39 data migration
jConnect 40 extract directory 59
ODBC 40 data sources
Sybase Central 40 setting up 98
132 Sybase IQ
Index
M
L main cache 56
large schemas main store
iqunload 57 filename 53
license key reserve size 53
server installation 26 size 53
license models 17 maintenance
unserved 17 software xiii
license server maintenance, product xiii
installing 21 memory
reread command 22 required 6
starting 22 migrating data
status command 22 from 32-bit to 64-bit 43, 45
License Utilities 27 from one platform to another 43, 45
Licensed edition 3 from prior Sybase IQ version 43, 45
licensing 19, 20 migrating databases
available licenses 14 multiplex 70
FLEXNET commands 18 option changes 48
FLEXNET utilities 18 procedure 48
host ID (obtaining) 18 simplex 66
host IDs and network adapters 18 migrating simplex databases 66
host name 18 task summary 66
license key 26 migration
license models 17 BLANK PADDING 62
134 Sybase IQ
Index
136 Sybase IQ
Index
conventions xiv W
typography
wide tables
documentation xiii
migrating 55
Windows Service
adding IQ as 93
U adding Sybase IQ servers 93
workflows
UID parameter 100
first time installations 4
unenforced constraints 62
installation and migration 4
unload utility
multiplex database migration 70
about 47
simplex database migration 66
unloading schema only 54
upgrading installations 5
unserved licenses 17, 19, 20
updating
configuration files 87
upgrading databases 48
upgrading from a previous version
migration 44
planning 5
usage
iqlsunload 60
iqunload 54
user names
empty 61
users
blank 61
invalid names 62
utilities
migration 47
start_asiq 36
utility database 46
V
variable
IQ installation directory 29
parent installation directory 28
verifying databases
after upgrade 69, 83
before upgrade 79
procedure 69, 79, 83
verifying your license 31
views
invalid 55, 64
MySybase, creating personalized xii
138 Sybase IQ
Installation and Configuration Guide 139
140 Sybase IQ
Installation and Configuration Guide 141
142 Sybase IQ