DATABASE FILE GROUPS
Files may be assigned to groups for processing in an efficient manner. For example, a group may include a list of file names for processing together. The file names are assigned to the group by a user. When a command is executed on the system for modifying a file, the group name is provided along with the command rather than the file name or list of individual file names. The command automatically executes repeatedly for each file name associated with the group name.
1 . A method, comprising:
receiving a command and a group identifier;
identifying a collection of files associated with the group identifier; and
executing the command for each file of the collection of files.
2 . The method of claim 1 , in which the command is at least one of clear, collect, delete, disable, down, dump, dump changes, enable, list, print, recover, reload, replicate, report, set, and up.
3 . The method of claim 1 , in which the step of executing the command for each file comprises executing the command for each file in an order specified by the collection of files.
4 . The method of claim 1 , further comprising:
checking a format of each file of the collection of files before the step of executing the command; and
when the format of any file in the collection of files is incorrect for the received command, prevent execution of the command for the file having the incorrect format.
5 . The method of claim 1 , in which the step of identifying the collection of files comprises looking up the group identifier in at least one of a dump history file and a database.
6 . The method of claim 1 , further comprising inserting or removing files from the collection of files.
7 . The method of claim 1 , further comprising
determining a number of files in the collection of files before the step of executing the command; and
when the number of files is zero, prevent execution of the command.
8 . A computer program product, comprising:
a non-transitory computer readable medium comprising:
code to receive a command and a group identifier;
code to identify a collection of files associated with the group identifier; and
code to execute the command for each file of the collection of files.
9 . The computer program product of claim 8 , in which the command is at least one of a command used to backup a database, a command used to restore a database, and a command used to maintain a database.
10 . The computer program product of claim 8 , in which the medium comprises code to execute the command for each file in an order specified by the collection of files.
11 . The computer program product of claim 8 , in which the medium further comprises:
code to check a format of each file of the collection of files before the step of executing the command; and
code to prevent execution of the command for the file having the incorrect format when the format of any file in the collection of files is incorrect for the received command.
12 . The computer program product of claim 8 , in which the medium comprises code to look up the group identifier in at least one of a dump history file and a database.
13 . The computer program product of claim 8 , in which the medium further comprises code to insert or remove files from the collection of files.
14 . The computer program product of claim 8 , in which the medium further comprises:
code to determine a number of files in the collection of files before the step of executing the command; and
code to prevent execution of the command when the number of files is zero.
15 . An apparatus, comprising:
a memory for storing a database; and
a processor coupled to the memory, in which the processor is configured:
to receive a command and a group identifier;
to identify a collection of files associated with the group identifier; and
to execute the command for each file of the collection of files.
16 . The apparatus of claim 15 , in which the command is at least one of a command to backup a database, a command to restore a database, and a command to maintain a database.
17 . The apparatus of claim 15 , in which the processor is configured to execute the command for each file in an order specified by the collection of files.
18 . The apparatus of claim 15 , in which the processor is further configured:
to check a format of each file of the collection of files before the step of executing the command; and
to prevent execution of the command for the file having the incorrect format when the format of any file in the collection of files is incorrect for the received command.
19 . The apparatus of claim 15 , further comprising a storage device coupled to the processor, in which the storage device stores a database, and in which the processor is further configured to look up the group identifier in a dump history file.
20 . The apparatus of claim 15 , in which the processor is further configured to insert or remove files from the collection of files.