Restoring sample databases
You can restore sample databases to their initial state by using either the Samples Console or the Ant task command.
About this task
The sample server provides the following databases:
- resdb contains the Rule Execution Server sample database.
- rtsdb contains the Decision Center sample database.
- rtsdb-serverextendedbrm contains the Decision Center sample database for the Complex rule model extension sample, which needs a specific database schema. See Sample: Complex rule model extensions.
The easiest way to restore the databases is to click the
Restore
the sample server icon in the Samples Console. The Console
view displays feedback messages as the database is being restored.
You can also use an Ant task. To do so, you must first define the ANT_HOME variable (see Setting up your environment to use Ant).
Important: If you want to keep the modifications that you have done to the existing
databases, create a backup of the existing databases located in
<ServerDir>/usr/server/<ProfileName>/data/h2, where
ServerDir is the location of the WebSphere® Liberty application server that you gave during the installation, and ProfileName depending on your version
number.
Procedure
- Stop the sample server if it is running.
- Open a command prompt, and go to <InstallDir>/shared/bin/.
- Type ant restoredb and press Enter.
- Start the sample server.