I try to write a script in .py for oracle connectivity:
#!/usr/bin/python import cx_Oracle connstr=\'username/pwd@database\' conn = cx_Oracle.connect(conns
To access Oracle from python you need (additionally) the cx_Oracle module. The module must be located either in the system python path or you have to set the PYTHONPATH appropriate.