|
|
System Information - MIMINFO
MIMINFO is 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 Controlling the Database Server - MIMCONTROL.
The output from MIMINFO can 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):
MIMINFO Syntax
The MIMINFO program is controlled by flagged information specified on the command-line.
The overall syntax for MIMINFO (expressed in UNIX-style) is:
miminfo [-o file] -u | -p | -s [database] miminfo [-o file] -u | -p | -s | -m -fMIMINFO Command-line Arguments
UNIX-style
VMS-style
Function
-o file /OUTPUT = file Send output to the specified file instead of to the screen -u /USERS Display users list -p /MIMSERV Produce Performance report (MIMSERV) -m /MIMDUMP Produce Bufferpool report (MIMDUMP) -s /SQLPOOL Display SQLPOOL parameters database database Take information from the specified database.If a database name is not specified, the default database will be accessed, see The Default Database. -f /FILE Take information from a dump file (for a users list, a dump file called sqlpool.mdmp is expected to exist otherwise a dump file called bpool.mdmp is expected to exist)
A detailed description of each of the MIMINFO reports follows.
The Users List
miminfo [-o file] -u [database] | -fA users list can be generated from an active database or from a dump file produced using MIMCONTROL.
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 MIMCONTROL to 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 204.71.200.67 SYSADM 16388 Busy SARA Local 00019120 Total of 2 usersThe Performance Report
miminfo [-o file] -p [database] | -fThe Performance report (MIMSERV) 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.
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
General Statistics
The following table lists the general statistics information available. Where applicable, we have provided a detailed description
Statistics
Description
Current date and time Current MIMER/DB version Starting date and time Current hardware and operating system Name of database System status If system status is in an error state, a database dump is usually made automatically. It can be made manually by using the -A option with 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. Error count Number of errors that have been written to the database server log. This value should normally be zero. No. of request threads Number of request threads started, see Number of Request Threads. No. of background threads Number of background threads started, see Number of Background Threads. No. of I/O threads Number of I/O threads (typically zero on most machines where separate threads are not needed for
I/O processing).Page Management Statistics
Transaction Management Statistics
Background Threads
Databank Statistics
Statistics
Description
Name The name of the databank or shadow. DBANKID, SEQNO Databank identification. These two values correspond to the columns DATABANK_SYSID and DATABANK_SEQNO in the data dictionary table SYSTEM.DATABANKS. Type The databank option NULL, TRANS, or LOG. See Re-creating TRANSDB, LOGDB and SQLDB.The SQLDB databank has the type WORK, and shadows have the type SHADOW. Users Internal user count. Access Access mode by which the databank was opened. The possible values are: Read, Write, Shared and Exclusive.If the databank is open but not referenced by any active statement, None is displayed. DB-Check The DB-Check field indicates the progress of a databank check. The possible values are Init, Working (foreground processing, typically index check), Wait B. (foreground ready, waiting for background entrance), Backgr. (background processing), Aborting, Aborted or Complete.Note: After the DB-Check field, a field for additional information may show up. The values here can be the shadow state: offline, or the online backup states: backup in progress or backup completion.
No. of databanks currently open A count of both databanks and shadows opened in the system. Max number of databanks open concurrently 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 count 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. Running background verifications... Indicates the number of active databank verifications. Pending background verifications... Indicates the number of active databank verifications. Databank verification is only done on index pages... Indicates the databank verification mode as defined in the local database definition, see The Local Database Databank verification is performed on all pages... Indicates the databank verification mode as defined in the local database definition, see The Local DatabaseTable Statistics
Statistics
Description
No. of tables currently open 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. Max number of tables open concurrently This number is set as a parameter in the local database definition, The Local Database.Bufferpool Report
miminfo [-o file] -m -fThe Bufferpool report (MIMDUMP) is used by Mimer SQL support personnel for trouble-shooting when database problems are reported by customers.
SQLPOOL Report
miminfo [-o file] -s [database] | -fSQL 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.
The following is an example of a SQLPOOL report:
SQLPOOL report ============== SQL pool memory allocated (KB): 1656 SQL pool memory used (KB): 554
|
Mimer Information Technology AB Voice: +46 18 780 92 00 Fax: +46 18 780 92 40 info@mimer.se |
|
|