Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java System Calendar Server Administration Guide 

Chapter 16
Administering the Delete Log Database

Calendar Server includes the Delete Log database (ics50deletelog.db) to store deleted events and todos (tasks). In previous releases, Calendar Server did not maintain a database of deleted events and tasks. Users were forced to save the unique identifiers (uid) or recurrence identifiers (rid) of events or todos (tasks) to determine which components had been deleted. This limitation directly affected installations that used WCAP commands to develop a client user interface (UI).

This chapter describes:


Creation of the Delete Log Database

Calendar Server creates the Delete Log database (ics50deletelog.db) in the csdb directory along with the other Calendar Server database files. Calendar Server writes events and todos to the Delete Log database as follows:


Querying the Delete Log Database

To return entries from the Delete Log database, use the fetch_deletedcomponents WCAP command in either Expanded Mode or Compressed Mode:

For more about WCAP commands, see the Sun Java System Calendar Server 6 2004Q2 Developer’s Guide.


Purging the Delete Log Database

Calendar Server provides both the Automatic Purge of the Delete Log Database and the Manual Purge of the Delete Log Database.

Automatic Purge of the Delete Log Database

If you wish, you can have Calendar Server automatically purge entries in the Delete Log database.

Table 16-1 describes the parameters in the ics.conf file that control the automatic purge.

Table 16-1  Configuration Parameters for Automatic Purge of the Delete Log Database 

Parameter

Description

service.admin.purge.deletelog

Enables ("yes") or disables ("no") the automatic purge of Delete Log database (ics50deletelog.db) entries.

The default is "no".

caldb.berkeleydb.purge.deletelog.interval

Specifies the interval time in seconds to automatically purge entries in the Delete Log database (ics50deletelog.db).

The default is 60 seconds.

caldb.berkeleydb.purge.deletelog.beforetime 

Specifies a time in seconds before which to purge entries in the Delete Log database (ics50deletelog.db).

The default is 86400 seconds (1 day).

For example, to have Calendar Server automatically purge Delete Log database entries every five minutes (600 seconds) that are more than 2 days old (172800 seconds), set parameters in Table 16-1 as follows:

service.admin.purge.deletelog="yes"
caldb.berkeleydb.purge.deletelog.interval=600
caldb.berkeleydb.purge.deletelog.beforetime=172800

After you set these parameters, restart Calendar Server for the new values to take effect.

Manual Purge of the Delete Log Database

To manually purge entries in the Delete Log database (ics50deletelog.db), use the cspurge utility:

cspurge -e endtime -s starttime

where endtime and starttime specify the ending and starting times in Zulu time (also referred to as GMT or UTC).

To run cspurge on Solaris Operating Systems, you must be logged in as the user and group under which Calendar Server is running (defaults are icsuser and icsgroup) or as root.

For example, to purge entries from July 1, 2003 through July 31, 2003:

cspurge -e 20030731T235959Z -s 20030701T120000Z

For more information, see cspurge in Appendix D, "Calendar Server Command-Line Utilities Reference"


Using CLI Utilities for the Delete Log Database

Table 16-2 lists the Calendar Server command-line utilities that support the Delete Log database (ics50deletelog.db):

Table 16-2  Utilities that Support the Delete Log Database

Utility

Description

cspurge

Allows the manual purge of entries in the Delete Log database.

csbackup and csrestore

Supports the backup and restore of the Delete Log database.

csstats

Reports Delete Log database statistics.

csdb

Supports the rebuild, recover, and check operations on the Delete Log database.

cscomponents

Lists (read-only) the number of entries in the Delete Log database.

For more information, including the syntax for these utilities, see Appendix D, "Calendar Server Command-Line Utilities Reference"



Previous      Contents      Index      Next     


Copyright 2004 Sun Microsystems, Inc. All rights reserved.