Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Post-fork "require 'oci8'" yields ORA-12154

View ora_NOK.rb
1 2 3 4 5 6 7 8 9 10 11
require 'daemons'
 
Daemonize.daemonize(File.expand_path('./log.txt'), 'test')
 
require 'oci8'
 
db = OCI8.new('theuser', 'thepassword', 'SID');
 
db.exec('select * from utilisateurs where id = 74944') do |r|
puts r.join(',')
end
View ora_NOK.rb
1 2 3 4 5 6 7 8 9 10
require 'daemons'
require 'oci8'
 
Daemonize.daemonize(File.expand_path('./log.txt'), 'test')
 
db = OCI8.new('theuser', 'thepassword', 'SID');
 
db.exec('select * from utilisateurs where id = 74944') do |r|
puts r.join(',')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.