In the Copy Business Model and Subject Area dialog, select the business model Specify new names for the business model and subject area in the appropriate

Working with Logical Tables, Joins, and Columns 8-3 Duplicating a Business Model and Subject Area This feature lets you select a business model and its corresponding subject area or a subject area and its corresponding business model, make a copy, and assign new names to the duplicates. Note that aliases are not copied. To copy a business model and subject area: 1. Perform one of the following steps: ■ In the Business Model and Mapping layer of the Administration Tool, right-click a business model and select Duplicate with Subject Area. ■ In the Presentation layer of the Administration Tool, right-click a subject area and select Duplicate with Business Model.

2. In the Copy Business Model and Subject Area dialog, select the business model

and corresponding subject area you want to copy.

3. Specify new names for the business model and subject area in the appropriate

name fields, and then click OK. The copied business model appears in the Business Model and Mapping layer, and the copied subject area appears in the Presentation layer. Working with the Business Model Diagram In addition to working with Business Model and Mapping layer objects in the middle pane of the Administration Tool, you can open the Business Model Diagram to see a graphical model of logical tables and joins. To access the Business Model Diagram, right-click an object in the Business Model and Mapping layer such as a dimension or fact table and select Business Model Diagram . Then, select one of the following options: ■ Whole Diagram. Displays all logical tables and joins in the business model. ■ Selected Tables Only. Displays only the selected logical tables. Logical joins appear only if they exist between the objects that you selected. This option is only available when you select one or more logical tables. ■ Selected Tables and Direct Joins. Displays the selected logical tables and any logical tables that join to the tables that you selected. This option is only available when you select one or more logical tables. ■ Selected Fact Tables and Dimensions. Displays the selected logical tables and their associated logical dimensions. This option is only available when your selection includes at least one fact table. Note that the Business Model Diagram displays only logical tables and joins. It does not display other Business Model and Mapping layer objects, such as business models, dimensions, or hierarchies. Joins are represented by a line with an arrow at the one end of the join. Note: For Essbase data sources, it is recommended that you create a separate business model for each Essbase cube. To do this, drag each cube individually to the Business Model and Mapping layer. 8-4 Metadata Repository Builders Guide for Oracle Business Intelligence Enterprise Edition Figure 8–1 Business Model Diagram To add additional tables to the Business Model Diagram, leave the Business Model Diagram window open and then right-click the table or tables you want to add. Then, select Business Model Diagram and choose one of the display options. Additional options are available in the right-click menu for the graphical tables and joins displayed in the Business Model Diagram. For example, you can delete objects or view their properties, or you can add additional related objects using the right-click options Add Direct Joins, Add Tables Joined to Whole Selection, and Add All Joins. You can also select Find in Tree View to locate a particular object in the Business Model and Mapping layer view in the middle pane, or check out objects in online mode. You can also right-click an object in the Business Model Diagram view and select Hide to hide particular objects in the diagram. Note that this effect is temporary and does not persist. See also the following sections: ■ Using the Physical and Business Model Diagrams for information about zooming, panning, and controlling the layout of the tables ■ Defining Logical Joins with the Business Model Diagram for information about defining logical joins Creating and Managing Logical Tables Logical tables exist in the Business Model and Mapping layer. The logical schema defined in each business model must contain at least two logical tables, and you must define relationships between them. Working with Logical Tables, Joins, and Columns 8-5 Each logical table has one or more logical columns and one or more logical table sources associated with it. You can change the logical table name, reorder the logical table sources, and configure the logical keys, both primary and foreign. This section contains the following topics: ■ Creating Logical Tables ■ Specifying a Primary Key in a Logical Table ■ Reviewing Foreign Keys for a Logical Table Creating Logical Tables Typically, you create logical tables by dragging and dropping a physical table from the Physical layer to a business model in the Business Model and Mapping layer. If a table does not exist in your physical schema, you need to create the logical table manually. Drag and drop operations are usually the fastest method for creating objects in the Business Model and Mapping layer. If you drag and drop physical tables from the Physical layer to the Business Model and Mapping layer, the columns belonging to the table are also copied. After you drag and drop objects into the Business Model and Mapping layer, you can modify them in any way necessary without affecting the objects in the Physical layer. When you drag physical tables with key and foreign key relationships defined to a business model, logical keys and joins are created that mirror the keys and joins in the Physical layer. This occurs only if the tables that you drag include the table with the foreign keys. Additionally, if you create new tables or subsequently drag additional tables from the Physical layer to the Business Model and Mapping layer, the logical mappings between the new or newly dragged tables and the previously dragged tables must be created manually. See Defining Logical Joins with the Joins Manager and Defining Logical Joins with the Business Model Diagram for more information about joins. To create a logical table by dragging and dropping: 1. In the Administration Tool, select one or more table objects in the Physical layer. You must include the table with the foreign keys if you want to preserve the keys and joins from the Physical layer. 2. Drag and drop the table objects to a business model in the Business Model and Mapping layer. When you drop them, the table objects, including the physical source mappings, are created automatically in the Business Model and Mapping layer. To create a logical table manually: 1. In the Business Model and Mapping layer of the Administration Tool, right-click the business model in which you want to create the table and select New Object Logical Table . The Logical Table dialog appears. 2. In the General tab, type a name for the logical table.

3. If this is a lookup table, select the option Lookup table. A lookup table stores