<datastores> </datastores>
<server name=$(env-name) type="db2" access="odbc"/>
For example, for a local Db2 connection on the default port:
<datastores> <server name="localhost:50000" type="db2" access="odbc"> </server> </datastores>
option | description |
---|---|
all | All optimizations applied, as if +<opt> had been specified for each available option. You can then selectively disable certain options using -<opt>. |
none | No optimizations applied. |
{+|-}oiseq | Enables (+) or disables (-) optimizations for line-sequential files opened for input. |
{+|-}ooseq | Enables (+) or disables (-) optimizations for line-sequential files opened for output. |
{+|-}oi | Enables (+) or disables (-) optimizations for ESDS, KSDS, and RRDS files opened for input. |
{+|-}oo | Enables (+) or disables (-) optimizations for ESDS, KSDS, and RRDS files opened for output. |
<datastores> <server name="localhost:50000" type="db2" access="odbc"> <dsn name=<unique-name> type="datastore" dsname=<datastore-name> dbname=<existing-db> optio=<options> connect=<connection-string>/> </server> </datastores>
The following is an example of a configuration file that contains two datastores, a region database, and a cross-region database. The first datastore, the region, and cross-region databases are housed in an existing database called MYMFFILS, connecting using direct connection syntax. The second datastore (DB2.SEQ) is a separate database, configured using an ODBC data source.
<datastores> <server name="localhost:50000" type="db2" access="odbc"> <dsn name="DB2.VSAM" type="datastore" dsname="VSAM" optio="none +ooseq" dbname="MYMFFILS" connect="db=MYMFFILS;uid=db2admin;pwd=myPass"/> <dsn name="DB2.SEQ" type="datastore" dsname="VSAM" optio="none +ooseq" userid="db2admin" password="myPass"/> <dsn name="DB2.ESDEMO" type="region.cas" region="ESDEMO" feature="all" dbname="MYMFFILS" connect="db=MYMFFILS;uid=db2admin;pwd=myPass"/> <dsn name="DB2.CROSSREGION" type="crossregion.cas" dsname="$XREGN$" dbname="MYMFFILS" connect="db=MYMFFILS;uid=db2admin;pwd=myPass"/> </server> </datastores>
If you have not already created the databases using the sql script files, you must use the dbfhadmin command line utility to run the scripts; after which, use dbfhdeploy to add files to the datastores.