Closed erluti closed 8 years ago
ORA-01017: invalid username/password
How did you set username and password? The following commands work for me:
ruby -roci8 -e "OCI8.new('ruby/oci8@//192.168.0.3/ora121').exec('select * from dual') do |row| puts row.join(','); end"
ruby -roci8 -e "OCI8.new('ruby', 'oci8', '//192.168.0.3/ora121').exec('select * from dual') do |row| puts row.join(','); end"
Environment:
Both of those commands returned the same password error for me.
I also tried x32 of that Instant Client. Also tried 11.2.0.4.0 (64-bit). I also tried with fix_oralib.rb on both 64 bit versions. I also tried installing via homebrew and manually. Posted here because I have no idea what else to try.
Could you try sqlplus on the same OS X? If it works, I'll port ocidump to OS X tomorrow to check the difference of OCI function calls issued by sqlplus and ruby-oci8.
Looks like I'm getting the same error from SQLPlus. I'll dig into this a bit more. Thanks!
Looks like there's an issue with Instant Client. Here's some information about it here. Good news is that the gem is okay! https://blogs.oracle.com/opal/entry/using_oracle_on_os_x
FYI. Instant Client for OS X was updated. This issue was fixed by Oracle. http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html
Doing a basic connection with OCI8.new and executing a select statement is throwing this exception:
I can connect via other tools (like SqlDeveloper), but in ruby I get the logon denied error.