Vous êtes sur la page 1sur 9

RR I-TEC,,#209,Ni lagiri Block, Adithya Enclave @8801408841, 8790998182

Practice 4-1: Creating the Presentation Layer


Goal To create the Presentation layer of a repository
Scenario You have created the initial SupplierSales business model in the repository.
You now create the Presentation layer of the repository. This allows you to
expose the business model to users in Oracle BI Answers so that they can
build requests to analyze their data.
Outcome In the Presentation layer of the repository, there is a SupplierSales
presentation catalog and a SupplierSalesDM presentation catalog.
Time 1015 minutes
Instructions
1. In this step, you create the Presentation layer for the SupplierSales business
model. The Presentation layer has three types of objects: presentation catalog,
presentation table, and presentation column. In Oracle BI Answers, the catalog
appears as a subject area, the presentation table appears as a folder, and the
presentation columns appear as columns in the folders. The ABC repository
should be open in the Administration Tool from the previous practice.
a. Ensure that the Presentation layer is visible. If it is not, select View >
Presentation.
b. Drag the SupplierSales business model into the Presentation layer. A
presentation catalog appears with the name SupplierSales. When you create a
presentation in this manner, the business model becomes a presentation
catalog, the logical tables become presentation tables, and the logical columns
become presentation columns. Note that all objects within a presentation
catalog must derive from a single business model.

RR I-TEC,,#209,Ni lagiri Block, Adithya Enclave @8801408841, 8790998182

2. In this step, you examine the properties of a presentation catalog.
a. Double-click the SupplierSales presentation catalog in the Presentation layer.
The Presentation Catalog properties dialog box opens.
b. Click the General tab. You use this tab to create or edit a presentation catalog.
c. Note that it is possible to change the name of the catalog. For the purpose of
these lessons, leave the name as SupplierSales. This is the name that appears
as a subject area in Answers. Also, as you will see in later lessons, the name of
the presentation catalog can be used in the FROMclause of a logical SQL
statement. Therefore, short catalog names are desirable. The tool prevents you
from giving the same name to a presentation catalog and presentation table. It
is also advisable to avoid using characters ($, %) that may cause illegal SQL
syntax with particular client tools
d. Click the Permissions button. This dialog box is used to assign user and
group permissions to this repository object. Permissions are discussed in more
detail in the lesson titled Security.
e. Click Cancel to close the Permissions dialog box.
f. The custom display name is used if you are planning to present the name in
local languages. You can ignore this for the purposes of this practice.
g. Note that the business model is grayed out and cannot be modified. This is
because all objects within a presentation catalog derive from a single business
model and cannot span multiple business models. After the business model is
set, it cannot be changed and the tool prevents you from including objects
from other business models.
h. Note that export logical keys is deselected by default. This is irrelevant to
users of Answers, but may be advantageous to some query and reporting tools.
If selected, columns in the Presentation layer that are key columns in the
Business Model and Mapping layer will be presented as key columns to an
ODBC client and will have a key icon in the Presentation layer.
i. Note that the implicit fact column is not assigned. If you set an implicit fact
column, this column is added to a query when it contains columns from two or
more dimension tables and no measures. It is used to specify a default join
path between dimension tables when there are several possible alternatives.
j. In the Description field, enter something similar to Analyze Sales and
Shipment Data. This information is visible under the corresponding
subject area in Answers. You confirm this in the next set of practices.
k. Click the Presentation Tables tab.
RR I-TEC,,#209,Ni lagiri Block, Adithya Enclave @8801408841, 8790998182

l. Use the Up and Down buttons or drag objects to rearrange the presentation
tables into the following order:

m. Click the Aliases tab. If you change the name of a presentation catalog, the
tool automatically creates an alias using the previous name. You can use this
tab to specify or delete an alias for a presentation folder.
n. Click OK to close the Presentation Catalog properties dialog box.
o. Expand the SupplierSales presentation catalog and note that the order of the
presentation tables is now changed.
3. In this step, you explore the properties of a presentation table. You can use
presentation tables to hold columns from multiple logical tables, thereby reducing
the number of apparent logical tables. You can also use presentation tables to
organize logical columns into smaller groupings, thereby increasing the number of
apparent logical tables. For example, you might have a hundred measures in a
logical fact table. You may want to create multiple presentation tables as
containers for those measures and thus present them in an organized way (for
example, all dollar measures in one folder; all unit measures in another folder).
These measure folders could be nested within a single folder in the Answers user
interface.
a. Double-click the Customers presentation table. The Presentation Table
dialog box opens.
b. Click the General tab.
c. Note that, by default, the presentation table name is the same as the logical
table name. With Oracle BI Answers, the name can be anything, except that it
should not contain single quotation marks, double quotation marks, or the %
RR I-TEC,,#209,Ni lagiri Block, Adithya Enclave @8801408841, 8790998182

