I tried to use OCI8 to connect Oracle Database.

Code :

require 'oci8'
conn=OCI8.new("username","password","//ip:port/test")

However,something wrong happened :

oci8.c:267:in oci8lib_191.so: ORA-06401: NETCMN: invalid driver
designator (OCIError)

and ip,port and sig, I copied from Oracle's tnsnames.ora which is right,
so I do not know what's wrong with this ?

Any help will be appreciated.

-- 
Posted via http://www.ruby-forum.com/.