My guess (sorry that's all it is) is the line "libclntsh.so: cannot open shared object file: No such file or directory" is the key. This points at a file permissions error or an install problem. It means there is probably nothing wrong with your code.
Cliff