Skip to Content
0
Feb 04, 2020 at 08:26 AM

Connection NEO HANA MDC db from Python

533 Views

Hi Experts,

I am trying to connect a SCP HANA DB which is neo environment from Python. I am using 'Python any where' platform to code.

Python code -

from hdbcli import dbapi


connection = dbapi.connect(host='vsXXXXXXX.pXX.oX.sap.bXz',
                           port=30013,
                           user='DBUSER',
                           password='PASSWORD'
                           )


print(connection.isconnected())

The response from python anywhere is -

Traceback (most recent call last): File "/home/LEONARDOMFG/connectHDB.py", line 13, in <module>password='PASSWORD'hdbcli.dbapi.Error: (-10719, "Connect failed (invalid SERVERNODE ':30052')")

Please help me out on what else is required?

Attachments

server.png (42.0 kB)