Database Isolation

This feature makes it possible to run multiple instances of the same version of Reality. Each instance runs completely independently of other instances in much the same way as different versions of Reality.

This has two main advantages:

Each instance of Reality requires the same amount of memory and disk space as a normal (non-isolated) Reality installation.

Note

Additional instances are licensed separately from the base instanceClosed On an installation with Database Isolation, the normal instance of Reality; that is, the one from which all additional instances were created. The base instance does not have an instance number.  of Reality. If you want to create a new instance, you must purchase the required number of user licences specifically for that instance number.

On Reality releases other than the live version, additional instances are restricted to a maximum of eight users in the same way as for the base instance.

Creating instances

A new instance cannot be used for creating or accessing databases before starting the Reality central service or daemon as appropriate.

For example, on Windows:

. realroot 3
realserv -s

Or on UNIX with the Korn shell:

. realroot 3
realstart

You create an additional instance of Reality with the realclone host utility. For example, to create a new instance numbered 3 of the currently selected version of Reality, enter:

realclone -c3

Note

The selected version of Reality will be the live versionClosed The live version of Reality is the version that is used automatically when a user logs on to the host. To use a non-live version, use the realroot command to select it.  unless changed with the realroot command.

Once you have created a new instance, you need to associate one or more databases with it.

Note

Once a database is associated with an instance of Reality, it can only be used with that instance. Before using any of the Reality host utilities, you must use realroot to select the correct release and instance.

Deleting instances

The realclone host utility also allows you to delete the Reality instances you have created. Before doing this, for each database associated with the instance you must either:

realroot 3
rmdbase dbase3

or on UNIX with the Korn shell:

. realroot 3
rmdbase dbase3

You can then run realclone with the -d option to delete the instance:

realclone -d3

Updating the instance software

If you update your Reality software (for instance, by installing a patch), you must also update any additional instances. To do this, shut down the Reality central daemon or service as appropriate for that instance (on UNIX, use killreal; on Windows, realserv -e). Then run realclone with the -u option on the base instance. You can then restart the central daemon or service for the instance using realstart (UNIX) or realserv -s (Windows). Use realroot to select the appropriate instance at each stage.

For example, to upgrade instance 3 to the same software version as the base instance on Windows, run:

realroot 3	< select the instance
realserv -e < stop the services for the instance
realroot < select the base instance
realclone -pu3 < update the instance
realroot 3 < re-select the instance
realserv -s < restart the services for the instance

or on UNIX with the Korn shell:

. realroot 3	< select the instance
killreal < stop the daemons for the instance
. realroot < select the base instance
realclone -pu3 < update the instance
. realroot 3 < re-select the instance
realstart < restart the daemons for the instance

Administering a Reality instance

The realroot host command selects a specified Reality release or instance, by setting the necessary environment variables (REALROOT, PATH, etc.). When using the Reality host utilities, you must first select the required instance.

Using Database Isolation with Resilience

If you are using both Database Isolation and Resilience, the following restrictions apply: