1. Stop nntp//rss and BACKUP YOUR EXISTING DATABASE - These are the nntprssdb.* files within your nntprss directory.
2. Open a new command prompt / shell, change to the nntprss directory.
3. Run the following command to start the HSQLDB database engine (this assumes that the java command is in the path):
- Code: Select all
java -cp .\ext\lib\hsqldb.jar org.hsqldb.Server -database nntprssdb
This will start the hsql process - you should see something like:
- Code: Select all
server.properties not found, using command line or default properties
Opening database: nntprssdb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Sun Sep 07 18:30:29 EDT 2003 Listening for connections ...
4. Open another command prompt / shell, change to the nntprss directory.
5. Run the following command to start the HSQLDB database manager (this assumes that the java command is in the path):
- Code: Select all
java -cp .\ext\lib\hsqldb.jar org.hsqldb.util.DatabaseManager -url jdbc:hsqldb:hsql://localhost
Within a few moments a GUI window will appear. It should have a tree view in the left pane showing the three nntprss tables - CHANNELS, ITEMS, CONFIG. If these do not appear, stop the Database Manager, wait a few moments, then restart. It may be possible that the database is still being initialized.
6. To purge items older than a certain date, enter the following command into the text entry pane of the Database Manager: (this example removes all entries that were received before 1st July 2003)
- Code: Select all
DELETE FROM items where dtStamp < '2003-07-01'
Note that this will delete in all channels items that were created before the specified date .
7. Click on the EXECUTE button to execute the request. Depending upon the size of your database, this process may take some time. At the end of deletion, you'll be presented with a result that indicates the number of items removed.
8. Enter the following command in the text entry pane:
- Code: Select all
SHUTDOWN COMPACT
9. Click on the EXECUTE button. The database will now compact itself, recovering the space of the deleted items. Again, this process may take a few moments. When it has completed, you will note that the database process you started in step 3 has terminated. At this stage you can shutdown the Database Manager.
10. Restart nntp//rss.
