+ All Categories
Home > Documents > Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

Date post: 03-Jun-2018
Category:
Upload: venkatakishore-ch
View: 216 times
Download: 0 times
Share this document with a friend

of 17

Transcript
  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    1/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    Practice 3-1: Combining Requests Using SetOperations

    Goals To combine the results of two requests using union, union all, intersect, andminus set operators

    Time 1015 minutes

    Instructions:

    1. If necessary, start Oracle Business Intelligence Presentation Services and log in asAdministrator. To do this, click Start > Programs > Oracle Business Intelligence >

    Presentation Services and enterAdministratorin the User ID and Password textboxes.

    2. Combine criteria from multiple requests using the Union set operator.

    a. Click the Answerslink to navigate to the Answers start page.

    b. Select the SupplierSalessubject area.

    c. Create the following request and filter:

    d. Click Combine with Similar Request. The Subject Area list appears.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    2/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    e. Select the SupplierSalessubject area. The Set Operations page appears.

    f. Click column names in the selection pane to create the following request andfilter:

    Please note that the number of columns and data types must be consistent.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    3/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    g. Click the Setbutton and select the Unionset operator (Union is thedefault).

    h. Click the Resultstab to display the combined, nonduplicate rows (union)from all requests. In this example, the table displays all customers with

    revenue between five thousand and twenty thousand.

    3. Combine criteria from multiple requests using the Union All set operator.

    a. Click the Criteriatab to return to the Criteria view.

    b. Click the Setbutton and select the Union Allset operator.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    4/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    c. Click the Resultstab to display all rows from all requests (Union All). In thisexample, the table displays all customers with revenue between five thousandand twenty thousand, and includes dollar values that meet criteria from both

    requests.

    4. Combine criteria from multiple requests using the Intersect set operator.

    a. Click the Criteriatab to return to the Criteria view.

    b. Click the Setbutton and select the Intersectset operator.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    5/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    c. Click the Resultstab to display all rows that are common to both requests(Intersect). In this example, the table displays all customers with revenuebetween ten thousand and fifteen thousand.

    5. Combine criteria from multiple requests using the Minus set operator.

    a. Click the Criteriatab to return to the Criteria view.b. Click the Setbutton and select the Minusset operator.

    c. Click the Resultstab to display all rows from the first request that are not inthe other request (Minus). In this example, the table displays all customers

    with revenue between five thousand and ten thousand.

    6. Save the combined request as Customers Revenue Between Five and Ten

    Thousand in the My Sales folder.

    7. Leave Answers open for the next practice.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    6/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    Practice 3-2: Execut ing a Direct DatabaseRequest

    Goals To create and issue a database request directly to a physical back-enddatabase

    Scenario Use Oracle Business Intelligence Answers to set the appropriate privilege toexecute direct database requests and then create, display, and manipulate adirect database request.

    Time 1520 minutes

    Instructions:

    1. Set the privilege to allow the Administrator user to create and issue directdatabase requests. Any user can execute a direct database request, provided that

    the Administrator has granted the user this privilege.

    a. Click the Settings link and select Administration. The Oracle BI PresentationServices Administration window opens.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    7/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    b. Click the Manage Privilegeslink. The Privilege Administration windowopens.

    c. Scroll to the Answerssection.

    d. Locate the Execute Direct Database Requestsprivilege.

    e. Click (not permitted). The Change Privilege Permissions window opens.

    f. Click the Showusers and groups link.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    8/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    g. Next to Administrator, click Addto give the Administrator the privilege toexecute direct database requests.

    h. Click Finishedin the Change Privilege Permissions window.

    i. Click Finishedin the Privilege Administration window.

    j. Click Close Windowin the Oracle BI Presentation Services Administrationwindow.

    2. Create and execute a request in Oracle Business Intelligence Answers. You

    compare the results of this request with the results of a direct database request inthe next step.

    a. Click the Answerslink

    b. Select the SupplierSalessubject area.

    c. Create the following request and associated filters:

    Please note: If you add the Region column to your request to create the filter,

    delete it from the request after creating the filter. Another way to do this is to

    press the CTRL key while clicking the column in the selection panel, whichopens the Create/Edit Filter dialog box without adding the column to therequest.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    9/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    d. Click Resultsand verify that the following results are returned:

    3. Create and execute a direct database request.

    a. Click the Answerslink.

    b. On the Answers start page, click Create Direct Request.

    c. In the Connection Pool field, enter Connection Pool. Include the doublequotation marks. This is the name of the connection pool specified in the

    Physical layer of the repository.

    d. In the SQL Statement field, enter the following SQL statement:

    SELECT D1_customer2.Name, sum(D1_Orders2.ActlExtnd)FROM D1_customer2, D1_Orders2

    WHERE ( D1_customer2.NewKey = D1_Orders2.CustKey and

    D1_customer2.Region = 'East' )

    GROUP BY D1_customer2.Name

    having 2000000 < sum(D1_Orders2.ActlExtnd)

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    10/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    e. Click Validate SQL and Retrieve Columnsand verify that the appropriatecolumns appear under Result Columns:

    f. Click the Resultstab and verify that the same results from the previous stepare returned:

    4. Leave Answers open for the next practice.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    11/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    Practice 3-3: Editing Logical SQL Generatedfor a Request

    Goals To examine and edit the logical SQL generated for an Oracle BusinessIntelligence Answers request

    Scenario Edit the logical SQL for a request after an underlying presentation object hasbeen changed.

    Time 1520 minutes

    Instructions:

    1. Create and execute a request, and examine the SQL generated by the request.

    a. Click the Answerslink and the SupplierSalessubject area.

    b. Create the following request and associated filters:

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    12/17

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    13/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    h. Double-click Customer.

    i. In the Presentation Column Customer properties dialog box, click theGeneraltab.

    j. Deselect the Use Logical Column Name check box.

    k. In the Name field, delete Customerand enterName.

    l. Click the Aliasestab.

    m. Select the Customeralias and click the Deletebutton . When an alias isdeleted from a repository object, the link from the stored object in the

    Presentation Catalog to the metadata is broken. Later in this practice, you

    modify the SQL generated by a request to restore the link.

    n. Click OK.o. Verify that the column changed to Namein the Presentation layer.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    14/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    p. Select File > Save to save the repository.

    q. Click No.

    r. Select File > Close to close the repository.s. Select File > Exit to close the Administration Tool.

    3. Edit the logical SQL generated for a request to restore the link from the storedobject in the Presentation Catalog to the metadata.

    a. Start the Oracle BI Serverand Oracle BI Presentation Serverservices.

    b. Log in to Oracle Business Intelligence Presentation Services as

    Administrator/Administrator.

    c. Click the Answerslink.

    d. In the selection pane, select the SQL_Editrequest from My Folders.

    e. You receive a view display error. Expand the error details to view the details.The error message indicates that there is an unresolved column: Customers.

    Customer. This is the expected error because you changed the name of theCustomer column to Name and deleted the alias.

    f. Click Modify.

    g. Click the Advancedtab.

    h. Notice the content in the Request XML field. Requests are stored in thePresentation Catalog in XML format. In this example, the fourth line of theXML code indicates that the request is still pointing to the Customer column

    in the Customers presentation catalog.

    After you modify the SQL in the next steps, you observe the changes to the

    XML code in the Request XML field.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    15/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    i. Notice the error message below the SQL Issued field.

    j. Open the SQL_Edit Notepad file you saved on your desktop in the earlierstep.

    k. In the SQL Issued field, copy and paste the SQL from the SQL_Edit Notepadfile.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    16/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    l. In the SQL Issued field, modify the SQL as follows:SELECT Cust omer s.Name saw_0, Sal esFact s. Dol l ar s saw_1FROM Suppl i er Sal es

    WHERE Sal esFact s. Dol l ar s > 2000000ORDER BY saw_0

    m. Click Set SQL.

    n. Notice that the error message disappears.

    o. Notice also that the XML code in the Request XML field has been updatedwith the correct information.

    p. Save the request. Replace the existing request when prompted.

    4. Verify your results.

    a. Select the Answerslink.

    b. In the selection pane on the left, click the SQL_Editrequest.c. Verify that you receive the following results:

    d. Click Modify.

    e. Click Advanced.

    f. Verify that the correct SQL appears in the SQL Issued field.

  • 8/11/2019 Microsoft Word - 03RD Practices AnswersAdvancedFeatures 3

    17/17

    RRI-TEC,#209,Nilagiri Block,Adithya Enclave @8790998182,8801408841

    5. Replace the modified repository with the backup copy you created.

    a. Log out of Oracle Business Intelligence Presentation Services and close yourbrowser.

    b. In the Services dialog box, stop the Oracle BI Serverand Oracle BIPresentation Serverservices.

    c. In Windows Explorer, navigate to D:\OracleBI\server\Repository and delete

    the reports_dashboards.rpdfile.

    d. Rename the Copy of reports_dashboards.rpdfile asreports_dashboards.rpd.

    e. Start the Oracle BI Serverand Oracle BI Presentation Serverservices.


Recommended