TWI541678B - A system that utilizes technology to access cloud database data - Google Patents

A system that utilizes technology to access cloud database data Download PDF

Info

Publication number
TWI541678B
TWI541678B TW102126300A TW102126300A TWI541678B TW I541678 B TWI541678 B TW I541678B TW 102126300 A TW102126300 A TW 102126300A TW 102126300 A TW102126300 A TW 102126300A TW I541678 B TWI541678 B TW I541678B
Authority
TW
Taiwan
Prior art keywords
database
address
data
unit
servo
Prior art date
Application number
TW102126300A
Other languages
Chinese (zh)
Other versions
TW201504844A (en
Inventor
Ching Ju Chuang
Pei Fen Hu
shu yuan Hu
Kun Ting Chiu
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed filed Critical
Priority to TW102126300A priority Critical patent/TWI541678B/en
Publication of TW201504844A publication Critical patent/TW201504844A/en
Application granted granted Critical
Publication of TWI541678B publication Critical patent/TWI541678B/en

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

利用透通技術存取雲端資料庫資料之系統 System for accessing cloud database data using transparent technology

本發明係屬於存取雲端資料庫資料之技術領域,特別是關於一種利用透通技術存取雲端資料庫資料之系統,使將TCP/IP(Transmission Control Protocol,傳輸控制協定/Internet Protocol,網際協定)格式之資料轉換成HTTP格式後,經一通道傳送至一伺服單元,再自HTTP格式轉換回TCP/IP格式而傳送至雲端之資料庫端,以突破防火牆的阻擋而順利傳送資料。 The present invention belongs to the technical field of accessing cloud database materials, and more particularly to a system for accessing cloud database data by using a transparent technology, such as TCP/IP (Transmission Control Protocol, Internet Protocol, Internet Protocol) After the format data is converted into HTTP format, it is transmitted to a servo unit through a channel, and then converted from the HTTP format back to the TCP/IP format and transmitted to the database side of the cloud to smoothly transmit data by breaking the barrier of the firewall.

建立於主從架構上的ODBC,Open Data Base Connectivity(開放式資料庫連接界面)係提供了一種標準的API(Application Programming Interface,應用程式編程介面)來傳送SQL(Structured Query Language)指令而藉由通信層(Network Layer)存取遠端資料庫的資料。ODBC開創了開放式資料庫的使用可能性,其架構大致可區分為應用程式(Application)、驅動管理員(Driver Manager)、驅動程式(Driver)及資料來源(Data Source)等四單元。該應用程式對外提供使用者交談界面,對內執行資料之準備工作和呼叫ODBC程式函數、傳送SQL指令,及接收並顯示資料庫所回傳的結果。該驅動管理員及該驅動程式為動態連接程式檔,該驅動管理員供協助該應用程式去載入該來源驅動程式並連接該資料來源,且該驅動程式主要是執行ODBC之相對函式,並與對應之資料來源(Data Source)做溝通,當該應用程式呼叫ODBC函式,諸如SQLConnect或SQLDriverConnect時,該驅動管理員就會載入相對的驅動程式而與該應用程式呼應,使該應用程式毋需在乎資料來源為何,只要利用對應之該驅 動程式即能完成銜接的功能。 Built on the master-slave architecture of ODBC, Open Data Base Connectivity provides a standard API (Application Programming Interface) to transfer SQL (Structured Query Language) instructions. The Network Layer accesses the data of the remote database. ODBC pioneered the use of open databases, and its architecture can be roughly divided into four units: Application, Driver Manager, Driver, and Data Source. The application provides a user chat interface, prepares the internal execution data and calls the ODBC program function, transmits the SQL command, and receives and displays the returned result of the database. The driver administrator and the driver are dynamically connected files, and the driver administrator assists the application to load the source driver and connect to the data source, and the driver is mainly a function of executing ODBC, and Communicate with the corresponding Data Source. When the application calls an ODBC function, such as SQLConnect or SQLDriverConnect, the driver administrator will load the relative driver and respond to the application to make the application I don't care what the source of the data is, just use the corresponding drive. The program can complete the function of the connection.

由此可知,ODBC造就了該應用程式與資料庫間的獨立特性。但,於上述主從式架構中,該應用程式於作業完成(Commit)、返回(Rollback)或超時(Timeout)前須保持與資料庫間的連結暢通而不可中斷,此時,若資料庫為了網路安全問題而藏設於一防火牆後時,該應用程式將無法直接利用原始之該驅動程式進行資料庫連結,須先利用VB6或PHP語言編修該驅動程式之程式碼及該驅動管理員內設之函式等,以透過互聯網協定(TCP/IP)架設出另一層通信通道後,方能突破該防火牆後完成連結,如此,即造成使用上的困難及不便,再者,若資料庫為雲端系統則更加深程式碼及函式的修編繁複度,進而影響資料庫的資料存取品質。 It can be seen that ODBC creates independent features between the application and the database. However, in the above-mentioned master-slave architecture, the application must keep the connection with the database uninterrupted before the job completion (Commit), return (Rollback) or timeout (Timeout). In this case, if the database is When the network security problem is hidden behind a firewall, the application will not be able to directly use the original driver to link the database. You must first use the VB6 or PHP language to edit the driver code and the driver. If the communication system is set up to set up another communication channel through the Internet Protocol (TCP/IP), the connection can be completed after the firewall is broken. This will cause difficulties and inconvenience in use. Furthermore, if the database is The cloud system further deepens the complexity of the code and functions, which in turn affects the data access quality of the database.

為解決上述問題,如何利用現行常用於突破區網防火牆之超文件傳輸協定透通技術(HTTP Tunneling)額外建構一通道,供該應用程式於無須修改程式碼及函式的情況下即可穿透防火牆連結雲端資料庫,即為本發明所亟欲探究之課題。 In order to solve the above problems, how to use the existing HTTP Tunneling, which is commonly used to break through the network firewall, to construct a channel for the application to penetrate without modifying the code and function. The firewall links the cloud database, which is the subject of the invention.

有鑑於習知技藝之問題,本發明之目的在於提供一種利用透通技術存取雲端資料庫資料之系統,其利用超文件傳輸協定隧道(HTTP Tunnel)連結到防火牆後的雲端資料庫,而允許使用者無需修改應用程式之程式碼即可進行資料的存取,提升應用程式的操作便利性及使用滿意度。 In view of the problems of the prior art, the object of the present invention is to provide a system for accessing cloud database data by using a transparent technology, which uses a Hyper-File Tunnel (HTTP Tunnel) to connect to a cloud database behind a firewall, and allows Users can access data without modifying the application code, which improves the ease of operation and satisfaction of the application.

根據本發明之目的,該利用透通技術存取雲端資料庫資料之系統用於主從式架構中而具有一應用程式端及雲端之至少一資料庫端,供允許該應用程式端無需修改程式碼即能透過網際網路自一防火牆後之該資料庫存取資料,其特徵在於:該應用程式端預先執行一第一資料庫設定檔,且該利用透通技術存取雲端資料庫資料之系統設有一用戶通道單元及至少一通道伺服單元,該用戶通道單元預先執行一第二資料庫設定檔而取得一位址清單並連結該應用程式端,又該位址清單至少內存至少一第一伺服位址及至少一第一資料庫位址;該用戶通道單元接收該應用程式端所輸出之 一連結通知時,依該連結通知查詢該位址清單而獲知HTTP資料格式之該第一伺服位址及該第一資料庫位址,並利用一超文件傳輸協定隧道(HTTP Tunnel)經該防火牆連結對應該第一伺服位址之該通道伺服單元,傳送內設該第一資料庫位址之一資料庫請求予該通道伺服單元,使該通道伺服單元分析該資料庫請求而將HTTP資料格式之該第一資料庫位址轉換成TCP/IP資料格式之一者後,依TCP/IP資料格式之該第一資料庫位址連結對應之該資料庫端,完成該應用程式端與該資料庫端間的連線。 According to the purpose of the present invention, the system for accessing the cloud database data by using the transparent technology is used in the master-slave architecture and has at least one database end of the application terminal and the cloud, so that the application terminal does not need to modify the program. The code can obtain the data from the data inventory of the firewall through the Internet, and the feature is that the application program pre-executes a first database configuration file, and the system for accessing the cloud database data by using the transparent technology Having a user channel unit and at least one channel servo unit, the user channel unit pre-executes a second database profile to obtain an address list and link the application terminal, and at least one first servo is stored in the address list a address and at least one first database address; the user channel unit receives the output of the application terminal When a notification is received, the first server address and the first database address of the HTTP data format are obtained by querying the address list according to the link notification, and the firewall is transmitted through the firewall using a super file transfer protocol tunnel (HTTP Tunnel) Linking the channel servo unit corresponding to the first servo address, transmitting a database requesting the database address of the first database address to the channel servo unit, so that the channel servo unit analyzes the database request and the HTTP data format is After the first database address is converted into one of the TCP/IP data formats, the first database address of the TCP/IP data format is linked to the database end, and the application end and the data are completed. The connection between the library ends.

其中,該應用程式端支援開放式資料庫連接界面(Open Data Base Connectivity,ODBC)驅動程式而可同時與複數個資料庫端連接,且該用戶通道單元及該通道伺服單元利用SOHT(Socket Over Http Tunneling)技術建立該超文件傳輸協定隧道。該應用程式端預先執行該第一資料庫設定檔而指定供予連結該用戶通道單元之一連接埠,使該用戶通道單元於接收該連結通知時透過該連接埠網路連結該應用程式端,如此,使用者無須修改該應用程式端繁複的程式碼,而是透過設定檔的安裝執行即可進行與該資料庫端間的資料存取動作。 The application side supports an Open Data Base Connectivity (ODBC) driver and can be connected to a plurality of database terminals at the same time, and the user channel unit and the channel servo unit utilize SOHT (Socket Over Http). Tunneling) technology establishes the Hyper File Transfer Protocol tunnel. The application side pre-executes the first database configuration file and specifies to connect to one of the user channel units to enable the user channel unit to connect to the application terminal through the connection network when receiving the connection notification. In this way, the user does not need to modify the complicated code of the application end, but can perform data access operation with the database end through the installation and execution of the configuration file.

