diff --git a/services/src/main/java/org/fao/geonet/api/site/SiteInformation.java b/services/src/main/java/org/fao/geonet/api/site/SiteInformation.java index 0d4031d8692..53d534201ff 100644 --- a/services/src/main/java/org/fao/geonet/api/site/SiteInformation.java +++ b/services/src/main/java/org/fao/geonet/api/site/SiteInformation.java @@ -226,6 +226,13 @@ private void loadDatabaseInfo(ServiceContext context) throws SQLException { connection = context.getBean(DataSource.class).getConnection(); dbURL = connection.getMetaData().getURL(); databaseProperties.put("db.openattempt", "Database Opened Successfully"); + databaseProperties.put("db.product", connection.getMetaData().getDatabaseProductName()); + databaseProperties.put("db.version", connection.getMetaData().getDatabaseProductVersion()); + databaseProperties.put("db.driver", connection.getMetaData().getDriverName()); + databaseProperties.put("db.driverVersion", connection.getMetaData().getDriverVersion()); + databaseProperties.put("db.username", connection.getMetaData().getUserName()); + databaseProperties.put("db.schema", connection.getSchema()); + databaseProperties.put("db.name", connection.getCatalog()); if (connection instanceof BasicDataSource) { BasicDataSource basicDataSource = (BasicDataSource) connection; diff --git a/web-ui/src/main/resources/catalog/locales/en-admin.json b/web-ui/src/main/resources/catalog/locales/en-admin.json index 6b5a6769c46..edee2aa45e4 100644 --- a/web-ui/src/main/resources/catalog/locales/en-admin.json +++ b/web-ui/src/main/resources/catalog/locales/en-admin.json @@ -196,6 +196,13 @@ "db.numidle": "Available connections", "db.openattempt": "Status", "db.url": "JDBC URL", + "db.product": "DB Product", + "db.version": "DB Version", + "db.driver": "JDBC Driver", + "db.driverVersion": "JDBC Driver Version", + "db.username": "DB username", + "db.schema": "DB Schema", + "db.name": "DB Name", "dbInformation": "Database", "dbUrl": "Database", "defineCatalogLogo": "Define the logo to use for the catalog",