Unlock instant, AI-driven research and patent intelligence for your innovation.

Automatic reconnection method and automatic reconnection device for contingency interrupt of database connection

A technology of automatic reconnection and unexpected interruption. It is used in electrical digital data processing, special data processing applications, instruments, etc. It can solve the problems of inability to guarantee retry connection and high system overhead, so as to reduce system overhead, ensure effectiveness, The effect of increasing the effective connection rate

Inactive Publication Date: 2014-04-30
BEIHANG UNIV
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to solve the problem that the database connection is invalid in the prior art, and there is a problem that the system overhead is large and the retry connection cannot guarantee the success of the connection, and proposes an automatic reconnection method and its device for the unexpected interruption of the database connection

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
  • Automatic reconnection method and automatic reconnection device for contingency interrupt of database connection
  • Automatic reconnection method and automatic reconnection device for contingency interrupt of database connection
  • Automatic reconnection method and automatic reconnection device for contingency interrupt of database connection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The present invention will be further described in detail with reference to the accompanying drawings and embodiments.

[0034] Such as figure 1 As shown, the automatic reconnection device proposed by the present invention for unexpected interruption of database connection includes the following modules: database connection pool, connection validity detector 3, database connection request monitor 4, connection request priority analyzer 5, and abnormal catcher6. The database connection pool includes regular database connection pool 1 and standby database connection pool 2.

[0035] Regular database connection pool 1 and standby database connection pool 2 run on database server 7 . A fixed number of database connections are stored in the regular database connection pool 1. When the data connection pool is initialized, the database connections in the regular database connection pool 1 will be initialized.

[0036] The standby database connection pool 2 is initialized af...

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 discloses an automatic reconnection method and an automatic reconnection device for contingency interrupt of database connection. The device comprises a regular database connection pool and a standby database connection pool, a connection validity detector, a database connection request monitor, a connection request priority analyzer and an exception catcher; the connection validity detector is used for pre-connection so as to judge the validity of the connection to be allocated currently, and when the regular database connection pool has invalid connection, the standby database connection pool initializes the database connection as needed. According to the method, the time interval between two database connection requests is recorded through the database connection request monitor, the connection request priority analyzer judges the database connection request according to a pre-set priority strategy, and the standby database connection pool is started when the database connection request with higher priority exists. The method and the device ensure that the database connection requests which need to be processed quickly can be executed efficiently, so that the times of pre-connection is controlled effectively, and the system overhead is saved.

Description

technical field [0001] The invention belongs to the technical field of computer data processing and relates to database connection technology, in particular to an automatic reconnection method and device for unexpected interruption of database connection. Background technique [0002] Database connections are a critical and limited resource. The management of database connections can significantly affect the scalability and robustness of the entire application, and affect the performance indicators of the program. The database connection pool is proposed for this problem. [0003] The database connection pool is responsible for allocating, managing and releasing database connections. Its most basic idea is to pre-establish some connections and place them in memory objects for backup. When an application needs to establish a database connection, it can reuse an existing database connection instead of re-establishing one; release it after use, and release the database connec...

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 Patents(China)
IPC IPC(8): G06F17/30
Inventor 李睿吕江花马世龙
Owner BEIHANG UNIV