當該資料庫端為複數使用型態時,該利用透通技術存取雲端資料庫資料之系統更設有一鏈管伺服單元(Connection Management Server),其透過該超文件傳輸協定隧道經該防火牆連結該用戶通道單元。該鏈管伺服單元預先執行一第三資料庫設定檔,以取得該位址清單而記錄該第一伺服位址及該第一資料庫位址。當該用戶通道單元接收該連結通知時輸出一回報指令,使該鏈管伺服單元檢測各該資料庫端之使用狀態而獲知可提供最佳服務之該資料庫端時,該鏈管伺服單元自該位址清單截取對應之該第一伺服位址及該第一資料庫位址而分別形成該第二伺服位址及該第二資料庫位址,反饋予該用戶通道單元,供該用戶通道單元透過該HTTP Tunnel輸出該資料庫請求及該第二資料庫位址予對應該第二伺服位址之該通道伺服單元。該通道伺服單元分析該資料庫請求並將HTTP資料格式之該第二資料庫位址轉換成TCP/IP資料格式之一者後,依該第二資料庫位址連結對應之該資料庫端,完成該應用程式端與該資料庫端間的連線。 When the database end is in a plural use mode, the system for accessing the cloud database data by using the transparent technology further includes a link management server (Connection Management Server), and the tunnel is connected through the firewall through the hyper file transfer protocol tunnel. The user channel unit. The link servo unit executes a third database profile in advance to obtain the address list and record the first server address and the first database address. When the user channel unit receives the link notification, when the link servo unit detects the usage status of each of the database terminals and learns the database end that can provide the best service, the link server unit The address list intercepts the corresponding first servo address and the first database address to form the second servo address and the second database address, respectively, and feeds back to the user channel unit for the user channel The unit outputs the database request and the second database address to the channel serving unit corresponding to the second server address through the HTTP tunnel. After the channel servant analyzes the database request and converts the second database address of the HTTP data format into one of the TCP/IP data formats, the corresponding database end is connected according to the second database address. Complete the connection between the application and the repository.

