Guest User

Untitled

a guest
Dec 12th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import cx_Oracle
  2. import os
  3.  
  4. host_file = '''
  5. {} localhost
  6. '''
  7. with open('/tmp/HOSTALIASES', 'w') as hosts_file:
  8. hosts_file.write(host_file.format(os.uname()[1]))
  9.  
  10. def lambda_handler(event, context):
  11. con = cx_Oracle.connect('user_name/password@10.xxx.xxx.xxx:1521/service_name
Add Comment
Please, Sign In to add comment