Connecting to Oracle RDS

前端 未结 2 1323
野趣味
野趣味 2020-12-18 07:50

I am trying to connect to Oracle using AWS lambda and python.

These are the step I followed. (Everything has done EC2 instance)

  1. Downloaded the instantc
2条回答
  •  暖寄归人
    2020-12-18 08:06

    I solved this by simply zipping the files properly with the symbolic links

    First I created three symbolic links (with respect to above dir structure):

    ln -s ./lib/libaio.so.1.0.1 ./lib/libaio.so.1

    ln -s ./lib/libaio.so.1.0.1 ./lib/libaio.so

    ln -s ./lib/libaio.so.1.0.1 ./libaio.so.1.0.1

    ln -s ./lib/libclntsh.so.12.1 ./lib/libclntsh.so

    then i was zipping it incorretly I did it like this:

    zip --symlinks -r9 ~/lamda.zip *

    it worked! properly then.Hope it helps somebody.

提交回复
热议问题