# Managing Databases

## Reinitializing databases

Reinitializing a database closes all open connections and creates new ones. This can be useful to force a reconnection to a database system.

## Deactivating databases

Deactivating a database closes connections to the database without deleting its configuration. JMap Server can no longer query the database. Deactivating is useful when the database stops responding and causes delays in the local server.

## Deleting databases

Deleting a database deletes the connection configuration for the database system. The data contained in the database is not affected at all.

## Database statuses

Each database has a status. The status indicates the condition of the database connection. The following table describes the possible statuses of a database.

<table data-header-hidden><thead><tr><th width="139.5"></th><th></th></tr></thead><tbody><tr><td><strong>Statuses</strong></td><td> </td></tr><tr><td>Error</td><td><p>The database connections are broken. </p><p>The database cannot be used until the error is resolved and the connections are reopened. Reinitializing the database might correct the problem. </p><p>You can view a description of the error by clicking on the word <strong>Error</strong> displayed in red.</p></td></tr><tr><td>Inactive</td><td>The database connections are closed but they are configured. JMap can no longer query the database.</td></tr><tr><td>Connected</td><td>The database connections were created successfully and are ready to be used.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-jmapserver-lima.k2geospatial.com/e/administrator/jmap-server-administrator-manual/resources-databases/managing-databases.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
