public static String getDbNameFromJdbcUrl(String jdbcUrl) {
        Matcher matcher = JDBC_PATTERN.matcher(jdbcUrl);
        if (matcher.find()) {
            return matcher.group(3);
        } else {
            LOG.error("jdbc url {} is not valid.", jdbcUrl);
        }

        return null;
    }
@Test
    public void getDbTest() {
        assert ObReaderUtils.getDbNameFromJdbcUrl("jdbc:mysql://127.0.0.1:3306/testdb").equalsIgnoreCase("testdb");
        assert ObReaderUtils.getDbNameFromJdbcUrl("jdbc:oceanbase://127.0.0.1:2883/testdb").equalsIgnoreCase("testdb");
        assert ObReaderUtils.getDbNameFromJdbcUrl("||_dsc_ob10_dsc_||obcluster:mysql||_dsc_ob10_dsc_||jdbc:mysql://127.0.0.1:3306/testdb").equalsIgnoreCase("testdb");
        assert ObReaderUtils.getDbNameFromJdbcUrl("||_dsc_ob10_dsc_||obcluster:oracle||_dsc_ob10_dsc_||jdbc:oceanbase://127.0.0.1:3306/testdb").equalsIgnoreCase("testdb");
    }