Dropping an index without blocking locks

US10698723B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10698723-B2
Application numberUS-201414231416-A
CountryUS
Kind codeB2
Filing dateMar 31, 2014
Priority dateMar 31, 2014
Publication dateJun 30, 2020
Grant dateJun 30, 2020

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Techniques for processing “destructive” database statements are provided. Destructive database statements, when processed, cause metadata of a database object to be changed. Examples of such database statements include ones that delete an index, that set a column as unused, and that drop a constraint on a column. When such a statement is received, a change is made to metadata of a database object. Such a metadata change may involve setting an index as unusable, disabling a constraint, or invalidating a cursor. After the metadata change, a first time is determined. Then, it is determined when one or more database transactions that were pending at the first time have committed. After those database transaction(s) have committed, one or more operations are performed, such as dropping an index or dropping a constraint.

First claim

Opening claim text (preview).

What is claimed is: 1. A method comprising: receiving an instruction to modify metadata that is associated with a column of a table; in response to receiving the instruction: initiating a first transaction; after initiating the first transaction and before committing the first transaction: acquiring a lock on the table; initiating a second transaction within the first transaction; after initiating the second transaction, storing data that indicates that a constraint is disabled; committing the second transaction; after committing the second transaction and before committing the first transaction: determining a particular timestamp; waiting for one or more transactions that are pending at a time associated with the particular timestamp to commit; in response to determining that the one or more transactions have committed, dropping the constraint; committing the first transaction; wherein the method is performed by one or more computing devices. 2. The method of claim 1 , wherein the instruction is to drop the constraint of the column of the table. 3. The method of claim 2 , further comprising: determining whether the constraint is a primary key constraint; in response to determining that the constraint is a primary key constraint, modifying index metadata of the table to indicate that an index associated with the column is unusable. 4. The method of claim 1 , wherein: the instruction is to set the column unused; the method further comprising, prior to determining the particular timestamp, storing second data that indicates that the column is unusable. 5. The method of claim 4 , further comprising: prior to determining the particular timestamp, determining whether the constraint on the column exists; wherein storing the data comprises storing the data that indicates that the constraint is disabled in response to determining that the constraint on the column exists. 6. The method of claim 1 , further comprising: in response to receiving the instruction and prior to determining the particular timestamp: determining whether an index exists on the column; if it is determined that an index exists on the column, then storing index data that indicates that the index is unusable; in response to determining that the one or more transactions have committed, dropping the index if it is determined that the index exists. 7. The method of claim 1 , further comprising: in response to receiving the instruction and prior to determining the particular timestamp, invalidating one or more cursors. 8. The method of claim 1 , wherein waiting comprises calling a function that takes, as input, the particular timestamp and an object identifier that identifies the column or the table. 9. One or more non-transitory computer-readable media storing instructions which, when executed by one or more processors, cause: receiving an instruction to modify metadata that is associated with a column of a table; in response to receiving the instruction: initiating a first transaction; after initiating the first transaction and before committing the first transaction: acquiring a lock on the table; initiating a second transaction within the first transaction; after initiating the second transaction, storing data that indicates that a constraint is disabled; committing the second transaction; after committing the second transaction and before committing the first transaction: determining a particular timestamp; waiting for one or more transactions that are pending at a time associated with the particular timestamp to commit; in response to determining that the one or more transactions have committed, dropping the constraint; committing the first transaction. 10. The one or more non-transitory computer-readable media of claim 9 , wherein the instruction is to drop the constraint of the column of the table. 11. The one or more non-transitory computer-readable media of claim 10 , wherein the instructions, when executed by the one or more processors, further cause: determining whether the constraint is a primary key constraint; in response to determining that the constraint is a primary key constraint, modifying index metadata of the table to indicate that an index associated with the column is unusable. 12. The one or more non-transitory computer-readable media of claim 9 , wherein: the instruction is to set the column unused; the instructions, when executed by the one or more processors, further cause, prior to determining the particular timestamp, storing second data that indicates that the column is unusable. 13. The one or more non-transitory computer-readable media of claim 12 , wherein the instructions, when executed by the one or more processors, further cause: prior to determining the particular timestamp, determining whether the constraint on the column exists; wherein storing the data comprises storing the data that indicates that the constraint is disabled in response to determining that the constraint on the column exists. 14. The one or more non-transitory computer-readable media of claim 9 , wherein the instructions, when executed by the one or more processors, further cause: in response to receiving the instruction and prior to determining the particular time stamp: determining whether an index exists on the column; if it is determined that an index exists on the column, then storing index data that indicates that the index is unusable; in response to determining that the one or more transactions have committed, dropping the index if it is determined that the index exists. 15. The one or more non-transitory computer-readable media of claim 9 , wherein the instructions, when executed by the one or more processors, further cause: in response to receiving the instruction and prior to determining the particular timestamp, invalidating one or more cursors. 16. The one or more non-transitory computer-readable media of claim 9 , wherein waiting comprises calling a function that takes, as input, the particular timestamp and an object identifier that identifies the column or the table.

Assignees

Inventors

Classifications

  • Locking methods, e.g. distributed locking or locking implementation details · CPC title

  • G06F16/22Primary

    Indexing; Data structures therefor; Storage structures · CPC title

  • Concurrency control (transaction processing G06F9/466) · CPC title

  • G06F9/466Primary

    Transaction processing · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10698723B2 cover?
Techniques for processing “destructive” database statements are provided. Destructive database statements, when processed, cause metadata of a database object to be changed. Examples of such database statements include ones that delete an index, that set a column as unused, and that drop a constraint on a column. When such a statement is received, a change is made to metadata of a database obje…
Who is the assignee on this patent?
Oracle Int Corp
What technology area does this patent fall under?
Primary CPC classification G06F16/22. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jun 30 2020 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).