首页 > 代码库 > mondrian 中datasource.xml配置
mondrian 中datasource.xml配置
<?xml version="1.0"?>
<!--
== $Id: //open/mondrian-release/3.1/webapp/WEB-INF/datasources.xml#2 $
== This software is subject to the terms of the Eclipse Public License v1.0
== Agreement, available at the following URL:
== http://www.eclipse.org/legal/epl-v10.html.
== (C) Copyright 2005-2006 Julian Hyde and others.
== All Rights Reserved.
== You must accept the terms of that agreement to use this software.
-->
<DataSources>
<!--
A data source is a collection of logically related Mondrian
catalogs.
The XMLA specification allows an XMLA provider to have
multiple data sources, but some clients, particularly ones
based on ADOMD.NET such as Simba‘s O2X client and Pentaho
Spreadsheet Services, can only connect to the first declared
data source. Therefore, we recommend that you use a single
data source, containing multiple catalogs if necessary.
-->
<DataSource>
<!--
Name of the data source.
-->
<DataSourceName>Provider=Mondrian;DataSource=Cost;</DataSourceName>
<!--
Description of the data source.
-->
<DataSourceDescription>Cost Data Warehouse</DataSourceDescription>
<!--
The URL of the servlet.
-->
<URL>http://localhost:8080/mondrian/xmla</URL>
<!--
Mondrian connect string for the data source. If this data
source contains multiple catalogs, omit the ‘Catalog‘
property, and specify the URI of the schema.xml file in
the catalog‘s <Definition> element.
Catalogs can override the connect string with their own
<DataSourceInfo> element.
-->
<DataSourceInfo>Provider=mondrian;Jdbc=jdbc:mysql://localhost/costaccount?user=root&password=haidong;Catalog=/WEB-INF/queries/CostSchema.xml;JdbcDrivers=com.mysql.jdbc.Driver;</DataSourceInfo>
<!--
Provider name must be ‘Mondrian‘.
-->
<ProviderName>Mondrian</ProviderName>
<!--
Provider type must be ‘MDP‘.
-->
<ProviderType>MDP</ProviderType>
<!--
Authentication mode. Allowable values are
‘Unauthenticated‘, ‘Authenticated‘, ‘Integrated‘.
-->
<AuthenticationMode>Unauthenticated</AuthenticationMode>
<!--
A data source contains one or more catalogs.
-->
<Catalogs>
<!--
Catalog names must match the name inside the
schema.xml file, and must be unique across all data
sources defined in this datasources.xml file.
-->
<Catalog name="IncomeStatement">
<!--
Mondrian connect string for the data source. This
element is optional; if specified, it overrides the
data source‘s <DataSourceInfo> element. Typically,
you would use this element if the catalogs have
different JDBC data sources.
-->
<!--
<DataSourceInfo>Provider=mondrian;Jdbc=jdbc:odbc:MondrianFoodMart;JdbcDrivers=sun.jdbc.odbc.JdbcOdbcDriver</DataSourceInfo>
-->
<!--
URI of the schema definition file.
-->
<Definition>/WEB-INF/queries/CostSchema.xml</Definition>
</Catalog>
</Catalogs>
</DataSource>
</DataSources>
mondrian 中datasource.xml配置