I am trying to connect to oracle using port 2484 using aws lambda in python using wallets. I have database.py which connects to oracle and added sqlnet.ora and tnsnames.ora in network/admin folders.
I am not sure whether my lambda is even looking into tnsnames.ora file. even though my tnsnames.ora file has protocol as TCPS but my lambda is taking protocol as TCP.
So I tried giving dsn string manually with tcps protocol
cx_Oracle.connect(self.username, self.password, dsn=self.tns)
where as
self.tns='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)(HOST='hostname')(PORT=2484))(CONNECT_DATA=(SERVICE_NAME='myservice')))
and getting error:
ncx_Oracle.DatabaseError: ORA-12547: TNS:lost contact
and I have tnsnames.ora and sqlnet.ora and wallet files in network/admin folder
Not sure where to look for