Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Transparent database port changing method

A database and port technology, applied in the field of database connection, can solve the problems of low efficiency of configuration changes, low security, and unchanged system configuration, so as to improve the efficiency of changes, improve stability, and reduce failures.

Active Publication Date: 2017-01-04
上海新炬网络技术有限公司
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1), low efficiency
A database usually has many applications connected to it. If the database changes the connection port, it is necessary to modify the database connection configuration on each application and have to operate an additional server. The efficiency of configuration changes in a large-scale enterprise system environment will be very high. the low
[0006] 2), low security
In a large enterprise environment, after the database connection port is modified, there may be missing system configurations that have not been changed, or errors have been corrected, resulting in the failure of the application to connect to the database, resulting in production failures, and the security of configuration changes is very low.
[0007] 3), difficult to manage
When the connection port of the database is changed, it is necessary to manually modify the port number in the database connection URL on each application server. From the perspective of efficient operation and maintenance and automatic operation and maintenance, such configuration changes are very inconvenient to manage

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
  • Transparent database port changing method
  • Transparent database port changing method
  • Transparent database port changing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0021] figure 1 Change the schematic diagram of the system architecture for the transparent database port of the present invention; figure 2 It is a schematic diagram of the transparent database port modification process of the present invention.

[0022] See figure 1 and figure 2 , the transparent database port change method provided by the present invention comprises the following steps:

[0023] a) configure the default connection port of the database on the application server, and start the port conversion module;

[0024] b) The client initiates a request, and after receiving the request, the application server judges whether the connection port is the default connection port of the database;

[0025] c) If the connection end is the default connection port, the request packet is intercepted, the packet enters the port conversion module, and ...

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 a transparent database port changing method. The method includes the following steps that firstly, a default connection port of a database is configured on an application server, and a port switching module is started; secondly, a client side initiates a request, and after receiving the request, the application server judges whether a connection port is the default connection port of the database or not; thirdly, if the connection port is the default connection port, a request packet is intercepted and encapsulated to enter the port switching module, and the port is switched according to a designated port mapping corresponding relation; fourthly, after switching a target port in the request packet into a changed port, the port switching module creates physical connection with the database to acquire data from the database and then returns the data to the client side. By means of the method, transparent database port changing for access to an application program can be achieved, the changing efficiency, the changing safety and the ease of manageability of changing can be improved, faults caused by changing can be reduced, and the system operating stability can be improved.

Description

technical field [0001] The invention relates to a database connection method, in particular to a transparent database port change method. Background technique [0002] Generally speaking, the process of java application program accessing the database is: ① loading the database driver; ② establishing a database connection through jdbc; ③ accessing the database and executing sql statements; ④ disconnecting the database connection. Among them, JDBC is a bridge between java and relational database. JDBC (Java Data Base Connectivity, java database connection) is a Java API for executing SQL statements, which can provide unified access to various relational databases. It consists of a set of classes and interfaces written in the Java language. JDBC provides a baseline from which higher-level tools and interfaces can be built to enable database developers to write database applications. JDBC points to the specific database connection object through Connection (connection object i...

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): G06F17/30
Inventor 程永新孙玉颖孙田
Owner 上海新炬网络技术有限公司
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
Eureka Blog
Learn More
PatSnap group products