Domino8 & db2 & was

Q - Can I take an existing Notes db and write the data to a db2 database (nsfdb2)? > see, I don’t need to edit, the tables in the db2 control center? Then eference the db2 table Through a WAS service? Do I need Domino DB Access Installed? Or is writing out to nsfdb2 enough?

What I’m trying to do is keep my current Notes app (interface, notes views and profiles etc) but write the data to the db2 database and use that stored db2 data in a web service. And to make this easier, it would be one way Notes>db2>WAS.

WAS would never need to write to db2 and db2 would never need to write to Notes.

If someone could point me in the right direction I’d appropriate it

Thanks for your help

Sam Rose (Maul)

Subject: Yes, you can do that.

If you have a Domino server that is DB2-enabled, you can DB2-enable a database on that server and query it via SQL from other apps (with appropriate credentials of course). For a database not yet DB2-enabled, use compact -p to enabled it. Once it is enabled, you must create a DB2 Access View that defines the Notes data you want to make available to the SQL queries. Once that is enabled, your WAS app should be able to query as you want.

Subject: Glad to know what I want is possible

Are there any examples or documentation you can point me to? I’m having trouble finding a (current) doc that explains the Lotus DB2 Access server and it’s relationship to Domino and DB2.

Thanks in advance

Maul

Subject: Here is a place to start on with DAV

http://www.kalechi.com/comments.nsf/dx/Install-db2-on-DominoIt will get you started.

The DAV is just a mapping of Domino Data to db2. You will have a table called schema.davname_T and a view called schema.DAVname

The schema name is generated by the db2 access server and varies with release. On 8.5 it’s the filename minus the .nsf.