Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

How refresh data in Mondrian db. #213

Open
grzesiekb opened this issue Jun 13, 2017 · 2 comments
Open

How refresh data in Mondrian db. #213

grzesiekb opened this issue Jun 13, 2017 · 2 comments
Labels

Comments

@grzesiekb
Copy link

I have mysql - dw db and ETL (Ketl) when run Pan.sh (ETL) I don't have new data in pivot4j. How I may refresh data in Mondrian DB. However new date are in database (dw - mysql).

Thank you.

@mauriciofh
Copy link

mauriciofh commented Jun 13, 2017

Hi.

You can use a jsp page for this.
I hope I helped you.

<%@ page import="mondrian.olap.*" %>
<%
    String jdbc = request.getParameter("Jdbc");
    String jdbcUser = request.getParameter("JdbcUser");
    String jdbcPassword = request.getParameter("JdbcPassword");
    String jdbcDrivers = request.getParameter("JdbcDrivers");
    String catalog = request.getParameter("Catalog");

    String connectionString = String.format("Provider=mondrian;Jdbc=%s;JdbcUser=%s;JdbcPassword=%s;JdbcDrivers=%s;Catalog=%s;",
            jdbc, jdbcUser, jdbcPassword, jdbcDrivers, catalog
    );

    Connection connection = DriverManager.getConnection (connectionString, null);
    connection.getCacheControl(null).flushSchemaCache();
    connection.close();

%>
<p>Flushed successfully!</p>
<p><%=connectionString%></p>

@grzesiekb
Copy link
Author

Thank you tomorrow I will check it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants