2004年02月24日 星期二 16:24
发点给小弟吧,。。学习中。。 我在ORACLE下了ODBC for 9i的包,怎么没有安装程序,那如何装呢? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 网易VIP收费邮箱两周年超值优惠! 满1赠6!! http://vip.163.com 中国最大的免费邮箱在等你 25兆空间4兆附件! http://mail.163.com 点击网易泡泡惊喜无限 全免费手机短信任你发! http://popo.163.com
2004年02月24日 星期二 16:44
我刚刚做过zope+python+oracle8.1.6的项目,用的是ODBC.
安装pythonWin后,就可以用odbc了,但要注意oracle odbc的driver要用90171版本(文件名ora90171.exe,大小:1.5M),ora90171.exe访问9i也是没问题的,我们都已经测试过。ora90171.exe不能直接安装,要用Oracle Universal Installer(文件名:OUI220180.zip,大小:46M)去安装。可以到oracle网站下载。用其他版本的驱动,可能会遇到读取大的CLOB字段时,超过64K的部分会被截断,下面是连接数据库的实例:
>
> import dbi,odbc
>
> db=odbc.odbc("ODBC_DSN\USER\PASSWORD")
> cur=db.cursor()
> l=cur.execute("select username from account")
> print l
----- Original Message -----
From: slackgg
To: python-chinese at lists.python.cn
Sent: Tuesday, February 24, 2004 4:24 PM
Subject: [python-chinese] 各位有用ODBC连接ORACLE9I的例子吗?
发点给小弟吧,。。学习中。。
我在ORACLE下了ODBC for 9i的包,怎么没有安装程序,那如何装呢?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
网易VIP收费邮箱两周年超值优惠! 满1赠6!! http://vip.163.com
中国最大的免费邮箱在等你 25兆空间4兆附件! http://mail.163.com
点击网易泡泡惊喜无限 全免费手机短信任你发! http://popo.163.com
------------------------------------------------------------------------------
_______________________________________________
python-chinese mailing list
python-chinese at lists.python.cn
http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20040224/7edb93e8/attachment.html
Zeuux © 2025
京ICP备05028076号