Skip to content

Instantly share code, notes, and snippets.

View eugenio-oliveira's full-sized avatar

Eugênio Oliveira eugenio-oliveira

  • Freelancer
  • Teresina - Piauí, Brazil
View GitHub Profile
@eugenio-oliveira
eugenio-oliveira / database.yml
Created July 9, 2014 22:45
meu 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]
#
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use oracle as the database for Active Record
gem 'ruby-oci8'
gem 'activerecord-oracle_enhanced-adapter'
@eugenio-oliveira
eugenio-oliveira / erro
Created July 10, 2014 00:21
erro oracle
NoMethodError: undefined method `without_prepared_statement?' for #<ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter:0x007f49f493d628>: SELECT "SCHEMA_MIGRATIONS".* FROM "SCHEMA_MIGRATIONS"
@eugenio-oliveira
eugenio-oliveira / gemfile.lock
Created July 10, 2014 00:51
meu gemfile.lock
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.0.0)
actionpack (= 4.0.0)
mail (~> 2.5.3)
actionpack (4.0.0)
activesupport (= 4.0.0)
builder (~> 3.1.0)
erubis (~> 2.7.0)
@eugenio-oliveira
eugenio-oliveira / gemfile
Created July 11, 2014 01:25
meu gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use oracle as the database for Active Record
gem 'ruby-oci8'
gem "activerecord-oracle_enhanced-adapter", "~> 1.5.0"
# 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]
#
ActiveRecord::StatementInvalid: NoMethodError: undefined method `without_prepared_statement?' for #<ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter:0x000000051c0660>: SELECT "SCHEMA_MIGRATIONS".* FROM "SCHEMA_MIGRATIONS"
NoMethodError: undefined method `without_prepared_statement?' for #<ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter:0x000000045a5330>: SELECT "SCHEMA_MIGRATIONS".* FROM "SCHEMA_MIGRATIONS"
Rails.root: /var/www/rails_apps/oracleapp
Application Trace | Framework Trace | Full Trace
activerecord-oracle_enhanced-adapter (1.5.5) lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:755:in `block in exec_query'
activerecord (4.0.0) lib/active_record/connection_adapters/abstract_adapter.rb:425:in `block in log'
activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activerecord (4.0.0) lib/active_record/connection_adapters/abstract_adapter.rb:420:in `log'
activerecord-oracle_enhanced-adapter (1.5.5) lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:1510:in `log'
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...WARNING: not changing user
process [10174]... waiting for server to be ready... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
#### Customize BASH PS1 prompt to show current GIT repository and branch. ####
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
## For osx (10.10), if your OS is linux like, comment this if block
if [ -f ~/.git-prompt.sh ]; then
source ~/.git-prompt.sh
export PS1='Geoff[\W]$(__git_ps1 "(%s)"): '
fi