AWS Python Lambda with Oracle - OID Generation Failed

后端 未结 3 2045
情深已故
情深已故 2021-01-19 06:51

I\'m trying to connect to an Oracle DB using AWS Lambda Python code.

My code is below:

import sys, os
import cx_Oracle
import traceback

def main_han         


        
3条回答
  •  情书的邮戳
    2021-01-19 07:03

    The accepted solution for this correct, but please also be aware that the HOSTALIASES mechanism does require working DNS (as strange as it sounds).

    I struggled with this for a few hours having implemented the accepted solution and realised that I was not permitting outbound DNS on the security group attached to by Lambda function VPC interface (my connection was by IP address to Oracle DB, so initially did not think this was required).

提交回复
热议问题