Getting Started Guide
Getting Started Guide
Getting Started Guide
GI11-9212-03
Note
Before using this information and the product it supports, read the information in “Notices” on page 43.
Summary of changes . . . . . . . . . ix
5 Starting IBM solidDB and creating
your first database . . . . . . . . . 27
About this manual . . . . . . . . . . xi
solidDB configuration file . . . . . . . . . 27
Typographic conventions . . . . . . . . . . xi
Starting solidDB . . . . . . . . . . . . . 27
Syntax notation conventions. . . . . . . . . xii
Creating a database manually (example). . . . . 27
Accessibility . . . . . . . . . . . . . . xii
Creating a database automatically (example) . . . 28
iii
iv IBM solidDB: Getting Started Guide
Figures
1. solidDB 6.3 products . . . . . . . . . . 1 4. Example output from solidDB SQL Editor
2. solidDB Universal Cache architecture . . . . 3 (solsql) . . . . . . . . . . . . . . 31
3. solidDB SQL Editor Connected . . . . . . 30
v
vi IBM solidDB: Getting Started Guide
Tables
1. Typographic conventions . . . . . . . . xi 4. 'solidDB6.3' directory structure . . . . . . 9
2. Syntax notation conventions . . . . . . . xii 5. Documentation for InfoSphere CDC
3. Components of solidDB and solidDB Universal components . . . . . . . . . . . . 13
Cache product packages. . . . . . . . . 9 6. solidDB point release versions for fix packs 23
vii
viii IBM solidDB: Getting Started Guide
Summary of changes
Changes for revision 03
v Editorial corrections.
ix
x IBM solidDB: Getting Started Guide
About this manual
This guide provides an overview of the IBM® solidDB® product family. It also
includes instructions for how to set up solidDB for the first time and how to run
samples.
This guide does not provide instructions for how to install and configure solidDB
Universal Cache or how to start using the different features and functionality
available with the solidDB products. For information on how the documentation is
structured, see section Documentation in this guide.
Typographic conventions
solidDB documentation uses the following typographic conventions:
Table 1. Typographic conventions
Format Used for
NOT NULL Uppercase letters on this font indicate SQL keywords and
macro names.
File path presentation Unless otherwise indicated, file paths are presented in the
UNIX® format. The slash (/) character represents the
installation root directory.
xi
Table 1. Typographic conventions (continued)
Format Used for
.
. A column of three dots indicates continuation of previous
. lines of code.
Accessibility
Accessibility features help users with physical disabilities, such as restricted
mobility or limited vision, to use software products successfully. The following
sections specify the major accessibility features in solidDB.
Keyboard input
You can operate solidDB using only the keyboard. You can use keys or key
combinations to perform all operations. Standard operating system keystrokes are
used for standard operating system operations. Standard operating system
Keyboard navigation
You can navigate the solidDB user interface using keys or key combinations only.
For more information about using keys or key combinations to navigate the
command line interfaces, see the appropriate operating system documentation.
Accessible display
solidDB supports standard operating system display settings, such as high contrast
and font settings.
Font settings
You can select the color, size, and font for the text using standard operating system
operations. For more information about specifying font settings, see the
appropriate operating system documentation.
Non-dependence on color
You do not need to distinguish between colors in order to use any of the functions
in solidDB.
solidDB interacts with the operating system through standard APIs which support
interaction with assistive technologies, which enables you to use screen readers
and other accessibility tools.
Accessible documentation
See the solidDB Information Center opening page for more details on the
Information Center accessibility.
IBM solidDB Universal Cache is the industry's first relational, in-memory caching
software that accelerates traditional disk-based relational database servers by
caching performance critical data into one or more solidDB in-memory database
instances.
Applications Applications
solidDB solidDB
DBMS
The client process is used to pass the required tasks (through the server process) to
the database. There can be several client types: a client could be a command-line
1
tool, a graphical application, or a database maintenance tool. Typically, different
applications act as clients to connect to solidDB.
The client and the server can be located on different hosts (nodes), in which case
they communicate over a network. solidDB provides simultaneous support for
multiple network protocols and connection types. Both the database server and the
client applications can be simultaneously connected to multiple sites using multiple
different network protocols.
solidDB can also run within the application process. This is provided by solidDB
linked library access. In this case, a user application is linked to a function library
that is provided with the product. The linked application communicates with the
server by using direct function calls, thus skipping the overhead required when the
client and server communicate through network protocols such as the TCP/IP.
Linking the application and server into a single executable provides higher
performance. For more information, see the IBM solidDB Linked Library Access User
Guide.
To submit a query (an SQL statement) to a database server, a client must be able to
communicate with that database server. solidDB, like many other database servers,
uses drivers to enable this communication. Client applications call functions in the
driver, and the driver then handles the communications and other details with the
server. For example, you might write a C program that calls functions in the
(ODBC) driver, or you might write a Java™ program that calls functions in the
(JDBC) driver.
For more information about the ODBC and JDBC drivers, and how to use them
with your client applications, see the IBM solidDB Programmer Guide.
solidDB node
solidDB Management
Console nodes
Configuration Management
CDC instance
tool Console
Access
Server node
Access Server
Data
server node
Configuration
CDC instance
tool
Data server
solidDB — the front-end database which you replicate data to and from.
Depending on the replication model, solidDB can be the source or target database,
or both.
Data server — the back-end database which you replicate data to and from.
Depending on the replication mode, the back-end database can be the source or
target database, or both.
InfoSphere CDC instance — a run-time instance of the InfoSphere CDC engine for
a given DBMS. To set up InfoSphere CDC instances, you have to have the
corresponding InfoSphere CDC agent software (like InfoSphere CDC for DB2®, or
InfoSphere CDC for solidDB) installed on the same node where the DBMS in
1 Product overview 3
question is running. Exceptionally for solidDB, the InfoSphere CDC for solidDB
agent can be installed and set up on any node connected to the node running
solidDB.
Configuration tool — a GUI or console based tool used to configure and create
InfoSphere CDC instances. While configuring the instance, you supply the port
number for communication with the rest of the InfoSphere CDC system as well as
login information to connect to the database.
Management Console — an interactive application with a GUI that you can use to
configure and monitor replication. It allows you to manage replication on various
servers, specify replication parameters, and initiate refresh and mirroring
operations from a client workstation.
You start using the Management Console by creating datastores in the Access
Manager perspective. A datastore is a logical entity of a database and the related
InfoSphere CDC instance. Using the datastores defined, you can set up subscriptions
that embody data replication from one datastore to another.
There are three types of datastores: source, target, and dual. Dual datastore can
participate in subscriptions as both a source and target. Typically, dual datastores
are used with solidDB Universal Cache, and symmetric mapping pairs are defined
for two-way replication. If a replica is meant to be read-only, in the front-end, a
single upload subscription is defined.
After you have finished setting up replication, the Management Console can be
closed on the client workstation without affecting active data replication activities
between source and target servers. Management Console also includes an event log
and a monitor. The event log allows you to examine generated InfoSphere CDC
event messages. The monitor provides the necessary support to continuously
monitor replication operations and latency. Diagrams depicting components of
your replication configuration are constructed through direct manipulation of
graphical objects. The monitor in Management Console is intended for time-critical
working environments that require continuous analysis of data movement.
In-memory tables store all their data in main memory in data-structures which are
specifically optimized for main-memory access. The benefit of the in-memory
residency is low query latency and high throughput. Depending on the application
needs, the in-memory data tables may be configured to be persistent or transient.
In addition, flexible logging capabilities allow to define the level of transactional
durability required for persistent table, including full durability.
For more information, see the IBM solidDB In-Memory Database User Guide.
The disk based tables, combined with a small footprint and unattended operation,
makes solidDB ideal to be used in embedded systems. Despite the small size, the
product supports many advanced features like triggers, events, and stored
procedures.
The linked library access is a function library that provides the same functionality
and interfaces available with the solidDB. A user application may be linked to this
library. The linked application communicates with the server by using direct
function calls, thus skipping the overhead required when the client and server
communicate through network protocols such as TCP/IP. Linking the application
and server into a single executable provides higher performance.
For more information, see the IBM solidDB Linked Library Access User Guide.
Replication technologies
In solidDB HA, all the data changes in the primary are propagated to the
secondary using a push-based replication protocol. The protocol may set to
synchronous (2-Safe) or asynchronous (1-Safe). In principle, the transaction load is
served at the primary. Should the primary fail, the secondary takes up the job
(executes a failover) and continues to serve the load as the new primary. With the
synchronous replication protocol, there is no risk of data loss during the failover.
1 Product overview 5
Transparent Connectivity, a special connectivity mode of solidDB ODBC and JDBC
drivers, offers the applications failover transparency and transparent load
balancing between the primary and secondary.
Both relaxed and strict durability can be used with HotStandby. There is also a
durability level called adaptive, which uses relaxed durability when both primary
and secondary servers are active, and which switches to strict durability when the
primary runs alone. With adaptive durability, the transactions are secured against
any single failure, at any time.
For more information, see the IBM solidDB High Availability User Guide.
Advanced Replication
Replication is bidirectional; replica nodes can upload data to the master as well as
download from it. If replicas submit conflicting data, the master can reject the data
or alter the data before making it available to all replicas. The management of
replicated data is based on a flexible publish/subscribe model. The management
interface is in the form of proprietary extensions to the SQL language.
For more information, see the IBM solidDB Advanced Replication User Guide.
IBM InfoSphere Change Data Capture (InfoSphere CDC) technology can be used to
implement asynchronous replication among various databases. InfoSphere CDC
technology is based on an asynchronous push model. Unidirectional subscriptions
can be created for real-time propagation of data changes from the source side to
the target side. Bidirectional capability is achieved by setting up two subscriptions
with mirrored source and target definitions.
In both setups, each solidDB server instance can also be a one solidDB HotStandby
pair.
1 Product overview 7
8 IBM solidDB: Getting Started Guide
2 Product and packaging information
The solidDB and solidDB Universal Cache products are composed of solidDB and
InfoSphere CDC components. The table below shows the components included in
the solidDB and solidDB Universal Cache product packages. Each listed
component must be installed separately.
Table 3. Components of solidDB and solidDB Universal Cache product packages
Component solidDB solidDB Universal Cache
IBM solidDB 6.3.x X X
IBM solidDB 6.3.x Documentation X X
1
InfoSphere Change Data Capture v6.3.x X X
solidDB
InfoSphere Change Data Capture v6.3.x X1 X
Management Console
InfoSphere Change Data Capture v6.3.x X1 X
Access Server
InfoSphere Change Data Capture v6.3.x X1 X
Documentation
InfoSphere Change Data Capture v6.3.x X
for a back-end data server
1
Needed only in configurations deploying InfoSphere CDC technology for
solidDB-to-solidDB replication (InfoSphere CDC Replication).
Directory structure
The default installation of solidDB 6.3 creates a directory called 'solidDB6.3'.
The files and subdirectories in the 'solidDB6.3' installation directory are explained
in the table below.
Table 4. 'solidDB6.3' directory structure
Location Explanation
Root directory The root directory contains, for example:
v a script used to facilitate running samples
in the database evaluation phase
v the evaluation licence file
v the welcome.html file for accessing the
package documentation
bin solidDB binary files
9
Table 4. 'solidDB6.3' directory structure (continued)
Location Explanation
doc_html, doc_txt Package documentation in HTML and text
format
eval_kit/standalone solidDB evaluation kit license and initiation
files. It will also hold your evaluation
database once it is created.
include C program headers
jdbc Java Database Connectivity (JDBC) Driver
for solidDB
Most of these library files fall into one of the following categories:
v ODBC Drivers
v solidDB Linked Library Access files
v Communication library files
v SA (Server API) library file.
Not all platforms have every file. For example, some communication library files
are available on Windows environments only.
Some library files are static, that is, they are linked to your client application's
executable program when you do a compile-and-link operation. Other library files
are dynamic: these files are stored separately from your executable and are loaded
into memory when your program executes. For many libraries, solidDB provides
both a static and a dynamic version on some or all platforms.
As a rule, the 'bin' directory contains dynamic libraries (in addition to executables),
while the 'lib' directory contains static libraries. The 'lib' directory also contains the
import libraries.
For more detailed information on the library file names, see the releasenotes.html or
releasenotes.txt in your solidDB installation directory.
The samples and scripts are located in the 'samples' directory below the solidDB
installation directory. Each sample directory includes also a readme.txt file that
provides instructions for how to use the samples.
Documentation
Documentation for solidDB 6.3 is composed of an IBM solidDB 6.3 Documentation
package and an InfoSphere Change Data Capture v6.3 Documentation package.
solidDB documentation
solidDB documentation is available online in the solidDB 6.3 and solidDB
Universal Cache 6.3 Information Center, as well as in PDF format. Most up-to-date
information is always available in the Information Center.
In addition, the PDF format manuals are available as the IBM solidDB 6.3
Documentation package. This package is delivered together with the software
packages in IBM Passport Advantage®, or in the Quick Start DVD in physical
media deliveries.
Tip: If you download the English version PDF files to the 'manuals' directory in
your solidDB installation directory, you can access the manuals also through the
Welcome page of your solidDB software package. For detailed instructions, see
section “Installing solidDB Documentation package” on page 23.
For system requirements of the other InfoSphere CDC components, see the solidDB
Web pages at http://www-01.ibm.com/software/data/soliddb/ or the
documentation provided with each InfoSphere CDC component.
Platform support
solidDB is supported on more than 30 different platforms, each understood as a
combination of hardware type and operating system. Typically all the current
commonly used platforms are supported, as well as some legacy platforms.
Support for certain rare platforms may be obtained on request.
For the list of current platforms for the solidDB product family, see the solidDB
Web pages at http://www-01.ibm.com/software/data/soliddb/.
Standard Compliance
15
IBM solidDB JDBC 2.0 Driver supports the JDBC 2.0 specification. Additionally,
Connection Pooling, JNDI Data Sources and Rowsets of the JDBC 2.0 Optional
Package (known before as Standard Extension) are supported, too.
The JDBC Driver has been successfully tested with JDK versions 1.2.2, 1.3, and 1.4.
and certified with the JDBC API Test Suite 1.3.1.
Non-standard features include support for IBM WebSphere® and timeout control
extensions. They are discussed below. For information about solidDB JDBC Driver
installation, see JDBC Readme in the 'doc_html' or 'doc_txt' directory of
thesolidDB package.
The following features of the Optional Package are currently supported by the
solidDB JDBC 2.0 driver :
v Connection pooling (class solid.jdbc.ConnectionPoolDataSource)
v Connected RowSet (class solid.jdbc.rowset.SolidJDBCRowSet)
v Implemented JDBC data sources:
– solid.jdbc.DataSource (implements javax.sqlDataSource)
– solid.jdbc.SolidConnectionPoolDataSource (implements
javax.sql.ConnectionPoolDataSource)
The non-standard extensions listed below are supported. For more information, see
the IBM solidDB Programmer Guide.
v JDBC URL format: allows to set the connection property values in the URL
string
v Connection timeout: Connection timeout refers to the response timeout of any
JDBC call invoking data transmission over a connection socket. If the response
message is not received within the time specified, an I/O exception is thrown.
The JDBC standard (2.0/3.0) does not support setting of the connection timeout.
The solidDB product has two ways for doing that: one using a non-standard
driver manager extension method and the other using the property mechanisms.
The time unit in either case is one millisecond.
v Login timeout: The timeout fires at the connect time. The setting is implemented
with a connection property. The property overrides the login timeouts for JDBC
specified by other means (like login timeout parameter in DriverManager).
v Connection idle timeout: The server closes a connection if it is inactive, for a
given time. This is implemented as a connection property and the value
overrides the server parameter setting, for this session.
v Statement Cache: solidDB JDBC driver enables the user to set the size of a given
Connection's statement cache as a property during the connection creation.
v Transparent Connectivity Support: solidDB JDBC driver fully supports solidDB
Transparent Connectivity (TC) including transparent failover and load balancing.
See the IBM solidDB High Availability User Guide for more information about
usage of Transparent Connectivity.
v WebSphere Support: A data sourcer adapter called 'SolidDataStoreHelper' is
provided in a separate file 'SolidDataStoreHelper.jar', in the 'jdbc' directory of
thesolidDB package..
solidDB provides two ODBC drivers, one for Unicode and one for ASCII character
sets. For more information about these drivers, see the IBM solidDB Programmer
Guide.
ODBC extensions
JDK Versions:
v Java environment: JDK 1.4.2
solidDB Java Accelerator has been tested only with Sun J2SE (JDK 1.4.2).
3 Pre-requisites 17
18 IBM solidDB: Getting Started Guide
4 Installation
The following sections provide instructions for installing solidDB server and the
solidDB Documentation package.
If you are deploying solidDB Universal Cache or InfoSphere CDC replication, see
the IBM solidDB Universal Cache User Guide and the IBM solidDB InfoSphere CDC
Replication User Guide for instructions on how to install all the needed InfoSphere
CDC components.
Installing solidDB
solidDB can be installed using the interactive installer for graphical user interface
or command line, or using a silent installation method.
In Windows Vista and Windows 2008 Server, you must have Administrator rights
to install solidDB.
Procedure
1. Install Java Runtime Environment (JRE) or Java Development Kit (JDK), version
1.4.2 or newer, if not already installed.
JRE or JDK 1.4.2 or newer is needed to run the solidDB installer.
Note: On Linux systems, GNU Compiler for Java (GCJ) is not supported.
2. On the downloaded installation image or the installation DVD, locate the
installation program file for your operating system:
v solidDB-6.3-<platform>.exe (Windows)
v solidDB-6.3-<platform>.bin (Linux and UNIX)
3. Double-click the installation program file. The solidDB installation wizard
starts.
4. Follow the wizard's instructions to complete the installation.
Note: In Linux and UNIX operating systems, you must be able write to the
directory that you are using for the installation. If the installation program
cannot create the directory, you are prompted to specify a different directory.
Results
You have installed solidDB. To see the solidDB package documentation, open
welcome.html in the installation directory. Alternatively, you can access the
ASCII-formatted files in the 'doc_text' directory.
19
What to do next
Console installation
Use the console installation method to install solidDB from a command-line
interface.
In Windows Vista and Windows 2008 Server, you must have Administrator rights
to install solidDB.
Procedure
1. Install Java Runtime Environment (JRE) or Java Development Kit (JDK), version
1.4.2 or newer, if not already installed.
JRE or JDK 1.4.2 or newer is needed to run the solidDB installer.
Note: On Linux systems, GNU Compiler for Java (GCJ) is not supported.
2. On the downloaded installation image or the installation DVD, locate the
installation program file for your operating system:
v solidDB-6.3-<platform>.exe (Windows)
v solidDB-6.3-<platform>.bin (Linux and UNIX)
3. Start the installation program from the command line. Use the following
command:
v Windows
<installation_program> -i console
For example, in Windows 32-bit operating system:
solidDB-6.3-w32.exe -i console
v Linux and UNIX
sh <installation_program> -i console
For example, in Linux 64-bit operating system:
sh solidDB-6.3-linux-x86_64.bin -i console
4. Follow the displayed instructions to complete the installation.
Note: In Linux and UNIX operating systems, you must be able write to the
directory that you are using for the installation. If the installation program
cannot create the directory, you are prompted to specify a different directory.
Results
You have installed solidDB. To see the package documentation, open welcome.html
in the installation directory. Alternatively, you can access the ASCII-formatted files
in the 'doc_text' directory.
Silent installation
Use the silent installation method to install solidDB without any user interaction.
This method can be used, for example, for large-scale deployments of solidDB
where the silent installation command is embedded in a script.
Procedure
1. Install Java Runtime Environment (JRE) or Java Development Kit (JDK), version
1.4.2 or newer, if not already installed, on all the systems you will be installing
solidDB
JRE or JDK 1.4.2 or newer is needed to run the solidDB installer.
Note: On Linux systems, GNU Compiler for Java (GCJ) is not supported.
2. Copy the installation program file from the downloaded installation image or
the installation DVD to a temporary directory on your system. Use the
installation program for your operating system:
v solidDB-6.3-<platform>.exe (Windows)
v solidDB-6.3-<platform>.bin (Linux and UNIX)
3. Start the installation program from the command line and generate a response
file with the following command:
v Windows
<installation_program> -r <response-file>
For example, in Windows 32-bit operating system:
soliddb-6.3–w32.exe -r response.txt
v Linux and UNIX
sh <installation_program> -r <response-file>
For example, in Linux 64-bit operating system:
sh solidDB-6.3-linux-x86_64.bin -r response.txt
The solidDB installation wizard starts.
4. Follow the displayed instructions to complete the installation.
Note: In Linux and UNIX operating systems, you must be able write to the
directory that you are using for the installation. If the installation program
cannot create the directory, you are prompted to specify a different directory.
5. After the installation has finished, check that the response file you generated
contains the options you need. The response file is located in the installation
root directory.
4 Installation 21
soliddb-6.3–w32.exe -i silent -f response.txt
v Linux and UNIX
sh <installation_program> -i silent -f <response-file>
For example, in Linux 64-bit operating system:
sh solidDB-6.3-linux-x86_64.bin -i silent -f response.txt
Post-installation tasks
After you have installed solidDB, apply the full product license key, check the
solidDB JDBC Driver settings, and enable the use of samples.
Procedure
1. If you purchased solidDB or solidDB Universal Cache, copy the license file
(solid.lic or soliduc.lic) from the License Certificate image to the solidDB
working directory.
Uninstalling solidDB
In Windows environments, uninstall solidDB through Control Panel > Add or
Remove Programs. In Linux and UNIX environments, remove the installation
directory.
Procedure
v Windows:
1. Go to Control Panel > Add or Remove Programs > Change or Remove
Programs.
2. Select IBM solidDB, and click the Change/Remove button.
Procedure
1. Locate the IBM solidDB 6.3 Documentation package.
v In physical media deliveries, the documentation package is included in the
Quick Start DVD.
v If you download your software from IBM Passport Advantage, locate the
documentation package.
v If you download your solidDB from the solidDB website at
ftp://ftp.software.ibm.com/software/data/soliddb/info/6.3/man/, locate
the .zip file for the English version manuals.
2. Download and unzip the documentation package into the 'manuals' directory
in your solidDB installation directory.
1. Make a backup copy of your database files, log files and the solid.ini
configuration file.
For instructions, see section Performing backup and recovery in the IBM solidDB
Administrator Guide.
2. Shut down solidDB.
For instructions, see Shutting down solidDB.
3. Run the solidDB fix pack installer according to the instructions in Installing
solidDB.
4 Installation 23
solidDB fix packs are delivered as single installation files. To replace your
existing solidDB installation, use the same installation directory where your
existing solidDB is installed.
If you do not want to run the installer on top of your existing solidDB
installation (for example, on your production environment node), use a
separate directory and copy the executables, libraries, and drivers manually, as
applicable for your setup.
Important: You must update Management Console and Access Server to the same
fix pack level.
1. Uninstall the Access Server.
2. Run the Access Server fix pack installer according to the instructions in the IBM
InfoSphere Access Server and Management Console Installation Guide, included in
the InfoSphere Change Data Capture v6.3 Documentation package.
Note:
v Use the same installation directory where the previous version of the Access
Server was installed.
v You cannot run two versions of the Access Server on the same node.
Important: You must update Management Console and Access Server to the same
fix pack level.
1. Uninstall the Management Console.
2. Run the Management Console fix pack installer according to the instructions in
the IBM InfoSphere Access Server and Management Console Installation Guide,
included in the InfoSphere Change Data Capture v6.3 Documentation package.
Note: Use the same installation directory where the previous version of the
Management Console was installed.
Important: To install a fix pack for InfoSphere CDC for solidDB, you must already
have an installation of InfoSphere CDC for solidDB.
1. Run the InfoSphere CDC for solidDB fix pack installer according to the
instructions in Installing InfoSphere CDC.
Note: Use the same installation directory where the previous version of the
InfoSphere CDC for solidDB is installed; the installer will prompt you to
upgrade the installation.
Installing fix packs for InfoSphere CDC for back-end data server
Important: To install a fix pack for InfoSphere CDC for back-end data server, you
must already have an installation of InfoSphere CDC for back-end data server.
1. Run the InfoSphere CDC for back-end data server fix pack installer according to
the instructions in the IBM InfoSphere Change Data Capture, End-User
Documentation for the back-end data server, included in the IBM InfoSphere
Change Data Capture v6.3 Documentation package.
Note: Use the same installation directory where the previous version of the
InfoSphere CDC for back-end data server is installed; the installer will prompt
you to upgrade the installation.
4 Installation 25
26 IBM solidDB: Getting Started Guide
5 Starting IBM solidDB and creating your first database
solidDB configuration file
When you start solidDB, it reads configuration parameters from solid.ini
configuration file. You can also use solidDB without the configuration file, in
which case the default settings are used.
The solid.ini configuration file specifies parameters that help customize and
optimize solidDB. For example, the FileSpec parameter specifies the directory and
files names of the data fields in which solidDB stores the user data. The Block.Size
parameter specifies the block size for the database.
For more information, please refer to the IBM solidDB Administrator Guide.
The solidDB configuration file will serve most evaluation needs as far as solidDB is
concerned. If there is a need to use other components such as the High Availability
component, the configuration file must be modified accordingly. Samples of the
corresponding configuration files are included with the samples. In other words,
you do not have to modify the solid.ini file (in the 'eval_kit\standalone'
directory) to evaluate other solidDB components.
Starting solidDB
Procedure
To start solidDB:
v On Windows operating systems, click the icon labeled Start IBM solidDB server
through the Start > Programs menu path.
v On Linux or UNIX operating systems, enter the command solid at the
command prompt. When you start the server for the first time, enter the
command solid -f at the command prompt to force the server to run in the
foreground.
Results
Procedure
1. Open a command prompt window, go to the solidDB installation root directory
and enter the following command:
bin\solid -c eval_kit\standalone
27
A window with the title Creating a new database will open.
Results
If you successfully created the database, your solidDB process is now running. The
process name is solid.exe in Windows operating systems.
This section provides instructions for creating a new database for evaluation
purposes in the 'eval_kit\standalone' directory in Windows environment.
Procedure
Start solidDB through the Start > Programs menu path. If no database is found,
the engine automatically creates a new database using the settings in the solid.ini
configuration file.
A new database is created and it is running.
Results
If you successfully created the database, your solidDB process is now running. The
process name is solid.exe in Windows operating systems.
If you have problems in connecting to the database or if any errors occur, see the
IBM solidDB Administrator Guide.
The solidDB SQL Editor contains detailed instructions for using the SQL
commands. For a list of available commands, enter the following command:
ADMIN COMMAND ’help’;
For example:
solsql "tcp hobbes 1315" dba dba
Or, if the server runs on the same computer, as where you are executing the
command:
solsql "tcp 1315" dba dba
2. To shut down the solidDB SQL Editor, enter the command:
exit;
Procedure
Enter your username and password (for example "dba", "dba") in the solidDB SQL
Editor.
29
Results
The figure below shows the solidDB SQL Editor after a successful connection to
the database.
Procedure
1. Enter an SQL query in solsql, for example:
select table_name from tables;
2. Press Enter to execute the query.
Procedure
1. Issue the following command in the solidDB SQL Editor:
ADMIN COMMAND ’status’;
You can stop the database by using the solidDB SQL Editor. Issue the commands,
using a semicolon at the end of the commands, and note that you must use single
quotes, not double quotes.
Procedure
1. Prevent additional users from connecting to the database:
admin command ’close’;
2. Throw out all connected users (except the one who issued the command):
admin command ’throwout all’;
3. Shut down solidDB:
admin command ’shutdown’;
4. Exit from the solsql tool:
exit;
Note: The first three commands can be replaced with this one:admin command
’shutdown force’;
Results
Note:
When you shut down the server, it breaks the connection to solsql, and your solsql
may show an error message such as:
14519: The user was thrown out from the server; connection lost.
33
Procedure
In order to be able to run samples, you must copy a license file into each of the
sample run directories. You can use the evaluation license (solideval.lic) or the
full product license (solid.lic or soliduc.lic).
Tip: The evaluation license enables you to evaluate solidDB for 90 days. For
acquiring a permanent license, please contact IBM Corporation.
Procedure
1. Copy the license file to the appropriate sample directories.
v Execute the script called copy_licenses (copy_licenses.bat in Windows).
This script copies the evaluation license file from the installation root
directory to all appropriate sample directories.
or
v Copy the license file to the appropriate sample directories manually.
2. Run the sample according to instructions provided in the readme.txt file, located
in the sample directory.
Note: Some sample scripts may remove and recreate database files residing in
sample subdirectories. Only the database in the 'standalone' directory is
always left intact.
35
36 IBM solidDB: Getting Started Guide
9 Using solidDB with graphical SQL clients
solidDB does not include a graphical user interface (GUI). However, graphical SQL
clients such as IBM Data Studio Administrator, Eclipse SQL Explorer, or SQuirrel
SQL Client can be used with solidDB to browse database objects, view and modify
table data, and issue SQL commands.
v IBM Data Studio Administrator and Eclipse SQL Explorer clients are ideal if
your development environment already uses the Data Studio or Eclipse
frameworks.
v SQuirrel SQL Client is a standalone program that requires no other components
than the client and solidDB to work.
All the above mentioned clients use the JDBC interface to connect to solidDB.
IBM Data Studio Administrator is a powerful and flexible tool that helps you
manage your database objects and simplifies the process of identifying, analyzing,
and implementing database schema changes.
You can connect Data Studio Administrator to a solidDB database using the Data
Studio Administrator's Generic JDBC database manager options.
For more details on setting up Data Studio Administrator with solidDB, see the
following articles on ibm.com®:
v Configuring Data Studio Administrator V2.1 for use with solidDB:
http://www-01.ibm.com/support/docview.wss?rs=3457&uid=swg21411299
v Configuring Data Studio Administrator V1.2 for use with solidDB:
http://www-01.ibm.com/support/docview.wss?rs=3457&uid=swg21411276
Eclipse SQL Explorer is a thin SQL client that allows you to query and browse any
JDBC compliant database, including solidDB.
The Eclipse SQL Explorer can be added as a plugin to your existing Eclipse
environment, or you can run it as a standalone client.
For more details on setting up SQL Explorer with solidDB, see the following article
on ibm.com:
v Configuring Eclipse SQL Explorer for use with solidDB: http://www-01.ibm.com/
support/docview.wss?rs=3457&uid=swg21411273
SQuirreL SQL Client is an open-source Java SQL Client program for JDBC
compliant databases. It is a standalone client that can be configured to connect to
your solidDB database via the solidDB JDBC driver.
For more details on setting up SQuirrel SQL Client with solidDB, see the following
article on ibm.com:
37
v Configuring Squirrel SQL for use with solidDB: http://www-01.ibm.com/support/
docview.wss?rs=3457&uid=swg21411262
Familiarize yourself with the new and changed features described in the solidDB
6.3 Release Notes, available in the IBM solidDB 6.3 and IBM solidDB Universal
Cache 6.3 Information Center at http://publib.boulder.ibm.com/infocenter/
soliddb/v6r3/index.jsp.
The steps below describe the procedure for upgrading a single solidDB server to a
new release level. If you are using solidDB in High Availability mode, see section
Upgrading your server by using HotStandby in the IBM solidDB High Availability User
Guide.
The 6.1 and 6.0 release level solidDB JDBC and ODBC drivers are compatible with
the 6.3 release level solidDB server. The drivers need to be upgraded only if you
plan to take into use the new features introduced at release level 6.3.
Procedure
1. Make a backup copy of your database files and solid.ini configuration files.
For instructions, see section Performing backup and recovery in the IBM solidDB
Administrator Guide.
2. Shut down solidDB.
3. Install the new version of solidDB.
solidDB is delivered as a single installation file. If you do not wish to run the
installer on your production environment node, install solidDB on a separate
node and copy the executables, libraries, and drivers manually to your
production node, as applicable for your setup.
For a description of the solidDB server package contents, see “solidDB server
package” on page 9.
For instructions on how to run the solidDB installer, see “Installing solidDB” on
page 19.
4. Update the license file.
Copy the new license file (solid.lic or soliduc.lic) from the License
Certificate image to the solidDB working directory.
5. Check the changes in parameter factory values and update the solid.ini
configuration files if necessary.
Changes in the parameter values are described in the Release Notes.
6. Check and update the solidDB JDBC and ODBC driver related settings as
applicable to your environment.
v solidDB JDBC Driver
39
If you installed the new solidDB JDBC Driver (SolidDriver2.0.jar) into a
different location than the previous one, add the new driver location to the
CLASSPATH System environmental variable. By default, the solidDB JDBC
driver is installed to the 'jdbc' directory in the solidDB installation directory.
v solidDB ODBC Driver
– In Windows and Linux operating systems, define the new ODBC data
sources. In order to use the new driver, you must either modify the
existing data sources or create new ones.
– If the application links to the solidDB ODBC driver directly, you must
recompile your application.
7. Convert the existing database files by starting solidDB with the -x
autoconvert or -x convert command line option.
In the solidDB working directory, execute the following command:
solid -x autoconvert
or
solid -x convert
The -x autoconvert option converts the database and starts solidDB.
The -x convert option converts the database and exits solidDB.
C
Client-Server architecture 1
client 1
server 1
connecting
solidDB databases 29
creating
databases
automatically 28
manually 27
J
JDBC 1
L
linked library access 1
O
ODBC 1
R
restarting
solidDB databases 33
S
solid.ini 27
solidDB configuration file
overview 27
solidDB directory structure 9
solidDB SDK 9
solidDB server package 9
solidDB SQL Editor (solsql)
entering queries 30
starting 29
stopping 29
SQL queries
executing in solidDB SQL Editor 30
stopping
solidDB databases 33
41
42 IBM solidDB: Getting Started Guide
Notices
© Copyright Oy International Business Machines Ab 1993, 2011.
No portion of this product may be used in any way except as expressly authorized
in writing by Oy International Business Machines Ab.
This information was developed for products and services offered in the U.S.A.
IBM may not offer the products, services, or features discussed in this document in
other countries. Consult your local IBM representative for information on the
products and services currently available in your area. Any reference to an IBM
product, program, or service is not intended to state or imply that only that IBM
product, program, or service may be used. Any functionally equivalent product,
program, or service that does not infringe any IBM intellectual property right may
be used instead. However, it is the user's responsibility to evaluate and verify the
operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject matter
described in this document. The furnishing of this document does not grant you
any license to these patents. You can send license inquiries, in writing, to:
For license inquiries regarding double-byte (DBCS) information, contact the IBM
Intellectual Property Department in your country or send inquiries, in writing, to:
The following paragraph does not apply to the United Kingdom or any other
country where such provisions are inconsistent with local law: INTERNATIONAL
BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS"
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
PURPOSE. Some states do not allow disclaimer of express or implied warranties in
certain transactions, therefore, this statement may not apply to you.
43
This information could include technical inaccuracies or typographical errors.
Changes are periodically made to the information herein; these changes will be
incorporated in new editions of the publication. IBM may make improvements
and/or changes in the product(s) and/or the program(s) described in this
publication at any time without notice.
Any references in this information to non-IBM Web sites are provided for
convenience only and do not in any manner serve as an endorsement of those Web
sites. The materials at those Web sites are not part of the materials for this IBM
product and use of those Web sites is at your own risk.
IBM may use or distribute any of the information you supply in any way it
believes appropriate without incurring any obligation to you.
Licensees of this program who wish to have information about it for the purpose
of enabling: (i) the exchange of information between independently created
programs and other programs (including this one) and (ii) the mutual use of the
information which has been exchanged, should contact:
The licensed program described in this document and all licensed material
available for it are provided by IBM under terms of the IBM Customer Agreement,
IBM International Program License Agreement or any equivalent agreement
between us.
All statements regarding IBM's future direction or intent are subject to change or
withdrawal without notice, and represent goals and objectives only.
This information contains examples of data and reports used in daily business
operations. To illustrate them as completely as possible, the examples include the
COPYRIGHT LICENSE:
Each copy or any portion of these sample programs or any derivative work, must
include a copyright notice as follows:
© your company name) (year). Portions of this code are derived from IBM Corp.
Sample Programs.
© Copyright IBM Corp. _enter the year or years_. All rights reserved.
If you are viewing this information softcopy, the photographs and color
illustrations may not appear.
Trademarks
IBM, the IBM logo, ibm.com, Solid®, solidDB, InfoSphere, DB2, Informix®, and
WebSphere are trademarks or registered trademarks of International Business
Machines Corp., registered in many jurisdictions worldwide. Other product and
service names might be trademarks of IBM or other companies. A current list of
IBM trademarks is available on the Web at “Copyright and trademark information”
at www.ibm.com/legal/copytrade.shtml.
Java and all Java-based trademarks and logos are trademarks or registered
trademarks of Oracle and/or its affiliates.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Other product and service names might be trademarks of IBM or other companies.
Notices 45
46 IBM solidDB: Getting Started Guide
Printed in USA
GI11-9212-03