![]()
Database Size
See also:Introduction
Troubleshooting flow chart + worksheet
How to troubleshoot damaged data
Database myths
Causes of data damage
How to repair
How to export/import
Troubleshooting FAQs
Tips for preventing damaged data
Inside the database
Database size
Windows tips
The Clients & Profits database has a maximum size of 2.56 gigabytes, which is comprised of 10 segments of 256 megabytes each.
The first database segment, which was created when you first started Clients & Profits, increases in size automatically as new records are added. As the staff learns more about Clients & Profits, the volume of work added increases. Youll see the databases growth rate quicken after the first six months. How fast your database grows is also a factor of your shops growthpicking up several new clients will add an unexpected growth spurt to the database. Its easy to lose track of the databases size, which can suddenly run out of roomcausing data to be lost. So tracking the databases size is a critical role for the C&P system manager.
To check the database size
The databases current size is shown in the Database Utilities window:
The Database Utilities shows two sizes: file size and data size. The file size is the size of the database file on the file server (i.e., its physical or logical size). In contrast, the data size shows the actual size of the records contained inside the database file. If you dont pre-size or purge your database, these two sizes will be nearly identical. Pre-sizing the database changes the file size, since it is the actual physical size of the file on the servers hard disk. As data is added to the database, its data size increases. The data size is more important because it determines whether the database is too full -- when the data size reaches 250 megabytes, its time to add another segment or else itll run out of space.
For an explanation of database segments, see Inside the Clients & Profits Database.
As your database reaches 250mb, youll be prompted to add a new segment. This is a very important stepif a new segment isnt created, the database will run out of free space (youll see a data files full error message) and data will be lost. (If C&P mail is enabled, a reminder will be e-mailed to the system manager each time a manager-level user starts Clients & Profits, so the issue should be hard to ignore.
The databases growth rate can be graphed in Database Utilities by clicking the button. The databases size is recorded each time this button is clicked. By regularly viewing the database graph, youll be able to easily track the growth rate and better predict its future size.
To pre-size the database
It isnt necessary to pre-size your database with Clients & Profits version 3.0 or later. Your database will expand automatically as new data is entered. But in high-volume environments (for example, more than ten simultaneous users) it is still more efficient to set the database size in advance. By pre-sizing youre allocating a fixed amount of disk space for the database. The databases file size on the server will be larger than the amount of data that it actually contains. When new work is added, the database size wont grow -- instead, the new data simply fills up the unused space. In this way pre-sizing the database helps prevent disk-based fragmentation.
Pre-sizing is a single-user function. It wont work if other users have the database open. Also, pre-size the database when there is the least amount of network traffic; if the file server crashes for any reason, the database will become corrupted and a backup copy will have to be restored.
1 Choose Setup > Utilities > Database Utilities.
2 Choose File > Change Database Size.
The Change Database Size dialog box opens, prompting you to enter the databases new size. The database size can be increased in 10% increments by clicking the button or by entering the databases new size (in megabytes) in the size field, up to 256 megabytes. If your database is growing relatively slowly (e.g., less than 50 mb per year) theres no advantage to pre-sizing it to 256mb -- itll just be a more difficult to copy to zips, etc.. If your database is growing faster, or you have more than ten
simultaneous users, pre-sizing the database to its maximum size of 256mb is recommended to prevent
fragmentation.
3 Enter the databases new size, then click OK.
Extending the size of the database will take only a few minutes, depending on how large it is being expanded. Once completed, the database is ready for new work.
To add an additional segment
A new segment cant be added unless the database is already 250 megabytes or larger. This limitation prevents a second segment from being added accidentally (which is important since it cant be undone). If someone tries to add a new segment too soon, theyll see this error:
Like pre-sizing, adding a new segment is a single-user function. It wont work if other users are using the database. Also, dont add a new database segment if there is a lot of network traffic (because if the file server crashes, the database and its new segment will be unusable and a backup copy will have to be restored).
First, be sure the database is properly named and has the .DF1 file extension. The database name shouldnt have quotes, dashes, slashes, periods, spaces, or other special characters (underscores are ok). A good name should include the company name, something that describes it as the accounting database, and the fiscal year (e.g., CP_ACCT99.DF1, AGENCY_ACCT99, etc.).
1 Choose Setup > Utilities > Database Utilities.
2 Click the (i.e., Change Database Size) button or choose File > Change Database Size.
3 Click the Add Segment button.
4 Click OK.
The new segment is automatically named using the databases name, but ending with the .DF2 extension. New segments are pre-sized to 100 megabytes.
Unlike the first database segment, additional segments arent automatically extended as new data is added. This means its important that the system manager track the databases free space (i.e., the data size) from month to month to prevent the database from becoming full. As the data size nears 100mb, youll need to use the Change Database Size utility to extend the database size.
DO NOT MOVE, DELETE OR RENAME A DATABASE SEGMENT. Once an addition segment is created, moving, deleting, or renaming it will cause the entire database to be unusable.
Always back up and restore a database and its segments together as a group. If different versions of a database and its segments are mixed up, the entire database will be unusable.
Adding three or more segments is possible, but not recommended. For databases over 500 megabytes, upgrading to Clients & Profits SQL is recommended. For more information, contact the Clients & Profits Sales at (800) 272-4488
Next Page: Windows Tips