SQL script fault recovery method and terminal

A fault repair and scripting technology, applied in the database field, can solve problems such as low fault detection efficiency and reduced efficiency of SQL script fault response

Active Publication Date: 2018-07-06
CHINA PING AN LIFE INSURANCE CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides a method for repairing faults of SQL scripts and a terminal thereof, so as to solve the problem of repairing the faults of existing SQL scripts, it is necessary to manually check the SQL scripts contained in the database one by one. The detection efficiency is low, and after detecting the faulty SQL script, it also relies on the professional knowledge of the maintenance personnel to perform manual fault repair, which further reduces the efficiency of the SQL script fault response

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
  • SQL script fault recovery method and terminal
  • SQL script fault recovery method and terminal
  • SQL script fault recovery method and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036]In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0037] The embodiment of the present invention detects the operation status of each SQL script through the terminal device. If a faulty SQL script is detected, the fault repair process is started, and the script identifier corresponding to the faulty SQL script is obtained, and then the faulty SQL script is queried through the script identifier. The operation control file corresponding to the script determines the calling strategy corresponding to the database when calling the faulty SQL script, and then according to the consumption characteristic value corresponding to each operation control file, l...

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

The invention is suitable for the technical field of databases and provides an SQL script fault recovery method and a terminal. The method comprises the steps of obtaining a script identifier of a faulted SQL script if the faulted SQL script is monitored; according to the script identifier, querying running control files corresponding to the faulted SQL script; based on a pre-stored call resourceoccupation record, determining a corresponding consumption eigenvalue during execution of each running control file and an abnormal consumption ratio corresponding to the faulted SQL script; if the abnormal consumption ratio is greater than a preset ratio threshold, determining that a query factor sequence in the faulted SQL script is abnormal; and if the abnormal consumption ratio is smaller thanor equal to the preset ratio threshold, identifying the running control file with the consumption eigenvalue greater than a preset consumption threshold as a fault control file. The problem that theSQL script fault response efficiency is reduced because manual fault recovery is performed by depending on professional knowledge of maintenance personnel in an existing SQL script fault recovery technology is solved.

Description

technical field [0001] The invention belongs to the technical field of databases, and in particular relates to a method for repairing failures of SQL scripts and a terminal thereof. Background technique [0002] SQL scripts, as a common means of data query, are widely used in the field of network services. The data search strategy of each SQL script is mainly determined by the query factor sequence in the SQL script. The order of the query factors determines which type of keyword to search for first and then which type of keyword to search for when determining data query. Therefore, the order of each query factor in the SQL script will directly determine the efficiency of its operation and the response of the service. speed. On the other hand, in order to improve the efficiency of data query, users can formulate an operation control file for each SQL script according to their own search habits and search purposes. Assign preset parameter values ​​to each query factor in th...

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): G06F11/36G06F17/30
CPCG06F11/366G06F11/3688G06F16/21
Inventor 吴丽娜肖涵月何恩赐
Owner CHINA PING AN LIFE INSURANCE CO LTD
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