问题
I'm connecting to a SAP HANA tenant database. As I understand it, there are two ways to do this: first, I can specify <server hostname>:<tenant db sql port>
for the SERVERNODE
connection property. Second, I can specify <server hostname>:<system db sql port>
for SERVERNODE
and also include the DATABASE
connection property set to <tenant db name>
. It's recommended to use the second method because it makes operations like moving tenant dbs (i.e. changing sql ports) easier (see "SAP HANA Multitenant Database Containers Operations Guide" section 2.9 Connections for Multitenant Database Containers).
However, I found one instance where the DATABASE
method resulted in not being able to make a connection while the other (non-recommended method) allowed me to connect -- when connecting to a HANA server running on an Azure VM. When I try to just provide the hostname and database name in HANA Studio I can't connect, but when I just provide the hostname:port number (and omit the DATABASE property) I can connect using ODBC Test. Interestingly, if I attempt to connect from another Azure VM I can connect using the DATABASE connection property. Any idea what's going on?
来源:https://stackoverflow.com/questions/51562029/reccomended-method-of-connecting-to-an-sap-hana-tenant-database