Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Database access method and equipment and storage medium

An access method and database technology, which is applied in the field of equipment and storage media, and database access methods, can solve problems such as complex content of OTL data access technology statements, and achieve the effect of simplifying programming operations

Inactive Publication Date: 2019-11-19
SICHUAN JIUZHOU ELECTRIC GROUP
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present application provides a database access method, device and storage medium, which can solve the problem that the content of the existing OTL data access technology statement is relatively complex

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
  • Database access method and equipment and storage medium
  • Database access method and equipment and storage medium
  • Database access method and equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] In practical applications, the database access method can be implemented by computer programs, such as application software, etc.; or, the database access method can also be implemented as a medium that stores related computer programs, such as U disk, cloud disk, etc.; or, The database access method can also be realized by an entity device integrated or installed with a relevant computer program, such as a chip, a mobile smart device, and the like.

[0026] figure 1 It is a flow chart of the database access method provided in Embodiment 1 of the present application. like figure 1 As shown, the database access method provided in this embodiment includes:

[0027] Step 101, acquiring a database access encapsulation function instruction.

[0028] This instruction can be used as a function call instruction for programmers to write programs. The database access encapsulation function internally encapsulates the database access underlying function, and the database acces...

Embodiment 2

[0037] This embodiment optimizes the above database access method on the basis of the above embodiments.

[0038] A first implementation manner: the above-mentioned database access encapsulation function instruction may be: a connection database function instruction, for example: int ConnectDB(). Then the above-mentioned underlying function of the database is the underlying function of connecting to the database encapsulated in the function of connecting to the data. The above step 103 may specifically be: establish a connection to the database corresponding to the database name according to the underlying function of connecting to the database.

[0039] Specifically, the underlying function of connecting to the database is an OCI underlying function, including: an OCI initialization function, an environment initialization function, a function of applying for an OCI handle, and an OCI login function. For example: the OCI initialization function is OCIInitialize(), the environ...

Embodiment 3

[0067] Image 6 It is a schematic structural diagram of a database access device provided in Embodiment 3 of the present application. like Image 6 As shown, this embodiment provides a database access device, including: a memory 601, a processor 602, and a computer program. Wherein, the computer program is stored in the memory 601 and is configured to be executed by the processor 602 to implement the method provided by any one of the above contents.

[0068] This embodiment also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the method provided by any one of the contents above.

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 embodiment of the invention provides a database access method and equipment and a storage medium, and the method comprises the steps: obtaining a database access packaging function instruction; obtaining a database access underlying function packaged in a database access packaging function according to the database access packaging function instruction, and obtaining a preset configuration file, wherein a database name is pre-stored in the configuration file; and executing an access operation on a database corresponding to the database name according to the database underlying function. According to the database access method and equipment and the storage medium provided by the embodiment of the invention, the problem that the statement content of an existing OTL data access technologyis relatively complex can be solved.

Description

technical field [0001] The present application relates to database access technology, in particular to a database access method, device and storage medium. Background technique [0002] At present, the methods for accessing the Oracle database in the Visual C++ environment mainly include Open Database Connectivity (ODBC for short), ActiveX Data Objects (ActiveX Data Objects, ADO for short) and Oracle Call Interface (OCI for short). ). Among them, ODBC is a unified interface provided for database applications to access relational databases. To access a database, an application must first register a data source with the ODBC manager. The manager provides the database location, database type and ODBC driver and other information to establish the connection between ODBC and a specific database, the process is relatively cumbersome. Access using ADO must import its library. Compared with ODBC access, it is simpler and can save network traffic to the greatest extent, but it is n...

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/25
CPCG06F16/252
Inventor 段沽坪吴曦
Owner SICHUAN JIUZHOU ELECTRIC GROUP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products