On Monday, June 16, 2014 9:07:30 AM UTC-7, Caleb Woods wrote: > > Jeremy, thanks for the advice. I've switched the hashes to use symbols, > but now I get a different error. > > If :server1 is the default then I can run the following with no errors and > get the correct result. > > STUDY_DB.with_server(:server1) do > STUDY_DB.synchronize do > StudyUser.all > end > end > > However if I then try to switch to use the other connection for :server2 > like the below example then I will get the following error. > > Sequel::DatabaseConnectionError: OCIError: ORA-01017: invalid > username/password; logon denied > from oci8.c:552:in oci8lib_210.bundle >
The good thing is it is obviously trying to use a different connection, otherwise you wouldn't be getting an error. In terms of fixing the error, you probably need to use :user and not :username as the hash key. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
