Use these steps to create or update a configuration file that includes entries to one or more datastores.
<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>
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. |
{+|-}ioseq | Enables (+) or disables (-) optimizations for line-sequential files opened for input. |
{+|-}ooseq | Enables (+) or disables (-) optimizations for line-sequential files opened for output. |
{+|-}oo | Enables (+) or disables (-) optimizations for ESDS, KSDS, and RRDS files opened for output. |
<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="datastore" dsname=<name> optio=<opt> 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 +ooseq" 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 use the dbfhdeploy command line utility to create the datastore and add files to it.