Restoring the sample server

You can restore the server to its initial state. Restoring the sample server re-creates the profile and the databases.

Before you begin

Restoring the server has the following effects:

  • Stops the server.

  • Deletes the profile and all the files that it contains.

    On Linux, you might get a message indicating that the profile was removed but that some errors occurred. These errors are in fact warnings about Linux services and you can ignore them.

  • Deletes all existing databases, and restores the databases to their initial state.

  • Restarts the server and creates a profile for the sample server.

When you restore the sample server, all the deployed applications are deleted. Before restoring the server, back up the existing profile and databases.

Note: To run the following commands, you must define the ANT_HOME variable. For more information, see Setting up your environment to use Ant.

Procedure

To restore the sample server:

  1. Open a command prompt, and go to <InstallDir>/shared/bin/.
  2. Type ant recreateserver, and press Enter.