在你的web服务器上必须装客户端,在配置一个监听程序,然后用监听程序的名字作为数据库的名字,再用OCILogon(dbname,username,password)连接即可。