Mondrian with Oracle connection
Load the data into Oracle database
The easiest way to load the test data into an Oracle database is to use the MondrianFoodMartLoader application provided with Pentaho. MondrianFoodMartLoader will automatically create necessary database objects and will load the FoodMart data.
Below the script used to load the data to Oracle which was used during the creation of that tutorial:
java -cp "D:\mondrian\lib\mondrian.jar; D:\mondrian\lib\log4j-1.2.9.jar; D:\mondrian\lib\eigenbase-xom.jar; D:\mondrian\lib\eigenbase-resgen.jar; D:\mondrian\lib\eigenbase-properties.jar; D:\mondrian\lib\ojdbc14.jar" mondrian.test.loader.MondrianFoodMartLoader -verbose -tables -data -indexes -jdbcDrivers="oracle.jdbc.driver.OracleDriver,sun.jdbc.odbc.JdbcOdbcDriver" -inputJdbcURL="jdbc:odbc:MondrianFoodMart" -outputJdbcURL="jdbc:oracle:thin:foodmart/foodmart@127.0.0.1:1521:dwdev"Script execution options which are worth looking at:
Apache Tomcat configuration
#oracle mondrian.test.connectString=Provider=mondrian;jdbc:oracle:thin:foodmart/foodmart@127.0.0.1:1521:dwdev; JdbcDrivers=sun.jdbc.odbc.JdbcOdbcDriver,oracle.jdbc.driver.OracleDriver;Catalog=/WEB-INF/queries/FoodMart.xml;
<param-name>connectString</param-name> <param-value>Provider=mondrian;Jdbc=jdbc:oracle:thin:foodmart/foodmart@127.0.0.1:1521:dwdev; Catalog=/WEB-INF/queries/FoodMart.xml;JdbcDrivers=oracle.jdbc.driver.OracleDriver; </param-value>
The Oracle database is set up correctly now and Mondrian is ready to access the data from oracle.