python-cx_Oracle icon indicating copy to clipboard operation
python-cx_Oracle copied to clipboard

Connection over Websocket Protocol

Open JanLeshy opened this issue 5 years ago • 8 comments

  1. What versions are you using?

platform.platform: Windows-10-10.0.17763-SP0 sys.maxsize > 2**32: True platform.python_version: 3.7.5

cx_Oracle.version: 8.1.0 cx_Oracle.clientversion: (19, 6, 0, 0, 0)

  1. Describe the problem

Is it possible to connect to oracle database with Websocket and/or SecureWebSocket protocol?

import cx_Oracle
dsn = "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=WS)(HOST=examplehost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=exampleservice)))"
connection=cx_Oracle.connect('ec_sys','sys',dsn)

best regards Jan

JanLeshy avatar Jan 07 '21 11:01 JanLeshy

According to the Net doc, yes: https://docs.oracle.com/en/database/oracle/oracle-database/19/netag/understanding-communication-layers.html#GUID-2C1FCF9D-0289-447F-9C19-F10615DF85B9

@onmp may have more comments.

cjbj avatar Jan 11 '21 23:01 cjbj

Connection using WebSocket Protocol is supported.

onmp avatar Jan 12 '21 01:01 onmp

Thanks for your help. I solved the problem, I used the oracle Instant client to connect to the db, this does not work.

I tried it with the database client and it works.

JanLeshy avatar Jan 12 '21 08:01 JanLeshy

What didn't work? What errors?

cjbj avatar Jan 12 '21 11:01 cjbj

while using the instantclient you get the error,: ORA-12557: TNS:protocol adapter not loadable

you get this error also, if you try to connect with sqlplus over command line. conclude from this, its not a CX_Oracle problem, its a instantclient problem.

JanLeshy avatar Jan 12 '21 11:01 JanLeshy

Can you describe the setup more, so I can work with whoever needs to be involved to make Instant Client work?

cjbj avatar Jan 13 '21 00:01 cjbj

This issue has been automatically marked as inactive because it has not been updated recently. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 12 '21 00:02 stale[bot]

This issue has been automatically closed because it has not been updated for a month.

stale[bot] avatar Feb 19 '21 17:02 stale[bot]