Oracle database execution plan anomaly detection method

A technology of execution plan and detection method, which is applied in the field of database detection, can solve problems affecting business development, company rating and business development range, and long-term problems, so as to reduce the time for fault discovery and repair and improve business continuity.

Pending Publication Date: 2020-08-11
JIANGSU SECURITIES
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In operation and maintenance, because the Oracle database uses the CBO evaluation model when parsing SQL statements, in a high-concurrency system, when the number of records in a single Oracle table exceeds tens of billions, the database often has execution plan exceptions, resulting in The sql response time becomes longer, the session is blocked, and as time accumulates, the scope of influence continues to expand, eventually causing all database resources to be used to process sql with abnormal execution plans, unable to respond to new requests, and affecting business development
[0003] Given that Oracle execution plan exceptions are difficult to find, the industry currently does not have mature automation tools, and the processing method is still a passive operation and maintenance mode. When an abnormality occurs in the business system, the operation and maintenance personnel manually intervene in the analysis and processing
[0004] However, the manual processing method takes a long time to locate the problem, and the financial system has high timeliness requirements. If the fault lasts for too long, it will cause huge economic losses to the company, and even affect the company's rating and business development. scope

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Oracle database execution plan anomaly detection method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] This embodiment provides a method for detecting an exception of an Oracle database execution plan, including the following steps,

[0026] Step S1, analyzing and summarizing abnormal data of the execution plan, constructing a health assessment model of the database execution plan;

[0027] Step S2. Determine the preset threshold parameters in the model, initialize the number of errors, input the current business scenario and database performance parameters, and calculate the current health value;

[0028] Step S3. If the current health value is less than or equal to the preset minimum health value, add 1 to the number of errors; if the current health value is greater than the preset minimum health value, then the current execution is correct.

[0029] Step S4, when the cumulative value of the number of errors is greater than the preset threshold, it means that the execution plan is abnormal, and an alarm message is sent or a repair script is executed.

[0030] The form...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

An Oracle database execution plan anomaly detection method comprises the following steps of: S1, analyzing and concluding execution plan anomaly data, and constructing a database execution plan healthassessment model; S2, determining each preset threshold parameter in the model, initializing error times, inputting a current business scene and database performance parameters, and calculating a current health value; S3, if the current health value is smaller than or equal to a preset minimum health value, adding 1 to the error times, and if the current health value is larger than the preset minimum health value, determining that the current execution is correct; and S4, when a cumulative value of the error times is greater than a preset threshold, indicating that the execution plan is abnormal, and transmitting alarm information or executing a repair script. According to the Oracle database execution plan anomaly detection method, the system performance after the database execution planis abnormal is concluded and summarized, quantitative analysis indexes are abstracted, and automatic judgment and emergency processing of the system are realized after the Oracle execution plan is abnormal, so that the fault discovery time and the emergency processing time are reduced, and the service continuity is improved.

Description

technical field [0001] The invention belongs to the technical field of database detection, and in particular relates to a method for detecting abnormality of an Oracle database execution plan. Background technique [0002] In large financial companies such as securities, banks, and insurance companies, the databases of many core systems use Oracle databases, and many databases store hundreds of millions of records. In operation and maintenance, because the Oracle database uses the CBO evaluation model when parsing SQL statements, in a high-concurrency system, when the number of records in a single Oracle table exceeds tens of billions, the database often has execution plan exceptions, resulting in The sql response time becomes longer, the session is blocked, and as time accumulates, the scope of influence continues to expand, eventually causing all database resources to be used to process sql with abnormal execution plans, unable to respond to new requests, and affecting bus...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/21G06F16/28
CPCG06F16/21G06F16/284
Inventor 邢四为李健华管文琦崔健季鸿坤陈磊王俊王勉杨宏薛峰丁儒
Owner JIANGSU SECURITIES
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products