US 6374267 B1
A method for copying source database files for backup to a destination medium via incremental dump commands based on selecting files from a numerical identification system for spotting updated source files which have not yet been copied and dumped. The optimum block size for dumping onto the destination medium is controlled by the User of the system.
1. A method for selecting data blocks, in a source database, which have been modified but not yet Dumped, as copies into a destination back-up medium, comprising the steps of:
(a) generating a data block identifier word, which is independent of time-stamps, for placement in each data block that was modified after a selected target date and time;
(b) utilizing a utility program to select copying of said modified data blocks having an identifier word indicating that it was modified after said selected target date and time;
(c) placing said selected copies of said modified data blocks onto said destination medium.
2. The method of
(a1) utilizing an ACCESSROUTINES program having a numerical generator to generate a time-identifier word, designated as a transtamp, for placement into each of said data blocks in said Source database in order to indicate the time sequence in which each of said data blocks was modified.
3. The method of
(b1) invoking an Incremental Dump command to initiate copying of modified data blocks having a transtamp greater than a selected target date and time.
4. The method of
(c1) adjusting the block size of the selected modified blocks to provide a more compatible block size suitable to said destination medium.
5. A method for copying data blocks from a Source database, onto a destination medium which is independent of the normally-used time stamps on each data block in said Source data base, comprising the steps of:
(a) utilizing a control file means to provide a DUMPSTAMP operation which enables a unique sequential identification number for each data block in said Source database;
(b) invoking an access routine to initiate a numerical generator for placing said unique sequential identification number, designated as a transtamp, in each data block which is modified after a certain target date;
(c) initiating an Accumulated Dump command for reading those modified data blocks having a DUMPSTAMP value greater than the last full DUMPSTAMP value in said control file through use of said unique transtamp identification number which selects those modified data blocks which were modified after said target date and time;
(d) selecting the modified data blocks according to their transtamp identification numbers, for copying and placement on said destination medium.
6. A system for dumping copies of modified data blocks from a source database by selecting data blocks according to a numerical identifier for each modified data block, which numerical identifier is independent of date and time stamps, comprising:
(a) means for identifying modified data blocks, in a source data base, said means being independent of a date-time stamp;
(b) means for selecting a Dump of said modified data blocks for copying onto a destination medium according to those data blocks which were only modified after the completion of the last full or incremental Dump operation.
7. The system of
(c) means for selecting a Dump of modified data blocks which were modified after a selected target date and time.
8. The system of
(a1) ACCESSROUTINES means for initiating a numerical generator means to generate a time-identifier word for placement into each of said data blocks in said database, in order to indicate the time sequence in which each of said data blocks was modified.
9. The system of
(c1) means for invoking a utility program with an Incremental Dump command to initiate copying of said data blocks from said Source database to a destination medium by selecting only those modified data blocks which have a sequence identifier word which is greater than a selected target data and time.
10. The system of
(d) means for copying said selected blocks of data files from said Source database for placement onto said destination medium.
11. The system of
(d1) means for adjusting the block size of said selected blocks being dumped onto said destination medium in order to provide a compatible block size suitable to said destination medium.
12. A system for selecting modified data blocks in a source database for copying and dumping to a destination medium which selection of modified blocks is independent of any form of time stamps attributable to each data block in said Source database, comprising:
(a) control file means providing a DUMPSTAMP for each structured data set consisting of data blocks in said Source data base and storing a transtamp of the last full dump;
(b) ACCESSROUTINE means for initiating a numerical generator to place a unique identifying number, designated as a transtamp, in each data block in said source database;
(c) means to initiate an incremental Dump command to Dump copies of modified data blocks onto a destination medium;
(d) DUMPSTAMP means for calculating said transtamp value for each modified data block to identify it as being modified after the date of the last Dump operation;
(e) placing said modified data blocks onto said destination medium.
This application is related to a co-pending application, U.S. Ser. No. 09/374,351 entitled “Multi-Processor System for Data Base Management”, and to a co-pending application, U.S. Ser. No. 09/374,351 entitled “Enhanced System and Method for Management of System Database Utilities” which are incorporated herein by reference.
In the operation of computer systems and networks, the computer data is often “backed-up”, that is to say, it is copied to a storage medium other than the central computer's storage disk in order to permit the recovery of the data as the data existed at some point in time. This is done for purposes of diagnosis in the event of system failure or inadvertent loss of data.
It is often a standard practice to automatically back-up data on a daily or other periodic basis and store this data on tape or disk.
There are several ways to back-up data for diagnostic and recovery purposes. One way is considered as (i) physical level back-up. The physical level back-up refers to the data as it is stored at specific locations on some physical media, such as a host computer disk.
Another way is (ii) designated logical level back-up. This refers to the data as seen by the user application programs in files or in database tables. Normally, the operating system of the computer will include a file system that does mapping between the physical level and the logical level. On doing the physical level back-up, this would involve making a raw copy from a computer disk to some other storage medium without going through the file system or some other physical to logical interpreter module. Then on the other hand, the back-up using the logical level would involve using such a thing as an interpreter module or some sort of a file system while doing back-up of physical to logical mapping.
A Database Management System consists of a set of tools used to develop and manage a database. The present system utilizes a DMSII which is a Database Management System available on the Unisys Corporation's ClearPath HMP NX, and the Unisys A-Series systems. A background for the Unisys DMSII systems is available in a publication of the Unisys Corporation, Document 8807 6625 000, entitled “Getting Started With DMSII” and published in September, 1997 by the Unisys Corporation. The DMSII Utilities provide database back-up and recovery capability for the entire database or for partial databases. The background operations of the DMSII utility enhancements are published in a Unisys Corporation publication Document 98037/4 and entitled “DMSII Utility Enhancements” published on Mar. 31, 1999.
Database back-ups can be accomplished for “on-line” and “off-line” bases. The on-line back-up will allow users to update data in the database, whereas the off-line back-up disallows all updates to the database. The back-ups can be done to either tapes or disks or any combination of both types of such media.
Database Management Systems are used by many large and small businesses such as airline reservation systems, financial institutions, retail chains, insurance companies, utility companies and government agencies. The present Database Management System (DMS) in its form as DMSII is used to build database structures for items of data according to some appropriate logical model, such as relational, hierarchical, or network. Further, the Database management System is used to manage the database structures and keep the structures in some stable order while various application programs may be retrieving or changing the data. The present embodiment of DMSII has a data definition language designated as Data And Structure Definition Language (DASDL).
There are various tasks that are performed in database management and these involve (i) monitoring and optimizing database performance; (ii) the use of database control for monitoring multi-program database access; (iii) the function of the data integrity and safety done by integrity checking and preventing access to the same data by multiple applications occurring at the same time; (iv) the function of defining data structures and the data fields within them, including the function of modifying data structures; (v) data access operations and developing an application program to retrieve data or to change data; (vi) the function of data shareability to provide multi-program access without conflicts and provide database definitions to the application program; (vii) in database and data security, to prevent unauthorized database access; (viii) ensuring independence of application programs from certain data changes and preventing the revision of application programs every time a structure changes; (ix) in database and data recovery, performing the resumption of database operations after an interruption; (x) tracking data changes by keeping a record of every change made to the data; (xi) for data change integrity, ensuring that update changes are applied to, or removed from, the database in their entirety; (xii) providing a recent copy of the database as a reserve by backing-up the database and storing copies of audit files and all other database files; (xiii) providing for database scaleability by growing or shrinking the database according to the ongoing needs at the time.
The DMSII provides standard software files that perform services and operations for all the databases connected to the system's Enterprise Server. This enables a viewing of a list of all these files on the user terminal.
In the ordinary course of operations, the application program user will submit changes to data or retrieve data while running a particular application program. Then, changes can be made which add, modify and delete data. A Database Administrator (DBA) keeps the database running smoothly and enforces the rules for data integrity and security. Users access the database through a given application program which itself does not access the data directly. Instead, the program interacts with the DMSII software and the database tailored software, which is directed by the access routines of the Data Management System to provide accesses, retrievals and the storage of data in the physical database file.
In regard to access, an application user will access the data in order to (i) make an inquiry to get a Read of data in the database, or (ii) to provide an update by doing a write to the database thus, adding, deleting or changing data. The access for either purpose contributes to an operation on the database which is called a “transaction”.
A transaction is a sequence of operations grouped by a user program because the operations constitute a single logical change to the database, At the end and finality of the transaction point, the transaction is complete and without error, and it is considered as being committed to the database.
Actual real world data goes into special logical structures that are used by the Data Management System to store data. The database is designed to map categories of data into suitable structures. For example, the real world data would have a character with a structure called a “data set”. An example of this would be a particular person's name. Then, real world data that can serve as an index of a whole data set has a structured name called a “set”. This, for example, might be the social security number of any employee. Then there is data that can serve as an index of a data set under a certain condition, and this is called a “subset”. This might be an employee's work number, for example. Then, there is data about each instance of a particular category. The structure name for this is “data item”. An example of this might be the name and address of the category (person). Then, there is data related to the database as a whole, and this involves a structure called “global data item”. An example of this might be the total number of employees in a company. Once there has been identification of the real-world data which is to be stored in the database, it is then necessary to define that data in relationship to the data structures of the data management system that holds data. When this data is defined within “structures”, then the data management system and the system software programs an application program that can then understand how to make this data accessible for various inquiries and/or changes. This is done with the Data and Structure Definition Language (DASDL).
The Data Management System structures are the building blocks of the Data Management System database. Here, the “data set” has the purpose of storing data pertaining to a data category in a collection of records. A “set” has the purpose of indexing all records in a data set. A “subset” serves the purpose to index some records in a data set according to some given criteria. The “data item” is a structured name which defines a unit of information about a category in a given field (column) of a data set record. A “global data item” serves the purpose of storing a unit of information about the entire database or any of its involved structures. In general discussion about the types of data and the names of data structures, it is often seen that in a relational database, a “data set” is called a “table”. A “set” or “subset” is frequently called an “index”. A “data item” is often called a “field” or a “column”, or is often called by its data name, for example, a project number. “Structures” are made of common file components designated as records and fields.
A record is a group of logically-related data items in a file. Often, a record is called a row. Data items reside in different fields in the records. For example, a record might involve a series of data such as an employee's name, the employee's I.D., the employee's social security number and years of employment. A group of such records would constitute a file.
The operating system which uses the data management system will treat the record as a unit. The system makes data available to users in records and not in individual single items of data. In programming languages, the record is the unit of data that the system reads from or writes to a file in one execution cycle of a Read or Write statement in a program.
If the application program wants to change a data item in a given record, the Data Management System brings a copy of the record from the physical storage over to memory, then enables that data item to be changed, and then writes the changed record back to the file.
A “field” is a consecutive group of bits or bytes within a particular component of a record which will represent a logical piece of data. A field or column is defined by the description of the data item it is to hold. For example, if one field carries the name of an employee, this field in the record could be called the name field.
The “data set” is a physical file, that is to say, a collection of related data records stored on a random-access storage device, such as a disk in which the data resides.
A data set is kept up-to-date in several ways: (i) here, application programs add, change, or delete individual pieces of data or records stored in the data set; (ii) the Database Administrator (DBA) maintains the structure of the data set by keeping the data set within certain maximized limits, by adding, deleting or changing the definition of a data item, creating new sets or subsets, monitoring automatic processes that guard data integrity and creating guard files to enhance the security of the data.
A “set” is a separate stored file that indexes all the records of a single data set. The Data Management System uses sets in order to locate records in a data set. A set has no meaning apart from its related data set. The set structure enables an application program to access all records of a data set in some logical sequence.
A “subset” can be considered identical to a set, except that the subset need not contain a record for every record of the data set. A subset is a file that indexes none, one, several, or all of the records in a data set. The subset structure enables an application program to access only records of a data set that meet a particularly required condition.
For example, an application program may compile a list of people who are “managers”. Thus, it is seen that the database designer created the “manager” subset. Thus, in order to retrieve a record of managers, the data management system can use the smaller file, that is, the subset, to quickly point to the corresponding records in the larger file which is the data set. As with the set, the subset must also be kept up-to-date.
A “data items” is an element of data. In the Data Management System, a data item can also be the field (column) in the database record. For example, the social security number could be considered as a data item in the sample data set designated “person”. The purpose of the data item is to describe the data to be stored. The data item provides the identity—type, size, location, and attributes—of one element of data for a database entity. When an application submits an update to a data item, the Data management System will accept the update if it corresponds to the definition of a data item. Otherwise, the change is rejected and reported as an exception. The Database Administrator will add, delete or change the data item definitions. There are a number of data items that are used by the Data Management System. These include the type called “alpha-numeric” which include words and characters, names, addresses, dates and titles. Then, there are data items designated as “numeric” which involve integers and decimals with or without signs. Then, there are data items designated as “real” which involve single precision floating point numbers that occupy one word. An example of this would be, for example, an employee's salary. Then, there are data items which are called “Boolean” which involve TRUE and FALSE values.
The “global data item” is a data item, a group item, or a population item that is not part of any data set but still pertains to the database as a whole. Such global data items are stored in one special record called the “global record” in the DASDL declaration which is outside the structured definitions. Sometimes the global record is placed just before the structured definitions in the DASDL file. The global data item has the purpose of holding permanent information about the database as a whole or about a particular data set. It also acts as a place holder for information that can be derived from the database.
One of the most significant options in DASDL (Data And Structure Definition Language) is that it is possible to define the database as to whether the database is to be audited. The data management system supports both logging changes to a database (auditing the database) or not logging changes (maintaining an unaudited database). There are advantages in auditing a database since this assures the user that if a database failure occurs, there will be a record of database changes with which one can restore the database to a completely integral state and thus avoid loss of information and corruption of information.
The “audit trail” is a log of changes made to the database. This type of audit trail is somewhat similar to the SUMLOG in the host system which is the history of all system activity except for the fact that the audit trail will record the database update activity only and will consist of separate numbered files. Thus the data management system software can use an audit trail to recover the database from an unusable state, provide restart information to user programs, reconstruct portions of the database that had been lost because of hardware errors, back out aborted transactions and roll back the entire database to a user specified point or rebuild the entire database to a user-specified point.
The “audit file” provides a chronological history of all update database transactions. The audit file is a numbered segment of the database audit trail where the data management system assigns each audit file to have an audit file number (AFN) in the range of 1 to 9999.
Access Routines Program: The data management system controls access to database data with a software program called Access Routines which is a collection of specialized routines that enables many users to access the database all at the same time and ensures that the access is controlled so that accesses do not conflict with one another.
Control File: Each active data management system database has a control file. The control file contains the time stamps for the database software and files and the access routines since the access routines use time stamps to check the validity of data. A control file also contains the update levels of the database and the structures since the access routines use update levels to check the validity of data. Further, the control file functions to store audit control information, dynamic database parameters plus other information. It further guards the database from interruption while a process that needs exclusive access to the database goes on to complete its task successfully, such as, for example, a halt/load recovery and/or a reorganization. The control file assures that a database that has been interrupted for any reason is not accessed until the integrity of the database is further guaranteed by the successful completion of the recovery process.
I/O Operation: An I/O (Input/Output) operation is one in which the system reads data from or writes data to a file on a peripheral device, such as a disk drive. When there is a failure of a read or a write operation, then this is considered to be a I/O error, which must be handled.
Backup: The most important preventive maintenance task which can be performed for a database is to back up the database frequently and to keep the backups for some period of time. To “back up” the database, means to use the data management system DMUTILITY program to make a copy of all or part of the database. This backup will include a check of the physical integrity of all the database's structures being backed up. A complete database includes providing a reserve copy of all the files pertaining to the database. All the files include not only the database files and the control files (which may change from time to time) but also the DASDL source file, the description file, various tailored files, application programs, and audit files. This enables a user to put the database back in operation quickly in case the current database files should become unavailable or damaged.
Here there is involved the concept of “DUMP.” A DUMP involves either a copy of stored data in which a change has been made since the previous DUMP of that data or a transfer of all or part of the contents of one section of computer storage to another section or to some other output device. The processes used to make a database are called backing up and Dumping. A backup to tape is called a Tape DUMP while a backup to disk is called a Disk DUMP.
Often the backing up operation for the database is done by increments. An increment is one of the series of regular consecutive additions, for example, if a database is too large to back up on a daily basis, the operator could create a schedule that backed up a certain number of database files (an increment) each day until the entire database was backed up.
The dump of a database is done to tape or disk depending on what type of storage resources are available. Tapes are most frequently used since they are the less expensive resource than disk. When dumping is done to tape, it is necessary to furnish information common to any disk-to-tape process and this information would include the tape name, the cycle number, the version number, workers, the serial number, compression and non-compression, the density, and the SCRATCHPOOL option.
However, when dumping to disk it is only necessary to specify the file title for the entire dump and the number of DUMP files into which the system should place the DUMP.
Recovering a database means to get it back and ready up to date, ready for access with complete and correct data. The recovery of the database can be done either automatically or be done manually using various software utilities and commands.
The present system and method provides enhancements which accomplish performance improvements in the DMSII database utilities, plus support for new tape devices and other efficient back-up methods. The presently-described system achieves special optimization of Input and Output in both disk or tape operations, plus special DUMP features which enhance the ability to perform database back-up. Of special focus herein is the use of a numerical generator in a routine designated ACCESSROUTINES and a DUMPSTAMP operation which stores a unique number for each data block in the database. Then when any block gets modified, the Data management II software will calculate a “transtamp” value for each data block that is modified. This value can then be used to identify changed data blocks when performing a Dump to disk or tape.
As a result, total back-up time has been reduced due to the ability to DUMP the data blocks which have been modified since the last DUMP. Thus, the presently described system will provide users with more options for improving the efficiency of their database administration and operational practices.
A system and method is provided to enhance the ability to perform database back-up using special features designated as the “Incremental DUMP” and also a feature designated as “Accumulated DUMP”. As a result, the total back-up time has been considerably reduced due to the ability to dump the data blocks which have been modified since the last DUMP. This enables the data recovery process to operate more efficiently due to the lesser number of audit images that are being applied.
The Incremental and Accumulated DUMP procedures involve an interface which is directed to the performance of running DUMP to Tape or DUMP to Disk. Often when DLT tape devices are used, it has been noted that a functional DMUTILITY program is not writing enough data to keep the drive streaming so that repositioning of the tape unit is necessary. This repositioning takes time and then slows-down the DUMP processes.
Due to this type of problem, changes have been made to expand the Input buffer used for reading files from disk and further to increase the block size used for writing out to tape. This tape block size can have a maximum of up to 65,535 words.
A previous procedure designated DMUTILITY was limited by a block size for 903 words for a “DUMP To Disk” operation. This has been expanded from 903 words to 20,040 words in order to improve the performance by then reducing the number of Input/Output operations (I/Os) for disk drives. Further, the user can also specify the block size by utilizing a new Block Size clause in the DUMP Command which may be expanded up to 65,520 words.
Similar enhancement is also made for DUMP to Tape where the User can specify the block size by utilizing a new block size clause in the DUMP command which may be expanded up to 65,535 words. The tape density is a required parameter for the DUMP command, and the maximum block size allowed is based on the density value this limitation is imposed by the tape device.
Similar enhancement is also made for DUMP to Tape where the User can specify the block size by utilizing a new block size clause in the DUMP command which may be expanded up to 65,535 words. The tape density is a required parameter for the DUMP command, and the maximum block size allowed is based on the density value where this limitation is imposed by the tape device.
FIG. 1 is a drawing of the environmental modules in which the present invention is implemented;
FIG. 2 is a flow chart of the program flow diagram for selecting involvement for back-up to a disk or to a tape unit;
FIG. 3A is a flow chart illustrating the enhanced data DUMP to disk;
FIG. 3B is a flow chart showing DUMP to Tape.
FIG. 4A is a sketch illustrating the generation of a DUMPSTAMP word to identify a particular data block;
FIG. 4B is a sketch illustrating some time-functions of the Control File;
FIG. 4C illustrates the time factors in a full Dump, Incremental Dump and Accumulated Dump;
FIG. 5 is a flow chart illustrating how a user can specify a functional block size to be used for the Input DUMP to disk command;
FIG. 6 is a flow chart for providing back-up from a database via a DUMP to Disk process using DUMPSTAMP time;
FIG. 7 is a flow chart illustrating a sequence of steps in the Input DUMP to tape command in order to specify a selected block size value;
FIG. 8 is a flow chart providing for a back-up from the database for dumping to a tape using the DUMPSTAMP time to identify modified blocks.
ACCESS ROUTINES: A collection of special routines that coordinates access of a database by multiple Users at the same time. The Master Control Program ensures that only one copy of ACCESSROUTINES is active for each database.
ACTION COMMAND: A control signal that moves the user from one screen to another or manipulates data on the screen.
ACTION FIELD: A field that appears on a screen and begins with the prompt Action:. The user enters the desired action for execution between the indicators to the right of this prompt.
ACTION LINE: The location on a screen where the Action field appears.
ADDRESS: (1) The identification of a location in storage (memory). (2) A sequence of bits, a character, or a group of characters that identifies a network station or a group of stations, a user, or an application. (3) The location of a device in the system configuration.
ALTERNATE RECORD KEY: A key, other than a prime record key, whose contents identify a record of an indexed file.
AREA: In a disk file, data is stored in groups of contiguous disk sectors called areas or rows. An area is measured in terms of logical records where a logical record is the amount of data that can be accessed by execution of one Read or Write statement in a program.
ARRAY: An ordered collection of a fixed number of common variables under one name.
AUDIT: In reference to computing, an examination of equipment, programs, activities, and procedures to determine how efficiently the overall system is performing, especially in terms of ensuring the integrity and security of data.
AUDITING: The process and operating system uses to detect and record security-related events, such as an attempt to create, to access, or to delete objects such as files and directories. The records of such events are stored in a file known as a security log, whose contents are available only to those with proper clearance.
AUDIT TRAIL: In reference to computing, this is a means of tracing all activities affecting a piece of information, such as a data record, from the time it is entered into a system to the time it is removed from the system. An audit trail makes it possible to document, for example, who made changes to a particular record and when they did it.
AUTHENTICATION: In a multi-user or network operating system, the process by which the system validates a user's logon information. A user's name and password are compared against an authorized list, and if the system detects a match, then access is granted to the extent specified in the permission list for that user.
AUTHORIZATION: In reference to computing, especially remote computers on a network, the right granted to an individual to use the system and the data stored in it. Authorization is technically set up by a system administrator and verified by the computer based on some form of user identification, such as a code number or password. Sometimes this is called “access privileges.”
BLOCKING FACTOR: The number of logical records stored in a physical record on disk or tape.
BLOCKSIZE: A file attribute that gives the length of a file block.
BOOLEAN: Pertaining to variables having a value of TRUE or FALSE.
BUFFER: An area in which data is stored temporarily.
CANDE: See Command and Edit.
CHECKPOINT: A place in a program where the program is to be stopped so that its current state can be written to disk. After the state of the program has been recorded, program execution resumes where it left off. If the system halts unexpectedly before the program finishes, the program can be restarted at its most recent checkpoint instead of at the beginning.
COBOL74: A version of the COBOL language that is compatible with the ANSI X3.23-1974 standard.
COMMAND EDIT (CANDE): A time-sharing message Control System (MCS) that allows a user to create and edit files, and develop, test and execute programs, interactively.
COMPARE OPERATION: The set of steps that is performed by DMUTILITY after each backup session to validate that the data saved on disk or tape is free from block checksum, block sequencing, and I/O errors. It is done automatically, and a new option has been added to disable this operation.
COMPARE PHASE : After each database backup session, the DMUTILITY program automatically issues the compare operations to verify that the data written to tape or disk is free from block checksum, block sequencing, and I/O errors. This phase is referred to as the compare phase of the backup operation.
COMPILE-TIME OPTIONS: A set of options consisting of the two classes of options that can be set at compile time: i.e., compiler control options and compile-time default values and limit changes.
CTS9840 TAPE DRIVE: A SCSI (Small Computer Systems Interface—An ANSI standard) tape subsystem introduced by Storage Tek using a unique form of half-inch cartridge media and supporting 128 track density. A track is a longitudinal area on the tape along which a series of magnetic signals may be recorded. Software changes have been made to support this new tape device for DMUTILITY.
DASDL: Data And Structure Definition Language for defining the database.
DATA MANAGEMENT SYSTEM II (DMSII): A specialized system software package used to describe a database and maintain the relationships among the data elements in the database. Described in Unisys Publication Part No. 8807 6625-000, September 1997, entitled “Unisys: Getting Started With DMSII”.
DBA: The definition, design, maintenance, and use of a database (DMSII or other databases) and its related products which should be coordinated and controlled by a single administration. This control is typically established in the function of a Data Base Administration, abbreviated as DBA.
DISJOINT DATA SET: A data set is conceptually similar to a conventional file. It contains the actual records of information. A disjoint data set is a file that is not contained within another file. It is free standing.
DLT: This involves a tape storage technology developed by Digital Equipment Corporation to offer high speed storage for digital asset protection. This technology was later bought out by Quantum Corporation in 1994. This technology or DLT was three-to-four times faster and offered several multiples of capacity than previous tape storage units. It also practically eliminated most of the reliability problems that the earlier drives exhibited when used in heavy duty cycles. DLT uses a linear recording technology that simplifies the tape path and minimizes head-to-tape contact. This provides a drive that can read and write data all day long day after day apparently without data lost or failure.
DLT TAPE: DLT is an abbreviation for Digital Linear Tape. It is a high performance, high capacity, streaming cartridge tape produce designed for use on midrange and high-end computing systems.
DMDUMPDIR: A program that retrieves and modifies directory information for database dumps. When this program is enabled, directory entries are created automatically when a new database dump is created, or existing database dump is copied, or existing database dump is duplicated.
DMSII: See Data Management System II.
DMUTILITY: This is a program which will parse the new syntax to scan for the Exclude keyword and to build a dump list to reflect that specific disjoint data set and all of its sublevel structures which are to be excluded from the dump.
DUMP OUTPUT LISTING: Following the execution of each dump command, an output listing will be sent to a session printer backup file so the user can have hard copies of the dump directory and files that were included in the dump operation.
DUMP TO DISK: Software for speeding up the dump to disk operation where software changes are made to optimize existing disk read and write operations. Performance gain is accomplished through expansion of buffer sizes which reduces the number of I/Os required.
DUMP TO TAPE SESSION: A database backup is a snapshot of an entire database or of parts of a database. The backup can later be used to recover lost data, or transfer the database from one location to another. One of the features in a DMUTILITY DUMP command is to create a backup copy of the database on tape. When this command has been executed, a Dump to Tape session will be initiated.
DUMPSTAMP: This is a selected option which allows for a special word to be allocated into each block of word value when any block gets modified and this value gets stored in each block when DUMPSTAMP is enabled.
DUMP VERIFICATION: Same as the definition for Compare operation.
EXCLUDE KEYWORD: New syntax to be added to DMUTILITY program to allow users to exclude certain database files in a dump command. This is useful when the excluded files have been backed up previously and no new changes have been made that require new backup to tape or disk.
EXCLUDE PARAMETER: This is for the DMUTILITY Dump command which has the purpose of excluding one or more structures from the database dump. This new feature provides flexibility to the current Dump command and is especially helpful when a small percent of the structures are being excluded from the Dump operation. This command is supported for the DMUTILITY Dumps with all the files selected, and it allows user to select one or more disjoint data sets and all of the structures associated with it (sets, subsets, embedded structures, etc.) which are to be excluded from each dump session.
FILE NAME: (1) A unique identifier for a file, consisting of 1 to 14 name constants separated by slashes. Each name constant consists of 1 to 17 letters, digits, hyphens, and/or underscores. A file name can be optionally preceded by an asterisk (*) or usercode, and optionally followed by ON and a family name. (2) In RPG, a name that designates a set of data items. (3) In COBOL, a user-defined word that names a file described in a file description entry or a sort-merge file description entry within the FILE SECTION of the DATA DIVISION.
GARBAGE COLLECTION: In Data Management System II (DMSII), the process of consolidating deleted or unused space in data sets, sets, and subsets, and returning this space to the system.
HALT/LOAD: A system-initialization procedure that temporarily halts the system and loads the Master Control Program (MCP) from disk or pack to main memory.
HELP TEXT: Information displayed online when a user presses the specify (SPCFY) key or enters the HELP or TEACH command along with a keyword.
INDEXED ORGANIZATION: The permanent, logical file structure in which each record is identified by the value of one or more keys within that record.
INDEXED SEQUENTIAL ACCESS METHOD (ISAM): A method that provides efficient, flexible random access to records identified by keys stored in an index.
ISAM: See Indexed Sequential Access Method.
KEY: (1) A field used to locate or identify a record in an indexed file. (2) In COBOL, a data item that identifies the location of a record, or a group of data items that identifies the ordering of data. (3) In Data Management System II (DMSII), a field that serves as a retrieval key for a set or subset.
KEY OF REFERENCE: In COBOL, the prime or alternate key currently being used to access records within an indexed file.
KIND: The file attribute that indicates the type of device on which the file is stored.
LABEL: (1) The first 28 sectors on a disk, on which information about the disk is stored. This information includes the family name and serial number, the Master Available Table (MAT), the family index number, information about the family's base pack, and a pointer to the system directory if the disk contains a directory. (2) In RPG and ALGOL, a name that identifies either a point in the Calculation Specifications where a GOTO operation branches or the beginning of a subroutine.
LIBRARY: (1) A collection of one or more named routines or entry points that are stored in a file and can be called by other programs. (2) A program that exports objects for use by user programs.
LIBRARY DIRECTORY: A memory structure associated with a library process stack that describes the objects exported by the library process.
LIBRARY PROCESS: An instance of the execution of a library. The sharing option of a library determines whether multiple user programs use the same instance of the library.
MAJOR KEY: The first key in a complex key.
MINOR KEY: Any key in a complex key that is not the major (first) key.
MIX: The set of processes that currently exist on a particular computer. The mix can include active, scheduled, and suspended processes.
MIX NUMBER: A 4-digit number that identifies a process while it is executing. This number is stored in the MIXNUMBER task attribute.
NO COMPARE OPTION: This involves another option whereby normally the DMUTILITY currently performs a compare operation automatically after each dump operation. Here, there is provided a new option called No Compare which will be available to the user so that the compare phase will be an optional choice. This feature is useful to users for the possibility of running verification of the dump with the VERIFYDUMP command at a later time.
NUMERICAL GENERATOR: This is the unit in ACCESSROUTINES which generates a unique number for each data block.
ODT: See Operator Display Terminal
OPERATOR DISPLAY TERMINAL (ODT): (1) A system Control Terminal (SCT) configured for direct communication with the operating system. The ODT is used primarily by operations personnel for entering commands that control and direct the system and its resources. (2) The name given to the System Control Terminal (SCT) when it is used as an ODT.
PARAMETER: (1) A quantity or item of information that can be given a different value each time a process is repeated. (2) An identifier associated in a special way with a procedure. A parameter is declared in the procedure heading and is automatically assigned a value when the procedure is invoked. (3) An object or value that is passed from an actual parameter and received by a formal parameter.
PRIME RECORD KEY: A key with contents that identify a record in an indexed file.
PROCEDURE: (1) A block that can be invoked by statements elsewhere in the same program or, in some cases, by statements in another program. In most cases, a procedure has a procedure heading and a procedure body. Examples are a procedure in ALGOL, a procedure or function in Pascal, a subroutine or function in FORTRAN, or a complete COBOL program. (2) In COBOL, a paragraph or group of logically successive paragraphs, or a section or group of logically successive sections, within the PROCEDURE DIVISION.
RECORD KEY: A key, either the prime record key or an alternate record key, with contents that identify a record within an indexed file.
RESULT DESCRIPTOR: A 48-bit word that is the standard Data Management System II (DMSII) exception word. A result descriptor includes the exception category and subcategory, and the structure number involved. When an exception occurs, the last bit in the 48-bit word is set to 1. When an operation is successful, the 48-bit word contains all zeros.
RPG: (Report Program Generator). A high-level, commercially oriented programming language used most frequently to produce reports based on information derived from data files.
SERIAL NUMBER: This involves the display serial number whereby the program DMUTILITY will display the serial number of the tape, which contains the latest directory information in the dump output listing. This information is helpful for Database Administrators for subsequent DUMITILITY runs. In old systems, the Serial Number information was displayed when DMDUMPDIR is enabled. However, this can be improved in order to have this available in the DMUTILITY program without the need to use DMDUMPDIR.
SERIAL NUMBER INTERFACE: This is for the purpose of displaying the tape serial number of the latest version tape in the dump output after each Dump to Tape session has completed. The tape serial number information is currently available by enabling the option DMDUMPDIR. In most cases, a database fits in multiple volumes and there will be only one serial number that the DBA needs to know, for obtaining the latest version of tape, and this information will be available through UTILITY.
SUPPORT LIBRARY: A library that is associated with a function name. User programs can access a support library by way of its function name instead of its code file title. The operator uses the SL (Support Library) Operator Display Terminal (ODT) command to link function names with libraries.
SYMBOLIC FILE: A file that contains a source program.
TRANSTAMP: A value which is generated by the Numerical Generator unit.
VERIFYDUMP A command which will check the dump file against errors such as block checksum, error block sequencing error, and I/O errors. If a problem has been detected, an error message will be displayed.
Referring to FIG. 1 there is shown a typical operating environment which makes use of the Unisys Data Management System II, and which has been enhanced to improve the back-up ability for dumps to disk storage and to magnetic tape.
A processor 10 operating under a Master Control Program is connected to a primary main Memory 20 which then communicates with a series of I/O processors 30. The I/O processors 30 are set-up and connected for communication with peripheral devices, such as the disk storage 40 and the magnetic tape 50.
Additionally, the I/O processors 30 are operative in communication with a User I/O terminal 60 and the User I/O Operator Display Terminal 70. Various commands and functions can be initiated through the User terminal 60 and the Operator Display Terminal 70.
Also connected to the I/O processors 30, is a dot matrix printer 80 or a laser printer 90 which can be used for printing out desirable information from the system.
The present system involves a more rapid and efficient method of functionality for the back-up of a database. As a very important preventive maintenance task, it is essential that the database be backed-up frequently and kept for an extended period of time. Backing-up the database means, in this situation, to use the DMSII DMUTILITY program in order to make a copy of all or part of the database. The back-up operation will include a check of the physical integrity of all of the database structures being backed-up.
It is generally recommended that a back-up be done every day and possibly even more often if there are special circumstances involved. One typical operation is that of making changes to the database structures as a special operation and during which such operation back-ups should be utilized both before the changes and after changes. A complete database back-up includes a reserved copy of all of the files pertaining to the particular database. All these files include not only the database files and the control file, but also the DASDL source file, the description file, the tailored files, the application programs, and the audit files. Thus, by having a reserved copy of all the files necessary for the database, this enables the Users to put the database back into operation quickly should any situation occur where the current database files become damaged or unavailable or lost in some fashion.
An essential part of the back-up procedure for database files is the use of a Dump. The Dump refers to either a copy of stored data in which a change has been made since the previous Dump of that data, or the transfer of all or parts of one section of the computer storage to another section, or to some other output device.
Using the DMUTILITY program in a database back-up, the processes which are used to make a database back-up are called backing-up and/or Dumping. The backed-up database is called a back-up or a Dump, while a back-up to a tape peripheral is called a Tape Dump and a back-up to a disk peripheral is called a Disk Dump.
For further security, it is often recommended to make a back-up of the back-up file. The reasons for this is that files can be deleted or made unusable so that it is possible to use certain of the following commands to back-up the database dump. These are:
(i) a COPYDUMP command which produces a copy of the back-up by further copying the back-up to the same type of media or to a different type of media;
(ii) The DUPLICATEDDUMP command produces a duplicate of the back-up (such as REEL-FOR-REEL and TAPE-FOR-TAPE) by duplicating the particular back-up onto the same type of media.
The Dump command is used as part of the database back-up. The files that the Dump command backs-up are either some or all of the database files and the control file. There are several types of management utilization in backing-up these files so that the User may want to back-up the files only when they change, or else to use utilities other than the DUMP command to copy the files.
In order to back-up the database files other than using the DUMPS and to have all database files backed-up in case the User needs to re-establish the current database from scratch, there are certain files that are required to be held in reserve and these are:
(a) The DASDL source file;
(b) The Audit files. Copies of both the primary and secondary audit trails;
(c) Tailored Software: DM SUPPORT LIBRARY, RECONSTRUCT program, and sometimes certain sites will require the TransIT OPEN/OLTP product, the RM SUPPORT LIBRARY; and
(d) The Database Description file.
Thus, the User would back-up a database application program after a database reorganization, for example, that closes the application program to further changes.
Additionally, the User would back-up an application program when one backs-up the pack on which it resides.
Two dump commands, Incremental and Accumulated, are introduced to allow the Users the option to dump only those portions of the database which have changed since the last dump. These dumps are generated based on the last update time of each data block for each structure in the database. These features can potentially reduce the total time required to perform database dumps. For incremental dump, all data blocks which have changed since the last full, incremental or accumulated dump, are backed-up. For accumulated dump, all data blocks, which have changed since the last full dump, are included in the dump.
Incremental and Accumulated back-ups copy only the files that were added to or changed since the last lower level dump was backed-up. Since most of the files, e.g., system files, are static they will not be included in the dump. This can save considerable space and time. A complete restoration of a damaged file system will then require the last full dump followed by the Incremental and Accumulated dump(s). Incremental and Accumulated dumps can be done weekly or daily, depending on file system activity and importance.
DUMPSTAMP: When the DUMPSTAMP option is set, a new word is allocated to store the transtamp of each data block. This attribute is valid for data sets, sets and subsets. The Incremental and Accumulated Dump feature in DMUTILITY uses the transtamp value to detect when data blocks have been modified. Then this information is used to determine whether each data block will be included in the
When the user chooses to back-up each data set and its associated sets and subsets using the Incremental or the Accumulated Dump feature, the DUMPSTAMP option needs to be set. The DUMPSTAMP option is reset by default for existing structures. By specifying DUMPSTAMP or DUMPSTAMP=TRUE, will set the option. Setting the DUMPSTAMP to TRUE for existing structures requires a file format reorganization and yet still there is no need for recompilation of the application program.
Once the DUMPSTAMP option is set, re-setting it will not force a file format reorganization and the Incremental and Accumulated Dump capabilities stays enabled.
INDEPENDENTTRANS must also be set when DUMPSTAMP is set to TRUE. When Users are performing a reorganization, the DUMPSTAMP option is set to TRUE. This can be accomplished by using the defaults enforced by the DASDL compiler or by explicitly setting the DUMPSTAMP option to TRUE. The DUMPSTAMP option is not designed for partitioned data sets.
The DUMPSTAMP option is set under the following conditions:
(i) for all new structures;
(ii) for all structures in a new database;
(iii) when XE is set for that structure.
DUMPSTAMP OPTION: When the DUMPSTAMP option is set, a new word is allocated to store the last update transtamp of each data block. This attribute is valid for data sets, sets, and subsets. The Incremental and Accumulated Dump feature in DMUTILITY uses the transtamp value to detect when data blocks have been modified. This information is then used to determine whether each data block will be included in the Dump.
When the User chooses to back-up each data set and its associated sets and subsets using the Incremental or Accumulated Dump feature, the DUMPSTAMP option needs to be set. The DUMPSTAMP option is reset by default for existing structures. Specifying DUMPSTAMP or setting DUMPSTAMP=TRUE will set the option, thus setting the DUMPSTAMP to true for existing structures will require a file format reorganization, yet at the same time, no recompilation of application programs is necessary. Once the DUMPSTAMP option is set, then resetting it will not force a file format reorganization, and the Incremental and the Accumulated Dump capability stays enabled.
INCREMENTAL OPTION: The purpose and use of the Incremental option is to back-up all data sets, sets, and subsets which have been modified since the last Incremental, Accumulated, or full Dump has been performed. All structures will have the DUMPSTAMP option set in DASDL and will contain an extra word for storing information, and this trans-stamp is used by the DMUTILITY to decide whether each data block will be included in the Incremental Dump process.
For structures that have DUMPSTAMP, the whole structure will be dumped. A full Dump of the database is required before any Incremental and Accumulated Dump can be started. The following conditions will require a full Dump to be run prior to the start of the next Incremental or Accumulated Dump, as follows:
(a) update level change via REORGANIZATION;
(b) initialization of Control File;
(c) RECOVER UPDATE of the Control File;
(d) RECOVER INITIALIZE of the Control File;
(e) ON-Line Garbage Collect;
(f) REBUILD of the whole database;
(g) ROLLBACK Recovery;
(h) RDB takeover.
SYNTAX: In order to use the Incremental option, the User must precede the keyword DUMP with a keyword INCREMENTAL or INCR in the DUMP command.
ACCUMULATED OPTION: The purpose and use of the ACCUMULATED option is to back-up all data sets and subsets, which have been modified since the last full Dump had been performed. All structures which have the DUMPSTAMP option set in DASDL will contain an extra word for storing information and this transtamp is used by DMUTILITY to decide whether each data block will be included the ACCUMULATED Dump process.
For structures that have DUMPSTAMP option set to “FALSE”, the whole structure will be dumped. It should be noted that a full Dump of the database is required before any Incremental and Accumulated Dump can be started.
Prior to the start of the next Incremental or Accumulated Dump, it will be necessary to require a full Dump on the conditions previously listed as a, b, . . . g, h.
SYNTAX: In order to use the ACCUMULATED option, it is necessary to precede the keyword DUMP with a keyword ACCUMULATED or ACCU in the DUMP command.
DMCONTROL: Regarding the Incremental and Accumulated DUMPSTAMP, it must be noticed that the DUMPSTAMP will include 3 new words for storing the transtamp at the time when a full, Incremental or Accumulated Dump had taken place. This information is used later by the DMUTILITY to retrieve modified blocks for those structures with the DUMPSTAMP capability enabled.
When the Incremental or Accumulated Dump option is chosen, the Dump process runs faster due to the capability to only Dump the modified blocks or the entire structure which has been modified since the last Dump. There is no impact to the performance of the actual database Dump. The Incremental and Accumulated Dumps are recommended when a small portion of the database has been changed. When large numbers of updates are done to the database, then the User should utilize the existing mechanism to run a full database Dump.
FIG. 2 is an illustration of a program flow diagram to indicate the overall sequences involved in the newly-developed back-up system for a computer operating system.
Step marker (A) indicates the Master Control Program in the processor 10 which is used, for example, in a Unisys ClearPath heterogeneous multi-processor (HMP) system designated NX (or A-Series) computers.
At step (B), the Operating System of the MCP is connected to the Data Management System II. The Data Management System (DMSII), as previously noted, is a specialized system software package used to describe a database and to maintain the relationships among the data elements in the database. At step (C), a decision box will query—is the DUMPSTAMP enabled in the DASDL?—(Data And Structure Definition Language). If the response is NO, then step (CN) indicates no action for the Incremental or Accumulated DUMP operation.
If step (C) is YES, then step D indicates that the ACCESSROUTINE program writes the TRANSTAMP value in the DUMPSTAMP word in each data block to indicate when that data has been modified.
Then, the sequence proceeds to step (E) which invokes the DMUTILITY program which will parse the newly-provided syntax in order to scan for a keyword designated as the EXCLUDE keyword, thus, to build a DUMPLIST to reflect the specific disjoint data set and all of its sub-level structures which are to be excluded from the DUMP.
At this stage, a branching occurs into two separate decision blocks. At decision block (ED) the query is posed as to whether this back-up command is for back-up to a disk unit. On the other branch, a decision block (ET) is indicated to query whether this is a command for a back-up operation to Tape.
Now following through on step (ED) for the back-up to disk operation, the next step is step (FD) which is the execution of the DUMP-TO-DISK operation. This involves software for speeding up the DUMP-TO-DISK operation, where software changes are made to optimize the existing disk Read and Write operations which are shown at steps (FR) and (FW). As will be discussed hereinafter, performance gains are further accomplished through expansion of buffer sizes in order to reduce the number of I/O's involved.
Now returning to step (E) and on to the branch (ET) which involves a back-up operation to tape. From step (ET), the next sequence is step (FT), which is an execution of a Dump-to-Tape operation. Since the database back-up is actually a snapshot of the entire database or merely parts of the database, it is essential to have a back-up which can later be used to recover lost data or even to transfer the database from one location to another. Thus at step (FT), a Dump-to-Tape session is initiated, where at step (G1) there can be a Read operation from a source database 40 s and also a Write operation at step (G2) which provides the destination database to be placed on tape 50.
FIG. 3A is a drawing indicating features of the Dump-to-Disk data flow. For example, the source disk 40S is seen to have a multitude of separate areas designated 41 a through 41 m. Each of these areas are transferred to separate Input buffers designated as 43 and 44 which have been expanded from their normal 4,800 words to 65,535 words. Subsequently, the data in the Input buffers 43 and 44 are then respectively transferred to the Output buffers 45 a . . . 45 n and 46 a . . . 46 x thence to the destination Dump file 40 d. The Output buffers 45 are then placed in blocks designated 47, while the Output buffers 46 are then placed in blocks 48 within the destination Dump file 40 d. It is also noted that there is now provided an increased default block size from the normal 903 words up to 20,040 words. A more efficient data transfer operation is now enabled since larger block sizes of words can be transferred per any given single command operation.
As a result, the Disk 40 d will now hold a series of data blocks where blocks 47 a . . . 47 n derive from Output Buffers 45 a-45 n. Then data blocks 48 a . . . 48 x will derive from Output Buffers 46 a . . . 46 x.
FIG. 3B is an illustration of the Dump-to-Tape flow diagram. Here, source disk 40S will be seen to have a series of data areas designated 41 a . . . 41 m. The data in these areas from source Disk 40S will then be conveyed to the Input buffers 43 and 44. These buffers have been expanded from their normal size of 4,800 words, up to 65,535 words.
The Input buffers 43 and 44 will then be respectively transferred to a series of output buffers 45 a . . . 45 n, likewise, the input buffers 44 will be transferred to the Output buffers 46 a . . . 46 x.
Subsequently, the information will be placed on the destination DUMP file on Tape 50. On Tape 50, there will be a series of blocks designated 47 a . . . 47 n which derive from the buffers 45 a . . . 45 n. Likewise, the DUMP file on Tape 50 will also have a number of blocks designated 48 a . . . 48 x which have been derived from the Output buffers 46 a . . . 46 x.
FIG. 4A is a drawing showing how each modified data block is tagged with a DUMPSTAMP word generated by the ACCESSROUTINE program whenever a new modification to the data block has been detected.
FIG. 4B is a sketch to indicate that the Control File has a record of the (i) last full Dump DUMPSTAMP; (ii) the last Incremental Dump DUMPSTAMP; and (iii) the last Accumulated Dump DUMPSTAMP.
FIG. 4C illustrates an example of two series of operations where at series 1 there is a Full Dump at time 1, an Incremental Dump at Time 2 and another Incremental Dump at Time 3. In Series 2, there is a Full Dump at Time 1 and Incremental Dump at Time 2, while the Full Dump operates from Time 1 through Time 3.
FIG. 5 is a chart indicating the sequence of steps for determination of the block size (for Dump-to-Disk) which is a variable factor that can be determined by the User of the system.
Thus, when the User desires to establish the size of a block to be utilized, the first sequence involved is step (FD1) which involves an Input Dump-to-Disk command. This initiates a software program to speed up the Dump-to-Disk operation, and to optimize disk Read and Write operations.
At step (FD2), the Dump-to-Disk command is parsed into the required specific commands involved for the system.
At step (FD3), a selection occurs so that an Incremental Dump sets an INCR Dump flag or the Accumulated Dump sets an ACCU Dump flag—otherwise, the sequence goes to step FD4.
At step (FD4), the software will increase the default block size for the Output buffers 45 a-45 n, 46 a-46 x (FIGS. 3A,3B)) from the normal 903 words up to a limit of 20,040 words.
At Step (FD5), a decision block poses the query as to whether the User did specify a block size value. If the answer is (NO), then step (FD5N) will re-size the Output using the default block size, which then continues on to the continuation marker (DA).
At step (FD5), if the User did specify a block size value (YES), then the sequence proceeds to step (FD6) which queries—is this a valid block size value? If the answer is (NO), then at step (FD6N) there will be a return of the syntax error and exit from the program.
At step (FD6), if this turns out to be a valid block size value (YES), then at step (FD7), the system will override the default block size value and replace it with a value specified by the User.
The reference marker DA is shown to indicate that the sequence proceeds to FIG. 6. In FIG. 6 from the reference mark DA, the sequence proceeds to step (FD8) which involves getting the next file in the database, after which the next step (FD9) involves a decision block to query if there is any more data in this file. If the answer is (YES), then the sequence proceeds to step (FD10) which involves a decision block to see if the INCR flag is set.
If the INCR flag is set (YES), the next step is (FD10Y) where there is a Reading of the modified blocks which is based on the DUMPSTAMP-time which is greater than the DUMPSTAMP of the last Incremental Dump and greater than the last Full DUMPSTAMP stated in the Control File.
If the INCR flag is not set (NO), then step (FD10N) presents a decision block to inquire if the ACCU (Accumulated) flag is set. If YES, then step (FD10NY) functions to Read the modified blocks which have a DUMPSTAMP time greater than the last Full DUMPSTAMP recorded in the Control File.
After steps (FD10NY) and (FD10Y), there occurs step (FD11) where there is a Reading of the contiguous sectors from the Source file. This is followed by step (FD12) where data is stored in the expanded input buffer.
Next, is step (FD13) where the data is transferred to the Output buffer after which at step (FD14), the Output buffer is written to disk using a selected block size.
Step FD15 then involves a decision block for checking if there is more data in the Input buffer which is to be transferred to the Output buffer.
FIG. 7 is a flow chart showing the sequence of steps required to make a block size determination for a Dump-to-Tape. Referring to FIG. 7 at step (FT1), there occurs the Input Dump-to-Tape command. This is followed by step (FT2) where a parsing of the DUMPED data command is effectuated. Then at step (FT3), there is a setting of the INCR Dump flag or the ACCU Dump flag. Step FT4 sets the default size according to the tape density.
At step (FT5) a decision block queries as to whether the User specified a block size value. If the answer is (NO), then at step FTSN there will be a re-sizing of the Output buffer for using the default block size, after which the sequence proceeds to reference mark TA.
Returning to step (FT5), if the answer is (YES) to the User having specified a block size value, then the sequence proceeds to a decision block at step (FT6). Here, a query occurs as to whether this is a valid block size value. If the answer is (YES), then at step (FT7), the system will override the default block size value by the new value specified by the User.
FIG. 8 is a continuation of FIG. 7, starting with the reference mark TA.
At step (FT8), the sequence will get the next file in the database and then proceed to step (FT9) which involves a decision block to query whether there is any more data in this particular file. If the answer is (YES), the sequence proceeds to step (FT10Y) where there will be reading of the modified blocks having a DUMPSTAMP value greater than the last Incremental DUMPSTAMP and the last Full DUMPSTAMP as recorded in the Control File.
If the answer to FT10 is NO, then step FT10N queries if the ACCU flag is set. If YES, then step FT10NY provides a reading of modified blocks having a DUMPSTAMP value greater than the last Full DUMPSTAMP recorded in the Control File.
Then at step (FT11), the system will read the next group of contiguous sectors from the Source file.
At step (FT12), the data is stored in the Input buffer which has been expanded from its normal 4,800 word size, to 65,535 words for the buffers which are shown in FIGS. 3A and 3B as Input buffers 43, 44.
At the next step (FT13), there will be the transfer of data into the Output buffers 45 a . . . 45 n, 46 a . . . 46 x. The next step at (FT14), there is a writing of the Output buffer to the tape using the chosen block size as a physical block size in words. After this at step (FT15), there is a decision block querying whether there is any more data left in the Input buffer. If the answer is (YES), the sequence returns to step (FT13) to finish off any remaining data in the Input buffer. If the answer is (NO), the system then returns to step (FT9) to see if there is any more data in the particularly selected file which must be handled.
There are a number of operational situations and problems which involve the efficiency of data transfer operations in these type of systems. Some of the new enhanced tape drives have high capacity and high speed. If the software which interfaces with the tape drive, for example, performs I/O operations which involve long pauses between the Write operations to tape, then there is always the possibility that the tape device may lose its current position. Then, on subsequent Write commands issued by the software, the tape device will then have to reposition itself so that it has to point to the end of the last Write operation. The liability of this situation is the time lag or latency involved in having to re-position the tape driver device.
It may be noted that the DMUTILITY does not actually issue the positioning commands to the tape drive, but if the Write operations are not done quickly enough or if not enough data is written out to the tape, there is always the possibility that the tape device (at the hardware level) will lose its position. When the software program issues the next Write, then the tape drive will need to reposition itself to the place on the tape adjacent to the last Write operation. Since DMUTILITY does not have control over the repositioning operation performed by the tape device, there is still the necessity to ensure that the latency or repositioning lag does not hold-up the data transfers because this will impact the performance of the database back-up and recovery.
Thus, by expanding and using larger buffers during the internal Write operations to tape, this enables an avoidance of any problem which might involve not writing enough data to the tape device. Additionally, this expands the current limit to the maximum allowed by the tape device so that the maximum usage of the tape device is utilized. Further, the present system and method obviates the dependency on time-stamps which cannot easily handle time-zone changes such as Daylight Time/Standard Time changes. As a result, there is considerable more efficiency, less overhead and speeding-up of the total elapsed time for accomplishing the back-up to tape by using the enhanced software involved herein.
Described herein has been an improved system for producing back-ups for a source database. While one embodiment of the invention has been illustrated there may be other embodiments which are still encompassed by the subject invention as described by the following claims.
Citations de brevets