2
我想通過使用lambda連接到oracle數據庫。 我已經安裝了所有的依賴在lib和做了一個拉鍊容器使用VPC連接到使用Lambda的Oracle時發生錯誤
導演結構: `
root/
lib/(client lib)
index.py
cx_oracle.so*
`
import cx_Oracle
def handler(event, context):
message = ""
cursor = None
connection = None
connection = cx_Oracle.connect("USERNAME", "PASSWORD", "DOMAIN/orcl")
cursor = connection.cursor()
cursor.execute("""QUERY""")
message += " {Error in connection} " + str(e)
if cursor:
cursor.close()
if connection:
connection.close()
return {'message' : message}
錯誤是:
libaio.so和libclntsh .so庫未找到