Dominopoint Day 2008


Published on

Published in: Technology, Business
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Sotto Sponsored by inserire il logo dello sponsor a voi affiliato. Il logo lo trovate nell’ultima SLIDE.
  • Dominopoint Day 2008

    1. 1. Domino, DB2 and ... The other (IBM AS/400) That is: how to mix data from Domino and AS/400 in real-time using NSFDB2 Speakers: Cristian D’Aloisio Vincenzo Capponcelli Domino Administrator & Developers Ciemme Service s.r.l.
    2. 2. AGENDA <ul><li>Intro to NSFDB2 </li></ul><ul><li>How to enable NSFDB2 feature on Lotus Domino for Windows </li></ul><ul><li>Enabling Homogeneous Federation on DB2 server to seamlessly access data on AS/400 and mix them with Notes data </li></ul><ul><li>Examples: some Notes/Domino applications showing how using NSFDB2 and FEDERATION with AS/400 </li></ul>
    3. 3. What is NSFDB2? <ul><li>On a Domino 8 server, ability to use a DB2 server as an alternative data store </li></ul><ul><li>It’s a server-side technology </li></ul><ul><li>On a nsfdb2-enabled Domino server, not all Notes application must (or can) be saved on the DB2 data store </li></ul><ul><li>End-user connected to a Domino server are not aware that a Domino application is nsfdb2-enabled </li></ul><ul><li>Access: both Notes clients and web browsers can access a nsfdb2-enabled application </li></ul>
    4. 4. SCHEMA
    5. 5. What advantages? Integrations: Notes applications can access DB2 data without any batch transfer (LEI, etc.). Joining data: joining Domino data (even on several databases) and relational DB2 data Security: Domino ACL security is preserved both when data are accessed by a traditional Notes client or any other program (written in C/C++/Java etc) that access the same data saved on the DB2 server Performance: view index updating is done by the DB2 server, not by Domino Reports: accessing data from third-party reporting applications, mixing Notes and DB2 data (see IBM technote 7010956)
    6. 6. DOMINO DATABASES NOT CONVERTED <ul><li>IMAP4 mailboxes </li></ul><ul><li>Shared Mail (SCOS) </li></ul><ul><li>Some Domino system db: e.g. names.nsf, log.nsf </li></ul>
    7. 7. NEW DESIGN ELEMENTS! 1/2 <ul><ul><li>Domino Access View (DAV): </li></ul></ul><ul><ul><ul><li>Allows developers to expose Domino data in a relational format, via a DB2 view. That’s because using DB2 as a data store does not mean developers can directly access data via SQL: it’s like a blackbox! </li></ul></ul></ul><ul><ul><ul><li>Notes developers chooses which Notes data , actually saved on the DB2 data storage, will be available to both Notes clients and DB2 programs (C++, Java, etc) </li></ul></ul></ul><ul><ul><ul><li>It’s important to map DB2 users and Notes users that will access DAV data (ACL is preserved) ! </li></ul></ul></ul>
    8. 8. NEW DESIGN ELEMENTS! 2/2 <ul><li>QUERY VIEW (QV) </li></ul><ul><ul><li>it’s like a Notes view that shows data retrieved by a query SQL statement! </li></ul></ul><ul><ul><li>QV has no index, data is refreshed at each view access/refresh </li></ul></ul><ul><ul><li>QV can show data retrieved doing JOINs between Domino data (exposed as Domino Access View) and other DB2 data </li></ul></ul><ul><ul><li>SQL statements can be dynamic, that is you can ask Notes user for parameters and build a statement that will run and populate the QV </li></ul></ul><ul><ul><li>QV can be accessed by Notes clients and web browsers </li></ul></ul>
    9. 9. NSFDB2 CONFIGURATIONS Local Configuration: Domino server and DB2 server are installed on the same physical server Remote Configuration: Domino server and DB2 server are installed on two different physical servers
    10. 10. SUPPORTED DB2 RELEASES (8.0.2 release notes) <ul><li>DB2 Enterprise Server Ed 9.1 FP2 - Microsoft Windows 32-bit </li></ul><ul><li>DB2 Enterprise Server Ed 9.1 interim special build 2a - IBM AIX and Linux (SLES10 & RHEL5) 64-bit </li></ul><ul><li>DB2 Workgroup Server Ed 9.1 FP2 - Microsoft Windows 32 bit </li></ul><ul><li>DB2 Workgroup Server Ed 9.1 interim special build 2a - IBM AIX and Linux (SLES10 & RHEL5) 64-bit </li></ul>
    11. 11. Linux, AIX, Windows... What about AS/400 !? <ul><li>NSFDB2 IS NOT available for Domino 8 on AS/400 (i Series,...) ! </li></ul><ul><li>Workaround ! Enable Homogeneous Federation on the DB2 server! You can configure DB2 server to seamlessly “link” some remote tables (aka “files” on AS/400) and use them as local tables, mixing them with Notes data </li></ul><ul><li>Licensing: using a DB2 server for NSFDB2 ONLY is free, using the FEDERATION feature on the same DB2 server IS NOT FREE (to date). </li></ul>
    13. 13. WHAT WE USED IN OUR LOCAL NSFDB2 CONFIGURATION (WINDOWS) <ul><li>Lotus Domino 8.0.2 Enterprise </li></ul><ul><li>DB2 Access for Lotus Domino 8.0.2 </li></ul><ul><li>IBM DB2 9.1 fix pack 2 </li></ul>
    14. 14. STEP 1: DOMINO INSTALLATION <ul><li>Lotus Domino 8.0.2 Enterprise installation </li></ul><ul><li>Enabling Domino Transaction Log </li></ul>
    15. 15. STEP2: DB2 SERVER INSTALLATION <ul><li>Local configuration : installing DB2 server on the same server where we installed Domino server (Windows OS) </li></ul><ul><li>creating a Windows account ( DB2ADMIN) and a group ( DB2DOM) </li></ul><ul><li>DB2 server 9.1 installation using Window user DB2ADMIN </li></ul><ul><li>setting a DB2 environment variable, SYSCTRL_GROUP , to include the Windows group DB2DOM </li></ul>
    16. 16. TIP (Windows OS) Be sure to setup Domino server as DEPENDENT from DB2 server: Domino server service can be run ONLY after DB2 server service is already running (need some Windows registry tweaking)
    17. 17. DB2 SERVER: slideshow
    18. 18. STEP3: “DB2 ACCESS for Domino” installation <ul><li>First, create a “special” Domino server ID file that will be used by the “DB2 Access for Domino” (use Domino Administrator client) </li></ul><ul><li>Start the “DB2 Access for Domino” installation on the server that host your DB2 server (actually the same server where we also installed Domino) </li></ul><ul><li>Enable Domino server to DB2 </li></ul><ul><li>Restart Domino server </li></ul><ul><li>Test DB2 Access for Domino , using Domino Administrator client </li></ul>
    19. 19. DB2 Access for Domino: slideshow
    20. 20. Some settings from Domino Administrator client <ul><li>Map each Domino user to a DB2 user: eg. Domino Administrator with DB2ADMIN </li></ul><ul><li>Inside the Domino server document (names.nsf) you’ll find a new tab named “DB2“: </li></ul><ul><ul><li>Set a default user that it will be used for Query View </li></ul></ul><ul><ul><li>Setup a max number of records that will be returned by a Query View (default is “500”, “0” means all) </li></ul></ul>
    21. 21. ENABLING “HOMOGENEOUS FEDERATION” ON DB2 <ul><li>On the DB2 server, allows you to define one or more tables that are actually defined on a remote AS/400 system </li></ul><ul><li>Since you’re using a DB2 server for Domino NSFDB2 feature, you can federate remote AS/400 tables and seamlessly use them in any Query View </li></ul>
    22. 22. FEDERATION: slideshow
    23. 23. FAQ 1 <ul><li>How to enable a Notes application to NSFDB2 data storage? Run the following Domino console command: load compact -p mydbname.nsf </li></ul>
    24. 24. FAQ 2 <ul><li>Is it possible possible to programmatically change the Query View selection query? Use the undocumented NotesView property selectionQuery : e.g. view.SelectionQuery= | ” SELECT * FROM schema.tabella ” | </li></ul><ul><li>Call view.Refresh </li></ul>
    25. 25. FAQ 3 <ul><li>How to read QV data using LS agents (or Java agents)? Use the NotesViewEntrycollection class to browse all data showed by the QV: </li></ul>
    26. 26. DEMO 1 <ul><li>that’s an example about querying AS/400 in real-time using SQL </li></ul><ul><li>company data are retrieved on AS/400 </li></ul><ul><li>orders are collected on a nsfdb2-enabled Notes application and exposed via a Domino Access View </li></ul><ul><li>items cost are also retrieved querying a AS/400 system </li></ul>
    27. 27. DEMO 2 <ul><li>Notes application to manage returned imperfect items </li></ul><ul><li>items data are retrieved from AS/400 </li></ul><ul><li>data are “mixed” using Query View : real-time data JOINing between AS/400 data and Notes data </li></ul>
    28. 28. RESOURCES <ul><li>Administrator e Designer guides ;-) </li></ul><ul><li>IBM technotes: </li></ul><ul><li>IBM Domino blog: </li></ul><ul><li>Domino Baloney blog: </li></ul><ul><li>Vistalli blog: http:// / </li></ul><ul><li>Zoo Lotus blog: </li></ul>
    29. 29. TOOLS <ul><li>Notepad++ Useful text editor (with several plug-ins) to unwrap multi-line SQL statements and reformat them to a maximum row length, compatible with @formula inside QV selection query. </li></ul><ul><li>SQLinForm Useful tool to reformat SQL statements for Query Views: transforming one-line SQL statements to more friendly multi-line SQL statements </li></ul>
    30. 30. HOW TO KEEP IN TOUCH WITH US? Cristian D'Aloisio [email_address] Vincenzo Capponcelli [email_address]
    31. 31. I Nostri Sponsor