Computing systems often organize data into databases, a common type of database called a relational database. In order to simplify the process of performing common sets of data operations on a relational database, such common sets of data operations are organized into a stored procedure. Accordingly, when interfacing with a database, a component can either perform data operations directly on the relational database, but also often has the option of interfacing with the database using one or more stored procedures.
A service is a collection of one or more machines that operate to perform a set of one or more functions for a collection of one or more requestors. Such requestors are often termed “customers” of the service. Customers of the service could be human users (such as when the service is an e-mail service), may be other services or components (such as when the service is a metadata service) or may be a combination thereof (such as when the service is a storage service). In any case, services often relay on an underlying relational database to maintain and track important data that the services uses to provide the set of service functions.
When upgrading the service, there is typically some service downtime. During the service downtime, the relational database is upgraded, and the machines of the service are reconfigured to interact with the upgraded relational database. The service is then made available again. However, during such service downtime, customers often do not have beneficial use of the service.
The subject matter claimed herein is not limited to embodiments that solve any disadvantages or that operate only in environments such as those described above. Rather, this background is only provided to illustrate one exemplary technology area where some embodiments described herein may be practiced.
At least some embodiments described herein relate to the upgrading of a relational database on multiple of machines (e.g., a service) that perform data operations via a set of one or more stored procedures. The upgrade occurs without changing the functionality of the set of one or more stored procedures. Accordingly, even if the machines of the service themselves are not upgraded, the machines can still interface with the database via the set of one or more stored procedures. The upgrade of the relational database occurs by adding new table(s) to the relational database, and also adding new stored procedures to the stored procedure store, the new stored procedures referencing parameters of the new tables.
Since the machines that interface with the relational database can still operate on the upgraded database using the old stored procedures, each machine may then be upgraded in an orderly manner to interface with the new stored procedures. Accordingly, there may always be a set of machines (whether not upgraded, or which have completed upgrade) that may interface with the relational database to thereby support the service. For instance, machines that have not yet been upgraded may interface with the database using the old stored procedures. On the other hand, machines that have been upgraded may interface with the database using the new stored procedures.
Thus, the upgrade may be accomplished with little, and likely no, downtime of the service. This may be particularly advantageous for services that are to be highly available, such as those services relied upon as having low latency, or those functions that are absolutely mission critical and urgent.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
In order to describe the manner in which the above-recited and other advantages and features of the invention can be obtained, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments of the invention and are not therefore to be considered to be limiting of its scope, the invention will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:
At least some embodiments described herein relate to the upgrading of a relational database on multiple of machines (e.g., a service) that perform data operations via a set of one or more stored procedures. The upgrade occurs without changing the functionality of the set of one or more stored procedures. Accordingly, even if the machines of the service themselves are not upgraded, the machines can still interface with the database via the set of one or more stored procedures. The upgrade of the relational database occurs by adding new table(s) to the relational database, and also adding new stored procedures to the stored procedure store, the new stored procedures referencing parameters of the new tables.
Since the machines that interface with the relational database can still operate on the upgraded database using the old stored procedures, each machine may then be upgraded in an orderly manner to interface with the new stored procedures. Accordingly, there may always be a set of machines (whether not upgraded, or which have completed upgrade) that may interface with the relational database to thereby support the service. For instance, machines that have not yet been upgraded may interface with the database using the old stored procedures. On the other hand, machines that have been upgraded may interface with the database using the new stored procedures.
Thus, the upgrade may be accomplished with little, and likely no, downtime of the service. This may be particularly advantageous for services that are to be highly available, such as those services relied upon as having low latency, or those functions that are absolutely mission critical and urgent. Some introductory discussion of a computing system will be described with respect to
Computing systems are now increasingly taking a wide variety of forms. Computing systems may, for example, be handheld devices, appliances, laptop computers, desktop computers, mainframes, distributed computing systems, datacenters, or even devices that have not conventionally been considered a computing system, such as wearables (e.g., glasses). In this description and in the claims, the term “computing system” is defined broadly as including any device or system (or combination thereof) that includes at least one physical and tangible processor, and a physical and tangible memory capable of having thereon computer-executable instructions that may be executed by a processor. The memory may take any form and may depend on the nature and form of the computing system. A computing system may be distributed over a network environment and may include multiple constituent computing systems.
As illustrated in
The computing system 100 also has thereon multiple structures often referred to as an “executable component”. For instance, the memory 104 of the computing system 100 is illustrated as including executable component 106. The term “executable component” is the name for a structure that is well understood to one of ordinary skill in the art in the field of computing as being a structure that can be software, hardware, or a combination thereof. For instance, when implemented in software, one of ordinary skill in the art would understand that the structure of an executable component may include software objects, routines, methods that may be executed on the computing system, whether such an executable component exists in the heap of a computing system, or whether the executable component exists on computer-readable storage media.
In such a case, one of ordinary skill in the art will recognize that the structure of the executable component exists on a computer-readable medium such that, when interpreted by one or more processors of a computing system (e.g., by a processor thread), the computing system is caused to perform a function. Such structure may be computer-readable directly by the processors (as is the case if the executable component were binary). Alternatively, the structure may be structured to be interpretable and/or compiled (whether in a single stage or in multiple stages) so as to generate such binary that is directly interpretable by the processors. Such an understanding of example structures of an executable component is well within the understanding of one of ordinary skill in the art of computing when using the term “executable component”.
The term “executable component” is also well understood by one of ordinary skill as including structures that are implemented exclusively or near-exclusively in hardware, such as within a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or any other specialized circuit. Accordingly, the term “executable component” is a term for a structure that is well understood by those of ordinary skill in the art of computing, whether implemented in software, hardware, or a combination. In this description, the terms “component”, “service”, “engine”, “module”, “virtual machine” or the like may also be used. As used in this description and in the case, these terms (whether expressed with or without a modifying clause) are also intended to be synonymous with the term “executable component”, and thus also have a structure that is well understood by those of ordinary skill in the art of computing.
In the description that follows, embodiments are described with reference to acts that are performed by one or more computing systems. If such acts are implemented in software, one or more processors (of the associated computing system that performs the act) direct the operation of the computing system in response to having executed computer-executable instructions that constitute an executable component. For example, such computer-executable instructions may be embodied on one or more computer-readable media that form a computer program product. An example of such an operation involves the manipulation of data.
The computer-executable instructions (and the manipulated data) may be stored in the memory 104 of the computing system 100. Computing system 100 may also contain communication channels 108 that allow the computing system 100 to communicate with other computing systems over, for example, network 110.
While not all computing systems require a user interface, in some embodiments, the computing system 100 includes a user interface 112 for use in interfacing with a user. The user interface 112 may include output mechanisms 112A as well as input mechanisms 112B. The principles described herein are not limited to the precise output mechanisms 112A or input mechanisms 112B as such will depend on the nature of the device. However, output mechanisms 112A might include, for instance, speakers, displays, tactile output, holograms and so forth. Examples of input mechanisms 112B might include, for instance, microphones, touchscreens, holograms, cameras, keyboards, mouse of other pointer input, sensors of any type, and so forth.
Embodiments described herein may comprise or utilize a special purpose or general-purpose computing system including computer hardware, such as, for example, one or more processors and system memory, as discussed in greater detail below. Embodiments described herein also include physical and other computer-readable media for carrying or storing computer-executable instructions and/or data structures. Such computer-readable media can be any available media that can be accessed by a general purpose or special purpose computing system. Computer-readable media that store computer-executable instructions are physical storage media. Computer-readable media that carry computer-executable instructions are transmission media. Thus, by way of example, and not limitation, embodiments of the invention can comprise at least two distinctly different kinds of computer-readable media: storage media and transmission media.
Computer-readable storage media includes RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other physical and tangible storage medium which can be used to store desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computing system.
A “network” is defined as one or more data links that enable the transport of electronic data between computing systems and/or modules and/or other electronic devices. When information is transferred or provided over a network or another communications connection (either hardwired, wireless, or a combination of hardwired or wireless) to a computing system, the computing system properly views the connection as a transmission medium. Transmissions media can include a network and/or data links which can be used to carry desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computing system. Combinations of the above should also be included within the scope of computer-readable media.
Further, upon reaching various computing system components, program code means in the form of computer-executable instructions or data structures can be transferred automatically from transmission media to storage media (or vice versa). For example, computer-executable instructions or data structures received over a network or data link can be buffered in RAM within a network interface module (e.g., a “NIC”), and then eventually transferred to computing system RAM and/or to less volatile storage media at a computing system. Thus, it should be understood that storage media can be included in computing system components that also (or even primarily) utilize transmission media.
Computer-executable instructions comprise, for example, instructions and data which, when executed at a processor, cause a general purpose computing system, special purpose computing system, or special purpose processing device to perform a certain function or group of functions. Alternatively or in addition, the computer-executable instructions may configure the computing system to perform a certain function or group of functions. The computer executable instructions may be, for example, binaries or even instructions that undergo some translation (such as compilation) before direct execution by the processors, such as intermediate format instructions such as assembly language, or even source code.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the described features or acts described above. Rather, the described features and acts are disclosed as example forms of implementing the claims.
Those skilled in the art will appreciate that the invention may be practiced in network computing environments with many types of computing system configurations, including, personal computers, desktop computers, laptop computers, message processors, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile telephones, PDAs, pagers, routers, switches, datacenters, wearables (such as glasses) and the like. The invention may also be practiced in distributed system environments where local and remote computing systems, which are linked (either by hardwired data links, wireless data links, or by a combination of hardwired and wireless data links) through a network, both perform tasks. In a distributed system environment, program modules may be located in both local and remote memory storage devices.
Those skilled in the art will also appreciate that the invention may be practiced in a cloud computing environment. Cloud computing environments may be distributed, although this is not required. When distributed, cloud computing environments may be distributed internationally within an organization and/or have components possessed across multiple organizations. In this description and the following claims, “cloud computing” is defined as a model for enabling on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services). The definition of “cloud computing” is not limited to any of the other numerous advantages that can be obtained from such a model when properly deployed.
The service 201 is supported by data, at least a portion of which being included within tables 230 of a relational database 203. The relational database 203 is illustrated as including three tables 231, 232 and 233. However, this is by way of example only. A relational database may include any number of tables as represented by ellipses 239.
The service 201 uses the stored procedures 220 stored within a stored procedure store 202 in order to perform data operations on tables 230 within the relational database 203. For instance, the stored procedures includes two stored procedures 221 and 222, though the ellipses 229 represent that there may be any number of stored procedures through which the service 201 operates to perform data operations on the tables 230 of the relational database 202. The stored procedures 220 reference the tables upon which they operate. For instance, stored procedure 221 performs data operations on tables 231 and 232 as represented by arrows 241 and 242A, and thus the stored procedure 221 includes appropriate references to tables 231 and 232. On the other hand, stored procedure 222 performs data operations on tables 232 and 233 as represented by arrows 242B and 243, and thus the stored procedure 222 includes appropriate references to tables 232 and 233.
The architecture 200 also includes a service upgrade component 250 that manages upgrades of the service without service downtime. In other words, the service upgrade component 250 upgrades the service while allowing machines 210 of the service 201 to continue to performing data operations on the relational database 203 using the stored procedures 221 and 222. The service upgrade component 250 does not change the stored procedures 221 and 222. Accordingly, the references to the tables (references 241, 242A, 242B and 243) remain unchanged. Preferably, none of the parameters of the stored procedures 221 and 222 are changed during the upgrade process.
Throughout the upgrade process, the tables 231, 232 and 233 remain unchanged, and the stored procedures 221 and 222 also remain. Accordingly, any of the machines 210 of the service may continue to use the relational database 203 so long as they operate via the stored procedures 221 and 222, thereby ensuring that whatever else is happening to the relational database 203, the tables 231 through 233 remain consistent, thereby ensuring a consistent response from the relational database 201 the same as though no upgrade was happening at all. In some embodiments, any machine 210 of the service always operates via one or more stored procedures 220 when performing operations on the relational database. In that case, the machines 210 act the same as if no upgrade was happening at all since there are no direct queries to the database.
First, the service upgrade component adds a new set of one or more tables to the relational database (act 301). For instance,
Also, new stored procedures are added to the stored procedures store (act 302). For instance, comparing
The new stored procedures 223 and 224 operate on only the new tables 234 through 236. This has an advantage in that once the service is entirely upgraded, if the new tables 234 through 236 are replacements of the old tables 231 through 233, then the old tables may be removed. However, this manner of upgrading is not required. In some embodiments, the new stored procedures 223 and 224 may include references to the old tables. For instance, as shown by dashed line 247, the new stored procedure 224 might have a reference 247 to an old table 233.
Although the adding of the new stored procedures (of
For instance, in the subsequent state 400C of
At this point, potential relational database cleanup may occur (act 304). Such cleanup is optional, but may involve removal of tables that are no longer in use. For instance, in
However, the principles described herein may also support versioning. For instance, the state of
Accordingly, the principles described herein provide an efficient mechanism for upgrading a service that relies on an underlying relational database, without stopping the service. Thus, seamless service upgrade is achieved, while the service itself remains highly available. This may be particularly advantageous for services that are to be highly available, such as those services relied upon as having low latency, or those functions that are absolutely mission critical and urgent.
The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.
Number | Name | Date | Kind |
---|---|---|---|
7155426 | Al-Azzawe | Dec 2006 | B2 |
7310634 | Zwiegincew et al. | Dec 2007 | B2 |
7523142 | Driesen et al. | Apr 2009 | B2 |
8315972 | Chkodrov | Nov 2012 | B2 |
8326800 | Cunningham et al. | Dec 2012 | B2 |
8417737 | Hopmann et al. | Apr 2013 | B2 |
8521706 | Alpern et al. | Aug 2013 | B2 |
20050257216 | Cornell et al. | Nov 2005 | A1 |
20110016461 | Bankston et al. | Jan 2011 | A1 |
20110246419 | Yancey et al. | Oct 2011 | A1 |
20120084319 | Bansode et al. | Apr 2012 | A1 |
20120101983 | Hopmann et al. | Apr 2012 | A1 |
20140143284 | McCaffrey | May 2014 | A1 |
20140208303 | Asayag et al. | Jul 2014 | A1 |
20150007159 | Gebhard et al. | Jan 2015 | A1 |
20150161182 | Baeuerle et al. | Jun 2015 | A1 |
20160085777 | Engelko | Mar 2016 | A1 |
Number | Date | Country |
---|---|---|
1091305 | Apr 2001 | EP |
1999008206 | Feb 1999 | WO |
Entry |
---|
International Search Report and the Written Opinion issued in PCT Patent Application No. PCT/US2017/013617 dated Apr. 20, 2017. |
“Zero Downtime Database Upgrade Using Oracle GoldenGate”, In White Paper of Oracle, Aug. 2015, 19 pages. |
Number | Date | Country | |
---|---|---|---|
20170212947 A1 | Jul 2017 | US |