sign. For client tools that generate SQL, it is advisable to avoid names that
might violate valid SQL syntax. For example, avoid SQL key words, spaces,
single and double quotation marks, and other characters such as $ or %. A
presentation table name cannot be the same as the presentation catalog name
or any logical column name in that catalog. As in a presentation catalog,
changing a presentation table name does not have any affect on the logical
table name in the Business Model and Mapping layer. The Alias tab keeps a
record of any changes.
d. Type a brief description in the Description field. This will show up as a tool
tip in the Answers UI when the user places the cursor over the object. You
confirm this in the next set of practices.
e. Click the Columns tab.
f. Change the order of the columns, using the Up and Down buttons or by
dragging, into the following order:
Columns
Region
District
Sales Rep
Customer
Address
Phone
City
State
Zip Code
Route Code
Customer Key
g. Click OK to close the Presentation Table dialog box.
4. In this step, you explore the properties of a presentation column. Presentation
columns can come from multiple logical tables in a business model. By default, a
presentation column uses the same name as its corresponding logical column in
the Business Model and Mapping layer. If you rename the column in the Business
Model and Mapping layer, corresponding presentation columns are automatically
renamed wherever they appear in the Presentation layer. Even if you rename a
presentation column, it does not impact the corresponding logical column in the
Business Model and Mapping layer. However, as with presentation catalogs and
tables, the repository stores an alias for the column using the previous name.
a. Expand the Customers presentation table.
b. Ensure that the columns are now in the order you specified in the previous
step.
c. Double-click the District column. The Presentation Column dialog box
opens.
RR I-TEC,,#209,Ni lagiri Block, Adithya Enclave @8801408841, 8790998182

d. Click the General tab.
e. Deselect Use Logical Column Name. The Name field can now be edited.

f. Change the column name by entering Sales District in the Name field.
g.
h. Click the Aliases tab. What is the logical column name (or alias) for this
presentation column?



i. Return to the General tab.
j. Click the Edit button. The Logical Column dialog box opens.
k. Click the General tab in the Logical Column dialog box.
l. Which logical column does this presentation column map to?



m. Which business model does this presentation column map to?

RR I-TEC,,#209,Ni lagiri Block, Adithya Enclave @8801408841, 8790998182



n. Which logical table does this presentation column map to?



o. Click the Data Type tab.
p. Which physical table and column does this presentation column map to?



q. Click OK to close the Logical Column window.
r. Click OK to close the Presentation Column window
5. In this step, you simplify the content by deleting unnecessary presentation
columns. You may not want to expose all the logical columns of a business model
in a presentation catalog. You can delete columns from the Presentation layer
safely without affecting the existence of the logical column in the Business Model
and Mapping Layer. Key columns in presentation tables can be deleted, unless the
client tools require that key information be provided.
a. In the Presentation layer, in the Customers table, delete the Customer
Key column.
b. Click Yes to confirm the deletion.
c. In the Products table, delete the ProductKey column
d. Click Yes to confirm the deletion.
6. In this step, you create a nested folder. Nested folders are a useful way to organize
the way information is presented to the user in Answers.
a. Double-click the SupplierSales presentation catalog to open the Presentation
Catalog properties dialog box.
b. Click the Presentation Tables tab.
c. Click Add.
d. In the Name field, enter Facts.
e. Click OK to return to the Presentation Tables tab.
RR I-TEC,,#209,Ni lagiri Block, Adithya Enclave @8801408841, 8790998182

f. Position the Facts presentation table directly above the SalesFacts
presentation table.

g. Double-click SalesFacts to open the Presentation Table dialog box.
h. Click the General tab.
i. Add a hyphen and a space before Sal esFact s in the Name field. This will
nest the SalesFacts folder under the Facts folder in Answers. Alternatively,
you can enter a hyphen and a greater than sign in the Description field to
achieve the same result. You ensure this in the next set of practices.

j. Click OK to close the Presentation Table dialog box.
k. Click OK to close the Presentation Catalog dialog box.
l. Observe that SalesFacts now appears below Facts in the SuppliersSales
presentation catalog.

RR I-TEC,,#209,Ni lagiri Block, Adithya Enclave @8801408841, 8790998182

7. In this step, you use the duplicate feature to create a new presentation catalog in
the Presentation layer. This new presentation catalog is for ABCs District
Managers. District Managers analyze information required to manage their sales
district, such as sales dollars and sales reps. District managers do not need to
analyze any information related to ABCs products.
a. Right-click the SupplierSales presentation catalog and select Duplicate. A
presentation catalog folder appears with the name SupplierSales#1.
b. Expand SupplierSales#1 and note that it contains all the same objects as the
SupplierSales presentation catalog.
c. Rename the SupplierSales#1 presentation catalog to SupplierSalesDM.
d. Since ABCs district managers do not need to analyze the SupplierSales
product information in their view of the data, delete the Products
presentation table from the SupplierSalesDM presentation catalog.
e. Click Yes to confirm the deletion.
8. Save the repository.
9. Click No when prompted to check global consistency.
10. Leave the repository open for the next practice.

Congratulations! You have successfully built the Presentation layer of a
repository.
RR I-TEC,,#209,Ni lagiri Block, Adithya Enclave @8801408841, 8790998182

Solutions 4-1: Creating the Presentation Layer
Answers
4.g. Click the Aliases tab. What is the logical column name (or alias) for this
presentation column?
District
4.k. Which logical column does this presentation column map to?
District
4.l. Which business model does this presentation column map to?
SupplierSales
4.m. Which logical table does this presentation column map to?
Customers
4.o. Which physical table and column does this presentation column map to?
D1_CUSTOMER2.DISTRICT

Vous aimerez peut-être aussi