I have unlocked the hr user for oracle and I have created some tables there. I am trying to access these tables through a web service that I wrote in ruby but i keep getting this error: the tns could not resolve the connect identifier specified
here is the code I use
get '/all_members/' do
conn=OCI8.new('hr','hr', '//localhost/XE')
recordsArray = "{\"clientList\":["
clientArray = Array.new
records = conn.exec('select * from Team_Members') do |record|
client = AndroidtableClients.new(record[0],record[1],record[2],record[3], record[4], record[5])
clientArray<<client.to_s
end
conn.logoff
recordsArray<<clientArray.join(',')
recordsArray<<"]}"
recordsArray
end
to call the function, I use google's Advanced Rest Client and i use the following URL: http://localhost:4567/all_members/
Can someone help me?