dimanche 24 mai 2015

Node-oracle sometimes return no result

I'm using NodeJS v0.10.38 with node-oracle Driver "oracle": "^0.3.7" (http://ift.tt/1m2QjgE) connected to oracle 11G database thought OCI driver.

export OCI_LIB_DIR=/usr/local/instantclient_11_2/
export OCI_INCLUDE_DIR=/usr/local/instantclient_11_2/sdk/include
export OCI_VERSION=11 # Integer. Optional, defaults to '11'
export NLS_LANG=.UTF8 # Optional, but required to support international characters
export DYLD_LIBRARY_PATH=$OCI_LIB_DIR

Everything is install and ok.

When runing node I only have one error :

[Error:  
/home/pocho/ZaRaSoFt/node_modules/mongojs/node_modules/mongodb/node_modules/bson    /build/Release/bson.node: invalid ELF header]
js-bson: Failed to load c++ bson extension, using pure JS version
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version

On executing oracle query, some queries return no results on random. Further tries of the same queries may return results.




Aucun commentaire:

Enregistrer un commentaire