Hi, Does anybody has idea that how to connect with AS400-DB2 using Lotus Notes?
Thanx in advance.
Regards.
Hi, Does anybody has idea that how to connect with AS400-DB2 using Lotus Notes?
Thanx in advance.
Regards.
Subject: Connectivity with DB2 AS400?
Here is an excerpt of the Domino Designer help:
You can access DB2 on an iSeries system using the Lotus Connector for DB2. The procedure varies slightly depending on whether or not the DB2 database resides on the same iSeries system as the Domino server.
DB2 Database on Same iSeries System as Domino Server
Use the following procedure to access a DB2 database that resides on the same iSeries system as the Domino server.
ADDRDBDIRE RDB(database name) RMTLOCALNAME(*LOCAL)
Create a DB2 Connection document using the relational database name in the above statement for the database name entry.
Enter the user name and password for iSeries.
This user name and password should have authority to access the given database.
DB2 Database on a Different iSeries System than Domino Server
Use the following procedure to access a DB2 database that resides on a different iSeries system than the Domino server.
ADDRDBDIRE RDB(database name) RTMLOCNAME(IPaddress)
STRTCPSRV *DDM.
You can verify that the job QRWLSNN in subsystem QSYSWRK is active by using the WRKACTJOB command.
Create a DB2 Connection Document using the relational database name in the above statement for the database name entry.
Enter the user name and password for iSeries.
This user name and password should have authority to access the given database.
If the table on the iSeries system is not journalled, select the “Non-Journalled Data” option in the Connection Properties section of the DB2 Connection Document.
To use interactive SQL to verify that the connection to the remote iSeries is set up correctly, run the STRSQL command from your local iSeries system and then issue the following SQL command:
Connect to remote server name
You must have 5722-ST1 installed to use STRSQL.
Call Qnotes/dctest
Hinweis If this is the first time that you have used SQL to connect to a remote iSeries system, an error message (SQLPKG not found) may appear. You can run the following agent to create *SQLPKG on the remote iSeries system:
Option Public
Uselsx “*lsxodbc”
Sub Initialize
Dim con As New ODBCConnection
con.AutoCommit=False
If (con.ConnectTo("databasename","userid", "pwd")) Then
Call con.Disconnect
End If
Print "Test Create SQL Pkg"
End Sub
I think this are pretty good instructions. If you have specific problems with this feel free to ask again.
Greetings
Ralf M Petter