分布式数据库,ODBC配置多IP登录gaussDB 报错

GaussDB 8.102 分布式版开发,C++使用ODBC对接gaussdb, 在ODBC.ini中配置Servername=10.56.20.54,10.56.20.55 多IP,报错[08001][unixODBC]could not translate host name “10.56.20.54,10.56.20.55” to address: Name or service not known, remote datanode

openGauss社区是单机主备架构, 6.0版本做了需求支持了该功能。 Gaussdb分布式数据库是商用产品,相关问题需要咨询下对应接口人。

社区上是支持的:

从6.0开始,支持配置多个ip,以及链接目标库的类型(如primary)

target_session_attrs=primary

Servername=ip1,ip2,ip3