Paradyne SLM 5.5 manual Deleting Older Records from the Database, Frequency

Models: SLM 5.5

1 112
Download 112 pages 22.36 Kb
Page 57
Image 57

7. OpenLane Maintenance

Deleting Older Records from the Database

he dbage function of OLCmd has four modes:

The -dparameter causes records to be deleted according to individual device definitions (the Save Report Data For and Save Raw Data For values set when each device was added)

The -aparameter causes records to be deleted according to the system-wide preferences set in the preferences.dat file

The -rptand -rawparameters cause report and raw data records to be

Tdeleted according to values specified when the dbage function is executed The -ddparameter deletes data for connections which no longer exist

When the dbage function is run periodically, it should be run twice: once to delete records for nonexistent connections with the -dd (dead data) option, and once to force the deletion of outdated records.

For a complete description of the dbage command, see Appendix A, OLCmd

Reference.

Frequency

How often dbage needs to be run depends in part on the disk space allotted to the database. In a system collecting data for 15-minute and 24-hour intervals, the database grows per day for each PVC approximately:

Tiny Database

Small Database

Medium Database

Large Database

(Up to 25 devices

(Up to 250 devices

(Up to 750 devices

(Up to 5000 devices

and 75 PVCs)

and 750 PVCs)

and 2250 PVCs)

and 15,000 PVCs)

 

 

 

 

76 KB

62 KB

62 KB

61 KB

 

 

 

 

However, regardless of available space, the database will run more efficiently the more its size is limited.

The running of dbage can be automated using cron (under Solaris) or at (under Windows). See Automating the Generation of Scheduled Reports on page 7-6for examples.

Example

To delete all dead data records and then delete report and raw data records according to device definitions, enter the commands:

OLCmd dbage -n OracleStatsDB -dd

OLCmd dbage -n OraclStatsDB -d

7800-A2-GB32-00

January 2002

7-5

Page 57
Image 57
Paradyne SLM 5.5 manual Deleting Older Records from the Database, Frequency