Created
July 11, 2014 01:40
-
-
Save eugenio-oliveira/27b16aa7c224930b2988 to your computer and use it in GitHub Desktop.
database.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Troca o database para ficar passando o host + porta + banco: