If you did not use connection strings when configuring the database configuration file, use the following steps to create ODBC data sources to access the datastore databases.
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 = <datastore-name> KeepaliveTime=<int> KeepaliveInterval=<int> BatchSize=100
The following is an example of an .odbc.ini configuration file contains data sources for a local PostgreSQL database instance with two datastores. It also includes the mandatory data source for the PostgreSQL database.
[PG.POSTGRES] Driver = PostgreSQL Servername = localhost Port = 5432 Database = postgres KeepaliveTime=120 KeepaliveInterval=120 BatchSize=100 [PG.VSAM] Driver = PostgreSQL Servername = localhost Port = 5432 Database = VSAM KeepaliveTime=120 KeepaliveInterval=120 BatchSize=100 [PG.SEQFILES] Driver = PostgreSQL Servername = localhost Port = 5432 Database = SEQ KeepaliveTime=120 KeepaliveInterval=120 BatchSize=100
The data sources for the datastore databases are configured. You can now start to upload data files to them using the dbfhdeploy command line utility.