1
Database The Kodiak Order Entry Server and the Kodiak Services Server both need access to the Kodiak database. They are both configured using their respective xml configuration files covered in their configuration settings manual. You can easily configure one and then copy and paste the configuration to the next one. The database configuration is in the <objects> node of the configuration file and starts with <db:provider> For it looks like this: Oracle configuration <db:provider id="DbProvider" provider="OracleODP-2.0" connectionString="Data Source= (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = ))) (CONNECT_DATA = (SID = ) (SERVER = DEDICATED)));User Id= ;Password= IP 1521 kodiak user pas ;Min Pool Size=10;Connection Lifetime=3600;Connection Timeout=3600;Incr Pool Size=5;Decr Pool Size=2" /> sword <object id="NHSessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate32"> <property name="DbProvider" ref="DbProvider" /> <property name="MappingAssemblies"> <list> <value>Kodi.Kodiak.DataAccess.NH</value> </list> </property> <property name="HibernateProperties"> <dictionary> <entry key="connection.provider" value="NHibernate.Connection.DriverConnectionProvider" /> <entry key="dialect" value="NHibernate.Dialect.Oracle9iDialect" /> <entry key="connection.driver_class" value="NHibernate.Driver.OracleDataClientDriver" /> <entry key="generate_statistics" value="true" /> <entry key="default_schema" value=" " /> KODIAK </dictionary> </property> <property name="ExposeTransactionAwareSessionFactory" value="true" /> </object> This configuration just needs a valid Oracle connection string where you replace the coloured properties as well as setting the red default_schema. For it looks like this: MSSQL configuration <db:provider id="DbProvider" provider="System.Data.SqlClient" connectionString="Server= ;Initial Catalog= ;User Id= ;passwo (local) KODIAK kodiak rd= " /> kodiak <object id="NHSessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate32"> <property name="DbProvider" ref="DbProvider" /> <property name="MappingAssemblies"> <list> <value>Kodi.Kodiak.DataAccess.NH.MsSQL</value> </list> </property> <property name="HibernateProperties"> <dictionary> <entry key="connection.provider" value="NHibernate.Connection.DriverConnectionProvider" /> <entry key="dialect" value="NHibernate.Dialect.MsSql2008Dialect" /> <entry key="connection.driver_class" value="NHibernate.Driver.SqlClientDriver" /> <entry key="generate_statistics" value="true" /> </dictionary> </property> <property name="ExposeTransactionAwareSessionFactory" value="true" /> </object> Here you also just change the connection string to a valid MS SQL connection string. Take note that other parts of the configuration are different between databases so copy and paste the one you need (replacing what is in the current configuration file) to the configuration file and edit the connection string.

OMS-Database-270214-1729-8

Embed Size (px)

Citation preview

Page 1: OMS-Database-270214-1729-8

Database

The Kodiak Order Entry Server and the Kodiak Services Server both need access to the Kodiak database.

They are both configured using their respective xml configuration files covered in their configuration settings manual.

You can easily configure one and then copy and paste the configuration to the next one.

The database configuration is in the <objects> node of the configuration file and starts with <db:provider>

For it looks like this:Oracle configuration

<db:provider id="DbProvider" provider="OracleODP-2.0" connectionString="Data Source= (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =(PROTOCOL = TCP)(HOST = )(PORT = ))) (CONNECT_DATA = (SID = ) (SERVER = DEDICATED)));User Id= ;Password=IP 1521 kodiak user pas

;Min Pool Size=10;Connection Lifetime=3600;Connection Timeout=3600;Incr Pool Size=5;Decr Pool Size=2" />sword<object id="NHSessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate32"><property name="DbProvider" ref="DbProvider" /><property name="MappingAssemblies"><list><value>Kodi.Kodiak.DataAccess.NH</value></list></property><property name="HibernateProperties"><dictionary><entry key="connection.provider" value="NHibernate.Connection.DriverConnectionProvider" /><entry key="dialect" value="NHibernate.Dialect.Oracle9iDialect" /><entry key="connection.driver_class" value="NHibernate.Driver.OracleDataClientDriver" /><entry key="generate_statistics" value="true" /><entry key="default_schema" value=" " />KODIAK</dictionary></property><property name="ExposeTransactionAwareSessionFactory" value="true" /></object>

This configuration just needs a valid Oracle connection string where you replace the coloured properties as well as setting thereddefault_schema.

For it looks like this:MSSQL configuration

<db:provider id="DbProvider" provider="System.Data.SqlClient" connectionString="Server= ;Initial Catalog= ;User Id= ;passwo(local) KODIAK kodiakrd= " />kodiak<object id="NHSessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate32"><property name="DbProvider" ref="DbProvider" /><property name="MappingAssemblies"><list><value>Kodi.Kodiak.DataAccess.NH.MsSQL</value></list></property><property name="HibernateProperties"><dictionary><entry key="connection.provider" value="NHibernate.Connection.DriverConnectionProvider" /><entry key="dialect" value="NHibernate.Dialect.MsSql2008Dialect" /><entry key="connection.driver_class" value="NHibernate.Driver.SqlClientDriver" /><entry key="generate_statistics" value="true" /></dictionary></property><property name="ExposeTransactionAwareSessionFactory" value="true" /></object>

Here you also just change the connection string to a valid MS SQL connection string.

Take note that other parts of the configuration are different between databases so copy and paste the one you need (replacing what is in thecurrent configuration file) to the configuration file and edit the connection string.