<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>
<datastores>
<server name="localhost:50000" type="db2" access="odbc">
<dsn name=<unique-name> type="region.cas" region=<region-name> dbname=<existing-db> feature=<options> connect=<connection-string>/>
<dsn name=<unique-name> type="crossregion.cas" dbname=<existing-db> connect=<connection-string>/>
</server>
</datastores>
The following is an example of a configuration file that contains a datastore, a region database, and a cross-region database, using direct connection syntax.
<datastores>
<server name="localhost:50000" type="db2" access="odbc">
<dsn name="DB2.VSAM" type="datastore" dsname="VSAM" optio="none +ooseq" connect="db=VSAM;uid=db2admin;pwd=myPass"/>
<dsn name="DB2.ESDEMO" type="region.cas" region="ESDEMO" feature="all" connect="db=ESDEMO;uid=db2admin;pwd=myPass"/>
<dsn name="DB2.CROSSREGION" type="crossregion.cas" dsname="$XREGN$" connect="db=$XREGN$;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.