綜上所述,本發明係將現行HTTP透通技術應用至資料庫管理系統中,使利用該用戶通道單元及該通道伺服單元建立該HTTP Tunnel的同時進行資料格式的轉換,以藉由HTTP格式之資料較容易突破該防火牆的傳輸特性將資料傳送至雲端資料庫或自資料庫讀取資料。如此,無論雲端資料庫是否為了網路安全而設有該防火牆,本發明皆允許使用者於完成該等設定檔的設定而無需修改該應用程式端之程式碼後,即可直接存取該資料庫端資料,達確保資料庫網路安全性的同時方便使用者操作之功效。再者,當該資料庫端非藏設於該防火牆後時,本發明仍允許該應用程式端直接透過原TCP/IP連結該資料庫端。 In summary, the present invention applies the current HTTP pass-through technology to the database management system, so that the user channel unit and the channel servo unit establish the HTTP tunnel and convert the data format to the HTTP format. The data is easier to break through the transmission characteristics of the firewall to transfer data to the cloud database or read data from the database. In this way, whether the cloud database is provided with the firewall for network security, the present invention allows the user to directly access the data after completing the setting of the configuration file without modifying the code of the application terminal. The library-side data ensures the security of the database network while facilitating the user's operation. Moreover, when the database end is not hidden behind the firewall, the present invention still allows the application end to directly connect to the database end through the original TCP/IP.

1‧‧‧系統 1‧‧‧ system

10‧‧‧應用程式端 10‧‧‧Application side

100‧‧‧連結通知 100‧‧‧link notice

11‧‧‧用戶通道單元 11‧‧‧User channel unit

110‧‧‧位址清單 110‧‧‧ address list

1100‧‧‧第一伺服位址 1100‧‧‧First servo address

1101‧‧‧第一資料庫位址 1101‧‧‧First database address

1102‧‧‧資料庫請求 1102‧‧‧Database request

1103‧‧‧回報指令 1103‧‧‧Return instructions

12‧‧‧通道伺服單元 12‧‧‧Channel SERVOPACK

13‧‧‧資料庫端 13‧‧‧Database side

14‧‧‧防火牆 14‧‧‧Firewall

15‧‧‧鏈管伺服單元 15‧‧‧Chain SERVOPACK

S10~S16‧‧‧步驟 S10~S16‧‧‧Steps

S20~S27‧‧‧步驟 S20~S27‧‧‧ steps

第1圖 係為本發明較佳實施例之一實施態樣之架構示意圖。 BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram showing an embodiment of a preferred embodiment of the present invention.

