Sunday, 20 September 2015

Creating a Repository Using the Oracle Business Intelligence Administration Tool ( part 3 )

LAB 1: Testing and Validating a Repository
You have finished building an initial business model and now need to test and validate the repository before continuing. You begin by checking the repository for errors using the consistency checking option. Next you load the repository into Oracle BI Server memory. You then test the repository by running an Oracle BI analysis and verifying the results. Finally, you examine the query log file to observe the SQL generated by Oracle BI Server.
To test and validate a repository you perform the following steps:
  • Check Consistency
  • Disable Caching
  • Load the Repository
  • Set Up Query Logging
  • Create and Run and Analysis
  • Check the Query Log
Check Consistency
1.
Select File > Check Global Consistency.
Screenshot for Step
 
2.
You should receive the message Business model "Sample Sales" is consistent. Do you want to mark it as available for queries?
Screenshot for Step
3 .
Click Yes. You should receive the message: Consistency check didn't find any errors, warnings or best practice violations.
Screenshot for Step
If you do not receive this message, you must fix any consistency check errors or warnings before proceeding.

4 .
Click OK. Notice that the Sample Sales business model icon in the BMM layer is now green, indicating it is available for queries.
Screenshot for Step

5 .
Save the repository without checking global consistency again.
Screenshot for Step

6 .
Select File > Close to close the repository. Leave the Administration Tool open.

Disable Caching
1.
Open a browser and enter the following URL to navigate to Fusion Middleware Control Enterprise Manager:
http://<machine name>:7001/em
In this tutorial the URL is http://localhost:7001/em
 
2.
Log in as an administrative user. Typically you use the administrative user name and password provided during the Oracle BI installation. In this example the user name is weblogic.
Screenshot for Step
3 .
In the left navigation pane, expand Business Intelligence and click coreapplication.
Screenshot for Step

4 .
Click the Capacity Management tab.
Screenshot for Step

5 .
Click the Performance sub tab.
Screenshot for Step

6 .
Locate the Enable BI Server Cache section. Cache is enabled by default.
Screenshot for Step

7 .
Click Lock and Edit Configuration.
Screenshot for Step

8 .
Click Close when you receive the confirmation message "Lock and Edit Configuration - Completed Successfully."
Screenshot for Step

9 .
Deselect Cache enabled. Caching is typically not used during development. Disabling cache improves query performance.
Screenshot for Step

10 .
Click Apply.
Screenshot for Step

11 .
Click Activate Changes.
Screenshot for Step

12 .
Click Close when you receive the confirmation message Activate Changes - Completed Successfully.
Screenshot for Step

13 .
Do not click Restart to apply recent changes yet. You do that after uploading the repository in the next set of steps.
Screenshot for Step

Load the Repository
1.
Click the Deployment tab.
Screenshot for Step

2 .
Click the Repository sub tab.
Screenshot for Step

3 .
Click Lock and Edit Configuration.
Screenshot for Step

4 .
Click Close when you receive the confirmation message "Lock and Edit Configuration - Completed Successfully."
Screenshot for Step

5 .
In the "Upload BI Server Repository" section, click Browse to open the Choose file dialog box.
Screenshot for Step

6 .
By default, the Choose file dialog box should open to the repository directory. If not, navigate to the repository directory with the BISAMPLE repository.
Screenshot for Step

7 .
Select the BISAMPLE.rpd file and click Open.
Screenshot for Step

8 .
Enter BISAMPLE as the repository password and confirm the password.
Screenshot for Step

9 .
Click Apply.
Screenshot for Step

10 .
In the BI Server Repository section, confirm that the Default RPD is now BISAMPLE with an extension. In this example the file name is BISAMPLE_BI0025.
Screenshot for Step

11 .
Click Activate Changes.
Screenshot for Step

12 .
Click Close when you receive the confirmation message Activate Changes - Completed Successfully.
Screenshot for Step

13 .
Click Restart to apply recent changes to navigate to the Overview page (this may take a moment).
Screenshot for Step

14 .
On the Overview page, click Restart.
Screenshot for Step

15 .
Click Yes when you receive the message Are you sure you want to restart all BI components?
Screenshot for Step

16 .
Allow the Restart All processing to complete. This may take a few moments.
Screenshot for Step

