Use these steps to create or update a configuration file to include entries to one or more region databases, and a cross-region databases.
<datastores> </datastores>
<server name=$(env-name) type="postgresql" access="odbc"/>
For example, for a local PostgreSQL connection on the default port:
<datastores> <server name="localhost:5432" type="postgresql" access="odbc"> </server> </datastores>
<datastores> <server name="localhost:5432" type="postgresql" access="odbc"> <dsn name=<data-source> type="database" dbname="postgres" userid=<user> password=<pass>/> </server> </datastores>
<datastores> <server name="localhost:5432" type="postgresql" access="odbc"> <dsn name=<data-source> type="database" dbname="postgres" userid=<user> password=<pass>/> <dsn name=<data-source> type="region.cas" region=<region-name> feature=<options> userid=<user> password=<pass>/> <dsn name=<data-source> type="crossregion.cas" userid=<user> password=<pass>/> </server> </datastores>
The following is an example of a configuration file that contains a datastore, a region database, and a cross-region database.
<datastores> <server name="localhost:5432" type="postgresql" access="odbc"> <dsn name="PG.POSTGRES" type="database" dbname="postgres" userid="clerk" password="clerk321"/> <dsn name="PG.VSAM" type="datastore" dsname="VSAM" optio="none" userid="clerk" password="clerk321"/> <dsn name="PG.ESDEMO" type="region.cas" region="PGDEMO" feature="all" userid="clerk" password="clerk321"/> <dsn name="PG.CROSSREGION" type="crossregion.cas" userid="clerk" password="clerk321"/> </server> </datastores>
Next, you must configure the enterprise server region to use the region and cross-region databases.