第2圖 係為本發明較佳實施例之一實施態樣之一流程圖。 Figure 2 is a flow chart of one embodiment of a preferred embodiment of the present invention.

第3圖 係為本發明較佳實施例之一實施態樣之用戶通道單元之程式碼。 Figure 3 is a diagram showing the code of a user channel unit in an embodiment of the preferred embodiment of the present invention.

第4圖 係為本發明較佳實施例之二實施態樣之架構示意圖。 Figure 4 is a schematic diagram showing the structure of the second embodiment of the preferred embodiment of the present invention.

第5圖 係為本發明較佳實施例之二實施態樣之流程圖。 Figure 5 is a flow chart of a second embodiment of the preferred embodiment of the present invention.

第6圖 係為本發明較佳實施例之二實施態樣之用戶通道單元之程式碼。 Figure 6 is a diagram showing the code of the user channel unit of the second embodiment of the preferred embodiment of the present invention.

為使 貴審查委員能清楚了解本發明之內容,謹以下列說明搭配圖式,敬請參閱。 In order for your review board to have a clear understanding of the contents of the present invention, please refer to the following description for matching drawings.

請參閱第1、2圖,其係分別為本發明較佳實施例之一實施態樣之架構示意圖及流程圖。如圖所示,該透通技術存取雲端資料庫資料之系統1用於主從式架構中而具有一應用程式端10、一用戶通道單元11、至少一通道伺服單元12及雲端之至少一資料庫端13,且該用戶通道單元 11與該通道伺服單元12間存在有一防火牆14。該應用程式端10支援ODBC驅動程式並透過TCP/IP連結該用戶通道單元11。該用戶通道單元11與該通道伺服單元12利用SOHT技術於彼此間建立一HTTP Tunnel,供以突破該防火牆14彼此連結。該通道伺服單元12透過TCP/IP連結該資料庫端13。該系統1透過包含如下述步驟之作動流程,實現使該應用程式端10無需修改程式碼即能透過網際網路自該防火牆14後之該資料庫13存取資料之功能。 Please refer to FIG. 1 and FIG. 2, which are respectively a schematic structural diagram and a flow chart of an embodiment of a preferred embodiment of the present invention. As shown in the figure, the system 1 for accessing cloud database data is used in a master-slave architecture and has at least one application terminal 10, a user channel unit 11, at least one channel server unit 12, and a cloud. Database end 13, and the user channel unit There is a firewall 14 between the channel servo unit 11 and the channel. The application terminal 10 supports the ODBC driver and links the user channel unit 11 via TCP/IP. The user channel unit 11 and the channel servo unit 12 establish an HTTP tunnel between each other by using the SOHT technology, so as to break through the firewall 14 and connect to each other. The channel servo unit 12 connects the database terminal 13 via TCP/IP. The system 1 realizes the function of enabling the application terminal 10 to access data from the database 13 after the firewall 14 through the Internet without modifying the program code through the execution flow including the following steps.

首先,步驟S10,該應用程式端10預先執行一第一資料庫設定檔:DB_CLOUD=1 First, in step S10, the application terminal 10 executes a first database configuration file in advance: DB_CLOUD=1

DB_CLOUDSVR=172.16.220.116:8085 DB_CLOUDSVR=172.16.220.116:8085

DB_PTNUM=12345 DB_PTNUM=12345

DB_SVADR=127.0.0.1 DB_SVADR=127.0.0.1

DB_USRID=SYSADM,以指定供予連結該用戶通道單元11之一連接埠:12345。同時,該用戶通道單元11執行一第二資料庫設定檔:client.port=12345 DB_USRID=SYSADM to specify that one of the user channel units 11 is connected to connect: 12345. At the same time, the user channel unit 11 executes a second database profile: client.port=12345

1.soht.server= http://172.16.220.116:8085/soht/service 1.soht.server= http://172.16.220.116:8085/soht/service

1.remote.db=DBSAMPL5 1.remote.db=DBSAMPL5

1.remote.address=172.16.220.114 1.remote.address=172.16.220.114

1.remote.port=2455 1.remote.port=2455

1.soht.user=dbmaker 1.soht.user=dbmaker

1.soht.password=1721340470790152451780431761181521391860001551 85142087242084 1.soht.password=1721340470790152451780431761181521391860001551 85142087242084

2.soht.server=http://127.0.0.1:8080/soht/service 2.soht.server=http://127.0.0.1:8080/soht/service

2.remote.db=TESTDB 2.remote.db=TESTDB

2.remote.address=172.16.220.56 2.remote.address=172.16.220.56

2.remote.port=33557 2.remote.port=33557

2.soht.user=dbmaker,以獲知該應用程式端10之連接埠並取得一位址清單110,該位址清單110至少內存有一第一伺服位址1100,諸如172.16.220.116:8085與127.0.0.1:8080,及一第一資料庫位址1101,如172.16.220.114:2455與172.16.220.56:33557。 2.soht.user=dbmaker, to know the connection of the application terminal 10 and obtain an address list 110, the address list 110 at least has a first servo address 1100, such as 172.16.220.116: 8085 and 127.0. 0.1:8080, and a first database address 1101, such as 172.16.220.114: 2455 and 172.16.220.56: 33557.

