IP Library Granted Patent US 9,779,118
Granted Patent B2
US 9,779,118 · App. 14/660,643 · Granted Oct 3, 2017

Live database schema tree change

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,779,118
App. No.
14/660,643
Filed
Mar 17, 2015
Granted
Oct 3, 2017
Kind
B2
Examiner
VY, HUNG T
Art Unit
2163
USPC
707/639
Abstract

A method for live database schema tree change, comprising: (a) providing a computerized database comprising: a parent database table and a child database table having a column configured to reference the parent database table; and (b) while the computerized database is live, operating a database management system (DBMS) in control of the computerized database, to: create an intermediate database table having a column configured to reference the parent database table; in the child database table: create a column configured to reference the intermediate database table, insert an identifier of the intermediate database table into all fields of the column configured to reference the intermediate database table, and overwrite all fields of the column configured to reference the parent database table with data from the fields of the column configured to reference the intermediate database table.

Claims (45)

1. A method for live database schema tree change, the method comprising:

(a) providing a computerized database comprising:

a parent database table,

a child database table having a column configured to reference the parent database table; and

(b) while the computerized database is live, operating a database management system (DBMS) in control of the computerized database, to:

create an intermediate database table having a column configured to reference the parent database table;

in the child database table:

create a column configured to reference the intermediate database table,

insert an identifier of the intermediate database table into all fields of the column configured to reference the intermediate database table,

overwrite all fields of the column configured to reference the parent database table with data from the fields of the column configured to reference the intermediate database table.

2. The method according to claim 1 , wherein the operating of the DBMS further comprises:

in the child database table, removing the column configured to reference the intermediate database table, thereby causing the column configured to reference the parent database reference the intermediate database table.

3. The method according to claim 1 , further comprising, simultaneously with step (b):

receiving new data by the DBMS from an application server; and

storing the new data, by the DBMS, in at least one of the child database table and the intermediate database table.

4. A computer program product comprising a non-transitory computer-readable storage medium having program code embodied therewith, the program code executable by at least one hardware processor to:

(a) communicate with a computerized database comprising:

a parent database table,

a child database table having a column configured to reference the parent database table; and

(b) while the computerized database is live, operate a database management system (DBMS) in control of the computerized database, to:

create an intermediate database table having a column configured to reference the parent database table;

in the child database table:

create a column configured to reference the intermediate database table,

insert an identifier of the intermediate database table into all fields of the column configured to reference the intermediate database table,

overwrite all fields of the column configured to reference the parent database table with data from the fields of the column configured to reference the intermediate database table.

5. The computer program product according to claim 4 , wherein the operating of the DBMS further comprises:

in the child database table, removing the column configured to reference the intermediate database table, thereby causing the column configured to reference the parent database reference the intermediate database table.

6. The computer program product according to claim 4 , further comprising, simultaneously with step (b):

receiving new data by the DBMS from an application server; and

storing the new data, by the DBMS, in at least one of the child database table and the intermediate database table.

7. A system comprising:

(a) a non-transitory storage device having stored thereon a computerized database comprising:

a parent database table,

a child database table having a column configured to reference the parent database table; and

(b) a database management system (DBMS) associated with said computerized database, wherein said DBMS is configured, while the computerized database is live, to:

create an intermediate database table having a column configured to reference the parent database table;

in the child database table:

create a column configured to reference the intermediate database table,

insert an identifier of the intermediate database table into all fields of the column configured to reference the intermediate database table,

overwrite all fields of the column configured to reference the parent database table with data from the fields of the column configured to reference the intermediate database table.

8. The system according to claim 7 , wherein the DBMS is further configured to:

in the child database table, removing the column configured to reference the intermediate database table, thereby causing the column configured to reference the parent database reference the intermediate database table.

9. The system according to claim 7 , further comprising an application server, wherein the DBMS is further configured, simultaneously with step (b), to:

receive new data from said application server; and

store the new data in at least one of the child database table and the intermediate database table.