public static boolean checkDbExist(final Connection conn, final String dbName) throws Exception {
        final String checkDbSql = OceanBaseSqlBuilder.getCheckDatabase(dbName);
        try (Statement stmt = conn.createStatement();
                ResultSet resultSet = stmt.executeQuery(checkDbSql)) {
            if (Objects.nonNull(resultSet)) {
                if (resultSet.next()) {
                    LOGGER.info("check db exist for db={}, result=true", dbName);
                    return true;
                }
            }
        }
        LOGGER.info("check db exist for db={}, result=false", dbName);
        return false;
    }
Check database from the OceanBase information_schema.

@param conn JDBC {@link Connection}
@param dbName database name
@return true if table exist, otherwise false
@throws Exception on check database exist error
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/oceanbase/OceanBaseJdbcUtils.java