Hi,
Thanks for your reply. I have resolved this problem. I didn’t install oracle client but copied the two files OCI.dll 和oraociei10.dll into bin dir for ruby. Then it works fine now. So if intalling oracle client,it definitly works too. Regards, Conglin Wang(Anne) PSQA State Street Hangzhou J2 Building, 1, Road 8, Xiyuan West Lake Science & Technology Economic Park San Dun, West Lake District Hangzhou 310030 P.R. China MSN: serenawang...@hotmail.com Email:cwa...@statestreet.com ________________________________ From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Pallavi Sharma Sent: Saturday, August 21, 2010 12:14 PM To: watir-general@googlegroups.com Subject: Re: [wtr-general] Unable to connect to oracle by oci8 Hi Install oracle client, ensure that the tns file has entry of your oracle db, install the attached rb file. helpful link: http://www.it-eye.nl/weblog/2006/01/06/starting-with-ruby-and-oracle/ Regards Pallavi. On Sat, Aug 21, 2010 at 1:22 AM, Felipe Knorr Kuhn <fkn...@gmail.com> wrote: You probably have to install the oracle client as well. On Thu, Aug 19, 2010 at 11:24 AM, Wang, Conglin <cwa...@statestreet.com> wrote: Hi groups, When I try to connect to oracle db by oci8,it hints below error: c:/ruby186-26/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2-i386-mswin32/lib/oci8.rb:52:in `init': OCI Library Initialization Error (OCIError) from c:/ruby186-26/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2-i386-mswin32/lib/oci8.rb:52 from c:/ruby186-26/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' from c:/ruby186-26/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' I did really install the oci8 gem.And I can run successfully on other people’s machine except mine. Could you help to give me some clue for solution?Thanks. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com <mailto:watir-general%2bunsubscr...@googlegroups.com> -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com <mailto:watir-general%2bunsubscr...@googlegroups.com> -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com