當該應用程式端10欲連結該資料庫端13時,步驟S11:輸出TCP/IP資料格式之一連結通知100予該用戶通道單元11,使該用戶通道單元11執行:java -Dclouddb .properties=’c:/.../clouddb.properties’-jar cloud-client.jar指令後進入工作狀態。 When the application terminal 10 wants to connect to the database end 13, step S11: output one of the TCP/IP data formats to link the notification 100 to the user channel unit 11, so that the user channel unit 11 executes: java -Dclouddb .properties= The 'c:/.../clouddb.properties'-jar cloud-client.jar command enters the working state.

於步驟S12中,該用戶通道單元11係如圖3所示,接收該連結通知100後透過固定之該連接埠網路連結該應用程式端10,且步驟S13:依該連結通知100查詢該位址清單110而獲知對應之HTTP資料格式之該第一伺服位址1100及該第一資料庫位址1101後,利用該HTTP Tunnel經該防火牆14連結對應該第一伺服位址1100之該通道伺服單元12。 In step S12, the user channel unit 11 is connected to the application terminal 10 through the fixed connection network after receiving the connection notification 100, and step S13: querying the location according to the connection notification 100. After obtaining the first server address 1100 and the first database address 1101 of the corresponding HTTP data format, the address list 110 is used to connect the channel servo corresponding to the first servo address 1100 through the firewall 14 by using the HTTP tunnel. Unit 12.

接著,步驟S14,該用戶通道單元11傳送一資料庫請求1102予該通道伺服單元12,該資料庫請求1102內設有該第一資料庫位址1101。 Next, in step S14, the user channel unit 11 transmits a database request 1102 to the channel server unit 12, and the database request 1102 is provided with the first database address 1101.

於步驟S15中,該通道伺服單元12接收並分析該資料庫請求1102,以將HTTP資料格式之該第一資料庫位址1101轉換成TCP/IP資料格式之一者後,依TCP/IP資料格式之該第一資料庫位址1101連結對應之該資料庫端13。 In step S15, the channel server unit 12 receives and analyzes the database request 1102 to convert the first database address 1101 of the HTTP data format into one of the TCP/IP data formats, according to the TCP/IP data. The first database address 1101 of the format is associated with the database end 13.

完成該應用程式端10與該資料庫端13間的連線後,步驟S16,該用戶通道單元11轉換自該應用程式端10傳送而來的資料,以經該通道伺服單元12傳送予該資料庫端13,或轉換經該通道伺服單元12傳送來的資料庫資料而傳送予該應用程式端10。 After the connection between the application terminal 10 and the database end 13 is completed, in step S16, the user channel unit 11 converts the data transmitted from the application terminal 10 to be transmitted to the data via the channel servo unit 12. The library terminal 13 or the library data transmitted by the channel servo unit 12 is transferred to the application terminal 10.

承上,當該資料庫端13為複數使用型態,且進一步地考量各該資料庫端13具有不同的資料負荷量、網路傳輸速率及運算效能等使用狀態時,該系統1係如圖4所示設有一鏈管伺服單元15。該鏈管伺服單元 15亦利用SOHT技術建立與該用戶通道單元11間之另一HTTP Tunnel,供以突破該防火牆14而彼此連結,如此,該系統1之作動流程將如圖5所示。 In the above, when the database end 13 is in a plural use mode, and further considering that each of the database end 13 has different data load, network transmission rate, and computing performance, the system 1 is as shown in the figure. A chain tube servo unit 15 is provided as shown in FIG. The chain tube servo unit 15 is also used to establish another HTTP tunnel with the user channel unit 11 by using the SOHT technology, so as to break through the firewall 14 and connect to each other. Thus, the operation flow of the system 1 will be as shown in FIG. 5.

於步驟S20中,該應用程式端10預先執行該第一資料庫設定檔而指定供予連結該用戶通道單元11之該連接埠,該用戶通道單元11執行該第二資料庫設定檔而獲知該應用程式端10之連接埠並取得該位址清單110,同時,該鏈管伺服單元15執行一第三資料庫設定檔:1.soht.server=http://172.16.220.116:8085/soht/service In step S20, the application terminal 10 pre-executes the first database profile and specifies the connection port for connecting to the user channel unit 11, and the user channel unit 11 executes the second database profile to learn the link. The interface of the application terminal 10 obtains the address list 110, and the chain servo unit 15 executes a third database configuration file: 1.soht.server=http://172.16.220.116:8085/soht/ Service

1.remote.db=DBSAMPL5 1.remote.db=DBSAMPL5

1.remote.address=172.16.220.114 1.remote.address=172.16.220.114

1.remote.port=2455 1.remote.port=2455

