Skip to content

Instantly share code, notes, and snippets.

@4e1e0603
Created December 21, 2016 14:47
Show Gist options
  • Save 4e1e0603/a6935617a5e319a1b882dc7d626aa78d to your computer and use it in GitHub Desktop.
Save 4e1e0603/a6935617a5e319a1b882dc7d626aa78d to your computer and use it in GitHub Desktop.
Clojure Oracle Database connection
(ns app.core
(:require
[clojure.java.jdbc :as jdbc]))
(def oracle-db-spec
{:classname "oracle.jdbc.Driver"
:subprotocol "oracle:thin"
:subname "//@host:port/name"
:user "USER"
:password "PASS"})
(defn -main [& args]
(jdbc/query oracle-db-spec
["SELECT * FROM table_name WHERE ..."])
(println "OK"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment