### Configuring the server database in a standalone environment

When JReport Enterprise Server is running in a standalone environment, you can configure the database for it remotely on the JReport Administration page. Also, since the server database configuration information is stored in the dbconfig.xml file in the directory `<install_root>\bin`, you can also configure the server database in this file.

Notes:

- When you configure the database URL in a clustered environment, make sure that the setting for both the admin and backup server points to the same database location, so that when the backup server is promoted to be the admin server, the server data will be consistent.
- Usually, JReport Enterprise Server automatically creates system tables and profile tables the first time it is started. The database information that JReport Enterprise Server uses is defined in the dbconfig.xml file. However, if the user ID defined in this file does not have the permission to create tables in the database, JReport Enterprise Server will fail to complete the operation. In this case, you will need another user, such as the database administrator (who holds the relevant permissions), to create a set of empty tables in the user's schema using the provided SQL files. These SQL files can be found in `<install_root>\script_files`.

The following sections present the two ways of configuring the server database:

- Configuring the server database on the JReport Administration page
- Configuring the server database in the dbconfig.xml file