Use these steps to create data sources on a UNIX/Linux platform.
There are a number of different driver managers that you can use to configure an ODBC data source. These instructions are carried out using unixODBC. If you are using a different driver manager, consult the vendor instructions for creating data sources.
(This may differ depending on the version of PostgreSQL you are running.)
[PostgreSQL] Description=ODBC for PostgreSQL Driver64=/usr/pgsql-10/lib/psqlodbcw.so Setup64=/usr/lib64/libodbcpsqlS.so FileUsage=1 Threading=2
[<datasource-name>] Driver = <driver-name> Servername = <server-name> Port = <port-no> Database = postgres KeepaliveTime=<int> KeepaliveInterval=<int> BatchSize=100
[<datasource-name>] Driver = <driver-name> Servername = <server-name> Port = <port-no> Database = MicroFocus$CAS$Region$<region-name> KeepaliveTime=<int> KeepaliveInterval=<int> BatchSize=100
[<datasource-name>] Driver = <driver-name> Servername = <server-name> Port = <port-no> Database = MicroFocus$CAS$CrossRegion KeepaliveTime=<int> KeepaliveInterval=<int> BatchSize=100
The following is an example of an .odbc.ini configuration file that contains data sources for a local PostgreSQL database instance that stores files from the ESDEMO enterprise server region in a region and cross-region database.
[PG.POSTGRES] Driver = PostgreSQL Servername = localhost Port = 5432 Database = postgres KeepaliveTime=120 KeepaliveInterval=120 BatchSize=100 [PG.CAS.ESDEMO] Driver = PostgreSQL Servername = localhost Port = 5432 Database = MicroFocus$CAS$Region$ESDEMO KeepaliveTime=120 KeepaliveInterval=120 BatchSize=100 [PG.CAS.CROSSREGION] Driver = PostgreSQL Servername = localhost Port = 5432 Database = MicroFocus$CAS$CrossRegion KeepaliveTime=120 KeepaliveInterval=120 BatchSize=100
Next, you must create or edit the database configuration file, so that it contains entries to your region and cross-region data sources, and the data source for the mandatory database.