Invention Grant
- Patent Title: Online index builds and rebuilds without blocking locks
- Patent Title (中): 在线索引构建和重建而不阻止锁定
-
Application No.: US11830545Application Date: 2007-07-30
-
Publication No.: US08195702B2Publication Date: 2012-06-05
- Inventor: Shrikanth Shankar , Ramesh Kumar , Krishna Kunchithapadam , Ananth Raghavan , Dheeraj Pandey , Amit Ganesh , Joy M. Forsythe
- Applicant: Shrikanth Shankar , Ramesh Kumar , Krishna Kunchithapadam , Ananth Raghavan , Dheeraj Pandey , Amit Ganesh , Joy M. Forsythe
- Applicant Address: US CA Redwood Shores
- Assignee: Oracle International Corporation
- Current Assignee: Oracle International Corporation
- Current Assignee Address: US CA Redwood Shores
- Agency: Hickman Palermo Truong Becker Bingham Wong LLP
- Agent Daniel D. Ledesma
- Main IPC: G06F17/30
- IPC: G06F17/30

Abstract:
Techniques are provided for processing a CREATE INDEX statement that avoids one or more locks on the underlying table. The processing of such a statement may be divided into a build phase and a cooperation phase. During the build phase, a journal table is created and published. A snapshot of the table is obtained after the last DML transaction (that was pending at the time the journal table was published) commits. The index is built based on the state of the table as of the snapshot. Any changes to the table while the index is built are recorded in the journal table. During the cooperation phase, the index is partially published. A subsequent DML statement determines whether any changes in the journal table affect the same data as the subsequent DML statement. If so, then those changes are applied to the index followed by the subsequent DML statement.
Public/Granted literature
- US20090037366A1 ONLINE INDEX BUILDS AND REBUILDS WITHOUT BLOCKING LOCKS Public/Granted day:2009-02-05
Information query