rmdbase

Removes a Reality database from the system.

Syntax

rmdbase database

Parameters

database The host path-name (absolute or relative) of the database to be removed.

Restrictions

Use of rmdbase is restricted to the database owner and, on UNIX, super-user.

If you are using Database Isolation, you must use realroot to select required instance of Reality before running rmdbase.

Comments

rmdbase removes the top directory, together with all files under it, from the system. If the database is configured for transaction logging, the transaction logging directory is also removed. If the database has a clean log directory, you are prompted to say whether the clean log directory must also be removed.

Caution

Once rmdbase is executed, the database is permanently removed from the system. It cannot be recovered, other than from back-up tapes.

Because the rmdbase operation is so final, a warning message prompt is displayed first.

Examples

To remove the database dbase1 from the directory /usr/accounts, change directory to /usr/accounts, then enter:

rmdbase dbase1

The system responds with

WARNING:  This will remove database dbase1
Are you sure you wish to remove it?

Enter n  at this stage if you wish to abort the operation. If you still wish to remove the database, enter y.