r10015: 21 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 21 Sep 2004 21:51:33 +0000 (21:51 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 21 Sep 2004 21:51:33 +0000 (21:51 +0000)
        * doc/appendix.xml: Add note about loading Oracle8 version
        * db-oracle/oracle-loader.lisp: Support Oracle8 based on
        data from David Young.

ChangeLog
db-oracle/oracle-loader.lisp
doc/appendix.xml

index 7bf301b2e0a5a880637b954663af35337fe4e51f..e75b7f7d322fcd04ae3196c25b0c55de08586cb5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+21 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
+       * doc/appendix.xml: Add note about loading Oracle8 version
+       * db-oracle/oracle-loader.lisp: Support Oracle8 based on
+       data from David Young.
+
 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
        * doc/Makefile, doc/catalog-darwin.xml: Apply
        patch from Cyrus Harmon for building docs on Mac OS X
 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
        * doc/Makefile, doc/catalog-darwin.xml: Apply
        patch from Cyrus Harmon for building docs on Mac OS X
index 6d91e8dc1847faeb1ec10ea88d9ad01b3cd32250..72414029fb862ad234a02ae811f732220d4b66d0 100644 (file)
 
 (in-package #:clsql-oracle)
 
 
 (in-package #:clsql-oracle)
 
-(defparameter *oracle-lib-path*
+(defparameter *oracle-home*
   (let ((oracle-home (getenv "ORACLE_HOME")))
     (when oracle-home
   (let ((oracle-home (getenv "ORACLE_HOME")))
     (when oracle-home
-      (make-pathname :directory 
-                    (append 
-                     (pathname-directory
-                      (parse-namestring (concatenate 'string oracle-home "/")))
-                       (list "lib"))))))
+      (parse-namestring (concatenate 'string oracle-home "/"))))
+  "Pathname of ORACLE_HOME as set in user environment.")
 
 (defparameter *oracle-client-library-path* 
     (uffi:find-foreign-library
 
 (defparameter *oracle-client-library-path* 
     (uffi:find-foreign-library
-     "libclntsh"
-     `(,@(when *load-truename* (list (make-pathname :directory (pathname-directory *load-truename*))))
-       ,@(when *oracle-lib-path* (list *oracle-lib-path*))
-       "/usr/lib/oracle/10.1.0.2/client/lib/")
+     '("libclntsh" "oci")
+     `(,@(when *load-truename*
+          (list (make-pathname
+                 :directory (pathname-directory *load-truename*))))
+        ,@(when *oracle-home*
+            (list
+             (make-pathname :defaults *oracle-home*
+                            :directory 
+                            (append (pathname-directory *oracle-home*)
+                                    (list "lib")))
+             (make-pathname :defaults *oracle-home*
+                            :directory 
+                            (append (pathname-directory *oracle-home*)
+                                    (list "bin")))))
+        "/usr/lib/oracle/10.1.0.2/client/lib/")
      :drive-letters '("C")))
 
 (defvar *oracle-supporting-libraries* '("c")
      :drive-letters '("C")))
 
 (defvar *oracle-supporting-libraries* '("c")
index ad2f4ef8961a2e7f48dca30f8f0663a58fe5c8a3..d6a50d9cf8aa5b4164e0aef5243564a5ea7899c5 100644 (file)
       library. (<filename>libclntsh.so</filename>).  The location of
       this library is specified relative to the
       <symbol>ORACLE_HOME</symbol> value in the operating system
       library. (<filename>libclntsh.so</filename>).  The location of
       this library is specified relative to the
       <symbol>ORACLE_HOME</symbol> value in the operating system
-      environment. &clsql; has tested sucessfully using the client
-      library from Oracle 9i and Oracle 10g server installations as
-      well as Oracle's 10g Instant Client library.
+      environment.
+      </para>
+    </sect2>
+    <sect2>
+      <title>Library Versions</title>
+      <para>
+       &clsql; has tested sucessfully using the client library from
+       Oracle 9i and Oracle 10g server installations as well as
+       Oracle's 10g Instant Client library. For Oracle 8 and earlier
+       versions, there is vestigial support by pushing the symbol
+       <symbol>:oci7</symbol> onto <symbol>cl:*features*</symbol>
+       prior to loading the <filename>clsql-oracle</filename> &asdf;
+       system.
+       <screen>
+         (push :oci7 cl:*features*)
+         (asdf:operate 'asdf:load-op 'clsql-oracle)
+       </screen>
       </para>
     </sect2>
     <sect2>
       </para>
     </sect2>
     <sect2>