IP Library › Granted Patent US 9,020,991
Granted Patent B2
US 9,020,991 · App. 13/572,120 · Granted Apr 28, 2015

System and method for analyzing available space in data blocks

Inventor: Kevin P. Shuma (Celina, TX)
Assignee: CA, Inc.
G06F17/30
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,020,991
App. No.
13/572,120
Granted
Apr 28, 2015
Kind
B2
Abstract

A system and method is provided for determining an available space in one or more data blocks. A physical data storage area associated with one or more portions of a database may be determined. An available space in each data block of one or more data blocks in the physical data storage area may be determined. A number of new data rows that can be added to each data block may also be determined.

Claims (42)

1. A computer-implemented method of determining available space in one or more data blocks, the method executed by one or more processors configured to perform a plurality of operations, the operations comprising:

receiving a request to determine an available space associated with a portion portions of a database;

determining a physical data storage area associated with the one or more portions portion of the database in response to the request, wherein the physical data storage area comprises a plurality of data blocks that store data from the portion of the database, wherein each data block comprises a plurality of data rows, wherein said determining a physical data storage area further comprises:

accessing a control file associated with the database, wherein the control file stores information regarding a plurality of physical attributes associated with the physical data storage area; and

retrieving the plurality of physical attributes from the control file; and locating the physical data storage area based on the retrieved plurality of physical attributes;

determining an available space in each data block of the plurality of data blocks in the determined physical data storage area;

determining a total available space associated with the portion of the database based on the available space in each data block;

determining a number of new data rows that can be added to each data block based on the determined available space;

determining a total number of new rows that can be added to the plurality of data blocks based on the determined number of new rows that can be added to each data block; and

generating a report that comprises the determined available space in each data block, the number of new rows that can be added to each data block, the total available space in the plurality of data blocks, and the total number of new rows that can be added to the plurality of data blocks.

2. The computer-implemented method of claim 1 , further comprising:

determining an average row size for each data block; and

determining a number of new rows that can be added to each data block based on the determined available space and the determined average row size.

3. The computer-implemented method of claim 1 , wherein said operations are performed while the database is online.

4. A computer-implemented system of determining an available space in one or more data blocks, the system comprising:

a processor configured to:

receive a request to determine an available space associated with a portion of a database;

determine a physical data storage area associated with the portion of the database in response to the request, wherein the physical data storage area comprises a plurality of data blocks that store data from the portion of the database, wherein each data block comprises a plurality of data rows, wherein the determination of the physical data storage area, comprises:

accessing a control file associated with the database, wherein the control file stores information regarding a plurality of physical attributes associated with the physical data storage area; and

retrieving the plurality of physical attributes from the control file; and locating the physical data storage area based on the retrieved plurality of physical attributes;

determine an available space in each data block of the plurality of data blocks in the determined physical data storage area;

determine a total available space associated with the portion of the database based on the available space in each data block;

determine a number of new data rows that can be added to each data block based on the determined available space;

determine a total number of new rows that can be added to the plurality of data blocks based on the determined number of new rows that can be added to each data block; and

generate a report that comprises the determined available space in each data block, the number of new rows that can be added to each data block, the total available space in the plurality of data blocks, and the total number of new rows that can be added to the plurality of data blocks.

5. The computer-implemented system of claim 4 , wherein the processor is further configured to:

determine an average row size for each data block; and

determine a number of new rows that can be added to each data block based on the determined available space and the determined average row size.

6. A computer program product comprising:

a non-transitory computer readable storage medium having computer readable program code embodied in the medium that when executed by a processor of a computer system causes the computer system to perform operations comprising:

receiving a request to determine an available space associated with a portion portions of a database;

determining a physical data storage area associated with the one or more portions portion of the database in response to the request, wherein the physical, data storage area comprises a plurality of data blocks that store data from the portion of the database, wherein each data block comprises a plurality of data rows, wherein said determining a physical data storage area further comprises:

accessing a control file associated with the database, wherein the control file stores information regarding a plurality of physical attributes associated with the physical data storage area; and

retrieving the plurality of physical attributes from the control file; and locating the physical data storage area based on the retrieved plurality of physical attributes;

determining an available space in each data block of the plurality of data blocks in the determined physical data storage area;

determining a total available space associated with the portion of the database based on the available space in each data block;

determining a number of new data rows that can be added to each data block based on the determined available space;

determining a total number of new rows that can be added to the plurality of data blocks based on the determined number of new rows that can be added to each data block: and

generating a report that comprises the determined available space in each data block, the number of new rows that can be added to each data block, the total available space in the plurality of data blocks, and the total number of new rows that can be added to the plurality of data blocks.

7. The computer program product of claim 6 , wherein the computer program product further comprises:

a computer readable program code configured to determine an average row size for each data block; and

a computer readable program code configured to determine a number of new rows that can be added to each data block based on the determined available space and the determined average row size.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 13, 2012
From: SHUMA, KEVIN P.
To: CA, INC.
Reel/Frame 028771/0750 →
Continuity (1)
Related Publication 20140046920A1 · Feb 13, 2014