The processing method after the online abnormal end

Source: Internet
Author: User
Tags informix log system log

When online abnormally ends, information about why online enters offline mode is written to the log, and the following is an example of logging in the system log at the end of online:

Process Aborted Abnormally: pid=22500 user=210 us=c003f15c flags=a01
Process Aborted Abnormally (critial section):pid=22500 user=210 flag=a01
INFORMIX-OnLine entering ABORT mode!!! INFORMIX-OnLine Stopped

Log entries show that a Sqlturbo process that enters a critical state ends abnormally, a critical state is the term used by a process to execute write calls that cannot be interrupted. If a process is in a critical state and the end is not normal, online to protect the integrity of the data into the offline mode. A quick recovery is performed when online restarts, and all outstanding transactions are rolled back.

If the process that holds the latch (latch) is not finished properly, online will also end abnormally. Latches are used to control access to shared memory resources such as buffers, locking tables, and so on. To prevent interference with other processes requesting shared memory resources, Informixonline Controls access to resource tables with latches.

Although the online background process cleans up the aborted process on a daily basis, data consistency prevents the background process from releasing the shared memory latch during the cleanup process. For background processes, it is not possible to determine whether a user process has completed modifications to the database. To liberate this with a dilemma, online forces itself into the offline way. Fast recovery occurs automatically when online is back on line. Quick Restore enables online to achieve the same status as the last completed transaction.

When the process that holds the latch ends, the following entries are generated:

Process Aborted Abnormally: pid=10743 user=104 us=60204c flags=21
Process Aborted Abnormally (latch): pid=10743 user=104 flags=21
INFORMIX-OnLine entering ABORT MODE!!!
-- OnLine Aborting -- us=6019a8,pid=11987,uid=1000

The information provided by these log entries is useful in determining why the process ended abnormally, and the fields in the entry are defined as follows:

PID---------sqlturbo UNIX process ID
User--------True User ID
US----------the address of the user structure in shared memory
flags-------defined as follows
0x0000001------0x0000001 The user structure in use
0x0000002------0x0000002 wait for latch
0x0000004------0x0000004 wait for lock
0x0000008------0x0000008 Wait buffer
0x0000010------0x0000010 wait checkpoint
0x0000020------0x0000020 wait for Read call
0x0000040------0x0000040 Write logical log to archive track
0x0000080 wait for purge long transaction
0x0000100------0x0000080 specific Turbo detection user
0x0000200 In a transaction the
0x0000400 process is rolling back
0x0000800------0x0000100 The process in critical state continues ...
0x0001000------0x0000200 A specific background process
0x0002000 start work log registrations
0x0004000------0x0000400 Archive
0x0008000------0x0000800 Clears the dead process
0x0020000------0x00002000 A specific buffer flush process
0x0010000------0x0002000 Wait for the logical buffer to write
0x0040000------0x0004000 The process is a remote server
0x0080000 The process is completing a remote task
0x0100000------0x0008000 deadlock Timeout
----------- 0x00010000-----Normal Lock timeout
-----------0x00020000-----Timeout Wait period has ended-----------0x00040000-----Wait for transaction

In the above log entries, the UNIX process ID of the Sqlturbo process is 10743, the real user ID is 104, the address of the user structure in the shared memory is 0x60204c, the flag indicates that the user structure is in use, and the online engine is in a read call (0x00000001 , &0x00000020).

This information identifies an abnormally terminated user, identifies whether he or she has encountered an unexpected error, or in some way causes the abnormal end of the process. Users should not use the kill-9 command for the Informix process. An administrator can use the Onmode-zpid command to abort a Sqlturbo thread. If the process is holding a latch or is in a critical state, the Tbmode command does not immediately abort the process.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.