2.soht.server=http://127.0.0.1:8080/soht/service 2.soht.server=http://127.0.0.1:8080/soht/service

2.remote.db=TESTDB 2.remote.db=TESTDB

2.remote.address=172.16.220.56 2.remote.address=172.16.220.56

2.remote.port=33557以取得該位址清單110而記錄該第一伺服位址1100及該第一資料庫位址1101。 2.remote.port=33557 to obtain the address list 110 and record the first servo address 1100 and the first database address 1101.

當該應用程式端10欲連結該資料庫端13時,步驟S21:輸出該連結通知100予該用戶通道單元11,使該用戶通道單元11執行:java -Dclient .port=12345 -jar cloud-client.jar後指令後進入工作狀態。 When the application terminal 10 wants to connect to the database end 13, step S21: output the link notification 100 to the user channel unit 11 to cause the user channel unit 11 to execute: java -Dclient .port=12345 -jar cloud-client After the .jar command, it enters the working state.

步驟S22,該用戶通道單元11係如圖6所示,透過固定之該連接埠網路連結該應用程式端10,並輸出一回報指令1103予該鏈管伺服單元15,使該鏈管伺服單元15進入步驟S23:檢測各該資料庫端13之使用狀態,以計算獲得可提供較佳服務之該資料庫端13後,自該位址清單110截取對應之該第一伺服位址1100及該第一資料庫位址1101而分別形成一第二伺服位址及一第二資料庫位址,並反饋一鏈路資料予該用戶通道單元11,該鏈路資料內含可提供較佳服務之該資料庫端13之裝置名稱、該第二資料庫位址及該第二伺服位址,且該第二資料庫位址及該第二伺服位址為 HTTP資料格式。 Step S22, the user channel unit 11 is connected to the application terminal 10 through the fixed connection network as shown in FIG. 6, and outputs a return command 1103 to the link servo unit 15 to make the link servo unit Step 15: Step S23: Detecting the usage status of each database end 13 to calculate the first server address 1100 and the corresponding first server address 1100 from the address list 110 after calculating the database end 13 for providing a better service. The first database address 1101 forms a second server address and a second database address, respectively, and feeds back a link data to the user channel unit 11, the link data containing a better service. a device name of the database end 13, a second database address, and the second server address, and the second database address and the second server address are HTTP data format.

接著,步驟S24,該用戶通道單元11依該鏈路資料而直接利用該第二伺服位址經該HTTP Tunnel連結對應之該通道伺服單元12。並且,步驟S25,該用戶通道單元11傳送該資料庫請求1102予該通道伺服單元12,該資料庫請求1102依該鏈路資料的接收結果而內設有該第二資料庫位址。於步驟S26中,該通道伺服單元12接收並分析該資料庫請求1102,以將HTTP資料格式之該第二資料庫位址轉換成TCP/IP資料格式之一者後,依該第二資料庫位址連結對應之該資料庫端13。完成該應用程式端10與該資料庫端13間的連線後,步驟S27,該用戶通道單元11轉換自該應用程式端10傳送而來的資料,以經該通道伺服單元12傳送予該資料庫端13,或轉換經該通道伺服單元12傳送來的資料庫資料而傳送予該應用程式端10。 Next, in step S24, the user channel unit 11 directly uses the second servo address to connect the corresponding channel serving unit 12 via the HTTP tunnel according to the link data. Moreover, in step S25, the user channel unit 11 transmits the database request 1102 to the channel server unit 12, and the database request 1102 is provided with the second database address according to the reception result of the link data. In step S26, the channel server unit 12 receives and analyzes the database request 1102 to convert the second database address of the HTTP data format into one of the TCP/IP data formats, according to the second database. The address of the database corresponds to the database end 13. After the connection between the application terminal 10 and the database end 13 is completed, in step S27, the user channel unit 11 converts the data transmitted from the application terminal 10 to be transmitted to the data via the channel servo unit 12. The library terminal 13 or the library data transmitted by the channel servo unit 12 is transferred to the application terminal 10.

於本實施例中,當該資料庫端13並非藏設於該防火牆14後方時,該應用程式端10仍可直接利用原TCP/IP網際鏈路連結對應之該資料庫端13。 In this embodiment, when the database end 13 is not hidden behind the firewall 14, the application terminal 10 can directly connect to the corresponding database end 13 by using the original TCP/IP internet link.

以上所述僅為舉例性之較佳實施例,而非為限制性者。任何未脫離本發明之精神與範疇,而對其進行之等效修改或變更,均應包含於後附之申請專利範圍中。 The above description is only illustrative of preferred embodiments and not limiting. Any equivalent modifications or alterations to the spirit and scope of the invention are intended to be included in the scope of the appended claims.

1‧‧‧系統 1‧‧‧ system

10‧‧‧應用程式端 10‧‧‧Application side

100‧‧‧連結通知 100‧‧‧link notice

11‧‧‧用戶通道單元 11‧‧‧User channel unit

