python调用oracle存储过程(packeage)
2015-07-14 13:38
555 查看
http://markmail.org/message/y64t5mqlgy4rogte
http://www.oracle.com/technetwork/cn/articles/prez-stored-proc-096180-zhs.html
http://www.oracle.com/technetwork/cn/articles/prez-stored-proc-096180-zhs.html
import cx_Oracle dsn = cx_Oracle.makedsn('10.10.196.218','1521','ORACLE2') conn = cx_Oracle.connect('x5user','x5user',dsn) c = conn.cursor() str = c.var(cx_Oracle.CURSOR) str2 = c.callproc('pack_pollutant.proc_pollutantdata',[str]) rs = str2[-1].fetchall() print(rs) c.close conn.close str = c.var(cx_Oracle.NUMBER) str2=c.callproc('proc_s2_back',[str]) print(str2)
相关文章推荐
- MySQL中与Oracle对应的方法
- Oracle 字符集的查看和修改
- oracle数据字典
- Oracle sqlldr导入数据使用默认值日期
- Oracle中varchar,varchar2,nvarchar,nvarchar2的区别及其它数据类型描述
- Oracle列转行函数Listagg以及pivot查询示例
- 查询oracle server端的字符集
- 使用PLSql连接Oracle时报错ORA-12541: TNS: 无监听程序
- [solaris]odbc-oracle,简单测试
- Oracle 11g必须开启的服务及服务详细介绍,oracle的命令大全
- [Oracle]Tablespace usage check
- oracle 11g密码永不过期
- sqlplus连接Oracle数据库超时
- Oracle数据库的导入导出
- oracle Database link 创建
- oracle时间数据格式的分析
- linux操作系统下,oracle db 11g中增大memory_max_target和memory_target应该注意的
- oracle update set 使用case when语句
- Oracle 调用java 初始(一)
- oracle创建用户及常用命令