Skip to content

Instantly share code, notes, and snippets.

@eugenio-oliveira
Created July 11, 2014 01:40
Show Gist options
  • Save eugenio-oliveira/27b16aa7c224930b2988 to your computer and use it in GitHub Desktop.
Save eugenio-oliveira/27b16aa7c224930b2988 to your computer and use it in GitHub Desktop.
database.yml
# Oracle/OCI 8i, 9, 10g
#
# Requires Ruby/OCI8:
# http://rubyforge.org/projects/ruby-oci8/
#
# Specify your database using any valid connection syntax, such as a
# tnsnames.ora service name, or an SQL connect string of the form:
#
# //host:[port][/service name]
#
# By default prefetch_rows (OCI_ATTR_PREFETCH_ROWS) is set to 100. And
# until true bind variables are supported, cursor_sharing is set by default
# to 'similar'. Both can be changed in the configuration below; the defaults
# are equivalent to specifying:
#
# prefetch_rows: 100
# cursor_sharing: similar
#
development:
adapter: oracle_enhanced
database: localhost/XE
username: root
password: root
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: oracle_enhanced
database: localhost/XE
username: root
password: root
production:
adapter: oracle
database: oracleapp_production
username: oracleapp
password:
@infoslack
Copy link

Troca o database para ficar passando o host + porta + banco:

database: //ip_servidor:1521/XE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment