IP Library Granted Patent US 7,158,994
Granted Patent B1
US 7,158,994 · App. 10/006,605 · Granted Jan 2, 2007

Object-oriented materialized views

Assignee: Oracle International Corporation
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 7,158,994
App. No.
10/006,605
Granted
Jan 2, 2007
Kind
B1
Abstract

Techniques are provided for creating object-oriented materialized views. The object-oriented materialized views may be object materialized views or object-relational materialized views. The base tables may be object tables, object relational tables, or relational tables. The object-oriented materialized views may be refreshed, fully or incrementally. When an object-oriented materialized view is created, refresh code is generated for it. Through the use of object-oriented materialized views, users gain both the efficiency of materialized views and the power of the object-oriented paradigm.

Claims (40)

1. A computer-implemented method, the method comprising the steps of:

a database management system receiving a request to generate a materialized view that contains objects of an object class;

in response to receiving said request, said database management system creating said materialized view;

said database management system performing operations on said objects as instances of said object class;

wherein said object class defines attributes and one or more routines to invoke to operate on the state of the objects of said object class;

wherein attribute values of an object contained in said materialized view are derived from one or more base tables;

wherein the step of creating said materialized view includes creating a container table, separate from said one or more base tables, that includes corresponding columns that correspond to said attributes and that hold the attribute values of said attributes; and

storing said attribute values of said attributes in said container table.

2. The method of claim 1 , wherein the step of creating said materialized view includes the step of creating an object materialized view, wherein said object materialized view is associated with an object class and contains instances of said object class that correspond to rows of said object materialized view.

3. The method of claim 1 , wherein the step of creating said materialized view includes creating an object-relational view that includes at least one object column.

4. The method of claim 1 , wherein the method further includes the step of receiving another request from a user requesting performance of said operations on said objects as instances of said object class.

5. The method of claim 1 , wherein the step of said database management system performing operations includes performing an operation on said objects by invoking a routine defined by said object class.

6. The method of claim 1 , further including the step of said database management system generating refresh code that refreshes said materialized view.

7. The method of claim 1 , further including the step of generating refresh code that may be executed to fully refresh said materialized view.

8. The method of claim 1 , further including the step of generating refresh code that refreshes said materialized view based on modifications to the one or more base tables.

9. The method of claim 8 , wherein the step of generating refresh code includes the step of generating refresh code that references said corresponding columns but not as said attributes of said object class.

10. The method of claim 1 , wherein said materialized view includes an object column that has a plurality of nested tables that contain nested table objects.

11. The method of claim 10 , wherein the step of creating said materialized view includes the step of creating another table that holds attributes of nested table objects of said plurality of nested tables.

12. The method of claim 1 , wherein:

a base table of said one or more base tables includes a base column typed as an object reference; and

wherein the step of creating said materialized view includes creating a particular column of said container table that:

corresponds to said base column, and is typed as an object reference.

13. The method of claim 12 , wherein:

a first scope of said base column is a first set of tables; and

the particular column has a second scope that is different than said first scope.

14. The method of claim 13 , wherein the second scope is another materialized view based on said first set of tables.

15. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 1 .

16. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 2 .

17. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 3 .

18. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 4 .

19. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 5 .

20. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 6 .

21. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 7 .

22. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 8 .

23. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 9 .

24. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 10 .

25. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 11 .

26. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 12 .

27. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 13 .

28. A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 14 .

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 21, 2003
From: ORACLE CORPORATION
To: ORACLE INTERNATIONAL CORPORATION
Reel/Frame 013944/0938 →
CORRECTIVE ASSIGNMENT TO CORRECT THE 3RD INVENTOR'S NAME. FILED ON 12/05/2001, RECORDED ON REEL 012373 FRAME 0127 ASSIGNOR HEREBY CONFIRMS THE ASSIGNMENT OF THE ENTIRE INTEREST. Recorded Mar 18, 2002
From: SMITH, WAYNE; SUBRAMANIAM, MAHESH; MURALIDHAR, SUBRAMANIAN
To: ORACLE CORPORATION
Reel/Frame 012723/0131 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 5, 2001
From: SMITH, WAYNE; SUBRAMANIAM, MAHESH; MURRALIDHAR, SUBRAMANIAN
To: ORACLE CORPORATION
Reel/Frame 012373/0127 →
Continuity (1)
Provisional Application 6032627500 · Sep 28, 2001