I’ve never connected to Oracle from Notes before (usually sql using dsns, yuk).
I want to connect to an oracle db without using a dsn or installing anything on my notes server. Possible, yes? From what I’ve read I should look into adodb. Does anyone have a good documentation resource for this you can point me to?
Dim adoConn As Variant
Dim adoCmd As Variant
Dim rs As Variant
Dim param As Variant
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim strTxt As String, strConn As String, strSQL As String
Dim x As Integer
Set db = session.CurrentDatabase
Set adoConn = CreateObject("ADODB.Connection")
Set adoCmd = CreateObject("ADODB.Command")
Set rs = CreateObject("ADODB.Recordset")
adoConn.ConnectionTimeout = 30
adoConn.Provider =??
adoConn.Properties("Data Source") =??
adoConn.Properties("User ID") = "USERID"
adoConn.Properties("Password") = "PASSWORD"
’ adoConn.ConnectionString = strConn
adoConn.Open
=====================================
I get the error msg:
“ADODB.Connection: Provider cannot be found. It may not be properly installed”
No – if you have the oracle access software installed you can use the oracle or oracle8 Lotus Connector to avoid using ODBC. I don’t know anything that doesn’t require you to install something on the server.
What’s the big problem you set up a DSN in any case?
So I need to have the oracle8 Lotus Connector installed. It comes with Notes? Works with oracle 10g? How does my admin make it available for devleoper use?
The connector should be installed automatically along with those others when you install Domino, or the Notes client with DECS option.
In addition to the Oracle8 Lotus connector, you need an Oracle client. The Lotus connector uses the Oracle API to access Oracle, and so the API has to be available locally.
I haven’t heard whether LC supports Oracle 10g. I know it supports 9i.