MIMINFO - System Information
MIMINFOis used to obtain information from a Mimer SQL database server which is useful for system control, system tuning and trouble-shooting analysis.
Information can be generated from an active Mimer SQL database server as well as from the SQLPOOL and bufferpool dump files produced by using
MIMCONTROL, see MIMCONTROL - Controlling the Database Server.
The output from
MIMINFOcan be displayed on the screen and may also be directed to a file.
The following reports may be obtained from
MIMINFO(further details on each report can be found in the sub-sections that follow):
this lists details of all the users currently connected. this provides information useful for monitoring performance parameters (
this produces a report which is useful to Mimer SQL support personnel when investigating system problems (
displays SQLPOOL parameters displays version related information for a started server and its client connections displays real-time related information. Available only when using the Mimer SQL Real-Time edition.
MIMINFOprogram is controlled by flagged information specified on the command-line.
The overall syntax for
MIMINFO(expressed in short form Unix-style) is:miminfo [-o file] -u | -p | -s | -v | -t [database] miminfo [-o file] -u | -p | -s | -v | -t | -m -f
Send output to the specified file instead of to the screen Display users list Produce Performance report (
Produce Bufferpool report (
Display SQLPOOL parameters Take information from the specified database.If a database name is not specified, the default database will be accessed, see The Default Database. Take information from a dump file (for a users list, a dump file called
sqlpool.mdmpis expected to exist otherwise a dump file called
bpool.mdmpis expected to exist)
List version information. List real-time information. Available only when using the Mimer SQL Real-Time edition. Show help text.
UNIX: The Unix-style command-line flags must be used on a Unix machine. Both short form arguments (e.g.
-u), and long form arguments (e.g.
--users) are supported.
VMS: Either the Unix-style or the VMS-style command-line flags may be used on an OpenVMS machine - see the Mimer SQL VMS Guide for more details.
Win: The Unix-style command-line flags can be used if the miminfo program is run from a Command Prompt window. Both short form arguments (e.g.
-u), and long form arguments (e.g.
--users) are supported.The shortcut
Mimer Infocan also be used to run the program and interactive selections can then be made in the program.
A detailed description of each of the
The Users List
A users list can be generated from an active database or from a dump file produced using
MIMCONTROL.miminfo [--output=file] --users [database] | --file
The users list shows the name of each ident connected to the database, the channel number used by the connection, the state of the connection, transaction number, the name of the operating user, the network communication protocol (or `local') and node identification information for connected machine.
The channel number may be used in conjunction with
MIMCONTROLto kill a user.
The following is an example of a users list report:Username Channel State Trans. no OS user Prot From ============ ========== ===== ========== ============ ====== ==== SYSADM 16387 Busy 3 TCP 188.8.131.52 SYSADM 16388 Busy STELLA Local 00019120 Total of 2 users
The Performance Report
The performance report can be used by the system administrator to monitor performance parameters during Mimer SQL use. The Performance report can be generated from an active database or from a dump file produced using
MIMCONTROL.miminfo [--output=file] --performance [database] | --file
The performance report presents five kinds of statistical information which may be useful for system tuning (statistics for page management, transactions, background threads, databank and table usage).
Note: When a performance report is used as an aid to system tuning, it is important that the report is generated when the database is in full use. The output from several executions over a period of a few hours or days can provide valuable information on fluctuations in system usage.
The performance report contains the following information:
- General Statistics
- Page Management Statistics
- Transaction Management Statistics
- Background Threads
- Databank Statistics
- Table Statistics
The following table lists the general statistics information available. Where applicable, we have provided a detailed description
If the database server is in an error state, a database dump is usually made automatically. It can be made manually by using the
MIMCONTROL. The dump directory created should be saved for use by Mimer SQL support personnel. The database server can then be restarted.The database server log, see Database Server Log, should also be inspected to help find the cause of the failure.
Number of errors that have been written to the database server log. This value should normally be zero. Number of request threads started, see Number of Request Threads. Number of background threads started, see Number of Background Threads. Number of I/O threads (typically zero on most machines where separate threads are not needed for I/O processing).
Page Management Statistics
An indication of the frequency of disk update operations. The total number of times databank files have been dynamically extended since the latest startup. The value should preferably be as low as possible for performance reasons.It is possible to check databank size usage with the
DESCRIBEcommand in Mimer BSQL. A databank can be extended by using the commands:
ALTER DATABANK ADD ...or
ALTER SHADOW ADD ....
The bufferpool is divided into a region with 2K buffers, one region with 16K buffers, and one region with 64K buffers.
The following information is given for each region:
This is the number of page buffers allocated to this bufferpool region. Total number of Mimer SQL pages that a request thread performing a sort operation may utilize. The initial value specifies the number of concurrent sort/merge steps that are allowed. Each region in the bufferpool is divided into separate partitions. Each partition can be accessed concurrently by the Mimer SQL request threads. In tightly coupled multi-processor systems it is desirable, for performance reasons, to have at least as many partitions as there are CPUs. The number of partitions may be increased by increasing the region size. Total number of access operations to pages in the buffer region since the latest system start-up.
Total number of page access requests that resulted in disk read operations. If this value is more than about 2% of the total number of page requests, performance may be improved significantly by increasing the bufferpool size.
Total number of pages which were written to disk when they were swapped out of the buffer region.
Transaction Management Statistics
Total number of successful read/write transaction commits since the latest system start-up. Total number of successful read-only transaction commits since the latest system start-up. A high proportion of transaction checks in relation to the total number of transactions may indicate ill-designed application programs, with long transactions that are more likely to give rise to transaction conflicts. Total number of transactions aborted by the optimistic concurrency protocol since the latest system start-up. User requested transaction aborts are not counted. This is an indication of how much information is stored in
TRANSDB. Number of restarts is counted for each databank used in a transaction. This figure grows larger when shadows are set offline. If all databanks have been accessed and there are no offline shadows there should not be any pending restarts.
Background thread identifier. State of the background thread. If the background thread is currently working with a transaction,
activeis displayed.If the background thread is not doing anything,
I/O processingmeans that the background thread is flushing one or more transactions to disk.
unusedmeans that the background thread is allocated but not currently running (i.e. the thread is not started or closed down).
The number of the transaction currently being processed. The number of transactions processed by the background thread. This indicates how many transactions have not yet been processed by the background threads. If there are too few background threads this value will grow. For certain operations (
SET DATABANK OFFLINE, for example) the application has to wait for the background threads to complete their operations.If there are too few background threads, it may take some time before this operation is complete. By comparing this
trans-nobeing handled by the background threads it is possible to see how many transactions are left before the operation is completed.
The name of the databank or shadow. Databank identification. These two values correspond to the columns
DATABANK_SEQNOin the data dictionary table
The databank option
READ ONLY. See Re-creating TRANSDB, LOGDB and SQLDB.The
SQLDBdatabank has the type
TEMPORARY, and shadows have the type
Internal user count. Access mode by which the databank was opened. The possible values are:
Exclusive.If the databank is open but not referenced by any active statement,
DB-Checkfield indicates the progress of a databank check. The possible values are
Working(foreground processing, typically index check),
Wait B.(foreground ready, waiting for background entrance),
A count of both databanks and shadows opened in the system. This is defined by a parameter in the local database definition, see The Local Database, or possibly by a limit in the operating system. Databank verification is automatically performed when a databank is re-opened without having been correctly closed. Each time this happens a log entry is written to the database server log. When a databank is verified the databank verification count is incremented. The count is cleared when the system is started, and a databank is only verified once per session. Indicates the number of active databank verifications. Indicates the number of active databank verifications. Indicates the databank verification mode as defined in the local database definition, see The Local Database Indicates the databank verification mode as defined in the local database definition, see The Local Database
This shows the number of tables open in both master and shadow databanks. Also included are the read and write sets used by each user. This number is set as a parameter in the local database definition, The Local Database.
The Bufferpool report is used by Mimer SQL support personnel for trouble-shooting when database problems are reported by customers.miminfo [--output=file] --mimdump --file
SQL pool memory allocated is the amount of memory allocated from the operating system for the SQLPOOL. A part of that memory is in use by the server and is displayed on the row SQL pool memory used.miminfo [--output=file] --sqlpool [database] | --file
The following is an example of an SQLPOOL report:SQLPOOL report ============== SQL pool memory allocated (KB): 1656 SQL pool memory used (KB): 554
A version report can be generated from an active database or from a dump file produced using MIMCONTROL. The report is generated using the following command:miminfo [--output=file] --version [database] | --file
The version report displays information about the server and about each connected client.
The server information includes server type, version and platform.
The client information includes channel number, database API, version and node identification information for the connected machine.
The channel number can be used to identify the connection when it appears in other reports.
The following is an example of a version report:miminfo -v M I M E R / M I M I N F O Version 10.0.5I Apr 29 2010 Server type: Mimer SQL Engine Server version: 10.0.5I Server platform: Windows 32-bit Channel Client interface Version Platform Prot From ======= ================ ======= ======== ===== ==== 1327109 ODBC 10.0.5G Windows 32-bit TCP 184.108.40.206 32772 Embedded SQL 10.0.5I Windows 32-bit Local 00001E2C Total of 2 users
The real-time report is available for users of the Mimer SQL Real-Time edition.
A real-time report can be generated from an active database or from a dump file produced using MIMCONTROL. The report is generated using the following command:miminfo [--output=file] --realtime [database] | --file
The real-time report displays information about database pointers, real-time elements, task resource allocations and Mimer SQL Real-Time API (RTAPI) sessions.
The database pointers are bound in RTAPI client sessions.
RTAPI sessions are the connections made by these clients.
Real-time elements are resources allocated in the server in order to manage the database pointers.
The clients also allocate synchronization resources for one or more real-time tasks when connecting to a database server.
Both real-time elements and task synchronization resources are system configurable parameters that are set to their maximum value when the server is started.
The following is an example of a version report:Mimer SQL real-time report ========================== No. of bound client single-row pointers : 2 No. of bound client multi-row pointers : 0 No. of single-row real-time elements : 1 No. of multi-row real-time elements : 0 No. of administration real-time elements : 0 Total no. of server real-time elements : 1 Max no. of server real-time elements : 500 No. of allocated real-time tasks : 0 Max no. of real-time tasks : 1000 Username Channel RT pointers ============ ========== =========== RTTEST 1589251 2 Total of 1 RTAPI session
Mimer Information Technology AB
Voice: +46 18 780 92 00
Fax: +46 18 780 92 40