# coding:utf-8
import cx_Oracle
import time
import datetime
DB=cx_Oracle.connect(user,'password','180.167.1.10:1521/orcl')
print DB.dsn
print DB.version
cursor = DB.cursor()
dd = datetime.datetime.now()
pic_data = cx_Oracle.Binary(data)
#测试过程
cursor.callproc('test',(211, '1b1p', dd, pic_data, 5))
cursor.execute('commit')
test的存储过程中第三个入参是日期DATE的类型,第四个入参是BLOB类型。