17 .
Click Close when you receive the confirmation message Restart All - Completed Successfully.
Screenshot for Step

18 .
Confirm that System Components are 100% and that five components are up. Leave Enterprise Manager open.
Screenshot for Step

Set Up Query Logging
1 .
Return to the Administration Tool, which should still be open.

2 .
Select File > Open > Online to open the repository in online mode. You use online mode to view and modify a repository while it is loaded into the Oracle BI Server. The Oracle BI Server must be running to open a repository in online mode.
Screenshot for Step

3 .
Enter BISAMPLE as the repository password and enter your user name and password.
Screenshot for Step

4 .
Click Open to open the repository in online mode.
Screenshot for Step

5 .
Select Manage > Identity to open Security Manager.
Screenshot for Step

6 .
In the left pane, select BI Repository.
Screenshot for Step

7 .
In the right pane, double-click your administrative user to open the User dialog box. In this example the administrative user is weblogic.
Screenshot for Step

8 .
In the User dialog box, on the User tab, set Logging level to 2.
Screenshot for Step

9 .
Click OK to open the Check Out Objects dialog box.
Screenshot for Step

10 .
In the Check Out Objects dialog box, click Check Out. When you are working in a repository open in online mode, you are prompted to check out objects when you attempt to perform various operations.
Screenshot for Step

11 .
Select Action > Close to close Security Manager.
Screenshot for Step

12 .
Select File > Check In Changes. Alternatively, you can click the Check In Changes icon on the toolbar.
Screenshot for Step

13 .
Save the repository. There is no need to check consistency.
Screenshot for Step

14 .
Select File > Close to close the repository.
Screenshot for Step

15 .
Click OK when you receive the following message:
"In order for your online changes to take effect, you will have to manually restart each non-master Oracle BI Server instance in the cluster."
Screenshot for Step

16 .
Leave the Administration Tool open.

Create and Run an Analysis
1.
Open a browser or a new browser tab and enter the following URL to navigate to Oracle Business Intelligence:
http://<machine name>/:9704/analytics
In this tutorial the URL is http://localhost:9704/analytics
 
2.
Sign in as an administrative user. Typically you use the administrative user name and password provided during the Oracle BI installation. In this example the user name is weblogic. If you need help identifying a user name and password, contact your company's Oracle BI Administrator.
Screenshot for Step
3 .
In the left navigation pane, under Create... Analysis and Interactive Reporting, select Analysis.
Screenshot for Step

4 .
Select the Sample Sales subject area.
Screenshot for Step

5 .
In the left navigation pane, expand the folders in the Sample Sales subject area and confirm that the user interface matches the presentation layer of the repository.
Screenshot for Step

6 .
Double-click the following column names in the Subject Areas pane to add them to the analysis:
Time.Per Name Year
Products.Type
Base Facts.Revenue
Screenshot for Step

7 .
Click Results.
Screenshot for Step

8 .
The analysis results are displayed in a compound layout, which includes a Title view and a Table view.
Screenshot for Step

9 .
Use the buttons at the bottom of the compound layout to view additional rows.
Screenshot for Step

Check the Query Log

1 .
Return to Fusion Middleware Control Enterprise Manager, which should still be open.

2 .
Click the Diagnostics tab.
Screenshot for Step

3 .
Click the Log Messages sub tab.
Screenshot for Step

4 .
Scroll to the bottom of the window to the View / Search Log Files section.
Screenshot for Step

5 .
Click Server Log to navigate to the Log Messages screen.
Screenshot for Step

6 .
In the Log Messages screen, leave the data range set to Most Recent, 1 Days. Deselect all message types except for Trace.
Screenshot for Step

7 .
In the Message field, enter sending query to database.
Screenshot for Step

8 .
Click Search.
Screenshot for Step

9 .
There should be only one message at this point, but if there are more than one, select the last message in the list. This is the most recent query sent to the database.
Screenshot for Step

10 .
In the bottom pane, click the Collapse Pane button (arrow on the right side) to view the log message. Your results should look similar to the screenshot.
Screenshot for Step
Screenshot for Step

11 .
Click the Restore Pane button. Throughout this tutorial, you return to this view to check the query log.

12 .
Leave Enterprise Manager open.

No comments:

Post a Comment