Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cx_Oracle
- import os
- host_file = '''
- {} localhost
- '''
- with open('/tmp/HOSTALIASES', 'w') as hosts_file:
- hosts_file.write(host_file.format(os.uname()[1]))
- def lambda_handler(event, context):
- con = cx_Oracle.connect('user_name/password@10.xxx.xxx.xxx:1521/service_name
Add Comment
Please, Sign In to add comment