You can restore the server to its initial state. Restoring the sample server re-creates the profile and the databases.
To run the following commands, you must define the ANT_HOME variable. For more information, see Setting up your environment to use Ant.
When you restore the sample server, all the deployed applications are deleted. Before restoring the server, make sure that you have done a backup of the existing profile and databases.
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.
To restore the sample server: