Technique for providing a universal query for multiple different databases
First Claim
1. In a computing environment having a plurality of databases and servers, each of said databases being accessible through a server associated therewith, computer readable-code for accessing data from one of the databases, comprising:
- first subprocesses for generating, at a requesting entity, a single database query requesting desired data;
second subprocesses for sending the single database query in its original form over a network;
third subprocesses for permitting at least some of the servers to receive the single database query in its original form;
fourth subprocesses for determining, for each combination of the databases and the server associated therewith which received the single database query, whether the database contains the desired data, wherein each of the servers is associated with a factory class which receives the single database query and determines whether the desired data resides in the database associated with the server with which the factory class is associated; and
for the database found to contain the desired data, if any, fifth subprocesses for retrieving the desired data from the database and sending the desired data as required by the requesting entity.
1 Assignment
0 Petitions
Accused Products
Abstract
A technique for permitting a client in a client/server computing environment to query a plurality of databases for desired data utilizing a single query sent over a network one time. The single query need not be written in the syntax for the target database, but includes the names of the database and table within the database which contains the desired data. The query is sent from the client over the network via a specified socket, and is received by servers connected to the network which are listening to the specified socket. Each server includes code which determines if the desired data is present in a database which is associated therewith. If so, the server code generates an appropriate query for its associated database, retrieves the desired data from the database and forwards the data to the client over the network. If the data is not present in the associated database, the server preferably informs the client that the data is not present in its associated database, and the client makes a record of the responses from the servers.
-
Citations
10 Claims
-
1. In a computing environment having a plurality of databases and servers, each of said databases being accessible through a server associated therewith, computer readable-code for accessing data from one of the databases, comprising:
-
first subprocesses for generating, at a requesting entity, a single database query requesting desired data;
second subprocesses for sending the single database query in its original form over a network;
third subprocesses for permitting at least some of the servers to receive the single database query in its original form;
fourth subprocesses for determining, for each combination of the databases and the server associated therewith which received the single database query, whether the database contains the desired data, wherein each of the servers is associated with a factory class which receives the single database query and determines whether the desired data resides in the database associated with the server with which the factory class is associated; and
for the database found to contain the desired data, if any, fifth subprocesses for retrieving the desired data from the database and sending the desired data as required by the requesting entity. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A system for accessing data in a computer environment comprising non-homogeneous databases utilizing a database query sent once from a client which is seeking data, comprising:
-
a plurality of servers connected via a network;
a plurality of databases, each of said databases associated with one of said servers, wherein at least one of said databases utilizes a query format which is different from the query format of others of said databases;
means associated with a client for generating a first database query requesting desired data and sending the first database query without modification thereof to said servers via the network;
a factory class associated with each of said servers for determining if the database associated with the server includes the desired data, and if so, preparing a second database query which requests the desired data in a form acceptable to the associated database having the desired data; and
means for sending the desired data from the database having the desired data to the client. - View Dependent Claims (8, 9, 10)
-
Specification