print('Oracle client: ' + str(cx_Oracle.clientversion()).replace(', ', '.'))
connection = cx_Oracle.connect('user/pass@tns')
cursor = connection.cursor()
cursor.execute(
    "select to_date(:arg1,'yyyy-mm-dd'), to_timestamp(:arg2,'yyyy-mm-dd hh24.mi.ss.ff') from dual"
    , arg1='2013-03-12', arg2='2013-03-12 08:22:31.332144')
mydate = cursor.fetchall()
print(mydate)
cursor.close()
connection.close()
cx_Oracle «ORA-01843: недопустимый месяц» с параметром Unicode