110‧‧‧位址清單 110‧‧‧ address list

1100‧‧‧第一伺服位址 1100‧‧‧First servo address

1101‧‧‧第一資料庫位址 1101‧‧‧First database address

1102‧‧‧資料庫請求 1102‧‧‧Database request

12‧‧‧通道伺服單元 12‧‧‧Channel SERVOPACK

13‧‧‧資料庫端 13‧‧‧Database side

14‧‧‧防火牆 14‧‧‧Firewall

Claims (7)

一種利用透通技術存取雲端資料庫資料之系統,係用於主從式架構中而具有一應用程式端及雲端之至少一資料庫端,供允許該應用程式端無需修改程式碼即能透過網際網路自一防火牆後之該資料庫存取資料,其特徵在於:該應用程式端預先執行一第一資料庫設定檔,且該利用透通技術存取雲端資料庫資料之系統設有一用戶通道單元及至少一通道伺服單元,該用戶通道單元預先執行一第二資料庫設定檔而取得一位址清單並連結該應用程式端,又該位址清單至少內存至少一第一伺服位址及至少一第一資料庫位址;該用戶通道單元接收該應用程式端所輸出之一連結通知時,依該連結通知查詢該位址清單而獲知HTTP資料格式之該第一伺服位址及該第一資料庫位址,並利用一超文件傳輸協定隧道(HTTP Tunnel)穿隧該防火牆連結對應該第一伺服位址之該通道伺服單元,傳送內設該第一資料庫位址之一資料庫請求予該通道伺服單元,使該通道伺服單元分析該資料庫請求而將HTTP資料格式之該第一資料庫位址轉換成TCP/IP資料格式之一者後,依TCP/IP資料格式之該第一資料庫位址連結對應之該資料庫端,藉由穿隧該防火牆以完成該應用程式端與該資料庫端間的連線。 A system for accessing cloud database data by using a transparent technology, which is used in a master-slave architecture and has at least one database end of an application end and a cloud end, so that the application end can be transmitted without modifying the code. The data collection data of the Internet from a firewall is characterized in that: the application side pre-executes a first database configuration file, and the system for accessing the cloud database data by using the transparent technology has a user channel a unit and at least one channel servo unit, the user channel unit pre-executes a second database profile to obtain an address list and link the application end, and the address list at least stores at least a first servo address and at least a first database address; the user channel unit receives the link notification outputted by the application terminal, and queries the address list according to the link notification to learn the first server address of the HTTP data format and the first a database address, and tunneling the firewall to the channel servo corresponding to the first servo address by using a Hyper-Transport Tunnel (HTTP Tunnel) Transmitting a database requesting one of the first database addresses to the channel server unit, so that the channel server unit analyzes the database request to convert the first database address of the HTTP data format into TCP/IP After one of the data formats, the first database address corresponding to the TCP/IP data format is linked to the database end, and the firewall is used to complete the connection between the application end and the database end. . 如申請專利範圍第1項所述之利用透通技術存取雲端資料庫資料之系統,其中該應用程式端支援開放式資料庫連接界面驅動程式。 For example, in the system of claim 1, the system for accessing cloud database data by using the transparent technology, wherein the application end supports an open database connection interface driver. 如申請專利範圍第2項所述之利用透通技術存取雲端資料庫資料之系統,其中該應用程式端係預先執行該第一資料庫設定檔而指定供予連結該用戶通道單元之一連接埠,使該用戶通道單元於接收該連結通知時透過該連接埠網路連結該應用程式端。 The system for accessing the cloud database data by using the transparent technology according to the second aspect of the patent application, wherein the application end pre-executes the first database configuration file and is designated to be connected to one of the user channel units. In other words, the user channel unit connects the application terminal through the connection network when receiving the connection notification. 如申請專利範圍第3項所述之利用透通技術存取雲端資料庫資料之系統,更設有一鏈管伺服單元,且該資料庫端為複數使用型態,該鏈管伺服單元透過該超文件傳輸協定隧道經該防火牆連結該用戶通道單 元;該用戶通道單元接收該連結通知時輸出一回報指令,使該鏈管伺服單元檢測各該資料庫端之使用狀態而反饋HTTP資料格式之一第二伺服位址及一第二資料庫位址,供該用戶通道單元透過該HTTP Tunnel輸出該資料庫請求及該第二資料庫位址予對應該第二伺服位址之該通道伺服單元,該通道伺服單元分析該資料庫請求並將HTTP資料格式之該第二資料庫位址轉換成TCP/IP資料格式之一者後,依該第二資料庫位址連結對應之該資料庫端,完成該應用程式端與該資料庫端間的連線。 For example, the system for accessing the cloud database data by using the transparent technology according to the third aspect of the patent application has a chain tube servo unit, and the database end is in a plural use mode, and the chain tube servo unit transmits the super The file transfer protocol tunnel connects the user channel list through the firewall The user channel unit outputs a return instruction when receiving the link notification, so that the link servo unit detects the usage status of each database end and feeds back one of the HTTP data format and the second data address. And the user channel unit outputs the database request and the second database address to the channel servant corresponding to the second server address through the HTTP tunnel, the channel serving unit analyzes the database request and HTTP After the second database address of the data format is converted into one of the TCP/IP data formats, the corresponding database end is connected according to the second database address, and the application end and the database end are completed. Connected. 如申請專利範圍第4項所述之利用透通技術存取雲端資料庫資料之系統,其中該鏈管伺服單元係預先執行一第三資料庫設定檔,以取得該位址清單而記錄該第一伺服位址及該第一資料庫位址,於該鏈管伺服單元檢測各該資料庫端之使用狀態而獲知可提供最佳服務之該資料庫端時,自該位址清單截取對應之該第一伺服位址及該第一資料庫位址而分別形成該第二伺服位址及該第二資料庫位址,反饋予該用戶通道單元。 The system for accessing cloud database data by using a transparent technology according to claim 4, wherein the link servo unit performs a third database configuration file in advance to obtain the address list and record the first a servo address and the first database address, when the link servo unit detects the usage status of each database end and knows the database end that can provide the best service, intercepts the corresponding address list from the address list The first servo address and the first database address respectively form the second servo address and the second database address, and are fed back to the user channel unit. 如申請專利範圍第5項所述之利用透通技術存取雲端資料庫資料之系統,其中該用戶通道單元及該通道伺服單元係利用SOHT技術建立該超文件傳輸協定隧道。 The system for accessing cloud database data by using a transparent technology according to claim 5, wherein the user channel unit and the channel servo unit establish the hyper file transfer protocol tunnel by using SOHT technology. 如申請專利範圍第1項所述之利用透通技術存取雲端資料庫資料之系統,其中,當該資料庫端非藏設於該防火牆後時,該應用程式端直接透過原TCP/IP連結該資料庫端。 The system for accessing the cloud database data by using the transparent technology according to the first aspect of the patent application, wherein when the database end is not hidden behind the firewall, the application end directly transmits the original TCP/IP link. The database side.
TW102126300A 2013-07-23 2013-07-23 A system that utilizes technology to access cloud database data TWI541678B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102126300A TWI541678B (en) 2013-07-23 2013-07-23 A system that utilizes technology to access cloud database data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102126300A TWI541678B (en) 2013-07-23 2013-07-23 A system that utilizes technology to access cloud database data

