Note:
Before using this information and the product it supports, read the information in the
appendix entitled “Notices.”
This document contains proprietary information of IBM. It is provided under a license agreement and is
protected by copyright law. The information contained in this publication does not include any product
warranties, and any statements provided in this manual should not be interpreted as such.
When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information
in any way it believes appropriate without incurring any obligation to you.
2 IBM Informix OnLine Database Server Administrator’s Guide
In This Introduction
This introduction provides an overview of the information in this manual
and describes the conventions it uses.
About This Manual
The IBM Informix OnLine Administrator’s Guide describes the powerful
Informix online transaction processing (OLTP) database server.
You do not need database management experience or familiarity with
relational database concepts to use this manual. However, a knowledge of
SQL (Structured Query Language) would be useful. For detailed information
about IBM Informix SQL, see the IBM Informix Guide to SQL: Tutorial and the
IBM Informix Guide to SQL: Reference.
This manual serves as both an administrator and operator guide and a
reference manual. Chapter 1, “Installation and Initial Configuration,”
supports the instructions provided in the UNIX Products Installation Guide.
Chapter 2, “System Architecture,” provides an optional, technical discussion
of the IBM InformixOnLinesystem architecture. Subsequent chapters explain
how to take advantage of all the features and functionality of the
IBM Informix OnLine database server.
Introduction 3
Organization of This Manual
Organization of This Manual
This manual includes the following chapters:
■Chapter 1, “Installation and Initial Configuration,” provides a step-
■Chapter 3, “Operating OnLine,” explains the routinetasks of OnLine
■Chapter 4, “Data Consistency, Recovery, and Migration,” provides
■Chapter 5, “How to Improve Performance,” describes strategies you
■Chapter 6, “DB-Monitor Screens,” explains how to use the
■Chapter 7, “Utilities,” describes the function and syntax of each of
■Chapter 8, “OnLine Message Log,” provides reference material that
■Chapter 9, “Product Environment,” describes three possible OnLine
by-step explanation of OnLine database server installation and
setup. The chapter includes a worksheet to assist you in planning
your system and in documenting your configuration.
material about OnLine operation that is intended to deepen your
understanding of OnLine 5.x.
administration: startup and shutdown, logical log management,
archive management, monitoring OnLine activity, and managing
disk space.
background information and instructions for using the high-availability features of OnLine.
can use to obtain maximum performance within your processing
environment.
DB-Monitor menu facility provided with OnLine.
the 14 OnLine utilities.
documents the internal messages that OnLine generates during
processing.
environments. First, this chapter describes the OnLine features that
are available to you within a single-system environment. Second,
this chapter describes how to configure and administer OnLine
database servers if you are running more than one OnLine database
server on a single host machine. Finally, this chapter describes
OnLine administration issues that arise when you use the
IBM Informix STAR product to run OnLine in a client/server
environment.
4 IBM Informix OnLine Database Server Administrator’s Guide
Demonstration Database
A Notices appendix contains information about IBM products, services, and
features. An index directs you to areas of particular interest.
Demonstration Database
Your IBM Informix OnLine software includes a demonstration database
called stores5 that contains information about a fictitious wholesale sportinggoods distributor.The sample command files that make up a demonstration
application are included as well.
Most of the examples in this manual are based on the stores5 demonstration
database. The stores5 database is described in detail and its contents are
listed in
using DB-Access to manipulate the data in the demonstration database, refer
to the DB-Access User Manual.
The script you use to install the demonstration database is called
dbaccessdemo5 and is located in the $INFORMIXDIR/bin directory. The
database name that you supply is the name given to the demonstration
database. If you do not supply a database name, the name defaults to stores5.
Follow these rules for naming your database:
IBM Informix Guide to SQL: Reference. For further information about
■Names for databases can be up to 10 characters long.
■The first character of a name must be a letter.
■You can use letters, characters, and underscores (_) for the rest of the
name.
■DB-Access makes no distinction between uppercase and lowercase
letters.
■The database name should be unique.
When you run dbaccessdemo5, you are, as the creator of the database, the
owner and Database Administrator (DBA) of that database.
After you install OnLine, the files that make up the demonstration database
are protected so that you cannot make any changes to the original database.
Introduction 5
Demonstration Database
You can run the dbaccessdemo5 script again whenever you want a fresh
demonstration database to work with. The script prompts you when the
creation of the database is complete and asks if you would like to copy the
sample command files to the current directory. Answer “N” to the prompt if
you have made changes to the sample files and do not want them replaced
with the original versions. Answer “Y” to the prompt if you want to copy
over the sample command files.
To create and populate the demonstration database in the
IBM Informix OnLine
environment
1.Set the INFORMIXDIR environment so that it contains the name of the
directory in which your IBM Informix products are installed.
Set SQLEXEC to $INFORMIXDIR/lib/sqlturbo. (For a full description
of environment variables, see IBM Informix Guide to SQL: Reference.)
2.Create a new directory for the SQL command files.
Create the directory by entering:
mkdir dirname
3.Make the new directory the current directory by entering:
cd dirname
4.Create the demonstration database and copy over the sample
command files by entering:
dbaccessdemo5 dbname
The data for the database is put into the root dbspace.
To give someone else the SQL privileges to access the data, use the GRANT
and REVOKE statements. The GRANT and REVOKE statements are described
in IBM Informix Guide to SQL: Reference.
To use the command files that have been copied to your directory, you must
have UNIX read and execute permissions for each directory in the pathname
of the directory from which you ran the dbaccessdemo5 script. To give
someone else the permissions to access the command files in your directory,
use the UNIX chmod command.
6 IBM Informix OnLine Database Server Administrator’s Guide
IBM Informix OnLine
IBM Informix OnLine
Product Overview
The IBM Informix OnLine database server combines high-availability, online
transaction-processing (OLTP)performance with multimedia capabilities. By
managing its own shared-memory resources and disk I/O, OnLine delivers
process concurrency while maintaining transaction isolation. Table data can
spanmultiple disks, freeing administratorsfromconstraints imposed bydata
storage limitations. The
mance to users throughout a client/server environment. The IBM Informix
TP/XA product allows you to use the OnLine database server as a Resource
Manager within an X/Open environment.
IBM Informix OnLine and Other IBM Informix Products
IBM provides a variety of application development tools, CASE tools,
database servers, utilities, and client/server products. DB-Access is a utility
that allows you to access, modify, and retrieve information from OnLine
relational databases. IBM Informix OnLine supports all application development tools currently available, including products like IBM Informix SQL,
IBM Informix 4GL and Interactive Debugger, and the Informix embedded
language products, such as IBM Informix ESQL/C. IBM Informix OnLine also
works with third-party application development tools through the
IBM Informix ODBC Driver and the IBM Informix JDBC Driver.
IBM Informix STAR product brings OnLine perfor-
For running applications on a network, IBM Informix STAR provides
distributed database access to multiple IBM Informix OnLine database
servers.
Introduction 7
Documentation Conventions
Documentation Conventions
This section describes the conventions that this manual uses. These
conventionsmake it easierto gather information fromthis and other volumes
in the documentation set.
The following conventions are discussed:
■Typographical conventions
■Icon conventions
■Command-line conventions
■Example code conventions
Typographical Conventions
This manual uses the following conventions to introduce new terms,
illustrate screen displays, describe command syntax, and so forth.
ConventionMeaning
KEYWORDAll primary elements in a programming language statement
(keywords) appear in uppercase letters in a serif font.
italics
italics
italics
boldface
boldface
monospace
monospace
Withintext, new terms and emphasized words appear in italics.
Within syntax and code examples, variable values that you are
to specify appear in italics.
Names of program entities (such as classes, events, and tables),
environment variables, file and pathnames, and interface
elements (such as icons, menu items, and buttons) appear in
boldface.
Information that the product displays and information that you
enter appear in a monospace typeface.
Tip: When you are instructed to “enter” characters or to “execute” a command,
immediately press RETURN after the entry. When you are instructed to “type” the
text or to “press” other keys, no RETURN is required.
8 IBM Informix OnLine Database Server Administrator’s Guide
Icon Conventions
Icon Conventions
Comment icons identify three types of information, as the following table
describes. This information always appears in italics.
IconLabelDescription
Warning:Identifies paragraphs that contain vital instructions,
cautions, or critical information
Important:Identifies paragraphs that contain significant
information about the feature or operation that is
being described
Tip:Identifies paragraphs that offer additional details or
shortcuts for the functionality that is being described
Command-Line Conventions
OnLine supports a variety of command-line options. These are commands
that you enter at the operating system prompt to perform certain functions
as part of OnLine administration.
This section defines and illustrates the format of the commands. These
commands have their own conventions, which may include alternative
forms of a command, required and optional parts of the command, and so
forth.
Each diagram displays the sequences of required and optional elements that
arevalid in a command. A diagram begins at the upper left with a command.
It ends at the upper right with a vertical line. Between these points, you can
trace any path that does not stop or back up. Each path describes a valid form
of the command. You must supply a value for words that are in italics.
Introduction 9
Command-Line Conventions
Elements That Can Appear on the Path
You might encounter one or more of the following elements on a path.
ElementDescription
commandThis required element is usually the product name or
variableA word in italics represents a value that you must
-flagA flag is usually an abbreviation for a function, menu,
.extA filename extension, such as .sql or .cob, might follow
other short word used to invoke the product or call the
compiler or preprocessor script for a compiled
Informix product. It may appear alone or precede one
or more options. You must spell a command exactly as
shown and must use lowercase letters.
supply, such as a database, file, or program name. The
nature of the value is explained immediately following
the diagram.
or option name or for a compiler or preprocessor
argument. You must enter a flag exactly as shown,
including the preceding hyphen.
a variable representing a filename. Type this extension
exactlyas shown, immediately after the name of the file
and a period. The extension may be optional in certain
products.
(.,;+*-/)Punctuation and mathematical notations are literal
symbols that you must enter exactly as shown.
""Double quotes are literal symbols that you must enter
as shown. You can replace a pair of double quotes with
a pair of single quotes, if you prefer. You cannot mix
double and single quotes.
Privileges
p. 6-17
ALL
10 IBM Informix OnLine Database Server Administrator’s Guide
A reference in a box represents a subdiagram on the
same page or another page. Imagine that the subdiagram is spliced into the main diagram at this point.
A shaded option is the default. Even if you do not
explicitly type the option, it will be in effect unless you
choose another option.
(1 of 2)
ElementDescription
A branch below the main line indicates an optional
path.
-
The vertical line is a terminator and indicates that the
statement is complete.
Commands enclosed in a pair of arrows indicate that
this is a subdiagram.
Command-Line Conventions
A gate () in an option indicates that you can only
1
use that option once, even though it is within a larger
loop.
1
-s
1
-t
(2 of 2)
How to Read a Command-Line Diagram
Figure 1 shows the elements of an OnLine utility command used to unload
OnLine data in binary, disk-page units:
Figure 1
Example of a Command-Line Diagram
tbunloaddatabase
Specify
Tape
Parameters
p. 7-109
table name
Introduction 11
Sample Code Conventions
To construct a similar command, start at the top left with the command
tbunload. Then follow the diagram to the right, including the elements that
you want. Figure 1 illustrates the following steps.
Sample Code Conventions
1.Type tbunload.
2.Optionally, change the parameters ofthe tape devicethat is to receive
the data.
If you wish to do this, turn to page 7-109 for further syntax informa-
tion. Otherwise, tbunload uses the current archive tape device.
3.Specify either a database name or a table name to indicate the data
that you wish to copy to tape.
You can take the direct route to the terminator, or you can take an
optional path indicated by any one of the branches below the main
line.
Once you are back at the main diagram, you come to the terminator.
Your tbunload command is complete.
4.Press RETURN to execute the command.
Examples of SQL code appear throughout this manual. Except where noted,
the code is not specific to any single Informix application development tool.
If only SQL statements are listed, they are not delineated by semicolons.
For instance, you might see the following example code:
DATABASE stores
.
.
.
DELETE FROM customer
WHERE customer_num = 121
.
.
.
COMMIT WORK
CLOSE DATABASE
12 IBM Informix OnLine Database Server Administrator’s Guide
Sample Code Conventions
To use this SQL code for a specific product, you must apply the syntax rules
for that product. For example, if you are using DB-Access or IBM Informix
SQL, you must delineate the statements with semicolons. If you areusing an
embedded language, you must use EXEC SQL and a semicolon (or other
appropriate delimiters) at the start and end of each statement, respectively.
For detailed directions on using SQL statements for a particular application
development tool, see the manual for your product.
Tip: Ellipsis points in a code example indicate that more code would be added in a
full application, but it is not necessary to show it to describe the concept being
discussed.
Introduction 13
Additional Documentation
Additional Documentation
For additional information, refer to the following types of documentation:
Printed Manuals
You might want to refer to a number of related Informix product documents
that complement this manual.
■Printed manuals
■Error message files
■Documentation notes, release notes, and machine notes
■Related reading
■If you have never used SQL (Structured Query Language) or an
Informix application development tool, read IBM Informix Guide to
SQL: Tutorial to learn basic database design and implementation
concepts.
■A companion volume to the tutorial, IBM Informix Guide to SQL:
R
eference, provides full information on the structure and contents of
thedemonstration database that isprovidedwith OnLine. Itincludes
details of the Informix system catalog tables, describes Informix and
common UNIX environment variables that should be set, and defines
column data types supported by Informix products. Further, it
provides a detailed description of all the SQL statements supported
by Informix products. It also contains a glossary of useful terms.
■You, or whoever installs OnLine, should refer to the UNIX Products
Installation Guide for your particular release to ensure that OnLine is
properly set up before you begin to work with it.
■If you are using OnLine across a network, you may also want to refer
to the IBM Informix NET and IBM Informix STAR Installation and Config-uration Guide.
14 IBM Informix OnLine Database Server Administrator’s Guide
Error Message Files
■The DB-Access User’s Manual describes how to invoke the utility to
access, modify, and retrieve information from OnLine relational
databases.
■When errors occur, you can look them up by number and find their
cause and solution in the IBM Informix Error Messages manual. If you
prefer, you can look up the error messages in the online message file
described in “Error Message Files” on page 15.
Error Message Files
Informix software products provide ASCII files that contain all the Informix
error messages and their corrective actions. To access the error messages in
the ASCII file, Informix provides scripts that let you display error messages
on the terminal or print formatted error messages.
The optional IBM Informix Messages and Corrections product provides
PostScript files that contain the error messages and their corrective actions. If
you have installed this product, you can print the PostScript files on a
PostScript printer.
Using the ASCII Error Message File
You can use the file that contains the ASCII text version of the error messages
and their corrective actions in two ways:
■Use the finderr script to display one or more error messages on the
terminal screen.
■Use the rofferr script to print one error message or a range of error
messages.
The scripts are in the $INFORMIXDIR/bin directory. The ASCII file has the
following path:
$INFORMIXDIR/msg/errmsg.txt
The error message numbers range from -1 to -33000. When you specify these
numbers for the finderr or rofferr scripts, you can omit the minus sign. A few
messages have positive numbers; these messages are used solely within the
application development tools. In the unlikely event that you want to display
them, you must precede the message number with a + sign.
Introduction 15
Error Message Files
Themessages numbered -1 to-100 can beplatform-dependent. If themessage
text for a message in this range does not apply to your platform, check the
operating system documentation for the precise meaning of the message
number.
The finderr Script
Use the finderr script to display one or more error messages, and their
correctiveactions, on the terminal screen. The finderr script has the following
syntax:
finderr
-
+
msg_num
msg_numis the number of the error message to display.
You can specify any number of error messages per finderr command. The
finderr command copies all the specified messages and their corrective
actions to standard output.
For example, to display the -359 error message, you can enter the following
command:
finderr -359
The following example demonstrates how to specify a list of error messages.
This example also pipes the output to the UNIX more command to control the
display. You can also redirect the output to another file so that you can save
or print the error messages:
finderr 233 107 113 134 143 144 154 | more
16 IBM Informix OnLine Database Server Administrator’s Guide
Loading...
+ 672 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.