|Publication number||US20050154695 A1|
|Application number||US 10/754,355|
|Publication date||Jul 14, 2005|
|Filing date||Jan 9, 2004|
|Priority date||Jan 9, 2004|
|Also published as||US8738663|
|Publication number||10754355, 754355, US 2005/0154695 A1, US 2005/154695 A1, US 20050154695 A1, US 20050154695A1, US 2005154695 A1, US 2005154695A1, US-A1-20050154695, US-A1-2005154695, US2005/0154695A1, US2005/154695A1, US20050154695 A1, US20050154695A1, US2005154695 A1, US2005154695A1|
|Inventors||Zandro Gonzalez, Xiaoge Zhang|
|Original Assignee||Oracle International Corporation|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (7), Non-Patent Citations (2), Referenced by (63), Classifications (5), Legal Events (2)|
|External Links: USPTO, USPTO Assignment, Espacenet|
Manual use of computer systems to prepare a software product for release to customers is well known in the art. Typically, each version of a software product is associated with a version number at the time of release that uniquely identifies the version as compared to a previous version. At a customer site, when replacing an old version of database with a new version, it is necessary to first export data that is currently contained in the old database, and then replace the database, and then import the data into the new database. Such data export and import is normally performed by use of scripts (a pre-programmed set of database instructions).
A script for export of data from a database may contain instructions to read the data currently held in several rows of a table in the old database. In addition to export of data, when versioning a database (replacing one version with another) it is also necessary to define the structure of each table in the old database so that an identical table can be recreated in the new database, before importing data into the new database. For example, the number of columns and the attributes of each column (such as length and scale), and the order in which the columns are present in a table define the structure of the table. Such information is called metadata, and may also contain the relationship of a column in the table to another column in the same table or in another table (such as a foreign key relationship).
Prior art which teaches deriving metadata from structures of objects within a database, for the purposes of creating a repository of information describing the database, includes U.S. Pat. No. 4,805,099 granted Val J. Huber. This patent is incorporated by reference herein in its entirety. Once metadata is prepared for any customer site, it can be used as often as necessary, during any number of versioning acts, as long as the database versions are compatible with one another. Any incompatibility between database versions can be resolved by a database manager manually changing the metadata for an existing database, e.g. to make the metadata work with a new version of the database.
U.S. Pat. No. 6,366,917 entitled “Method of modifying a populated database structure by modifying metadata describing the database structure” granted to St. John Herbert, III on Apr. 2, 2002 is incorporated by reference herein in its entirety. This patent describes modifying a database structure by first modifying metadata that describes the relevant database structure (e.g. by modifying a description of a database object characteristic in a metadata object). Thereafter, the relevant database structure is automatically modified to conform to the modified metadata. Everyone is requested to review this patent thoroughly, although one example is described next.
In an example described at column 7, lines 32-47 of U.S. Pat. No. 6,366,917, a database manager changes the format of all estimated delivery date columns within the database, by altering the type specification in a single “COLUMNS” object to reflect the long date format. On doing so, all records within a “TABLE_COLUMNS” object that specify the estimated date column, and that are accordingly dependent on the COLUMNS object include this updated information by reason of their dependencies. Then, objects are generated and/or updated in the database automatically, to reflect the modification. Similarly, a database manager could alter the length of the long date format from eight to nine characters in the metadata, and this change is propagated to all relevant objects within the database by reason of dependencies that exist within the metadata database.
A tool for creation and management of metadata is Oracle Warehouse Builder (OWB). OWB is an enterprise integration design tool that manages the full life cycle of metadata for the Oracle9i database. As such, the OWB tool has capabilities to deal with changes in the entire environment at a customer site, to allow effective maintenance of both metadata and data. OWB uses a language called OMB (Oracle MetaBase) to manipulate the metadata in an efficient way. OMB has a graphical user interface. Each of the following two documents is also incorporated by reference herein in its entirety. The first document is entitled “Oracle 9i XML Sample: Metadata Sample with the Oracle9i Metadata API” available on the internet at otn-oracle-com/tech/xml/xdk_sample/metadatasample.html. The second document is entitled “Oracle XML DB, An Oracle Technical White Paper” published January 2003, also incorporated by reference. This document is available on the Internet at otn-oracle-com/tech/xml/xmldb/pdf/XMLDB_Technical_Whitepaper.pdf.
An article entitled “Enhancing Productivity with Oracle9i Warehouse Builder Scripting,” published February 2003 describes, at pages 12-13 an example script to update all tables in a database with a set of columns for the creation date. Instead of using the graphical user interface and touching all tables, the article describes how to run a script. This article is also incorporated by reference herein in its entirety. Metadata definitions can also be changed during conversion of data from a database into XML by use of XSLT. For example, XSLT may be used to convert the metadata into a tree structure (based on DOM API), followed by application of template rules to transform the initial tree into a modified tree, followed by conversion of the modified tree into metadata. Presence of the just-described two trees in memory at the same time can be a significant burden, depending on the size of the tree. XSLT is described in Chapter 7 entitled “Transforming XML with XSLT” in a book by Steve Muench entitled “Building Oracle XML Applications” published September 2000, by O'Reilly, which is incorporated by reference herein in its entirety and is available on the Internet at www-oreilly-com/catalog/orxmlapp/chapter/ch07.html.
A method in accordance with the invention automatically reads each object in a metadata (wherein the metadata is descriptive of a database), and automatically applies a number of rules, to check if the object triggers a rule. If so, then the method automatically changes the metadata by performing an action identified by the triggered rule. After all rules are checked against the object, another object in the metadata is processed. Note that in several embodiments, it is not necessary for more than one object of the metadata to be in memory at any time. After all objects in the metadata are processed, the resulting metadata (which has been changed by performance of one or more actions) can be used to change the database.
In some embodiments, objects in the metadata are read in a particular order that is specified in additional data which is called “meta-metadata.” The meta-metadata is a higher level of abstraction than the metadata (which is a model of the data itself). For example, if the metadata indicates that a table T1 has two columns C1 and C2 and a foreign key FK, then the meta-metadata describes an object of type “table” and that it owns an object of type “column” and another object of type “foreign key.” The meta-metadata identifies a top down hierarchy in this example, and therefore a table object is read (from the metadata) before reading of its column objects (also from the metadata).
Also, in several embodiments, a computer is programmed to act as a state machine to transform one version of a database to another version. Specifically, in a first operation, the state machine uses meta-metadata to read and change metadata as noted above. Thereafter, in a second operation, the state machine uses the changed metadata to change the database itself, e.g. by generating a database having a new structure or by changing an existing structure of the database. The state machine repeats these two operations as often as necessary, so as to transition the database from an older version to the most current version. With the state machine's use of meta-metadata, the versioning of a database becomes a data-driven activity, thereby to minimize or even eliminate in some cases one or more transformations and business logic changes that are otherwise required to be manually made by a programmer.
In some embodiments, the computer is programmed to perform the above-described second operation by (1) externalizing the data of an old version of the database into a file, (2) creating a new version of the database using the changed metadata, and (3) internalizing the data from the file into the new version of the database. In certain embodiments, when performing the second operation, the computer may temporarily store the data from an old version of the database into a memory location, create a new version of the database using the changed metadata, and restore the data from the memory location into the new version of the database. In such embodiments, the computer may be programmed to repeatedly use the temporary memory location for each of several smaller portions of the database, instead of processing the entire data of a database as a whole. In certain other embodiments, instead of operating on data in a database, the computer may read the data from and write the data to files. The computer may also read the data from one type of resource and write to another type of resource (e.g. file to database or database to file).
A computer 100 (
The changed metadata 155 is thereafter used by additional software (called “database upgrader”) 130 to change the content of data stored in database 151, e.g. to create a changed database 157 in database management system 150 that also contains the original database 151. Although predetermined rules 110, metadata transformer 120, database upgrader 130, database management system 150 (which contains database 151) are all illustrated in
Moreover, although only output format is mentioned above, i.e. saving in database management system 150, other output formats, such as a file format, can also be used. For example, metadata transformer 120 may save the changed metadata 155 in a file system (shown as metadata 190). Alternatively, metadata transformer 120 may simply overwrite the original metadata 152 with the changes (as shown by dashed line 191). Also, database upgrader 130 may overwrite original database 151 with the changes (as shown by dashed line 192), instead of creating a new database 157. Some embodiments of metadata transformer 120 support each of the just-described output options for either or both of metadata and database, and the user may select any one or more of them depending on their need. Moreover, in some embodiments, metadata transformer 120 reads the metadata from a file system, as illustrated by metadata 102 in
In order to transform metadata 152 that is descriptive of the structure of database 151, metadata transformer 120 (
As seen from the illustrations in
Many embodiments in accordance with the invention traverse the above-described tree structure inherent in the metadata in a top down fashion. In some embodiments, depth-first traversal is used (e.g. in the embodiment illustrated in
Metadata transformer 120 of several embodiments includes two components, namely a metadata reader 126 (
In some embodiments, metadata reader 126 traverses a tree of objects in metadata 152 in a top down breadth first manner. In an example that is illustrated in
Note that the illustration in
In several embodiments, metadata reader 126 visits all children of an object, and then for each child it then visits all grandchildren that belong to the child, and so on. In the above-described example, metadata reader 126 visits all objects that are of the type “table” (e.g. T1 and T2 in
In some embodiments, metadata reader 126 automatically selects each of the objects from metadata 152 in the above-described order, by use of parent-child relationships described in meta-metadata 153 (e.g. see
Moreover, meta-metadata 153 also contains one object for each type of child of each of the just-described types of objects. For example, the table type object has at least three different types of children namely: a unique-key type object UK, a column type object COL, and a foreign-key type object FK. Similarly, the view type object has at least two different types of children namely: a column type object COL, and an expression type object EXP. Furthermore, the map type object has three different types of children: a source type object SRC, a target type object TGT, and a transformation type object XFRM. Finally, the sequence type object has at least one type of child: the column type object COL.
When viewed as a whole, meta-metadata 153 has several objects that are of the same type (e.g. there are three column type objects COL), although any given object (e.g. the table type node) has only one column type node. Note that meta-metadata 153 may identify other relationships, in addition to parent-child relationships, such as an inter-component relationship (e.g. between foreign key type and unique key type), and an intra-component relationship (e.g. between foreign key type and column type). Meta-metadata 153 also identifies one or more attributes of one or more nodes, e.g. a column type object may have datatype and length attributes and an expression type object may have operand and operator attributes. In some embodiments, meta-metadata 153 is generated by use of a tool that provides API access to the metadata 152 (such as Rational Rose available from IBM or JDeveloper available from Oracle) which is prepared from UML instructions. Note that in some embodiments a UML model of a user's application is prepared during the design of database 151 (
Note that metadata reader 126 of some embodiments does not use cross-component and intra-component information during tree traversal of the type described herein, but such information is used for transformations that work on such associations. The nature of the rules determines what information is maintained in metadata 152 and meta-metadata 153 in any particular embodiment. As a general practice, having all aspects of the meta-metadata (such as the just-described cross-component and intra-component information) enables the embodiment to be more generic (and useful for all kinds of rules).
In some embodiments, metadata reader 126 uses two stacks for processing objects from each of meta-metadata 153 and metadata 152, as illustrated in
Therefore, in several embodiments, meta-metadata 153 informs metadata reader 126 how to load the objects in the metadata 152. For example, for a table that is located on top of instance stack 128, meta-metadata 153 tells metadata reader 126 that metadata 152 contains columns, and foreign keys and unique keys. Then metadata reader 126 retrieves from metadata 152 all the columns for the table that is currently on top of the instance stack, and then all the foreign keys for this table, and then all unique keys for this table. Each retrieved object in turn is pushed on instance stack 128, so that it may in turn be used to retrieve all its children. Therefore, in the just-described operation, all columns, all foreign keys and all unique keys for this table are pushed onto the instance stack.
As an example, if a project is called “P” then meta-metadata 153 tells metadata reader 126 there are the following types of children: table, view, map and sequence. So metadata reader 126 loads all table objects where the parent is “P” and the table objects can be any number (T1, T2 etc). These tables T1 and T2 are the client tables (such as tables of a law office). Next, metadata reader 126 loads from meta-metadata 153 all the children types for the table type: column type, unique-key type and foreign-key type. Then metadata reader 126 pushes all these children types onto the type stack. Next, metadata reader 126 loads from metadata 152 all the columns where the parent is table T1. So it loads C11 and C12 columns which belong to table T1. Next, in this example, metadata reader 126 pops the column type from the type stack, and finds that the top of the type stack now has the foreign-key type. Therefore, metadata reader 126 next loads from metadata 152 all foreign keys where the parent is table T1, and so on.
As noted above, several embodiments of the metadata reader 126 use not only the top of the type stack and the instance stack, but also see how deep the traversal is currently at relative to the tree being traversed (i.e. which level). Depending on where the traversal is, the type level and the instance level can be different. When the type level is equal to the instance level, then metadata reader 126 gets all the child types. If there is no child type, then metadata reader 126 pops the instances from the instance stack. If it does have children, then metadata reader 126 gets the children and pushes all the children on the type stack. If the type level is greater than the instance level (and this relation can never be less) then metadata reader 126 processes the aggregate association (which is a grand child relationship). Metadata reader 126 gets the aggregate association and if it exists, then it pushes the element of the instance stack. If the current instance has children, then metadata reader 126 gets all the instances of that specific child and pushes them on the instance stack.
In the above described example, when each object (e.g. table T1 or column C11) is retrieved from metadata 152 by metadata reader 126, at that same time the necessary transformation is performed by rule engine 127 on the retrieved object. So when table T1 is loaded, the rule engines 127 is invoked by metadata reader 126, and rules engine 127 then uses rules 110 (
Specifically, the method illustrated in
Some embodiments optimize the above-described algorithm by componentizing the objects of the metadata repository 152. For example, if a metadata type “table” owns the metadata types “column”, “foreign keys” and “unique keys”, then the processing of children nodes (illustrated by act 242 in
As noted above, in addition to metadata reader 126, a metadata transformer 120 of some embodiments also includes a rules engine 127 that applies a number of predetermined rules 110 to each metadata object supplied thereto. The rules are stored in a predetermined format which identifies at least two fields, namely a keyword field and an action field. The keyword field is used by rules engine 127 to decide whether or not a metadata object J that is under evaluation triggers the rule. For example, if the keyword field has the value “T1” then the rule is triggered when processing table object “T1” (which is shown as the child of root object “P” in
When any rule is triggered, rules engine 127 uses the action field to invoke a specified function which then performs the necessary action(s). In the example illustrated in
In some embodiments, rules engine 127 performs actions 311 and 313-320 that are illustrated in
Note that in several embodiments, rule checking performed by rules engine 127 is optimized by performing all the keyword checks in a single step regardless of the priority and the kind of the rule. Thereafter, all matching rules are sorted by kind and then by priority. Next, the respective actions of the matching rules are performed (in the sorted order), one at a time until finished. Note that in many embodiments, if no rule is triggered, then nothing is done, e.g. if the metadata is being changed (i.e. overwritten) rather than making a new copy for the changed metadata. If a new copy for changed metadata is being made, then the metadata object that was checked (for keyword match) is written to the changed metadata.
As noted above, since only one object (e.g. one record of the database) is processed at any time, only one object needs to be in memory at any given time. This is in contrast to prior art XSLT which requires two trees (of the metadata) to be in memory for performing transformations on the metadata. Use of a metadata transformer 120 of the type described above considerably simplifies the import/export and upgrade of data and metadata by a database upgrader 130 across multiple releases of any hierarchical repository/file-based development tool or application. In some embodiments, database upgrader 130 performs the acts illustrated in
If so, then database upgrader 130 performs operation 403 as follows. Database upgrader 130 loads the rules 110 (
Next, in act 404 and operation 405, database upgrader 130 performs the same actions as those described above for act 402 and operation 403, except that the database versions are the next successive versions, e.g. version B is checked in act 404 and rules for version B to next version C are loaded in operation 405. Once the resulting database is at version C, the process is repeated again, as often as necessary, e.g. through act 406 and operation 407, and through act 408 and operation 409 until the database reaches the most currently supported version. Thereafter, in act 401, database upgrader 130 checks if there is another database that needs to be upgraded and if so returns to act 401 (described above).
In this manner, the upgrade of one or more databases through a successive series of versions is automatically performed by several embodiments in accordance with the invention. The rules for transformation from each version to the next version are set up only once to identify the differences between the versions (e.g. a database vendor may decide to change a column's precision from 8 to 16), and thereafter the entire process proceeds automatically by use of database upgrader 130 and metadata transformer 120. For this reason, in many embodiments, a user can simply run their client for the next release of a database without having to write any code, when a metadata transformer 120 is used to traverse and change the metadata, regardless of complexity of business logic and complexity of the metadata.
In some embodiments, the above-described framework (which includes a metadata transformer 120 and a database upgrader 130 of
In some embodiments, a common interface is provided for a database management system and a file system, by the following functions. One function gets the type of reader this is (can be database or file) and may be named e.g. getSourceType( ). Another function opens the source, which is a file open for files or a database connection for a schema, and may be named e.g. openSource(String source,String charSet). Yet another function closes the source, which is a file close for files or a database disconnection for a schema, and the function may be named, e.g. closeSource( ). Still another function gets the source name, which is the file name for file and the schema name for the database, and such a function may be named, e.g. getSourceName( ). One more function gets the next object in the tree traversal, and may be named, e.g. getNextObject( ). Note that functions openSource, closeSource and getNextObject throw exceptions as and when necessary.
Also, in some embodiments, the actions are specified as a JAVA class—which is located in a library that gets linked and that gets used during operation of metadata transformer 120. Such actions may change one or more attributes of an object in metadata 152, e.g. change a column's precision from 8 to 16 if necessary to transition from one database version to another. Furthermore, in some embodiments, such actions that are performed in response to a rule being triggered can transform a number of objects that are linked together to form a sub-tree, instead of transforming only one object. For example, if an organization of the sub-tree is being changed (such as cross-component relationship), then such actions are used to process multiple objects. Also, an application such as Oracle's Warehouse Builder may be used to initially support a simple metadata representation of metadata. In a later release, Oracle's Warehouse Builder may be upgraded to support very complex dimensional metadata, and thus older versions need to be transformed into this newer version. The older simple dimensional structure can be transformed by having to handle full or partial tree rearrangements, depending on how complex the transformations are. Certain transformations may need to cache some information about it and if it gets really complex, it could go to a worst case of acting like XSLT. In practice, this is rare because full caching is not done.
Also, in several embodiments, the database is implemented in Oracle version 9.0.4 and many of the instructions that are generated by metadata transformer 120 for reading/writing metadata and/or meta-metadata are expressed in SQL. Moreover, in some embodiments, rules engine 127 contains a hash table, with a key which is the keyword, and a field separator. The keyword and the priority together form the key in several embodiments. In some embodiment, rules engine 127 uses a method described in an article by Charles L. Forgy entitled “Rete: A Fast Algorithm for the Many Pattern/Many Object Pattern Match Problem” published in Artificial Intelligence 19 (1982) 17-37, that is incorporated by reference herein in its entirety.
One embodiment of the type describe herein uses a mediator to access the database management system, and each entity (such as metadata reader 126 and rules engine 127 talks to the mediator before accessing the database). When a record is read, it is stored in the mediator, and the he data in the mediator is always kept current (like a cache). However, the mediator contains only one record. Its primary purpose is to insulate each entity that accesses the database management system from changes that are made within the other entity. Therefore, as long as the mediator remains the same, each of metadata reader 126 and rules engine 127 can be changed as often as necessary, without affecting the other.
Computer 100 of
Computer system 500 may be coupled via bus 502 to a display 512, such as a cathode ray tube (CRT), for displaying information to a computer user. An input device 514, including alphanumeric and other keys, is coupled to bus 502 for communicating information and command selections to processor 504. Another type of user input device is cursor control 516, such as a mouse, a trackball, or cursor direction keys for communicating direction information and command selections to processor 504 and for controlling cursor movement on display 512. This input device typically has two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y), that allows the device to specify positions in a plane.
As described elsewhere herein, versioning is provided by computer system 500 in response to processor 504 executing one or more sequences of one or more instructions contained in main memory 506. Such instructions may be read into main memory 506 from another computer-readable medium, such as storage device 510. Execution of the sequences of instructions contained in main memory 506 causes processor 504 to perform the process steps described herein. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions to implement the invention. Thus, embodiments of the invention are not limited to any specific combination of hardware circuitry and software.
The term “computer-readable medium” as used herein refers to any medium that participates in providing instructions to processor 504 for execution. Such a medium may take many forms, including but not limited to, non-volatile media, volatile media, and transmission media. Non-volatile media includes, for example, optical or magnetic disks, such as storage device 510. Volatile media includes dynamic memory, such as main memory 506. Transmission media includes coaxial cables, copper wire and fiber optics, including the wires that comprise bus 502. Transmission media can also take the form of acoustic or light waves, such as those generated during radio-wave and infra-red data communications.
Common forms of computer-readable media include, for example, a floppy disk, a flexible disk, hard disk, magnetic tape, or any other magnetic medium, a CD-ROM, any other optical medium, punchcards, papertape, any other physical medium with patterns of holes, a RAM, a PROM, and EPROM, a FLASH-EPROM, any other memory chip or cartridge, a carrier wave as described hereinafter, or any other medium from which a computer can read.
Various forms of computer readable media may be involved in carrying one or more sequences of one or more instructions to processor 504 for execution. For example, the instructions may initially be carried on a magnetic disk of a remote computer. The remote computer can load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to computer system 500 can receive the data on the telephone line and use an infra-red transmitter to convert the data to an infra-red signal. An infra-red detector can receive the data carried in the infra-red signal and appropriate circuitry can place the data on bus 502. Bus 502 carries the data to main memory 506, from which processor 504 retrieves and executes the instructions. The instructions received by main memory 506 may optionally be stored on storage device 510 either before or after execution by processor 504.
Computer system 500 also includes a communication interface 518 coupled to bus 502. Communication interface 518 provides a two-way data communication coupling to a network link 520 that is connected to a local network 522. Local network 522 may interconnect multiple computers (as described above). For example, communication interface 518 may be an integrated services digital network (ISDN) card or a modem to provide a data communication connection to a corresponding type of telephone line. As another example, communication interface 518 may be a local area network (LAN) card to provide a data communication connection to a compatible LAN. Wireless links may also be implemented. In any such implementation, communication interface 518 sends and receives electrical, electromagnetic or optical signals that carry digital data streams representing various types of information.
Network link 520 typically provides data communication through one or more networks to other data devices. For example, network link 520 may provide a connection through local network 522 to a host computer 524 or to data equipment operated by an Internet Service Provider (ISP) 526. ISP 526 in turn provides data communication services through the world wide packet data communication network now commonly referred to as the “Internet” 528. Local network 522 and Internet 528 both use electrical, electromagnetic or optical signals that carry digital data streams. The signals through the various networks and the signals on network link 520 and through communication interface 518, which carry the digital data to and from computer system 500, are exemplary forms of carrier waves transporting the information.
Computer system 500 can send messages and receive data, including program code, through the network(s), network link 520 and communication interface 518. In the Internet example, a server 530 might transmit a requested code for an application program through Internet 528, ISP 526, local network 522 and communication interface 518. In accordance with the invention, one such downloaded application provides for implementing fine grain versioning within software configuration management systems as described herein.
The received code may be executed by processor 504 as it is received, and/or stored in storage device 510, or other non-volatile storage for later execution. In this manner, computer system 500 may obtain application code in the form of a carrier wave.
Numerous such modifications and adaptations of the embodiments described herein will be apparent to the skilled artisan in view of the disclosure. Accordingly numerous such modifications and adaptations are encompassed by the attached claims.
At the end of this description before the claims is a listing of pseudo-code for a method illustrated in
In this method, after initial set up (in act 210 described in the first four lines of pseudo code below), act 211 is performed to check if the typeLevel is equal to the instanceLevel (i.e. check how deep the traversal is currently relative to one another, in the type tree and in the instance tree). If they are at the same level, then a decision box 212 is entered to check if the “Done” variable of the stack being processed is equal to START. Note that currently the stack being processed is the instance stack, and hence instanceDone is checked. In act 212, if the answer is no, then a node is popped from the instance stack (as per act 231). Then, a termination condition is checked (e.g. in act 232, the instance stack is checked for being empty in which case the popped node is returned in act 233). If the termination condition is not satisfied, then act 217 is performed to check if the level of the top of the current stack (instance stack) is less than the level of the other stack (type stack). If not, then a return is executed (in act 219), else the top of the other stack (type stack) is set to END and then return is executed (as per acts 218 and 219).
In act 212, if the answer is yes, then an act 213 is performed wherein all the children nodes of the current node are obtained. Next, a decision box 214 is entered to check if the number of children (that were just obtained in act 213) is greater than zero, and if so the children are pushed onto the other stack (type stack) in act 221 and return is executed (per act 219). If the answer in box 214 is no, then act 215 is performed wherein a node is popped from the current stack (instance stack), and then a decision box 217 is entered (described above).
In act 211 if the answer is no, then act 241 (
Acts performed on the type stack and on the instance stack are similar or identical in most respects. For example, except for the difference in the stack being operated upon, node processing performed in acts 214, 215, 217, 218, 219 and 221 is identical to node processing performed in acts 243, 244, 245, 246, 249 and 247. Note that one difference in acts 219 and 249 is that in act 249 the value NULL is returned during node processing of typestack, instead of a node which is returned in act 219. Another difference in processing of the two stacks is in the absence of termination condition acts 232 and 233 during processing of the type stack. In all other respects the two stacks are processed in an identical manner. The symmetry in control flow of the processing of the two stacks is illustrated in
typeLevel:= Top(typeStack).level( )
instanceLevel:= Top(instanceStack).level( )
typeDone:= Top(typeStack).isDone( )
instanceDone:= Top(instanceStack).isDone( )
if (typeLevel = instanceLevel) then // see act 211 in
if (instanceDone = START) then // see “YES” branch of act 212
childTypes:= Top(instanceStack.type) getChildTypes( ) // see
if childTypes do not exist then // see act 214 “NO” branch
node:= instanceStack.pop( ) // see act 215
node.setDone(START_END) // see act 216
if Top(instanceStack).level( ) < typeLevel then // see
Top(typeStack).setDone(END) // see act 218
fi // end Top(instanceStack).level( ) < typeLevel
return node // see act 219
else // see act 214 “YES” branch (childTypes exist)
for all children types of parentType, push onto typeStack //
return Top(instanceStack) // see act 219
fi // end childTypes do not exist
else // see “NO” branch of act 212
node:= instanceStack.pop( ) // see act 231
if (instanceStack.isEmpty( )) then // see act 232
return node // see act 233
end algorithm //
fi // end instanceStack.isEmpty( )
if Top(instanceStack).level( ) < typeLevel then //see act 217
Top(typeStack).setDone(END) // see act 218
fi // end Top(instanceStack).level( ) < typeLevel
fi // end instanceDone = START
else if (typeLevel > instanceLevel) then // see
if (instanceDone == START) then // see act 241 in
process children nodes of parent by pushing all children // see
elements onto the instance stack as illustrated by act 242
if (children do not exist) then // See act 243 in
typeStack.pop( ) // see act 244
if Top(typeStack).level( ) == instanceLevel) then //
see act 245
Top(instanceStack).setDone(END) // see act 246
fi // end Top(typeStack).level( ) == instanceLevel
else // children exist
push child instances on to instance stack // see act 247
fi // end children do not exist
else // see act 251 in
typeStack.pop( ) // see act 251
if Top(typeStack).level( ) == instanceLevel then // see act 245
Top(instanceStack).setDone(END) // see act 246
fi // end else Top(typeStack).level( ) == instanceLevel
fi // end else instanceDone == START
fi // end else typeLevel = instanceLevel
return null // act 249
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US4805099 *||Mar 21, 1988||Feb 14, 1989||Wang Laboratories, Inc.||Retrieval of related records from a relational database|
|US6366917 *||Apr 1, 1998||Apr 2, 2002||Webputty, Inc.||Method of modifying a populated database structure by modifying metadata describing the database structure|
|US6490590 *||Feb 14, 2000||Dec 3, 2002||Ncr Corporation||Method of generating a logical data model, physical data model, extraction routines and load routines|
|US6535868 *||Aug 27, 1998||Mar 18, 2003||Debra A. Galeazzi||Method and apparatus for managing metadata in a database management system|
|US20040181534 *||Mar 12, 2003||Sep 16, 2004||Microsoft Corporation||Customization of metadata describing objects in a computing environment|
|US20050125371 *||Dec 5, 2003||Jun 9, 2005||Bhide Manish A.||Optimal use of triggers for detecting database events|
|US20060242563 *||Oct 28, 2005||Oct 26, 2006||Liu Zhen H||Optimizing XSLT based on input XML document structure description and translating XSLT into equivalent XQuery expressions|
|1||*||Greenwald et al., Oracle Essentials: Oracile9i, Oracle8i, & Oracle8, 2nd Edition section 2.4 "The Data Dictionary". 2001.|
|2||*||Steve Muench, "Building Oracle SML Applications" published September 2000, by O'Reilly, pp. 1 - 883|
|Citing Patent||Filing date||Publication date||Applicant||Title|
|US7346888 *||Mar 1, 2004||Mar 18, 2008||Sprint Communications Company L.P.||Use case integration|
|US7657550||Nov 28, 2006||Feb 2, 2010||Commvault Systems, Inc.||User interfaces and methods for managing data in a metabase|
|US7660800||Nov 28, 2006||Feb 9, 2010||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US7660807||Nov 28, 2006||Feb 9, 2010||Commvault Systems, Inc.||Systems and methods for cataloging metadata for a metabase|
|US7668884||Nov 28, 2006||Feb 23, 2010||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US7707178||Nov 28, 2006||Apr 27, 2010||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US7711700||Nov 28, 2006||May 4, 2010||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US7725671||Nov 28, 2006||May 25, 2010||Comm Vault Systems, Inc.||System and method for providing redundant access to metadata over a network|
|US7734593||Nov 28, 2006||Jun 8, 2010||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US7747579||Nov 28, 2006||Jun 29, 2010||Commvault Systems, Inc.||Metabase for facilitating data classification|
|US7779304 *||Jun 15, 2007||Aug 17, 2010||International Business Machines Corporation||Diagnosing changes in application behavior based on database usage|
|US7801864||Nov 28, 2006||Sep 21, 2010||Commvault Systems, Inc.||Systems and methods for using metadata to enhance data identification operations|
|US7822749||Nov 28, 2006||Oct 26, 2010||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US7831553||Jan 28, 2010||Nov 9, 2010||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US7831622||Apr 27, 2010||Nov 9, 2010||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US7831795||Nov 28, 2006||Nov 9, 2010||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US7836174||Jan 30, 2008||Nov 16, 2010||Commvault Systems, Inc.||Systems and methods for grid-based data scanning|
|US7849059||Nov 28, 2006||Dec 7, 2010||Commvault Systems, Inc.||Data classification systems and methods for organizing a metabase|
|US7856455 *||Mar 1, 2006||Dec 21, 2010||International Business Machines Corporation||System, method and program product for generating triggers for a relational database|
|US7882077||Mar 30, 2007||Feb 1, 2011||Commvault Systems, Inc.||Method and system for offline indexing of content and classifying stored data|
|US7882098||Mar 28, 2008||Feb 1, 2011||Commvault Systems, Inc||Method and system for searching stored data|
|US7937365||Mar 28, 2008||May 3, 2011||Commvault Systems, Inc.||Method and system for searching stored data|
|US7937393||Nov 28, 2006||May 3, 2011||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US8001070||Dec 17, 2007||Aug 16, 2011||Honeywell International Inc.||Object oriented rule-based system and method|
|US8010769||Nov 4, 2010||Aug 30, 2011||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US8037031||Oct 11, 2011||Commvault Systems, Inc.||Method and system for offline indexing of content and classifying stored data|
|US8051095||Jan 28, 2010||Nov 1, 2011||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US8131680||Nov 2, 2009||Mar 6, 2012||Commvault Systems, Inc.||Systems and methods for using metadata to enhance data management operations|
|US8131725||Sep 20, 2010||Mar 6, 2012||Comm Vault Systems, Inc.||Systems and methods for using metadata to enhance data identification operations|
|US8170995||May 1, 2012||Commvault Systems, Inc.||Method and system for offline indexing of content and classifying stored data|
|US8234249||Mar 31, 2011||Jul 31, 2012||Commvault Systems, Inc.||Method and system for searching stored data|
|US8271548||Nov 28, 2006||Sep 18, 2012||Commvault Systems, Inc.||Systems and methods for using metadata to enhance storage operations|
|US8285685||Jun 23, 2010||Oct 9, 2012||Commvault Systems, Inc.||Metabase for facilitating data classification|
|US8285964||Jul 21, 2011||Oct 9, 2012||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US8296301||Jan 30, 2008||Oct 23, 2012||Commvault Systems, Inc.||Systems and methods for probabilistic data classification|
|US8352472||Mar 2, 2012||Jan 8, 2013||Commvault Systems, Inc.||Systems and methods for using metadata to enhance data identification operations|
|US8356018||Nov 11, 2010||Jan 15, 2013||Commvault Systems, Inc.||Systems and methods for grid-based data scanning|
|US8370442||Aug 27, 2009||Feb 5, 2013||Commvault Systems, Inc.||Method and system for leveraging identified changes to a mail server|
|US8442983||Dec 23, 2010||May 14, 2013||Commvault Systems, Inc.||Asynchronous methods of data classification using change journals and other data structures|
|US8521706 *||Oct 19, 2007||Aug 27, 2013||Oracle International Corporation||Low-downtime and zero-downtime upgrades of database-centric applications|
|US8612714||Sep 14, 2012||Dec 17, 2013||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US8615523||Jun 29, 2012||Dec 24, 2013||Commvault Systems, Inc.||Method and system for searching stored data|
|US8635634 *||May 29, 2012||Jan 21, 2014||International Business Machines Corporation||Seamless multiple format metadata abstraction|
|US8719264||Mar 31, 2011||May 6, 2014||Commvault Systems, Inc.||Creating secondary copies of data based on searches for content|
|US8725737||Sep 11, 2012||May 13, 2014||Commvault Systems, Inc.||Systems and methods for using metadata to enhance data identification operations|
|US8738569 *||Feb 10, 2012||May 27, 2014||Emc Corporation||Systematic verification of database metadata upgrade|
|US8832406||Dec 11, 2013||Sep 9, 2014||Commvault Systems, Inc.||Systems and methods for classifying and transferring information in a storage network|
|US8892523||Jun 8, 2012||Nov 18, 2014||Commvault Systems, Inc.||Auto summarization of content|
|US8930496||Dec 15, 2006||Jan 6, 2015||Commvault Systems, Inc.||Systems and methods of unified reconstruction in storage systems|
|US8935294||Aug 10, 2005||Jan 13, 2015||Oracle International Corporation||Minimizing computer resource usage when converting data types of a table column|
|US9032311||Nov 7, 2008||May 12, 2015||Oracle International Corporation||Method and system for implementing a compensation system|
|US9047296||May 14, 2013||Jun 2, 2015||Commvault Systems, Inc.||Asynchronous methods of data classification using change journals and other data structures|
|US9098542||May 7, 2014||Aug 4, 2015||Commvault Systems, Inc.||Systems and methods for using metadata to enhance data identification operations|
|US9135319 *||Dec 28, 2010||Sep 15, 2015||Sap Se||System and method for executing transformation rules|
|US9141635||Mar 14, 2013||Sep 22, 2015||Oracle International Corporation||Transparently upgrading derived database objects|
|US20060190501 *||Jan 5, 2006||Aug 24, 2006||Sandy Massironi||System supporting data repository compatibility|
|US20070050431 *||Aug 26, 2005||Mar 1, 2007||Microsoft Corporation||Deploying content between networks|
|US20080098046 *||Oct 19, 2007||Apr 24, 2008||Oracle International Corporation||Low-downtime and zero-downtime upgrades of database-centric applications|
|US20100121685 *||Nov 7, 2008||May 13, 2010||Oracle International Corporation||Method and System for Implementing a Ranking Mechanism|
|US20100121686 *||Nov 7, 2008||May 13, 2010||Oracle International Corporation||Method and System for Implementing a Scoring Mechanism|
|US20120166459 *||Dec 28, 2010||Jun 28, 2012||Sap Ag||System and method for executing transformation rules|
|EP1909220A1 *||Oct 8, 2007||Apr 9, 2008||Vodafone Group PLC||Event-driven system for programming a mobile device|
|WO2007062429A2 *||Nov 28, 2006||May 31, 2007||Commvault Systems Inc||Systems and methods for classifying and transferring information in a storage network|
|U.S. Classification||1/1, 707/999.001|
|Jan 9, 2004||AS||Assignment|
Owner name: ORACLE INTERNATIONAL CORPORATION, CALIFORNIA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:GONZALEZ, ZANDRO LUIS;ZHANG, XIAOGE;REEL/FRAME:014884/0685
Effective date: 20040107
|Dec 9, 2014||CC||Certificate of correction|