Publications (2)

Publication Number Publication Date
TW201504844A TW201504844A (en) 2015-02-01
TWI541678B true TWI541678B (en) 2016-07-11

Family

ID=53018905

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102126300A TWI541678B (en) 2013-07-23 2013-07-23 A system that utilizes technology to access cloud database data

Country Status (1)

Country Link
TW (1) TWI541678B (en)

Also Published As

Publication number Publication date
TW201504844A (en) 2015-02-01

Similar Documents

Publication Publication Date Title
US11909604B2 (en) Automatic provisioning of monitoring for containerized microservices
CN107924411B (en) Method and system for recovering UI state in transaction system
US9557970B2 (en) Integrated development environment for heterogeneous client/server environments
JP7065082B2 (en) Semantic queries against distributed semantic descriptors
US7739230B2 (en) Log location discovery and management
US8504609B2 (en) System and method for facilitating secure integration and communication of cloud services and enterprise applications
US7526482B2 (en) System and method for enabling components on arbitrary networks to communicate
US20150195338A1 (en) File fetch from a remote client device
WO2022262465A1 (en) Opc ua-based centralized user configuration method and system for time sensitive network
US20130132372A1 (en) Systems and methods for dynamic service integration
JP2001216226A (en) Inter-application data transmission/reception system and method threfor, and computer-readable recording medium having program for making computer operate inter-application data transmission/reception method recording thereon
WO2011137788A1 (en) Device management method, middleware, and machine-to-machine communication platform, device and system
CN111416723B (en) Equipment management method and related equipment
US20160063056A1 (en) Generic utilization of on-premise query frameworks by new on-demand applications
WO2019019864A1 (en) Communication system, method and apparatus for embedded self-service terminal
US9148404B2 (en) System for accessing data of cloud database using transparent technology
US12113867B1 (en) Self-configuring adapter
US10992635B2 (en) Establishing connection between different overlay networks using edge application gateway
Jin et al. IoT device management architecture based on proxy
KR102124954B1 (en) IoT PLATFORM SYSTEM FOR SUPPORTING HETEROGENEOUS DATABASE MANAGEMENT SYSTEM SIMULTANEOUSLY AND OPERATING METHOD THEREOF
Gigan et al. Sensor Abstraction Layer: a unique software interface to effectively manage sensor networks
TWI541678B (en) A system that utilizes technology to access cloud database data
WO2021203343A1 (en) Web request processing method and apparatus
TWI540861B (en) Management system and management method
US20060235978A1 (en) System and method for connecting wireless applications to heterogeneous backend servers via a gateway server