Time drift Detected

Source: Internet
Author: User

Oracle 11.2.0.3 database is installed on solaris10. After the database is manually created, it is found that there is a very regular alarm information in the alarm log, which is reported every 76 minutes. The alarm information is as follows:

Tue Aug 0503:05:18 2014Time driftdetected. Please check VKTM trace file for more details.Tue Aug 0503:08:48 2014Startingbackground process SMCOTue Aug 0503:08:48 2014SMCOstarted with pid=24, OS id=2446Tue Aug 0503:14:35 2014Stoppingbackground process CJQ0Tue Aug 0504:12:34 2014Time driftdetected. Please check VKTM trace file for more details.Tue Aug 0505:28:47 2014Time driftdetected. Please check VKTM trace file for more details.Tue Aug 0506:44:59 2014Time driftdetected. Please check VKTM trace file for more details.Tue Aug 0508:01:26 2014Time driftdetected. Please check VKTM trace file for more details.Tue Aug 0509:17:33 2014Time driftdetected. Please check VKTM trace file for more details.

 

The alarm log prompts you to view the trace file. The trace file content is as follows:

[[email protected]:/u01/app/oracle/diag/rdbms/anny/anny/trace]$cat anny_vktm_2378.trcTrace file/u01/app/oracle/diag/rdbms/anny/anny/trace/anny_vktm_2378.trcOracleDatabase 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionWith thePartitioning, OLAP, Data Mining and Real Application Testing optionsORACLE_HOME= /u01/app/oracle/product/11.2.0/dbhome_1Systemname:    SunOSNodename:      solaris186Release:        5.10Version:        Generic_142910-17Machine:        i86pcInstancename: annyRedothread mounted by this instance: 0 <none>Oracleprocess number: 4Unixprocess pid: 2378, image: [email protected] (VKTM)  ***2014-08-05 02:58:43.036***SESSION ID:(4.1) 2014-08-05 02:58:43.036*** CLIENTID:() 2014-08-05 02:58:43.036***SERVICE NAME:() 2014-08-05 02:58:43.036*** MODULENAME:() 2014-08-05 02:58:43.036*** ACTIONNAME:() 2014-08-05 02:58:43.036 kstmmainvktm:succeeded in setting elevated priorityhighres_enabled ***2014-08-05 02:58:43.036VKTMrunning at (10)millisec precision with DBRM quantum (100)ms[Start]HighResTick = 59404806322kstmrmtickcnt= 0 : ksudbrmseccnt[0] = 1407178723 ***2014-08-05 03:05:18.798kstmchkdrift(kstmhighrestimecntkeeper:highres): Time jumped forward by (1297157)usec at(59800568177) whereas (1000000) is allowedkstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407180887 ***2014-08-05 03:34:48.908kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407180888drift: 1 ***2014-08-05 03:35:18.823kstmchkdrift(kstmhighrestimecntkeeper:highres): Time jumped forward by (1366639)usec at(61602594030) whereas (1000000) is allowedkstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407183154 ***2014-08-05 04:12:35.900kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407183155drift: 1 ***2014-08-05 04:12:51.999kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407183171kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407183172drift: 1kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407185440 ***2014-08-05 04:50:41.947kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407185441drift: 1 ***2014-08-05 04:50:58.972kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407185458kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407185459drift: 1kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407187727 ***2014-08-05 05:28:48.883kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407187728drift: 1kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407187744 ***2014-08-05 05:29:05.931kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407187745drift: 1 ***2014-08-05 05:43:59.944kstmchkdrift(kstmhighrestimecntkeeper:highres): Time jumped forward by (1252499)usec at(69329714522) whereas (1000000) is allowedkstmchkdrift(kstmhighrestimecntkeeper:highres): Time jumped forward by (1419573)usec at(70537192617) whereas (1000000) is allowed ***2014-08-05 06:06:53.993kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407190013kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407190014drift: 1 ***2014-08-05 06:07:11.988kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407190031kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407190032drift: 1kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407192299 ***2014-08-05 06:45:00.927kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407192300drift: 1 ***2014-08-05 06:45:17.960kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407192317kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407192318drift: 1kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407194588 ***2014-08-05 07:23:09.922kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407194589drift: 1 ***2014-08-05 07:23:26.979kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407194606kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407194607drift: 1kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407196886 ***2014-08-05 08:01:27.919kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407196887drift: 1kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407199171 ***2014-08-05 08:39:32.932kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407199172drift: 1kstmchkdrift(kstmhighrestimecntkeeper:lowres): Time stalled at 1407201453 ***2014-08-05 09:17:34.920kstmchkdrift(kstmhighrestimecntkeeper:lowres): Stall, backward drift ended at 1407201454drift: 1

 

No useful information is obtained from the trace file, but this information does not affect the use of the database. Check the official documentation that this is a bug, it is said on the Internet that the vktm process will be paired with the NTP server at regular intervals, but the NTP service on my machine is not enabled.

[[email protected]:/]#svcs -a ntp  svcs: -aignored when used with arguments.STATE          STIME    FMRIdisabled       10:30:01 svc:/network/ntp:default

In Oracle database11g, vktm is a new background process. The meaning of this process is:

VKTM (virtual keeperof time) is responsible for providing a wall-clock time (updated every second)and reference-time counter (updated every 20 ms and available only when runningat elevated priority).

That is to say, this process is used to provide a database clock, update every second; or as a reference time counter, this method is updated every 20 milliseconds, only available at high priority.

 

Through the vktm process, the database can reduce interaction with the operating system. kamus explains that if all Oracle database backend or foreground processes need to obtain the current time information before 11 GB, you need to call the gettimeofday () function of the operating system or a similar function. The vktm process is used to obtain the time information and store the information in the SGA for use by other processes. When other processes require time information, you only need to get it at a memory location of SGA, instead of calling the gettimeofday () function frequently. There is no doubt that this will be more efficient.

 

In the RAC test, when the lmsx process of oracle1.1.0.6 obtains the time information, it can benefit about 70% of the speed increase from the vktm process, and 11.1.0.7 will be higher. At the same time, because the gettimeofday () function also triggers many bugs, both RAC and Norac libraries will benefit from the vktm process.

 

Conclusion:

I guess this bug may be triggered on all platforms. Because the NTP service on my machine is not started, this bug is triggered when the vktm process is paired with the NTP service. If you have an NTP service on your machine, the time difference will also trigger this bug.


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.