daily pastebin goal
8%
SHARE
TWEET

Database.yml (oracle+rails)

a guest Oct 2nd, 2017 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Oracle/OCI 8i, 9, 10g
  2. #
  3. # Requires Ruby/OCI8:
  4. #  https://github.com/kubo/ruby-oci8
  5. #
  6. # Specify your database using any valid connection syntax, such as a
  7. # tnsnames.ora service name, or an SQL connect string of the form:
  8. #
  9. #   //host:[port][/service name]
  10. #
  11. # By default prefetch_rows (OCI_ATTR_PREFETCH_ROWS) is set to 100. And
  12. # until true bind variables are supported, cursor_sharing is set by default
  13. # to 'similar'. Both can be changed in the configuration below; the defaults
  14. # are equivalent to specifying:
  15. #
  16. #  prefetch_rows: 100
  17. #  cursor_sharing: similar
  18. #
  19.  
  20. development:
  21.   adapter: oracle_enhanced
  22.   database: "(DESCRIPTION=
  23.     (ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
  24.     (CONNECT_DATA=(SERVICE_NAME=XE))
  25.   )"
  26.   username: ruby
  27.   password: ruby
  28.  
  29. # Warning: The database defined as "test" will be erased and
  30. # re-generated from your development database when you run "rake".
  31. # Do not set this db to the same as development or production.
  32. test:
  33.   adapter: oracle_enhanced
  34.   database: TrabajoFinalBD_test
  35.   username: TrabajoFinalBD
  36.   password:
  37.  
  38.  
  39. # As with config/secrets.yml, you never want to store sensitive information,
  40. # like your database password, in your source code. If your source code is
  41. # ever seen by anyone, they now have access to your database.
  42. #
  43. # Instead, provide the password as a unix environment variable when you boot
  44. # the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
  45. # for a full rundown on how to provide these environment variables in a
  46. # production deployment.
  47. #
  48. # On Heroku and other platform providers, you may have a full connection URL
  49. # available as an environment variable. For example:
  50. #
  51. #   DATABASE_URL="oracle://myuser:mypass@localhost/somedatabase"
  52. #
  53. # You can use this database configuration with:
  54. #
  55. #   production:
  56. #     url: <%= ENV['DATABASE_URL'] %>
  57. #
  58. production:
  59.   adapter: oracle
  60.   database: TrabajoFinalBD_production
  61.   username: TrabajoFinalBD
  62.   password:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top