.
contact contact

Eloquence database utilities

 
.
  Eloquence A.06.20 / Release Notes
This document provides a detailed description on enhancements and changes related to the Eloquence database on-line utilities.
  • Schema processor
  • dbinfo utility
  • dbexport utility
  • dbimport utility
  • dbctl utility
  • dbstore / dbrestore utility


Schema

Changes

  • The maximum number of data sets which can be used in a single database has been changed from 99 to 199.

  • The schema processor uses transactions to access the database catalog.

  • The schema processor includes a HP3000 compatibility mode which enables a (slightly) different syntax to process HP3000 schema files. It is not recommended to use the HP3000 compatibility mode except for porting HP3000 schema files. The HP3000 compatibility mode removes some compatibility checks which could effect compatibility of the resulting database with the Eloquence language. In addition the Eloquence database provides alternative approches to some HP3000 specifics (which are usually more general).

HP3000 compatibility mode

Schema supports the HP3000 TurboImage schema file syntax.
  • Additional schema processor control options
  • Different HP3000 schema syntax
  • HP3000 data types are accepted and mapped to Eloquence data types
  • A primary path can be specified
  • Sort items (sorted chains) can be specified
  • 16 character item/set names are accepted
  • Additional characters are valid in data set and item names
The following data types are accepted and mapped to native data types:
  "I[n]" - integer, n = number of halfwords
  "E[n]" - IEEE floating point, n = number of halfwords
  "J[n]" - mapped to 'I'
  "K[n]" - unsigned integer, n = number of halfwords
  "R[n]" - mapped to 'E'
  "P[n]" - packed decimal (bcd - mapped to 'B')
  "Xn"   - n byte string (n must be even)
  "Un"   - UPC string (mapped to 'X')
  "Z[n]" - zoned decimal (mapped to 'B')
Restrictions:
  • Item level security is ignored
  • Passwords are converted to access groups
  • HP3000 item types are mapped to the corresponding Eloquence database item type.
  • Not all HP3000 data types have an exact native equivalent with the Eloquence database.
New command line options:
-T     Enable HP3000 compatibility mode

-W nn  Limit line to nn characters. The option -W72 must be used 
       if schema files are saved numbered in the HP3000 editor.


dbinfo

The output format has slightly changed as data set numbers are displayed with 3 digits.


dbexport

dbexport supports three digit data set numbers. If you are exporting to separate files, the data set is encoded with three digits instead of two (can be configured by the -w option).

To export to separate files which could be imported by an earlier Eloquence version, please specify option -w2.

dbexport uses a platform specific character set when exporting data. With the -z option, you could specify that the data should be encoded with a different character set.

The following character sets are supported:

  • roman8 - HP-ROMAN8
  • iso88591 - ISO-88591-1 (aka Latin1)
Default character set depends on platform:
  • HP-UX: roman8
  • All other platforms: iso88591

New command line options:

-z cset
Specify character set (either roman8 or iso88591), default value depends on platform.

-w nn
Specify number of digits used to encode the data set number when using separate export files. Default value is 3.


dbimport

dbimport supports two and three digit data set numbers. If you are importing from separate files, and dbimport is unable to open a file with a three digit data set number it will look for a file with a two digit data set number.

dbexport uses a platform specific character set when exporting data. With the -z option, you could specify that the data should be encoded with a different character set.

The following character sets are supported:

  • roman8 - HP-ROMAN8
  • iso88591 - ISO-88591-1 (aka Latin1)
Default character set depends on platform:
  • HP-UX: roman8
  • All other platforms: iso88591

New command line options:

-z cset
Specify character set (either roman8 or iso88591), default value depends on platform.


dbctl

dbctl is a new tool which allows access to a running eloqdb6 process.

Usage:

dbctl [-h hostname] [-s service] [-u login] [-p password] command [args]

Options:

-h host
Name or IP address of the system running the eloqdb6 server. The default is the local system (localhost).

-s service
Service name or port number the eloqdb6 process is listening on. The default is eloqdb.

-u login
The login name to access the database. The default is the login name on your current system. The authorization depends on the command sent to the eloqdb6.

-p pswd
The password for the given database login.

Commands:

help [command]
Ask the server to provide a list of supported commands. If the optional command argument is specified, syntax of the specified command is displayed.

For example:

 dbctl help shutdown
shutdown [#seconds|cancel]
Shutdown the eloqdb6 server. dba authorization is required. In addition, a shutdown delay (in seconds) can be specified to schedule the shutdown of the eloqdb6 server process at a later time. The shutdown cancel operation can be used to cancel a previous scheduled shutdown.

backup {start|stop}
Enter or leave on-line backup mode. dba authorization is required. When eloqdb6 enters on-line backup mode all changes to the data volume(s) are re-directed to the log volume(s) and the data volume(s) are guaranteed to be consistent and not to change. The data volume(s) can then be backed up by a backup tool (e.g. fbackup or tar).
When the on-line backup mode is ended, all pending data is written to the data volume(s).

NOTE: The eloqdb6 performance is reduced in on-line backup mode and the log volume must provide space for all committed transactions during on-line backup period.

In case the eloqdb6 server is shut down during on-line backup mode (or a failure occurs) the data volume(s) will be updated automatically when the server is restarted.

list {session|db|lock} [notitle]
The list command returns status information from the eloqdb6 server process (similar to using the HTTP status interface). However the dbctl is easier to use from a script file. The list command is allowed with any valid server login.

If the notitle option is specified, any header lines are omitted.

list session
Provide a list of all active database sessions. The following information is displayed:
Session Internal session id
TID eloqdb6 thread id associated with this session
Host Host name or IP number the client is running on.
IP ADDR IP addr and port number of the client
Platform Client platform
User database login of the session

Example output:

 Session   TID Host                 IP ADDR              Platform User
 --------- --- -------------------- -------------------- -------- ---------------
 0x81db540   7 localhost            127.0.0.1:4829       Linux    public
list db
Provide a list of all opened data bases. The following information is displayed:
Database data base name
Ref how often the database is accessed
WrShrd how often the database is opened in mode 1
WrExcl how often the database is opened in mode 3
RdShrd how often the database is opened in mode 9
RdExcl how often the database is opened in mode 8

Example output:

 Database         Ref  WrShrd WrExcl RdShrd RdExcl
 ---------------- ---- ------ ------ ------ ------
 db                  1      1      0      0      0
list lock
Provide a list of all data base locks. The following information is displayed:
Session eloqdb6 session identifier
Database database name
DBID internal database instance id
Status lock status (GRANTED/BLOCKED)
Mode lock mode (rounded to next even mode)
Qualifier lock qualifier (base/set/expression)

Example output:

 Session    TID Database         DBID Status  Mode Qualifier
 ---------- --- ---------------- ---- ------- ---- ---------------
 0x81db540    7 db                  1 GRANTED    6 expression
 set=1 item=@ (effective set lock)

cancelthread threadid
This is an experimental feature which allows to cancel a blocking DBLOCK. When the DBLOCK is canceled, a status -807 (first element) and -3 (tenth element) is returned to the program.

The threadid argument can be obtained with the dbctl list lock command.

For example:

 dbctl cancelthread 47

dbstore database target
The dbctl dbstore command transfers a single database to the target "device" which must be defined in the server configuration file. In order to store a database, database admin (dadmin) or server admin (dba) capabilities are required.

The target specification is either the name of a configured server device or the name of a server device and a filename separated by a slash.

For example:

 dbctl dbstore payrol backup/payrol.bkup
 dbctl dbstore payrol tape

dbrestore source [info]
The dbctl dbrestore command restores a single database from a source device which must be defined in the server configuration file. The database may not already exist. Server administration (dba) capabilities are required in order to restore a database.

The source specification is either the name of a configured server device or the name of a server device and a filename separated by a slash.

If the optional info argument is present, information on the archive is returned and the archive is not restored.

For example:

 dbctl dbrestore backup/payrol.bkup
 dbctl dbrestore tape
 dbctl dbrestore tape info


 
 
.
 
 
  Privacy | Webmaster | Terms of use | Impressum Revision:  2002-11-18  
  Copyright © 1995-2002 Marxmeier Software AG