Permalink
Browse files

updated to readme and package file

  • Loading branch information...
1 parent e2bb752 commit a6a11966d6af5f8218f46563ebab128700e46c57 @joeferner committed Dec 21, 2011
Showing with 75 additions and 10 deletions.
  1. +1 −0 .gitignore
  2. +50 −2 README.md
  3. +21 −0 package.json
  4. +0 −1 tests/integration.js
  5. +3 −7 wscript
View
@@ -1,4 +1,5 @@
/build/*
+node_modules
*.node
*.sh
*.swp
View
@@ -1,5 +1,53 @@
-# Download
+# Install
-You can install using Node Package Manager (npm):
+ * Install [Instant Client Package - Basic Lite](http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html)
+ * Install [Instant Client Package - SDK](http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html)
+ * Finally install using Node Package Manager (npm):
npm install oracle
+
+# Develop
+
+## Install Oracle/Oracle Express
+
+ * Download [Oracle Express 10g](http://www.oracle.com/technetwork/database/express-edition/database10gxe-459378.html)
+ * Download [Instant Client](http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html)
+ * Instant Client Package - Basic Lite
+ * Instant Client Package - SQL*Plus
+ * Instant Client Package - SDK
+ * Install Oracle Express (Ubuntu)
+
+```bash
+sudo dpkg -i oracle-xe_10.2.0.1-1.0_i386.deb
+sudo apt-get install alien
+sudo alien oracle-instantclient-basiclite-10.2.0.5-1.i386.rpm
+sudo alien oracle-instantclient-devel-10.2.0.5-1.i386.rpm
+sudo alien oracle-instantclient-sqlplus-10.2.0.5-1.i386.rpm
+sudo dpkg -i oracle-instantclient-basiclite_10.2.0.5-1.i386.deb
+sudo dpkg -i oracle-instantclient-devel_10.2.0.5-1.i386.deb
+sudo dpkg -i oracle-instantclient-sqlplus_10.2.0.5-1.i386.deb
+sudo /etc/init.d/oracle-xe configure
+```
+
+ * Open http://localhost:9999/apex/ change 9999 to the port you configured. Log-in with "sys" and the password.
+ * Create a user called "test" with password "test" and give all accesses.
+
+```bash
+sudo vi /etc/ld.so.conf.d/oracle.conf -- add this line /usr/lib/oracle/10.2.0.5/client/lib/
+sudo ldconfig
+
+export ORACLE_SID=test
+export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
+export OCI_INCLUDE_DIR=/usr/include/oracle/10.2.0.5/client/
+export OCI_LIB_DIR=/usr/lib/oracle/10.2.0.5/client/lib/
+sqlplus test@XE
+```
+
+## Build
+
+```bash
+node-waf configure
+node-waf build
+nodeunit tests/*
+```
+
View
@@ -0,0 +1,21 @@
+{
+ "name": "oracle",
+ "description": "Oracle database driver",
+ "keywords": ["database", "db", "oracle"],
+ "homepage": "https://github.com/joeferner/node-oracle",
+ "version": "0.1.0",
+ "engines": { "node" : ">=0.6.0" },
+ "maintainers": [
+ { "name": "Joe Ferner", "email": "joe@fernsroth.com" }
+ ],
+ "bugs" : { "url" : "https://github.com/joeferner/node-oracle/issues" },
+ "repositories" : [
+ { "type" : "git", "url" : "https://github.com/joeferner/node-oracle" }
+ ],
+ "scripts" : {
+ "install": "node-waf configure build"
+ },
+ "devDependencies" : {
+ "nodeunit" : "~>0.6.4"
+ }
+}
View
@@ -2,7 +2,6 @@
/*
tests-settings.json:
{
- "driver": "db-oracle",
"hostname": "localhost",
"user": "test",
"password": "test"
View
10 wscript
@@ -2,10 +2,6 @@ import Options, Utils
from os import unlink, symlink, chdir, environ
from os.path import exists
-#srcdir = "."
-#blddir = "build"
-#VERSION = "0.2.2"
-
def set_options(opt):
opt.tool_options("compiler_cxx")
@@ -20,15 +16,15 @@ def configure(conf):
conf.env.append_unique('CXXFLAGS', ['-D_FILE_OFFSET_BITS=64'])
conf.env.append_unique('CXXFLAGS', ['-D_LARGEFILE_SOURCE'])
- oci_include = environ.get("OCI_INCLUDE_DIR", "/usr/include/oracle/11.2/client")
+ oci_include = environ.get("OCI_INCLUDE_DIR", "/usr/include/oracle/10.2.0.5/client/")
if oci_include:
conf.env.append_unique('CXXFLAGS', [ '-I' + oci_include ])
- oci_lib = environ.get("OCI_LIB_DIR", "/usr/lib/oracle/11.2/client/lib")
+ oci_lib = environ.get("OCI_LIB_DIR", "/usr/lib/oracle/10.2.0.5/client/lib/")
if oci_lib:
conf.env.append_unique('LINKFLAGS', [ '-L' + oci_lib ])
- conf.env.append_unique('LINKFLAGS', ['-locci', '-lclntsh', '-lnnz11'])
+ conf.env.append_unique('LINKFLAGS', ['-locci', '-lclntsh', '-lnnz10'])
conf.check(header_name="occi.h", errmsg="Missing include files for OCI", mandatory=True)
conf.check_cxx(lib="occi", errmsg="Missing libocci", mandatory=True)

0 comments on commit a6a1196

Please sign in to comment.