Saturday, January 19, 2013

[OBIEE11g[ - Configuring BI Scheduler for iBots on Windows


This exercise takes your through on configuring your own email server(atleast for one email user) to test out OBIEE 11g Report Scheduling.
The scenario is as below:
machine host 1 “sriwinxp” : – will contain the “hMailServer” SMTP/Email server on a Windows XP box.
machine host 2 “srinewwin” : – will contain the OBIEE 11g BI and the SeaMonkey(Email client since I don’t have Outlook Express on Windows7.
Note:
In case you don’t have two systems to play around with, you can satisfactorily use one machine to contain all three products i.e. the “hMailServer” Email server, OBIEE 11g BI Server and your SeaMonkey Email client(substitute for Outlook Express).
Downloadables:
hMailSever can be downloaded from: http://www.hmailserver.com/index.php?page=download_mirrors&downloadid=207
SeaMonkey Email client can be downloaded from:http://portableapps.com/apps/internet/seamonkey_portable
  1. First I am going to start with installing and configuring the “hMailServer” on the sriwinxp WindowsXP box.
  2. Make sure the C:WINDOWSsystem32driversetchosts file is updated with the below entries:
  3. 127.0.0.1 localhost
  4. 10.0.0.2 sriwinxp sriwinxp.com
  5. Note:
    You will have to change the “10.0.0.2″ and “sriwinxp” to reflect your own machine details.
    The “sriwinxp.com” does not need any special research, just add “.com” after you know your “sriwinxp” equivalent.
    You can get these details by using the commands “ipconfig” and “hostname” in your windows command prompt.
    You can Google on how to setup/what is “static ip” if your in confusion.
    You can also Google on how to setup a windows machine hostname when in confusion.
  6. Now on the same sriwinxp machine execute the hMailServer-5.3.3-B1879.exe to start the email server installation.
  7. Click Next on the first screen.
  8. Accept the “License Agreement” on the next screen and click the “Next >” button.
  9. Select the default install location as show below and click the “Next >” button.
  10. Select both options to install the “Server” and “Administrative tools”.
  11. Then click the “Next >” button.
  12. Select the option “Use built-in database engine (Microsoft SQL Compact)” and click Next.
  13. Leave the default hMailServer default and click Next.
  14. Click the “Install” button on the “Ready to Install” window:
  15. Enter a password for the hMailServer administrative user on the “hMailServer Security” window.e.g. admin123.
  16. This password is different from your Windows Administrator password, and has nothing to do with that.
  17. Click Next.
  18. Select the checkbox “Run hMailServer Administrator” and click “Finish” button.
  19. Select “localhost Administrator” option so it is highlighted and click “Connect” button.
  20. Enter a password e.g. admin123 when asked for and click the “OK” button.
  21. On the “hMailServer Administrator” window on left pane, select the “Domains”.
  22. On the right pane click the Add button, then for the “Domain” box, enter “sriwinxp.com” or whatever is your machine name and just append “.com” to it.
  23. Click the “Save” button.
  24. In the left pane go to Domains->sriwinxp.com->Accounts, then on the right pane click the “Add” button.
  25. Enter “user” for the “Address” box, enter “user1234″ for the “Password”, enter “50″ for the “Maximum size(MB)” box, for the “Administrator level” select “User”, check the “Enabled” box.
  26. Then click the “Save” button.
  27. After click the “Save” button on the left pane you should see the “user user added under the “Accounts” level.
  28. In the left pane go to Settings->Advanced, then enter “sriwinxp.com” for the “Default domain” and enter “admin123″ for the “Administration password”
  29. In the left pane go to Settings->Advanced->Auto-ban and uncheck the “Enabled” checkbox and click “Save”.
  30. In the left pane go to Settings->Advanced->TCP/IP ports, then click the “Add” button and select “IMAP” for the “Protocol”, enter “10.0.0.2″ for the “TCP/IP address” and enter “143″ for the “TCP/IP” port.
  31. Make sure that “Use SSL” checkbox is unchecked.
  32. Click the “Save” button.
  33. When asked to restart the “hMailServer” click “Yes”.
  34. After the “hMailServer” has been restarted. click “OK”.
  35. On to our second task of configuring the SeaMonkey Email Client(or your Outlook Express) on the second machine “srinewwin”.
  36. Open the C:WindowsSystem32driversetchosts file update with these entries so that srinewwin host can access sriwinxp’s “hMailServer” Email server.
  37. On the SeaMonkey Browser menu choose Window->Mail & Newsgroups to open the SeaMonkey Email Client.
  38. Then select “Email account” on the “New Account Setup” window.
  39. Click “Next” to go to the next screen.
  40. In the Identity window enter “user” for “Your Name:”and “user for “Email Address:”
  41. Click “Next” to proceed.
  42. In the “Server Information” window, select IMAP, then enter “sriwinxp” for “Incoming Server:”, then “sriwinxp” for “Outgoing Server:”
  43. Click the “Next” button.
  44. On the “User Names” window enter “user” for the “Incoming User Name:”
  45. Click the “Next” button.
  46. In the “Account Name” window enter “obiee user” for the “Account Name:”
  47. Click the “Next” button.
  48. Verify what you have entered is proper and click the “Finish” button.
  49. After the “Mail Server Password Required” window opens enter the email “user”‘s password. e.g; user1234
  50. You should be able to see your main “Inbox” and with no email messages.
  51. To test out that sending emailing is working.
  52. Click on “Compose” button to open a “Compose” window
  53. In the “To:” field enter “user, in the “Subject:” enter “hello”
  54. In the Body or bottom pane enter “hi test”
  55. then click the “Send” button to send the email message.
  56. When the “SMTP Server Password Required” pops up enter the “user” password. e.g: user1234.
  57. After a few seconds you should get see a message has arrived into your “Inbox” as show below.
  58. This means both our incoming and outgoing email is setup.
  59. Till now we have configured the Email server and the Email client on the “sriwinxp” and “srinewwin” machines respectively.
  60. Now we need to configure OBIEE 11g Agent/Scheduler to start the automated report sending process with the help of the “hMailServer” Email Server.
  61. This involves now a two step process:
  62. First we need to setup OBIEE to access hour newly created “hMailServer” Email server.
  63. Second we need to create a new Scheduler Agent to start sending/scheduling reports via the Email server.
  64. Now for the first part, Open the link: http://localhost:7001/em for the Enterprise Manager console.
  65. Login with username and password.
  66. On the browser left pane open Farm_bifoundation_domain -> Business Intelligence -> coreapplication, then on the right pane select the “Mail” tab.
  67. Click the “Lock and Edit Configuration”
  68. Click “Close” once the “Confirmation” window opens.
  69. Enter “sriwinxp” for the “SMTP server” and leave the other defaults as show below:
  70. Click the “Apply” button.
  71. Click the “Activate Changes” link on top.
  72. Click “Close” once the “Confirmation” window shows up.
  73. Click the “Restart to apply recent changes” link which will go to the “Overview” tab.
  74. In the “Overview” tab click on the “Restart” button to restart the obiee services.
  75. Click on the “Yes” button on the “Confirmation” window.
  76. Click “Close” on the “Confirmation” window once it comes up.
  77. Now for the second part of creating a new Scheduler Agent to handle our emailing reports.
  78. Open the analytics url: http://localhost:9704/analytics.
  79. In the main “Create” section select the “Agent” link under “Actionable Intelligence”.
  80. In the “General” tab select “Normal” for the “Priority” option, then select “Specified user” and enter “weblogic” (which ever user is the administrative user) for the “Run As” option.
  81. Next click on the “Schedule” tab.
  82. In the “Schedule” tab check the “Enabled” checkbox.
  83. For “Frequency” select the “Daily” option and leave the other defaults as show below:
  84. Click on the “Condition” tab
  85. On the “Condition” tab select the “Do not use a condition (always deliver content and run actions)” option.
  86. Click on the “Delivery Content” tab.
  87. On the “Delivery Content” tab enter “Agent for MainGOReport” for the “Subject”, then select “Analysis” for the “Content” and click “Browse” button to select an existing report from the existing reports.
  88. Keep the other defaults as show below.
  89. Click on the “Recipients” tab.
  90. On the “Recipients” tab click on the “Add Email Recipient” icon.
  91. Enter the previously created email user: user
  92. Click on the “OK” button.
  93. the new user should appear in the “Select Recipients” box along with the “weblogic” user.
  94. Click on the “Destinations” tab.
  95. check both “Home Page and Dashboard” and “Devices” checkboxes under “User Destinations”.
  96. select the “Specific Devices (will override a user’s Active Delivery Profile)” option as show below.
  97. then make sure only the “Email” checkbox is selected as show below:
  98. Click on the “Actions” tab.
  99. On the “Actions” tab make sure nothing is select as shown below.
  100. click on the “Save this Agent” icon on the top right.
  101. In the “Save Agent” window go to “Shared Folders” -> “Samples Sales” and enter “AgentMainGOReport” for “Name”.
  102. Click the “OK” button.
  103. After the agent is saved, open your email client.
  104. The new scheduled report is delivered from the OBIEE scheduler to your email client as can be seen below:
Summary:
We have go through the whole process of understanding how to schedule reports by setting up a local email server.
Where in live installations the email server information would be given to you and you will be only doing the OBIEE 11g configuration to access the email server then onto creating your OBIEE Scheduler Agents.