On Mon, Nov 2, 2009 at 7:45 AM, Mark Burns <markbur...@gmail.com> wrote:
> I wonder if I have my database.yml file set incorrectly though. I didn't
> think so because
> of the previous error with the connection which is now not happening.
I don't use the host or port settings as they are specified in my
tnsnames.ora file:
oracle_config:
adapter: oracle_enhanced
database: '<same value used for SERVICE_NAME in TNS file>'
username: <USER_NAME>
password: <PASSWORD>
Maybe that's it?
Bill
If
ActiveRecord::Base.connection.select_one "SELECT * FROM table_namereturns value then you should be able to do
WHERE ROWNUM <=1"
set_table_name "table_name"
But I'm just curious what is this "table_name"? If the table name is
not in schema of Rails user then there should be some local or public
synonym to table in other schema.