Google Groups

Re: How to provide username/passwrd when connecting to sql storage service


john Apr 25, 2012 7:28 AM
Posted in group: Datomic
Sorry I forgot the error:
 
Hello,
I setup a MAXDB SQL Database
I started a transactor and get the following output:
System started datomic:sql://<DB-NAME>?jdbc:sapdb://server/testdb?sqlmode=ORACLE
Now I want to connect to the Transactor:
I start a shell and do
uri="datomic:sql://testdb?jdbc:sapdb://server/testdb?sqlmode=ORACLE";
Peer.connect(uri);
I then get following error:
 

java.util.concurrent.ExecutionException: com.sap.dbtech.jdbc.exceptions.SQLExceptionSapDB: No user name given.
        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
        at java.util.concurrent.FutureTask.get(FutureTask.java:83)
        at clojure.core$future_call$reify__6110.deref(core.clj:6156)
        at clojure.core$deref.invoke(core.clj:2080)
        at datomic.catalog$get_catalog.invoke(catalog.clj:29)
        at datomic.connector$resolve_name.invoke(connector.clj:48)
        at datomic.peer$get_connection$fn__6008.invoke(peer.clj:317)
        at datomic.peer$get_connection.invoke(peer.clj:315)
        at datomic.peer$connect_uri.invoke(peer.clj:382)
        at clojure.lang.Var.invoke(Var.java:415)
        at datomic.Peer.connect(Peer.java:77)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
 
Obviously I need to provide username/password.
But how?
Many Greetings
John