91
P6 Analytics and Star Database Installation and Configuration Guide Release 3.1 July 2013

P6 Analytics and Star Database Installation and Configuration Guide

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: P6 Analytics and Star Database Installation and Configuration Guide

PP66 AAnnaallyyttiiccss aanndd SSttaarr DDaattaabbaassee IInnssttaallllaattiioonn aanndd CCoonnffiigguurraattiioonn GGuuiiddee

RReelleeaassee 33..11

JJuullyy 22001133

Page 2: P6 Analytics and Star Database Installation and Configuration Guide

2

Oracle Primavera P6 Analytics and Star Database Installation and Configuration Guide

Copyright © 1999, 2013, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.

The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.

If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable:

U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are “commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government.

This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate failsafe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.

This software or hardware and documentation may provide access to or information on content, products and services from third-parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.

Legal Notices

Page 3: P6 Analytics and Star Database Installation and Configuration Guide

3

Contents

Legal Notices .................................................................................................................................... 2

Preface .............................................................................................................................................. 7

Where to Get Documentation ........................................................................................................... 7

Where to Get Training ....................................................................................................................... 9

Where to Get Support ....................................................................................................................... 9

Overview of P6 Analytics ................................................................................................................. 11

About P6 Analytics ........................................................................................................................... 11

About P6 Reporting Database ........................................................................................................ 12

About the Star Database ........................................................................................................... 12 About the STARETL Process ............................................................................................... 13 About Scheduling for Star .................................................................................................. 13 About Data Sources ........................................................................................................... 14 About Dimensions .............................................................................................................. 14 About Facts ......................................................................................................................... 14 About History Fact Trending ............................................................................................... 14

About the P6 EPPM Extended Schema .......................................................................................... 14

Prerequisites ................................................................................................................................... 17

P6 EPPM and JRE Requirements ................................................................................................... 17

Securing Project Superuser ............................................................................................................ 17

Configuring and Running P6 EPPM Publication Services ............................................................. 18

Oracle Gateway Installation for Microsoft SQL Server Requirements ......................................... 19

Required Files, Database Instances, Collation Requirements, and Database Locations .......... 19

Operating System User Permissions .............................................................................................. 19

Burn Down and Work Planning Subject Area Requirements ........................................................ 20

Oracle Client Requirements ............................................................................................................ 20

Disk Storage Space Requirements ................................................................................................ 20

Creating the Oracle Tablespaces ................................................................................................... 20

Oracle Database Partitioning .................................................................................................... 20 Creating the Star Tablespace .................................................................................................... 21

Configuring the Oracle Gateway to Link to a P6 EPPM Database on a Microsoft SQL Server System

.......................................................................................................................................................... 23

Configuring the Oracle Gateway for a Microsoft SQL Server Database .................................. 23

Installing and Configuring the Star Database ................................................................................. 25

Installing the Star Database ........................................................................................................... 25

Configuring the Star Database ....................................................................................................... 27

Configuring the P6 EPPM Database Connection on an Oracle Instance ................................ 27 Configuring the P6 EPPM Database Connection on a Microsoft SQL Server Database........ 27 Configuring the Star Database Connection .............................................................................. 28 Configuring ETL Settings for Star .............................................................................................. 29 Configuring Codes for Star......................................................................................................... 30

Page 4: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

4

Dynamic Codes Description ............................................................................................... 31 Code Hierarchies Description ............................................................................................ 31 Activity Code Descriptions .................................................................................................. 31 Project and Resource Code Descriptions ......................................................................... 32

Configuring User Defined Fields for Star .................................................................................. 33 Finishing the Configuration Wizard ........................................................................................... 33

Running the STARETL Process ....................................................................................................... 34

Running User-defined ETL Scripts ............................................................................................. 34 User-defined ETL Script Samples .............................................................................................. 35

Updating the RPD file ...................................................................................................................... 35

Configuring an Oracle Standard Edition Database ....................................................................... 36

Creating Non-partitioned Deployments .................................................................................... 36 Creating a New RPD for SE Security ......................................................................................... 37

Multiple Data Sources in the Star Database ................................................................................. 39

Adding Up to Three Additional Data Sources to the Star Database........................................ 39 Updating the Data Source.................................................................................................. 40

Adding More than Three Data Sources to the Star Database ................................................. 40 Adding Codes from Multiple Data Sources into a Star Database ........................................... 41 Combining Data Sources if Using Both Oracle and Microsoft SQL Server Data Sources ...... 42

Combining Data Sources if the Primary Data Source is on an Oracle Database ........... 43 Combining Data Sources if the Primary Data Source is on a Microsoft SQL Server Database

............................................................................................................................................. 43

Star Security Configuration ............................................................................................................. 45

Adding a New User for P6 Analytics .......................................................................................... 45 P6 EPPM Privileges .................................................................................................................... 46 Including Inactive Resources in the Star Tables ...................................................................... 47

Installing and Configuring Financial Periods ................................................................................. 49

Installing Financial Periods ........................................................................................................ 49 Configuring the OBI RPD File for Financial Periods .................................................................. 49

Upgrading the Star Database to the Latest Version ....................................................................... 51

Upgrading the Star Database ......................................................................................................... 51

Updating the RPD file ...................................................................................................................... 52

Configuring P6 Analytics ................................................................................................................. 53

Configuring P6 Analytics with OBI .................................................................................................. 55

Overview of OBI .......................................................................................................................... 55 Installing OBI .............................................................................................................................. 56 Prerequisites for Upgrading P6 Analytics ................................................................................. 56

Upgrading Custom P6 Analytics Reports .......................................................................... 57 Configuring OBI to Connect to the Star Schema ...................................................................... 57

Verifying a TNSNAMES.ora File Exists ............................................................................... 58 Resolving Multiple Oracle Homes to Work with OBI ......................................................... 58

Copying the P6 Analytics Repository Definition File and Sample Catalog to the OBI Environment

..................................................................................................................................................... 59 Verifying the STARDW Alias ....................................................................................................... 60 Updating the OraclePrimaveraAnalytics.rpd with the Correct Staruser Name and Password60 Updating the OraclePrimaveraAnalytics.rpd for P6 .................................................................. 61 Configuring OBI to Use the P6 Analytics Repository Definition (.rpd) and Catalog ................ 61

Page 5: P6 Analytics and Star Database Installation and Configuration Guide

Contents

5

Advanced Configurations in P6 ...................................................................................................... 63

About Slowly Changing Dimensions and Daily Snapshot Fact Tables .................................... 63 Enabling Daily History Snapshots and Slowly Changing Dimensions in a P6 Project .... 64

Configuring a P6 Project for the Burn Down Subject Area ...................................................... 64 Scheduling a P6 Burn Down Project ......................................................................................... 65

Calculating Metrics in the Burn Down Subject Area ......................................................... 66 Configuring a P6 Project for the Work Planning Subject Area ................................................. 67 Scheduling a P6 Work Planning Project ................................................................................... 68

Setting Up the Sample Database, Repository Definition (.rpd), and Dashboards ...................... 71

Restoring the P6 Analytics Sample Database .......................................................................... 71 Adding OBI Users for P6 Analytics Sample Data ...................................................................... 72

Integrating P6 Analytics Data with NAVTEQ Map Data to Create Spatial Dashboards ............... 75

Preparing P6 EPPM and the Star Database for Mapping ........................................................ 75 Installing and Configuring OBI 11g Sample Spatial Data ........................................................ 75 Sample of Joining P6 Data and NAVTEQ Data ......................................................................... 76 Configure Background Maps ..................................................................................................... 77 Adding Maps to Analysis ............................................................................................................ 77

Post Installation Administrative Tasks ............................................................................................ 79

Securing the staretl.properties File ................................................................................................ 79

Clearing the Data for Star ............................................................................................................... 79

Refreshing the Data for Star ........................................................................................................... 80

Creating a Filtered Star ................................................................................................................... 80

Scheduling the Star Database Update .......................................................................................... 81

Manually Launching the Star Database Update Process ............................................................. 81

History Settings for P6 Reporting Database 3.1 ........................................................................... 81

Creating History Data for P6 EPPM ........................................................................................... 81

Using Metadata ............................................................................................................................... 82

Updating Metadata Calculations ............................................................................................... 83

Backing up the Star Database Nightly ........................................................................................... 84

Running the Configuration Utility .................................................................................................... 85

Overview of the Configuration Utility for Star................................................................................. 85

Running the Configuration Utility for the Star Database .............................................................. 85

Configuring the Secure Sockets Layer ............................................................................................ 87

Configuring the SSL Connection ..................................................................................................... 87

Configuring Star to Use SSL to Run the ETL Process .................................................................... 87

Utility Tables, Log Files, and Troubleshooting ................................................................................ 89

Star Log Files ................................................................................................................................... 89

Troubleshooting for Star ................................................................................................................. 90

Uninstalling P6 Reporting Database ............................................................................................... 91

Uninstalling the Software ................................................................................................................ 91

Page 6: P6 Analytics and Star Database Installation and Configuration Guide
Page 7: P6 Analytics and Star Database Installation and Configuration Guide

7

In This Section

Where to Get Documentation .................................................................................... 7 Where to Get Training ............................................................................................... 9 Where to Get Support ............................................................................................... 9

Where to Get Documentation

For the most up-to-date versions of all manuals and technical documents related to installing, administering, and using P6 Analytics, go to:

http://download.oracle.com/docs/cd/E38975_01/index.htm

Most documentation assumes a standard setup of the product, with full access rights to all features and functions.

You can also access the versions of the product manuals and technical documents that were available at the time of the release from the P6 Analytics Documentation Center, located in the \Documentation\Documentation_library\language folder of the P6 Analytics physical media or download.

The following table describes the core documents available for P6 Analytics and lists the recommended readers by role.

Title Description

What's New in P6 Analytics

This guide highlights the new and enhanced features included in this release.

You can also use the Cumulative Feature Overview Tool to identify the features that have been added since a specific release level.

All users should read this guide.

P6 Analytics and P6 Reporting Database Planning and Sizing Guide

This guide details how to plan your installation and ensures you have the necessary technical specifications to successfully install P6 Analytics and P6 Reporting Database. It also includes checklists for P6 Analytics and P6 Reporting Database to help guide you through the installation.

All administrators should read this guide.

Preface

Page 8: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

8

Title Description

P6 Analytics and Star Database Installation and Configuration Guide

This guide gives step-by-step instructions for installing and configuring P6 Analytics and the Star database portion of P6 Reporting Database. This guide provides information about P6 Analytics administrative tasks. It also includes information for Star security configuration, OBI installation and configuration, Financial Periods installation and configuration, and for configuring the Secure Sockets layer.

All administrators should read this guide.

P6 Reporting Database for ODS Installation and Configuration Guide

This guide explains how to install and configure the ODS portion of P6 Reporting Database. It describes how to install and configure the Oracle Gateway if the P6 Reporting Database is installed on a Microsoft SQL Server. It also provides information about how to run the Configuration Utility and configure P6 Reporting Database with BI Publisher.

All administrators should read this guide.

P6 Analytics Sample Dashboards Reference Manual

This manual details sample data delivered with P6 Analytics. It includes details on the purpose, location, and subject areas associated with the sample dashboards. It also tells users how to get started with P6 Analytics.

All non-administrator users should read this guide.

P6 EPPM and P6 Analytics 3.1 System Architecture Data Sheet

The data sheet provides information on P6 EPPM, P6 Analytics, and P6 Reporting Database. It also provides a diagram to show how all products work together.

All administrators should read this guide.

Security Guidance for P6 Analytics and P6 Reporting Database

Use this guide to plan your security strategy for P6 Analytics and P6 Reporting Database. It includes information on safe deployments, authentication options, and specific security settings for the Star and ODS database.

All administrators should read this guide.

Tested Configurations Lists the configurations that have been tested and verified to work with P6 Analytics.

The network administrator/database administrator and P6 Analytics administrator should read this document.

Distributing Information to the Team

You can copy the online documentation to a network drive for access by project participants. Each team member can then view or print those portions that specifically relate to his or her role in the organization.

Throughout this documentation, the Security Guidance icon helps you to quickly identify security-related content to consider during the installation and configuration process.

Page 9: P6 Analytics and Star Database Installation and Configuration Guide

Preface

9

Where to Get Training

To access comprehensive training for all Primavera products, go to:

http://education.oracle.com

Where to Get Support

Access to Oracle Support

Oracle customers have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/us/support/contact-068555.html or visit http://www.oracle.com/us/corporate/accessibility/support/index.html if you are hearing impaired.

Using Primavera's Support Resource Centers

Primavera’s Support Resource Center provides links to important support and product information. Primavera's Product Information Centers (PICs) organize documents found on My Oracle Support (MOS), providing quick access to product and version specific information such as important knowledge documents, Release Value Propositions, and Oracle University training. PICs also offer documentation on Lifetime Management, from planning to installs, upgrades, and maintenance.

Visit https://support.oracle.com/epmos/faces/DocumentDisplay?id=1486951.1 to access links to all of the current PICs.

PICs also provide access to:

Communities are moderated by Oracle providing a place for collaboration among industry peers to share best practices.

News from our development and strategy groups.

Education contains a list of available Primavera product trainings through Oracle University. The Oracle Advisor Webcast program brings interactive expertise straight to the desktop using Oracle Web Conferencing technology. This capability brings you and Oracle experts together to access information about support services, products, technologies, best practices, and more.

For more information about working with Support, visit https://support.oracle.com/epmos/faces/DocumentDisplay?id=888813.2.

Page 10: P6 Analytics and Star Database Installation and Configuration Guide
Page 11: P6 Analytics and Star Database Installation and Configuration Guide

11

This guide provides information for installing P6 Analytics and the Star database. If you do not use P6 Analytics, you can use this guide to install only the Star database.

Note: If you want to install the ODS database instead, use P6 Reporting Database for ODS Installation and Configuration Guide.

This section provides a general overview of P6 Analytics and P6 Reporting Database.

P6 Analytics provides customers with an in-depth and comprehensive method for analyzing and evaluating their project performance, project history, and resource assignments and utilization.

P6 Reporting Database, which includes both the Star and ODS databases, works with the P6 EPPM database to provide a robust and powerful reporting solution.

About P6 Analytics

P6 Analytics provides an in-depth and comprehensive method for analyzing and evaluating project performance, project history, resource assignments, and utilization.

Built upon the Oracle Business Intelligence (OBI) suite, it delivers a catalog of analyses that provide an interactive way of viewing, analyzing, and evaluating P6 EPPM data. In addition, it provides a Repository Definition (.rpd) file that contains the data mappings between the physical data and the presentation layer of OBI.

The dashboards provide detailed insight into your P6 EPPM data through analytical charts, tables, maps, and graphics. Dashboards have the ability to navigate to other analyses to provide precise root-cause analysis. OBI allows you to configure individual analyses with the P6 EPPM Action Link, enabling you to navigate directly to your P6 site for true "Insight to Action" capabilities. You can save analyses created with OBI Answers in the OBI Presentation Catalog and integrate the analyses into any OBI home page or dashboard. You can enhance results through options such as charting, result layout, calculation, and drill-down features.

Use P6 Analytics to:

Perform root-cause analysis and employ management-by-exception.

Gather critical insights into current and historical performance of all projects, programs, and portfolios.

Make better decisions to eliminate project failure.

Quickly visualize critical project performance in early stages.

Predict and identify cost trends early in the project life cycle to rescue troubled projects.

Gain visibility into resource performance through s-curves. With interactive dashboards, you can drill down to examine the root-cause of a problem.

Show staffing needs by portfolio with early warning indicators for upcoming under-staffed project work.

Overview of P6 Analytics

Page 12: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

12

Use geospatial visualization to view project, activity, and resource data metrics by geographic location with full drill-down capabilities.

Performance Data

P6 Analytics provides a Repository Definition (.rpd) file to use with the OBI suite. The .rpd file contains:

A physical representation of the Star schema.

A business layer to perform customized calculations.

A presentation layer that groups all the calculated business layer fields into logical subject areas.

The .rpd delivers an extensive amount of Earned Value, Costs, Units, Percent Completes, and other key performance indicators. It enables data to be sliced by dimensions such as time, EPSs, portfolios, projects, activities, and resources.

P6 Analytics delivers a sample dataset, consisting of Star data, where the dashboards and analyses in the catalog were built. You can use this sample data to view the power of dashboard and analyses delivered in the catalog, and see how you can integrate the catalog with your data.

About P6 Reporting Database

P6 Reporting Database works with the P6 EPPM database to provide a robust and powerful reporting solution. P6 Reporting Database consists of the Star and ODS databases.

The Star Database

The Star database enables an organization to perform advanced business analysis on project and portfolio data. It supplies a dimensional schema that organizes P6 EPPM hierarchical relationships. The Star schema allows organizations to store data for History Levels (Project, WBS, Activity, or Assignment) for a specific History Interval (Year, Quarter, Financial Period, Month, Week, or Day). (In P6 EPPM, when you set the History Level to Activity for a project, the Star schema history will be stored daily.) This data allows for tracking trends for advanced business intelligence. The Star database captures data for activities, resource assignments and utilization, and user defined fields. P6 Analytics requires the Star database.

The Operational Data Store (ODS)

The ODS portion of P6 Reporting Database is an optional relational database that supplies day-to-day, easy to understand operational views of the P6 EPPM database data. You can also use the P6 Extended Schema to provide this information.

About the Star Database

The Star database enables an organization to perform advanced business analysis on project and portfolio data. It supplies a dimensional schema that organizes P6 EPPM hierarchical relationships. The Star schema contains measures and time data such as cost, units, time, and dimensions that contain dimensional attributes, such as project and resource information.

Page 13: P6 Analytics and Star Database Installation and Configuration Guide

Overview of P6 Analytics

13

P6 Analytics enables the highest level of query efficiency and flexibility in data analysis. The Star database accumulates Project, WBS, and Activity data over time. This provides organizations with historical data for tracking trends and for advanced business intelligence.

About the STARETL Process

The STARETL process provides data movement between the P6 EPPM Extended Schema and Star schema.

Use one of the following to run the STARETL process:

staretl.bat (in a Microsoft Windows environment)

staretl.sh (in a Unix or Linux environment)

You can run the STARETL process manually or schedule it to run as you require. See About Scheduling for Star (on page 13) for more information about scheduling the processes to run.

About Scheduling for Star

Decide when and how often to update the databases from the P6 EPPM Extended Schema. The database will undergo a full update, but the historical trend data from previous periods will not update.

You can update the Star database in the following ways:

Manually when required.

Scheduled to occur one time in the future.

Scheduled to recur during regular intervals.

The files that launch the database refresh process are:

staretl.bat on a Windows platform.

staretl.sh on a non-Windows platform. For information on supported non-Windows

platforms, see the Tested Configurations document.

They reside in your P6 Reporting Database installation folder: installation folder\star.

To ensure that your P6 Reporting Database system has the latest data from the P6 EPPM Extended Schema, Oracle recommends that you run the update daily during non-peak hours.

Note: Allow sufficient time to complete the scheduled run of the database update; this applies to multiple data source environments as well. Do not overlap the ETL processes; run only one ETL process at a time.

You can use any mechanism to launch or schedule the launch of the STARETL process. The

Windows AT command, Task Scheduler, or Unix CRON are all viable options. The user who initiates the STARETL process needs read/write access to the P6 Reporting Database installation folder.

Page 14: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

14

About Data Sources

P6 Reporting Database 3.1 can collect and store data from multiple P6 database sources. P6 Reporting Database 3.1 supports P6 EPPM as a data source (see the Tested Configurations for supported versions). When you use P6 EPPM as the data source, use the Px Reporting user (e.g., PxRptUser) as the account where the data source will extract data from P6 EPPM.

See Multiple Data Sources in the Star Database (on page 39) for more information.

About Dimensions

A dimension is a structure that categorizes data to enable users to answer business questions. For example, actual project cost results might be analyzed (or grouped and sorted) by the time dimension (when they were planned or when they were actually incurred), and by the project dimension.

The time dimension can also provide comparison (for example, the previous year results versus the current year results).

About Facts

Facts are data, usually numeric and additive, that you can examine and analyze. Common facts include units and costs. For example, actual project cost is an individual fact.

Facts can be manipulated using a mathematical operation or a data transformation (examples include averages, totals, percentages, and differences).

About History Fact Trending

Each time you run the STARETL process, it updates the Star database with the latest data from the P6 EPPM Extended Schema.

Star can retain Project, WBS, Activity, and Resource Assignment level data from any previous run of STARETL, so it can accumulate multiple sets of Project, WBS, Activity, and Resource Assignment level data.

Backing up history data is an important step for ensuring the Star data warehouse is successful. Ensure your organization has a backup and restore policy for the Star schema history tables.

About the P6 EPPM Extended Schema

The P6 EPPM Extended Schema and related Publication Services, provide near real-time reporting directly in P6 via BI Publisher. These files enable users to control what data to calculate and store, and the frequency at which this is done.

P6 Reporting Database is populated directly from logical views that are part of the P6 EPPM Extended Schema. The P6 EPPM Extended Views can also be used as a data source to create operational reports using BI Publisher.

For a more detailed overview of the P6 EPPM Extended Schema, see the P6 EPPM documentation.

Page 15: P6 Analytics and Star Database Installation and Configuration Guide

Overview of P6 Analytics

15

Page 16: P6 Analytics and Star Database Installation and Configuration Guide
Page 17: P6 Analytics and Star Database Installation and Configuration Guide

17

This section describes the prerequisites for installing and using P6 Analytics. It includes required database instances, supported databases, and disk storage space requirements.

In This Section

P6 EPPM and JRE Requirements ........................................................................... 17 Securing Project Superuser ..................................................................................... 17 Configuring and Running P6 EPPM Publication Services ........................................ 18 Oracle Gateway Installation for Microsoft SQL Server Requirements ...................... 19 Required Files, Database Instances, Collation Requirements, and Database Locations ................................................................................................................................ 19 Operating System User Permissions ....................................................................... 19 Burn Down and Work Planning Subject Area Requirements ................................... 20 Oracle Client Requirements .................................................................................... 20 Disk Storage Space Requirements .......................................................................... 20 Creating the Oracle Tablespaces ............................................................................ 20 Configuring the Oracle Gateway to Link to a P6 EPPM Database on a Microsoft SQL Server System ......................................................................................................... 23

P6 EPPM and JRE Requirements

You must install P6 EPPM 8.2 SP1 or greater and create a P6 EPPM database before you begin the procedures in this guide.

See the Tested Configurations document for information on supported versions.

You must install the appropriate version of JRE on the machine where the ETL process will run. For information on the specific JRE versions and supported operating system configurations, see the Tested Configurations document on the release media or download.

The P6 Reporting Database database must be in an Oracle instance. If the P6 EPPM database is on a Microsoft SQL Server database, you must use the Oracle Gateway application to connect the P6 EPPM database to the Oracle server. Using Microsoft SQL Server for the P6 Reporting Database database is not supported. See Oracle Gateway Installation For Microsoft SQL Server Requirements (on page 19) for more information.

Securing Project Superuser

Note: Running the ProjectSuperUserUpdate.sql file is only needed for new installs.

Prerequisites

Page 18: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

18

You must run the ProjectSuperUserUpdate.sql file before you run the ETL process for the Star Schema. Run the following script to populate project superuser security data:

1) Go to <installation directory>\<operating system>\P6_R31_RDB\STAR\Scripts.

2) On the P6 EPPM database, run the ProjectSuperUserUpdate.sql file as the administrative user (e.g., admuser).

3) Run the P6 security service before running the staretl.

Configuring and Running P6 EPPM Publication Services

The ETL process relies on data from the P6 EPPM Extended schema and related Publication Services. You must run this process prior to running the ETL process. The Publication Services enable users to control what data to calculate and store, and how often the data is updated.

The logical views that are part of the P6 EPPM Extended Schema are used to populate the P6 Reporting Database via the ETL process.

For the ETL process to access P6 EPPM data, you must configure and run the P6 EPPM publication services before running the ETL process.

To configure the P6 EPPM publication services:

1) Login to P6.

2) Click the Administer menu and select Application Settings.

3) On the Application Settings pane, click Services.

4) On the Services page, in the Publication section, set how much and how often data updates in the P6 EPPM Extended Schema. The reporting databases use the:

Start Date to determine the start date for all time distributed data published.

Finish date is current date plus to determine the rolling end date for all time distributed data published.

Time distributed interval (Day or Week) for the spread data bucket types.

5) Select the Enable Publish Projects option and adjust the remaining options in this section as necessary for your data.

Once you've enabled publication, projects that qualify for publication based on your settings will begin to publish to the P6 EPPM Extended Schema.

6) Once all necessary projects publish, run the P6 EPPM Global Scheduled Services:

a. Click the Administer menu and select Global Scheduled Services.

b. Set each service to run immediately.

See the P6 Help for more information on the P6 Publication Services.

Notes:

You must run the publication services before you set up the P6 Reporting Database.

After you complete the above steps, you should configure the Global Scheduled Services to run at regular intervals to work in conjunction with any changes to the P6 EPPM data.

Page 19: P6 Analytics and Star Database Installation and Configuration Guide

Prerequisites

19

Oracle Gateway Installation for Microsoft SQL Server Requirements

If your P6 EPPM database is a Microsoft SQL Server database, you must first install and configure the Oracle Gateway. Go to one of the following web sites, based on your corresponding Oracle database version, for information about installing the Oracle Gateway:

For Oracle Gateway 10g, go to the following web site:

For Release 1, go to http://www.oracle.com/technetwork/documentation/gateways10g-097489.html.

For Release 2, go to http://www.oracle.com/pls/db102/gateways.

For Oracle Gateway 11g, go to the following web site:

http://download.oracle.com/docs/cd/B28359_01/gateways.111/b31043/toc.htm

After you install the Oracle Gateway, you must configure it to use the P6 EPPM database. See Configuring the Oracle Gateway for a Microsoft SQL Server Database (on page 23).

Required Files, Database Instances, Collation Requirements, and Database Locations

Oracle tnsnames.ora File Requirements

Ensure that the tnsnames.ora file contains references to the P6 EPPM database and the P6 Reporting Database. The tnsnames.ora file must be on the machine where you installed your P6 Reporting Database application.

Required Database Instances

The P6 Reporting Database instance for ODS or Star must already exist based on which database you're using. ODS and Star schemas can be in the same instance or separate instances.

Database Collation Requirements

The database collation must match the database collation you set for the P6 EPPM database when you created it.

Recommended Database Instance Locations

Oracle recommends that the database instance reside on different physical machines from the P6 EPPM database. This minimizes the impact that the P6 Reporting Database has on the performance of the P6 EPPM database server.

Operating System User Permissions

To install P6 Reporting Database and run the ETL process, the users for Windows or non-Windows platforms must have full read/write access to the P6 Reporting Database installation directory. They also need access to the Oracle Client Files (such as tnsnames.ora and sqlloader) and Java.

Page 20: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

20

Burn Down and Work Planning Subject Area Requirements

If you’re using a project(s) with the Burn Down and Work Planning subject areas, it is important that the publication period finish date setting you specify in the P6 Publication settings is greater than the latest finish date for all these project(s). For example, in P6 Publication Services settings, if you specify a start date of January 1, 2013, and the finish date is current date plus setting is 2 years, this means that the finish date for all of the Burn Down/Work Planning project(s) has to have a finish date before December 31, 2015. If a project extends past the finish date setting in the publication services settings, the Burn Down/Work Planning portion of the ETL will generate an error near step 46 in the staretl.bat.

Note: Setting a finish date range that is too long will affect the ETL run time. Each day the publication services are run, the finish date range also extends by 1 day.

Oracle Client Requirements

You must install an Oracle database client on the server where the ETL process will run.

Note: The staretl process requires the Oracle component SQLLDR. SQLLDR is automatically installed with a full Oracle Client install. If you cannot install the full Oracle Client, you must install SQLLDR manually before you begin installing P6 Reporting Database.

In a Linux or Unix environment, you must manually set both the ORACLE_HOME and PATH on the server where the ETL will run. PATH should be the ORACLE_HOME\bin folder.

Disk Storage Space Requirements

For detailed information, refer to the P6 Analytics and P6 Reporting Database Planning and Sizing Guide.

Creating the Oracle Tablespaces

Before installing P6 Reporting Database, log onto SQL Plus as System\<system password> to create the Oracle tablespaces.

Before creating the tablespace definitions, make sure that the database is in its proper location. See Required Files, Database Instances, Collation Requirements, and Database Locations (on page 19) for more information.

Oracle Database Partitioning

If you are connecting multiple P6 data sources to your Star schema, Oracle Database Enterprise Edition, you must use partitioning.

Note: Oracle Standard Edition does not have partitioning.

Page 21: P6 Analytics and Star Database Installation and Configuration Guide

Prerequisites

21

If your Star schema is installed using Oracle Enterprise Edition without partitioning, the P6 EPPM database should be a small-sized database as defined in the P6 Analytics and P6 Reporting Database Planning and Sizing. Partitioning helps keep performance consistent over time for each ETL run. This is particularly important when enabling activity or WBS-level history. If you choose not to use partitioning, Oracle recommends that you not use activity and WBS-level history gathering. If the P6 EPPM database is larger than the defined criteria of a small-sized database, Oracle recommends you use Oracle Database Enterprise Edition with Partitioning.

Notes:

While Oracle recommends that you use a partitioned environment, P6 Reporting Database also supports non-partitioned environments with Oracle Database Standard Edition or the Enterprise Edition. If you choose not to use partitioning, Oracle recommends that you not use activity and WBS-level history gathering. Multiple P6 instances for Star are not supported without partitioning. The following features are not available if you are not using Activity History: Activity History, Assignment History, the Burn Down subject area and functionality, the Work Planning subject area and functionality, and slowly changing dimensions.

If you implement partitioning, you must license the Oracle Database partitioning option. Your Oracle account representative is always your best source for licensing details.

Without partitioning, the amount of time it takes to run the ETL process will increase over time. Track the row counts in the w_project_history_f, w_wbs_history_f, w_activity_history_f. As the size of these tables increases the need for partitioning will also increase. You can monitor these run times in the staretl.html and staretlprocess.log located in the <installation directory>\log folder. Oracle Database Enterprise Edition with Partitioning is the solution for growth over time within the history tables.

Creating the Star Tablespace

See Creating the Oracle Tablespaces (on page 20) before creating the Star tablespace for important information about the code shown in the following procedure. After logging onto SQL Plus as System\<system password>, do the following to create the Star tablespace:

1) Connect to the P6 Reporting Database Star instance with a user that has "create tablespace" privileges.

2) Create tablespace star_dat1 with uniform extent size 1M and with blocksize 32K. For example:

CREATE SMALLFILE TABLESPACE STAR_DAT1 DATAFILE

'path\oracle\oradata\database name\star_dat1.dbf' SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE

1M SEGMENT SPACE MANAGEMENT AUTO;

Where path is the actual path to the location of the Oracle tablespaces and database name is the name of your database instance name.

3) Create tablespace star_hst1. For example:

Page 22: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

22

CREATE SMALLFILE TABLESPACE STAR_HST1 DATAFILE

'path\oracle\oradata\database name\star_hst1.dbf' SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE

1M SEGMENT SPACE MANAGEMENT AUTO;

Where path is the actual path to the location of the Oracle tablespaces and database name is the name of your database instance name.

Page 23: P6 Analytics and Star Database Installation and Configuration Guide

23

Configuring the Oracle Gateway to Link to a P6 EPPM Database on a Microsoft SQL Server

System

Note: If your P6 EPPM database is not located on a Microsoft SQL server, skip this section.

This section describes how to configure the Oracle Gateway to link a P6 EPPM database on Microsoft SQL Server to a P6 Reporting Database on Oracle. You must install and configure the Oracle Gateway before installing P6 Reporting Database. See Oracle Gateway Installation for Microsoft SQL Server Requirements (on page 19) for information about installing the gateway.

In This Section

Configuring the Oracle Gateway for a Microsoft SQL Server Database ................... 23

Configuring the Oracle Gateway for a Microsoft SQL Server Database

If your P6 EPPM database is a Microsoft SQL Server database, perform the following steps to configure the Oracle Gateway:

Note: See Oracle Gateway Installation for Microsoft SQL Server Requirements (on page 19) for information on installing the Oracle Gateway.

1) Go to the Oracle Gateway install directory\dg4msql\admin folder.

2) Edit the initdg4msql.ora file:

a. Edit the HS_FDS_CONNECT_INFO= parameter to be in the format:

HS_FDS_CONNECT_INFO=servername/instancename/pmdbdatabase

Where servername refers to the server name, instancename refers to the instance, and pmdbdatabase refers to the database.

For example:

HS_FDS_CONNECT_INFO=win2k2/sqlserver/pmdb

The following example shows the parameter when an instancename is not specified:

HS_FDS_CONNECT_INFO=serverSQL//proj_pmdb

b. Save and close the file.

3) Edit the tnsnames.ora file and add a new TNSnames entry for each new SQLServer Gateway. For example:

dg4msql =

(DESCRIPTION=

(ADDRESS=(PROTOCOL=tcp)(HOST=server name)(PORT=1521))

(CONNECT_DATA=(SID=dg4msql))

(HS=OK)

)

Page 24: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

24

4) Edit the Listener.Ora file and add information for each necessary gateway. For example:

(SID_LIST=

(SID_DESC=

(SID_NAME=dg4msql)

(ORACLE_HOME=C:\product\11.1.0\tg_1)

(PROGRAM=dg4msql)

)

)

5) Stop any existing Listeners on the Oracle Gateway server.

6) If you need to connect to other Oracle instances, you must configure the TNS Names in the directory where you installed the Oracle Gateway.

7) Start the Gateway Listener. The following Initialization parameters were set for the Gateway:

HS_RPC_FETCH_SIZE=1000000

HS_ROWID_CACHE_SIZE=10000

HS_FDS_ROW_SIZE=50000

For a dataset with similar statistics:

TASK - 6 million rows

TASKACTV - 15 million rows

TASKRSRC - 9 million rows

UDFVALUE - 3 million rows

RSRCHOUR - 50 million rows

PROJWBS - 2 million rows

8) When configuring your Oracle Gateway, set HS_LANGUAGE for the Oracle character set of your instance:

a. On the gateway machine, go to the gateway install directory (for example, C:\product\11.1.0\tg_2\dg4msql\admin)

b. Edit the initdg4msql.ora file and add the following parameter specific to your Oracle dataset. Depending on your character set, either add the following or adjust for UTF8:

HS_LANGUAGE=american_america.WE8ISO8859P15

Or, add all of the following:

HS_NLS_LENGTH_SEMANTICS=CHAR

HS_FDS_CHARACTER_SEMANTICS = TRUE

HS_KEEP_REMOTE_COLUMN_SIZE=ALL

c. Save the initdg4msql.ora file.

d. Restart the Gateway listener.

Page 25: P6 Analytics and Star Database Installation and Configuration Guide

25

This section describes how to install and configure the Star database.

Before installing the P6 Reporting Database software:

Be sure you have met the installation prerequisites. See Prerequisites (on page 17).

The Oracle database instances must already exist before running the installation. See Required Files, Database Instances, Collation Requirements, and Database Locations (on page 19).

If you are upgrading from a previous version of P6 Reporting Database, see Upgrading the Star Database to the Latest Version (on page 51).

When installing P6 Reporting Database, you can:

Install the ODS database only.

Install the Star database only.

Install both the ODS and Star databases.

Note: If you are installing both the ODS and Star databases, it does not matter which order you install them. See the P6 Reporting Database for ODS Installation and Configuration Guide for information on installing ODS.

In This Section

Installing the Star Database ..................................................................................... 25 Configuring the Star Database ................................................................................. 27 Running the STARETL Process ............................................................................... 34 Updating the RPD file .............................................................................................. 35 Configuring an Oracle Standard Edition Database ................................................... 36 Multiple Data Sources in the Star Database ............................................................. 39 Star Security Configuration ...................................................................................... 45 Installing and Configuring Financial Periods ............................................................ 49

Installing the Star Database

Caution: The Star database portion of P6 Reporting Database must be installed in a new directory. Do not install the Star database in the same directory where you installed a previous version of P6 Reporting Database.

Use the following procedure to install the Star database portion of P6 Reporting Database:

Installing and Configuring the Star Database

Page 26: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

26

1) Download the Primavera P6 Reporting Database 3.1 for <platform> folder and extract the contents.

2) Go to the location where you extracted the contents and run one of the following depending on your system type:

If you are installing on a Microsoft Windows system, navigate to the P6_R31_ANALYTICS\P6_R31_RDB directory, and then double-click on the setup.exe file.

If you are installing on a non-Microsoft Windows system:

1. Navigate to the P6_R31_ANALYTICS\STAR\<Operating System>\Disk1\install directory.

where <Operating System> is a supported non-Windows platform. For information on supported non-Windows platforms, see the Tested Configurations document on the release media or download.

2. Run the setup.exe file.

3) On the Welcome screen, click Next.

Note: Click Next on each wizard dialog box to advance to the next step.

4) On the Specify Home Details screen:

a. In the Name field, enter or verify the name for the this installation.

b. In the Path field, verify or browse to the installation location for this installation.

5) On the Java Runtime screen, type or browse to the location of the JRE version (for example, C:\Program Files\Java\jre1.6.0_XX, where XX is the supported version for this release).

This must be a JRE location, not a JDK location.

Note: The appropriate version of JRE must be installed on the machine where STARETL process will run. For information on the specific JRE versions and supported operating system configurations, see the Tested Configurations document on the release media or download.

If the location is a JDK location, select the JRE subfolder (for example, C:\Program Files\Java\jdk1.6.0_XX\jre).

6) On the Summary screen:

a. Read the summary information that explains where the Star database will be installed, the product languages, the space requirements, and what is being installed.

b. Click Install to install the P6 Reporting Database.

7) Prior to installation completion, the P6 Reporting Database Configuration Utility will launch in a separate window.

a. On the Welcome screen, click Next to begin.

b. See Configuring the Star Database (on page 27).

8) After completing the P6 Reporting Database configuration utility, the End of Installation window displays. Click Exit to finish the installation.

Page 27: P6 Analytics and Star Database Installation and Configuration Guide

Installing and Configuring the Star Database

27

Configuring the Star Database

This section describes how to configure the Star database portion of P6 Reporting Database. The Configuration Utility launches after the installation of the P6 Reporting Database completes.

Note: During the configuration phase, some fields might already contain data. Check the data and change it as necessary.

Start with one of the following sections:

If the P6 EPPM database is on an Oracle instance, see Configuring the P6 EPPM Database Connection on an Oracle Instance (on page 27).

If the P6 EPPM database is on a Microsoft SQL Server, see Configuring the P6 EPPM Database Connection on a Microsoft SQL Server Database (on page 27).

Configuring the P6 EPPM Database Connection on an Oracle Instance

Use the fields on the Reporting Database Configuration Utility - [STAR] configuration wizard to configure the Star database.

1) On the Welcome screen, click Next to begin.

2) On the EPPM Reporting Database Connection screen:

a. For the Database Type option, choose Oracle.

b. In the Oracle Database Connection section:

1. In the Host Name field, enter the server machine name or IP address where you installed the P6 EPPM database.

2. In the Port Number field, enter or verify the port number for this database.

The default for Oracle is 1521.

3. Choose the Service Name or SID option. Enter the Service Name or SID.

c. In the Reporting User section:

1. In the Username field, enter or verify your P6 EPPM reporting database name (for example, PxRptUser).

2. In the Password field, enter the password for the reporting database user.

3) Click Next.

When you click next, the wizard will test that the connection is valid. If the test fails, ensure you have entered all the information correctly and try again.

Follow the steps in the Configuring the Star Database Connection (on page 28) section.

Configuring the P6 EPPM Database Connection on a Microsoft SQL Server Database

Use the instructions in this section only if your P6 EPPM database is on a Microsoft SQL server. You must have already installed the Oracle Gateway software before installing the Primavera P6 Reporting Database software. See Oracle Gateway Installation for Microsoft SQL Server Requirements (on page 19) for information about installing the gateway.

1) On the Welcome screen, click Next to begin.

2) On the EPPM Reporting Database Connection screen:

Page 28: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

28

a. For the Database Type option, choose SQL Server.

b. In the SQL Server Connection section:

1. In the Host Name field, enter the server machine name or IP address where you installed the P6 EPPM database.

2. This is the SQL Server instance name of the Microsoft SQL Server where the P6 EPPM

database resides. For example, SQLServerName\databaseInstanceName.

3. In the Port Number field, enter or verify the port number for this database.

The default for Microsoft SQL Server is 1433.

4. In the Database Name field, enter the name of the P6 EPPM database. This database must already exist.

c. In the Oracle Gateway Connection section:

1. In the Host Name field, enter the machine name or IP address where you installed the Oracle Gateway.

2. In the Port Number field, enter the port number where you installed the Oracle Gateway.

3. Choose the Service Name or SID option. Enter the Service Name or SID.

d. In the Reporting User section:

1. In the Username field, enter or verify your P6 EPPM reporting database name (for example, PxRptUser).

2. In the Password field, enter the password for the reporting database user.

3) Click Next.

When you click next, the wizard will test that the connection is valid. If the test fails, ensure you have entered all the information correctly and try again.

Configuring the Star Database Connection

On the Star Database Connection screen, configure the Star database connection:

1) In the Oracle Database Connection section:

a. In the Host Name field, enter the server machine name or IP address where you installed the Star database.

b. In the Port Number field, enter or verify the port number for this database.

The default for Oracle is 1521.

c. Choose the Service Name or SID option. Enter the Service Name or SID.

2) In the Database Administrator Account (DBA) section:

a. In the Username field, enter or verify the user name that has DBA privileges for the Star database. The default name is SYSTEM.

b. In the Password field, enter the password for the DBA user.

3) In the Create STAR user account section:

a. In the Username field, enter or verify your Star user name. This user will own the Star tables.

b. In the Password and Confirm Password fields, enter a password for the STAR user.

4) Click Next.

Page 29: P6 Analytics and Star Database Installation and Configuration Guide

Installing and Configuring the Star Database

29

Configuring ETL Settings for Star

On the ETL Settings screen:

1) In the JVM Location field, enter or verify the path to the Java Virtual Machine (JRE path).

You must have the appropriate version of JRE installed on the machine where the ETL process will run. For information on the specific JRE versions and supported operating system configurations, refer to the Tested Configurations document on the release media or download.

The path must refer to a location on the local machine where you installed the P6 Reporting Database configuration utility.

2) In the Log Detail Level field, choose the level of logging detail that you want to use. The following are the logging detail levels you can choose:

Errors and Warnings Logs errors and warnings.

General Information This is the default value. This logs errors, warnings, and informational messages on the progress of each step.

Debug and Trace Information Provides all general information, errors and warnings, and detailed output of each executed script, query, and connection.

Errors Only Logs only errors and no other information.

Extra Debug Information Provides all general information, errors and warnings. It provides more fine grained information on each executed step and script.

3) In the Max Java Heap Size (MB) field, enter parameter for the Java Heap Size. This value maps to the JVM –Xmx setting in the Java Runtime Environment settings. The default value (and recommended value) is 1,024 MB.

The minimum value is 512 MB.

When changing the Maximum Java Heap Size setting, the values must be in increments of 512 MB.

4) In the General Thread Count field, choose the number of threads the ETL process will run. Extraction and Load processes are multi-threaded.

Oracle recommends keeping the default (5) for this setting.

5) In the Index Building Thread Count field, choose the number of threads that will build the index. It specifies how many threads to run for building indexes for the ODS or Star database.

Oracle recommends keeping the default (5) for this setting.

6) In the Partitioning section:

a. Select the Enable Partitioning option to use partitioning.

Notes:

Page 30: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

30

While Oracle recommends that you use a partitioned environment, P6 Reporting Database also supports non-partitioned environments with Oracle Database Standard Edition or the Enterprise Edition. If you choose not to use partitioning, Oracle recommends that you not use activity and WBS-level history gathering. Multiple P6 instances for Star are not supported without partitioning. For more information on database requirements, see the P6 Analytics and P6 Reporting Database Planning and Sizing Guide.

If you implement partitioning, you must license the Oracle Database partitioning option. Your Oracle account representative is always your best source for licensing details.

b. In the Datasource ID field, enter the number of data sources that you will use in the Star environment.

c. In the Partition Count field, enter the number of partitions needed in the Star environment.

d. In the Months per Partition field, enter the number of months between partition ranges. If you have a smaller range of partitions, the data between partitions will move faster.

7) Click Next.

Configuring Codes for Star

Use the Codes screen to choose the Project, Activity, and Resource level P6 EPPM codes that will migrate to the Star database.

There are two ways to view codes in P6 Analytics: as code hierarchies and as dynamic codes. Perform the steps below to configure the list of codes on the Code screen. Further configuration is not required for code hierarchies.

Notes:

If you using dynamic codes and P6 Analytics, and you exceed 20 codes for a given object (Project, Activity, or Resource), you must edit the RPD file. See Updating the RPD file (on page 35). This note does not apply if you use only code hierarchies.

P6 Analytics has a limit of approximately 240 codes for each supported type (Project, Activity, and Resource).

On the Codes screen:

1) Move the Activity, Project, and Resource codes that you want to use from the available column to the selected column.

Note: Project, Activity, and Resource codes must exist in P6 EPPM for them to appear in the available codes list.

2) Click Next.

Page 31: P6 Analytics and Star Database Installation and Configuration Guide

Installing and Configuring the Star Database

31

Dynamic Codes Description

During the set up process, you can define Dynamic Codes for the following:

Activity Codes (EPS, Global, Project)

Resource Codes

Project Codes

Defining dynamic codes enables these codes to be available in OBI. When defined, you can use these codes for grouping and analyzing data. These codes will also be available in the code hierarchies used in P6 Analytics.

You must edit the RPD file when you want to add more than 20 dynamic codes (see Updating the RPD file (on page 35)). When the ETL process runs, updates are automatically made to the schema.

Code Hierarchies Description

All global codes configured in the P6 Analytics Reporting Database Configuration Utility are now available as hierarchies in P6 Analytics. Full path values or specific node level values are available for each code. If you add codes in the Configuration Utility and then change the hierarchy for those codes in P6, you will see those changes in P6 Analytics.

Note: Code hierarchies are applicable to global codes. Hierarchies do not apply to project or EPS level codes.

There are no additional configuration steps required to use code hierarchies.

Activity Code Descriptions

The Activity list has the following fields:

Field Description

Name This field corresponds to the code's display name in the P6 EPPM database. If you leave this field blank, it automatically populates with an initial value. You can edit this field.

Page 32: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

32

Field Description

Scope Note: This section only applies to dynamic codes. Code hierarchies are always global.

Because you can define activity codes for different areas of your P6 EPPM database (Global, EPS, and Project), P6 Reporting Database enables you to define the Scope where you will use these activity codes.

The scope order is important because it determines a tie-breaker if two codes have the same name at different levels. For example, if you have a global code called MyCode, and a project has a code called MyCode, the scope setting would determine which code value to use. If you select Global, Project, it will use the global MyCode value. If you select Project, Global, it will use the project level MyCode value.

Use the scope list to choose one of the following:

Global

Global, EPS

Global, Project

Global, EPS, Project

Global, Project, EPS

EPS

EPS, Global

EPS, Project

EPS, Global, Project

EPS, Project, Global

Project

Project, EPS

Project, Global

Project, EPS, Global

Project, Global, EPS

ID Contains the Activity code's ID number. When you choose an Activity ID, this is assigned sequentially starting with '1'.

Project and Resource Code Descriptions

Project and Resource codes are not global and have no scope. The Project and Resource list has the following fields:

Field Description

Page 33: P6 Analytics and Star Database Installation and Configuration Guide

Installing and Configuring the Star Database

33

Name This field corresponds to the code's display name in the P6 EPPM database. If you leave this field blank, it automatically populates with an initial value. You can edit this field.

ID Contains the code's ID number. When you choose a code, this is assigned sequentially starting with '1.'

Configuring User Defined Fields for Star

Use the User Defined Fields screen to choose the Project, WBS, Resource, Resource Assignment, and Activity level UDF fields from P6 EPPM that will migrate to the Star database. P6 Reporting Database supports Cost, Non-Cost, Date, and Text UDF types.

Notes:

P6 Reporting Database has a limit of approximately 240 UDFs for each supported type (Cost, Non-Cost, Date, and Text).

If you add more than 20 UDFs, you must edit the RPD file. See Updating the RPD file (on page 35).

Number and Integer UDF types are displayed in the 'Non-Cost' folders in the configuration wizard.

Users can select the UDFs that will display in OBI to organize data based on those UDF values.

On the User Defined Fields screen:

1) Move the Project, WBS, Resource, Resource Assignment, and Activity UDFs that you want to use from the available column to the selected column.

2) Click Next.

Finishing the Configuration Wizard

To complete the configuration:

1) Choose whether you want to run the Reporting Database Diagnostic Utility. It will help you troubleshoot your configuration if you choose to run it.

Note: If you run the diagnostic utility now, you will get a fail message for the JDBC Star connection because the STARUSER has not been created yet. You can ignore the message. The STARUSER will be created when you run the staretl process.

2) Click Finish.

All the settings configured with the Star database configuration utility will be stored in the following location:

installation path\star\res\staretl.properties

Page 34: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

34

This file is a Java properties file, which is a simple key = value storage file. For example:

db.star.application.username=STARUSER

Tips

Oracle recommends you schedule backups of the Star database at the lowest level of History interval (day, week, month) for all projects to ensure the integrity of the Star historical data. For example, if one project in P6 EPPM is set to capture history daily in Star, set up daily backups of your Star database.

Running the STARETL Process

After you complete the installation and all configuration tasks, execute the staretl.bat (or staretl.sh on a non-Windows system) file by doing the following:

1) Go to the location where you installed P6 Reporting Database.

2) Click staretl.bat (or staretl.sh) to execute the file.

Note: You must run this script to ensure performance and gather

statistics.

Tips

If the staretl process fails during step 7, you may need to modify the JAVA_INVOKER_PREFIX portion of the staretl file.

To modify the JAVA_INVOKER_PREFIX section:

1) Edit the staretl.cmd or staretl.sh based on your environment.

2) Locate the JAVA_INVOKER_PREFIX section.

3) In the JAVA_INVOKER_PREFIX section, add the following:

If using Windows:

-Djava.security.egd=file:\dev\.\urandom

If using non-Windows:

-Djava.security.egd=file:/dev/./urandom

Note: The staretl process uses only the hard-coded Java options in the JAVA_INVOKER_PREFIX= section. You need to enter any environment Java parameters for your environment at this time.

4) Save and close the staretl file.

5) Rerun the staretl process.

Running User-defined ETL Scripts

P6 Analytics supports adding user defined steps to the ETL process, which can be used to extract, transform, and load additional data into the Star schema. When using this option, user defined scripts will be automatically executed as part of the standard ETL process.

Page 35: P6 Analytics and Star Database Installation and Configuration Guide

Installing and Configuring the Star Database

35

To run user-defined scripts during Star etl, do the following:

1) Create scripts and keep a copy in a safe place.

Note: Each script should have an “EXIT” at the end.

2) Make sure each script runs successfully with good performance in sqlplus.

3) Copy the scripts to the <install_directory>/scripts/user_scripts. Scripts will be picked up by the Star etl process.

4) If some of the scripts have to be run in certain order, add the script name to the file <install_directory>/res/priority/user_scripts.txt, one line for each script file name (no folder info needed), and they’ll be scheduled to run in that order. For the scripts not in user_scripts.txt, they’ll be scheduled to run after those in the file list, and in no specific order.

5) Run staretl.bat or staretl.sh.The user-defined scripts are the last step of the Star etl process.

Note: Running configStar.cmd/configStar.sh will not override these

scripts.

User-defined ETL Script Samples

Oracle Primavera provides sample scripts to demonstrate how to extract, transform, and load (ETL) additional User Defined Fields from P6 EPPM to the Project, WBS, and Activity dimensions in the STAR schema.

The sample scripts are available in the <install directory>\<operating_system>\sample\user_scripts folder on your release media or download.

To execute the sample scripts:

1) Copy the 3 *.sql files to <install_directory>\scripts\user_scripts directory.

2) Copy user_scripts.txt to <install_directory>\res\priority directory. Listing the scripts in this file specifies the order in which the scripts will run.

3) Run staretl.bat or staretl.sh. The scripts will run at the end of the ETL process.

The samples add UDF field values to Project, WBS, and Activity dimensions.

Updating the RPD file

You must update the RPD file when you add new columns. This also applies to Dynamic codes and UDFs. The configuration utility provides the Dynamic codes' definition, scope (activity codes only), regular expression (usually, this is the name of the code), name (the display name for the code name label in OBI), and description (the display name for the code value label in OBI). See Configuring Codes for Star (on page 30) and Configuring User Defined Fields for Star (on page 33) for more information.

You have to edit the .rpd file to ensure your dynamic codes are configured correctly.

To edit the OraclePrimaveraAnalytics.rpd to include any new columns:

1) Edit the OraclePrimaveraAnalytics.rpd using the OBI Administration Tool.

Page 36: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

36

2) Add the columns to each layer of the RPD file (Physical, Business Model and Mapping and Presentation).

See the Oracle Fusion Middleware Metadata Repository Builder's Guide for Oracle Business Intelligence Enterprise Edition for information on adding to the physical, logical, and presentation layer. You can find the guide here: http://docs.oracle.com/cd/E23549_01/bi.1111/e10540.pdf

Note: Be sure to follow the entry values naming convention (adjusting only the bucket number) used for the pre-existing code (1-20) bucket columns in each layer.

Tips

See the OBI documentation for additional information on editing the RPD file.

Configuring an Oracle Standard Edition Database

If you are using Oracle Standard Edition as your database, you must use a non-default setup option with P6 Reporting Database. P6 Reporting Database uses row-level security as its default security, and Oracle Standard Edition does not support row-level security. You must disable the security policies script to use Oracle Standard Edition.

To enforce security when using P6 Analytics, you must use a different RPD. This RPD will contain security built into the RPD and can be found in the rpd\StandardEdition folder for P6 Analytics. Deploy this RPD in your OBI environment or build the RPD using the UDML file also in the rpd\StandardEdition folder. Partitioning is on by default when running through the configuration utility. There is an option to choose a non-partitioned installation in the configuration utility. If you ran the configuration utility and left partitioning enabled, follow the steps in Creating Non-partitioned Deployments (on page 36).

Creating Non-partitioned Deployments

While Oracle recommends that you use a partitioned environment, P6 Reporting Database also supports non-partitioned environments with Oracle Database Standard Edition and Enterprise Edition. During the installation, you can choose to use a partition or non-partitioned environment in the Configuration Utility. The configuration utility will handle the steps below for creating a non-partitioned deployment. If you do not want to rerun configuration utility and chose a partitioned environment, please follow these steps to change to a non-partitioned deployment.

Note: You can rerun the Configuration Utility at any time.

If you deploy without partitioning, the following features are not supported:

WBS-level or activity-level history transfer to the Star schema

WBS-level or assignment-level history transfer to the Star schema

Multiple PMDB data sources

Burn Down subject area and functionality

Work Planning subject area and functionality

Page 37: P6 Analytics and Star Database Installation and Configuration Guide

Installing and Configuring the Star Database

37

Slowly changing dimensions

If you use an Oracle Standard Edition database, partitioning is not available. To setup a non-partitioned P6 Reporting Database and P6 Analytics environment, do the following before running staretl:

1) Rerun the configStar file from the <installation directory> and go back through the configuration and setup screens, making the same choices you made before.

2) Go to the <install_directory>\scripts folder.

a. Move the following files to a different directory:

Create_star_indexes_part.sql

Create_star_tables_part.sql

b. Rename the following scripts:

1. Change Create_star_indexes.sql to Create_star_indexes_part.sql.

2. Change Create_star_tables.sql to Create_star_tables_part.sql.

These changes cause the ETL process to use these scripts, which do not include partitioning, instead of the partitioned scripts.

Creating a New RPD for SE Security

To create a new RPD file:

1) Go to the <install_directory>\star\etl\oracle\templates:

a. Make a copy of the startetl.tbat file.

b. Move the copied file to <install_directory>\star\etl\oracle.

c. Edit the copied staretl.tbat file in a text editor (such as Notepad).

d. Go to Step 31 and remove the entire Step 31. Removing Step 31 will take away Row Level Security.

2) In the <install_directory>\star\etl\common folder, execute runSubstitution, which will generate new versions of files in the \scripts folder.

3) In the <install_directory>\star\scripts folder, open the staretl.bat/.sh file and ensure Step 31 is gone.

4) Run staretl.

5) Replace the current RPD with this new RPD with security. If there were any changes to variables or values in the RPD, you will need to re-add them.

Page 38: P6 Analytics and Star Database Installation and Configuration Guide
Page 39: P6 Analytics and Star Database Installation and Configuration Guide

39

Multiple Data Sources in the Star Database

If you want to pull data into the STAR database from multiple P6 EPPM sources, you can do so by following the steps in this section. Pulling data from additional data sources will make the data available through OBI. Multiple data sources allow you to group matching data (such as resources, codes, and other common attributes) from different data sources because they are part of the same Star schema. The tables have a "datasource_id" field that you can use to distinguish where the data came from.

See the Tested Configurations for supported data sources.

In This Section

Adding Up to Three Additional Data Sources to the Star Database ......................... 39 Adding More than Three Data Sources to the Star Database .................................. 40 Adding Codes from Multiple Data Sources into a Star Database ............................. 41 Combining Data Sources if Using Both Oracle and Microsoft SQL Server Data Sources ................................................................................................................................ 42

Adding Up to Three Additional Data Sources to the Star Database

If you need additional data sources, the Star database allows you to add up to three data sources by default. If you add three data sources and want to add more, see Adding More than Three Data Sources to the Star Database (on page 40).

Note: Before adding any of these data sources, ensure that all of the P6 Publication services have been run on each data source.

To add data sources:

1) Validate that Oracle Partitioning is running for your instance. Run this command:

select * from V$OPTION

2) Verify this line in the staretl.properties shows "true":

db.star.partitioned=true

Note: Run the following steps as the Star user.

3) Create a DB link for the new data source:

Caution: Do not use the global domain name (i.e., us.oracle.com) if you are using Microsoft SQL server. Using the global domain name will break the ETL process.

Page 40: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

40

CREATE DATABASE LINK DSLINK# CONNECT TO "pxrptuser" IDENTIFIED BY "pxrptuser" USING

'(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=portnumber))

(CONNECT_DATA=(SERVICE_NAME=servicename)))'

where hostname, portnumber, and servicename are specific to your environment and #

corresponds to number for the data source (for example, DSLINK02). The connection should

be to the P6 EPPM database where you will pull data.

Notes:

The link name must be DSLINK#. Where # is the number that

corresponds to the data source. For example, DSLINK02.

Each DSLINK# must be unique so they do not interfere with each other.

4) Verify DB link is working by running the following command:

select * from project@dslink#

where # is the number that corresponds to the data source. For example, DSLINK02.

5) Run the ETL process for the new data source:

staretl.bat "-s#"

where # is the number that corresponds to the data source. For example, "-s2".

6) Verify the row counts by running the following command:

select count(*) from w_project_ds

7) Repeat these steps for each additional data source you want to add. (You can add up to three).

8) Continue to Updating the Data Source (on page 40).

Updating the Data Source

After you have run the data source for the first time, run the staretl to update each partition of Star.

1) Run the startetl.bat file to update data source 1.

2) Run the startetl.bat "-s2" file to update data source 2.

3) Run startetl.bat "-s3" to update data source 3.

Adding More than Three Data Sources to the Star Database

Determine how many data sources to use before running the staretl. You must edit scripts and rerun the ETL processes for each data source.

Caution: Before editing the scripts, manually backup the history data. When you add more data sources, the staretl.bat "-r" file will rebuild all tables and remove all existing activity level history. If you don't backup your history data, it will be lost.

If you want to manually add more than three data sources, follow the steps below.

Page 41: P6 Analytics and Star Database Installation and Configuration Guide

Installing and Configuring the Star Database

41

Notes:

The instructions assume that you have installed P6 Reporting Database.

Before adding extra data sources, you must run the P6 EPPM Extended Schema services and update these data sources.

1) Back up your history data.

Note: You can use the Configuration Utility to add data sources.

2) Run the staretl.bat "-r."

3) Run all your other data sources. For example:

startetl.bat "-s2"

startetl.bat "-s3"

4) Run the additional data sources you just created. For example:

startetl.bat "-s4"

startetl.bat "-s5"

5) Locate the W_PROJECT_D table and verify that there is a datasource_id =4 (as well as additional data sources if you created them) and that the other datasource_id's exist for 1, 2, and 3.

Adding Codes from Multiple Data Sources into a Star Database

To add activity, project and resource codes from multiple data sources into one Star database:

1) Install the Star database for Data Source 1.

Note: You may have already added the Data Sources when you installed

P6 Reporting Database.

a. In the Configuration Utility:

1. Enter the Pxrptuser for Data Source 1.

2. Select project, activity, and resource codes to add to the Star database.

b. Go to star_home\star\scripts and run staretl.bat (or staretl.sh).

2) Add a database link for Staruser to Data Source 2.

a. Rename the Star home folder for data source 1.

b. Install the Star database for Data Source 2.

c. In the Configuration Utility.

1. Enter the Pxrptuser for Data Source 2.

2. Select project, activity, and resource codes to add to the Star database.

d. Go to star_home>\star\res and open the staretl.properties file in a text editor.

e. Organize the codes in the staretl.properties file for Data Source 2 to include codes from both data sources:

Page 42: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

42

1. Add the codes from Data Source 1 staretl.properties file to Data Source 2 staretl.properties file.

2. Add the codes specific to Data Source 2 to the list of codes just added.

The staretl.properties should include the codes from Data Source 1 (which is comprised of codes with the same name in each data source and codes unique to Data Source 1) followed by the codes unique to Data Source 2.

Below is an example from the staretl.properties file showing the format for the codes:

code.actv.1.descr=ActGlobal1 Description

code.actv.1.name=ActGlobal1

code.actv.1.regx=ActGlobal1

code.actv.1.scope=Global,Project,EPS

code.proj.1.descr=ProjCode1 Description

code.proj.1.name=ProjCode1

code.proj.1.regx=ProjCode1

code.rsrc.1.descr=ResCode1 Description

code.rsrc.1.name=ResCode1

code.rsrc.1.regx=ResCode1

3) Go to star_home>\star\etl\common and run runSubstitution.cmd (or runSubstitution.sh). RunSubstitution will rebuild the script that extracts and populates codes, so the codes stated in the above example will be used when you run staretl.

4) Run Staretl.bat "-s2".

Note: Running the configuration utility after manually editing the staretl.properties file will overwrite the existing staretl.properties file. See the Tips section below.

Tips

If you return to an individual data source and run the Configuration Utility, you will lose the changes made in this section.

If you need to run the Configuration Utility after making changes to the codes list:

1) Create a backup of the staretl.properties file before running the Configuration Utility again.

2) After running the Configuration Utility, copy the codes list from the staretl.properties backup file and paste it in the current staretl.properties file. This will overwrite the codes list that was created after re-running the Configuration Utility.

3) Run runSubstitution file again.

Combining Data Sources if Using Both Oracle and Microsoft SQL Server Data Sources

If you installed P6 EPPM on both an Oracle and Microsoft SQL Server database, you will need to edit the properties file to get the data to combine correctly in your data source.

Page 43: P6 Analytics and Star Database Installation and Configuration Guide

Installing and Configuring the Star Database

43

Combining Data Sources if the Primary Data Source is on an Oracle Database

If your primary data source is on an Oracle database:

1) Run the staretl for your additional data sources that are also on the Oracle database.

2) Make a backup copy of the star.properties file.

3) Run the configStar file.

4) When prompted, change the database for the PxRptUser so it points to the Microsoft SQL Server database and finish the configuration.

5) Open the re-created star.properties file and verify that the PxRptUser now points to the Microsoft SQL Server database.

Note: Keep both copies of the star.properties file, so you can switch between the databases.

6) Run the staretl "s#" file for your Microsoft SQL Server data source (for example, staretl "s2").

7) Switch back to the star.properties file for the Oracle database.

8) Run the staretl "s#" file for your Oracle data sources (for example, staretl "s2").

Combining Data Sources if the Primary Data Source is on a Microsoft SQL Server Database

If your primary data source is on a Microsoft SQL Server database:

1) Run the staretl for your additional data sources that are also on the Microsoft SQL Server database.

2) Make a backup copy of the star.properties file.

3) Run the configStar file.

4) When prompted, change the database for the PxRptUser so it points to the Oracle database and finish the configuration.

5) Open the re-created star.properties file and verify that the PxRptUser now points to the Oracle database.

Note: Keep both copies of the star.properties file, so you can switch

between the databases.

6) Run the staretl "s#" file for your Oracle data source (for example, staretl "s2").

7) Switch back to the star.properties file for the Microsoft SQL Server database.

8) Run the staretl "s#" file for your Microsoft SQL Server data sources (for example, staretl "s2").

Page 44: P6 Analytics and Star Database Installation and Configuration Guide
Page 45: P6 Analytics and Star Database Installation and Configuration Guide

45

Star Security Configuration

This section describes the Star security configuration. The steps include adding a new Star user, setting up security, and filtering out inactive resources.

In This Section

Adding a New User for P6 Analytics ........................................................................ 45 P6 EPPM Privileges ................................................................................................ 46 Including Inactive Resources in the Star Tables ...................................................... 47

Adding a New User for P6 Analytics

For a user to access data in Star through OBI, you must set up security in both P6 EPPM and OBI.

To add a new user:

1) In P6, do the following:

a. Add a new user and give the user module access to the P6 Analytics module. Grant the user the necessary Operational Breakdown Structure (OBS), cost, module, and resource access.

Note: Since the username must match in P6 and Weblogic, this username must adhere to the requirements in Weblogic and OBI to work. For example, P6 may allow characters for the username that WebLogic or OBI do not allow. You must ensure the username will work in all applications.

b. Click the Administer menu and select Global Scheduled Services.

c. Run the Publish Security service.

Note: You can schedule this service to run immediately or later, but it must finish running before you run the staretl file.

d. Run staretl.bat (or staretl.sh on a non-Windows system).

Notes:

If you are going to use LDAP, you are done with this section and can move to the next section.

If OBI and P6 EPPM are both configured to use LDAP authentication, users do not need to be created manually. Only the LDAP server needs to be added to OraclePrimaveraAnalytics.rpd by accessing Manage, Security. See the OBI documentation information about configuring LDAP for OBI.

2) If you are not going to use LDAP, do the following in OBI:

Page 46: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

46

a. Log into the WebLogic console on the OBI domain with your WebLogic administrator username and password.

b. Under Domain Structure pane, click Security Realms.

c. In the Summary of Security Realms page, click myrealm.

d. In the Settings for myrealm page, click the Users and Groups tab.

e. In the Users tab, click New to add the new user.

f. In the Create a New User page:

1. Enter the Name and Password for the new user.

Note: The user needs to match the user in P6. You can verify the correct usernames in P6 by running the following command against the P6 EPPM

schema with the P6 privileged user account: select user_name from USERS;

2. Click OK.

g. In the Setting for myrealm page, click the user's name.

h. In the Settings for <user name> page:

1. Click the Groups tab.

2. In the Parent Groups Available column, select group(s) and move them to the Chosen column.

Note: You can find the default OBI Application Roles here: http://docs.oracle.com/cd/E14571_01/bi.1111/e10543/install.htm#CIHJBBGH

3. Click Save.

i. Repeat these steps if you need more users.

P6 EPPM Privileges

For users to have access to the Star database, they must have module access rights configured in the P6 EPPM database. OBI Users must already be configured in OBI.

The following table describes the Star security:

Type Description

OBS Access Users who have OBS access in the P6 EPPM module will have OBS access in OBI.

Edit EPS Costs/Financials Users who have access to projects in the P6 EPPM database, and who have this privilege set, will have the same privilege in the Star database.

Page 47: P6 Analytics and Star Database Installation and Configuration Guide

Installing and Configuring the Star Database

47

Resource Access Resource access can be set to one of the following:

All resource access - The user will have unrestricted access to resources.

None - The user cannot access any resources.

Specific resource access - The user can only access a specific resource.

Note: After adjusting any P6 Security privilege, you must run the global security service, prior to running the ETL to ensure the correct privilege has been applied to the user account.

Including Inactive Resources in the Star Tables

By default, Star tables filter out inactive resources. If you include inactive resources, the spread data and other dimension tables will also include them. You may not need to process this extra resource assignment information.

If you want to include inactive resources in the Star tables:

1) Edit the staretl.properties file.

2) Locate this statement:

star.utilization.include.inactive.rsrc=false

3) Change the =false parameter to =true.

Page 48: P6 Analytics and Star Database Installation and Configuration Guide
Page 49: P6 Analytics and Star Database Installation and Configuration Guide

49

Installing and Configuring Financial Periods

This section describes how to install and configure multiple Financial Periods.

In This Section

Installing Financial Periods ...................................................................................... 49 Configuring the OBI RPD File for Financial Periods ................................................. 49

Installing Financial Periods

P6 Reporting Database can use two additional financial periods. Use the following procedure to add the additional Financial Periods to your P6 Reporting Database:

Note: You must have previously run the staretl process.

1) Connect to your Star database instance with the STARUSER account.

2) Run a query to set the values for fin_period_2 and fin_period_3. For example:

update w_day_d set fin_period_2 = CHR(64 + cal_month)||'-'||cal_year;

update w_day_d set fin_period_3 = CHR(64 + cal_month)||'-'||cal_year;

Enter these queries as all one line.

3) Commit these changes.

4) Run the staretl process.

Configuring the OBI RPD File for Financial Periods

Once you complete the above steps, you will need to configure your OBI RPD file to include the newly added Financial Periods.

To configure your OBI RPD file:

1) Open OraclePrimaveraAnalytics.rpd in the OBI Administration Tool.

Note: The default password for the OraclePrimaveraAnalytics.rpd is Admin123.

2) In the far right section (Physical), navigate to the W_DAY_D table.

3) Highlight the FIN_PERIOD_2 and FIN_PERIOD_3 fields, drag them into the middle section (Business Model and Mapping), and release them in the Dim – Date dimension.

4) After FIN_PERIOD_2 and FIN_PERIOD_3 appear in the Business Model and Mapping section under the Dim – Date dimension, you can drag them to the left section (Presentation) where you want them to appear in OBI. You can also rename them there, so they display as you require.

5) Save the OraclePrimaveraAnalytics.rpd file.

Page 50: P6 Analytics and Star Database Installation and Configuration Guide
Page 51: P6 Analytics and Star Database Installation and Configuration Guide

51

The staretl will update everything when you run it (there are no incremental updates). Follow the procedures in Upgrading the Star Database (on page 51) to upgrade the database.

Note: The P6 Reporting Database must be installed in a new directory. Do not install it in the same directory where you installed a previous

version of P6 Reporting Database.

In This Section

Upgrading the Star Database .................................................................................. 51 Updating the RPD file .............................................................................................. 52

Upgrading the Star Database

Use the following procedure to upgrade to the latest version if the previous version of P6 Reporting Database included Star.

Note: The upgrade file only works if you are upgrading from R3.0. If you are upgrading from any other previous release, you need to do a full install of the new P6 Reporting Database version.

1) Upgrade your P6 EPPM database to a supported version (see the Tested Configurations).

Note: Before proceeding, Oracle recommends you backup the following tables: w_project_history_f, w_wbs_history_f, w_activity_history_f.

2) Follow the instructions in Installing the Star Database (on page 25). Refer to Configuring the Star Database (on page 27) for detailed instructions.

Note: You will refer to your existing Star schema when you use the

Configuration Utility to upgrade.

3) Run the following command:

ALTER USER STARUSER QUOTA unlimited ON STAR_HST1;

where STARUSER is the user name and STAR_HST1 is a tablespace. If you changed the STARUSER name, change it in the command; it should match the user name for the database you are upgrading.

4) Do the following:

a. Go to the \scripts folder.

Upgrading the Star Database to the Latest Version

Page 52: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

52

b. Run upgradeStar.bat (or upgradeStar.sh when upgrading from a non-Windows system).

Updating the RPD file

You must update the RPD file when you add new columns. This also applies to Dynamic codes and UDFs. The configuration utility provides the Dynamic codes' definition, scope (activity codes only), regular expression (usually, this is the name of the code), name (the display name for the code name label in OBI), and description (the display name for the code value label in OBI). See Configuring Codes for Star (on page 30) and Configuring User Defined Fields for Star (on page 33) for more information.

You have to edit the .rpd file to ensure your dynamic codes are configured correctly.

To edit the OraclePrimaveraAnalytics.rpd to include any new columns:

1) Edit the OraclePrimaveraAnalytics.rpd using the OBI Administration Tool.

2) Add the columns to each layer of the RPD file (Physical, Business Model and Mapping and Presentation).

See the Oracle Fusion Middleware Metadata Repository Builder's Guide for Oracle Business Intelligence Enterprise Edition for information on adding to the physical, logical, and presentation layer. You can find the guide here: http://docs.oracle.com/cd/E23549_01/bi.1111/e10540.pdf

Note: Be sure to follow the entry values naming convention (adjusting only the bucket number) used for the pre-existing code (1-20) bucket columns in each layer.

Tips

See the OBI documentation for additional information on editing the RPD file.

Page 53: P6 Analytics and Star Database Installation and Configuration Guide

53

You must install P6 EPPM and create a P6 EPPM database before you configure P6 Analytics. Also, run the P6 EPPM Extended Schema Publication Services to populate the P6 EPPM Extended Schema data before setting up P6 Reporting Database and P6 Analytics.

You should also install and configure the Star database portion of P6 Reporting Database. For detailed installation and configuration information, see the Installing and Configuring the Star Database (on page 25).

Note: If you are using the Star database for 3rd-party reporting tools (non-OBI), you can skip this section.

In This Section

Configuring P6 Analytics with OBI ........................................................................... 55 Advanced Configurations in P6 ................................................................................ 63 Setting Up the Sample Database, Repository Definition (.rpd), and Dashboards ..... 71 Integrating P6 Analytics Data with NAVTEQ Map Data to Create Spatial Dashboards75

Configuring P6 Analytics

Page 54: P6 Analytics and Star Database Installation and Configuration Guide
Page 55: P6 Analytics and Star Database Installation and Configuration Guide

55

Configuring P6 Analytics with OBI

This section describes how to configure P6 Analytics with OBI.

Note: See the Tested Configurations document for the supported version of OBI.

In This Section

Overview of OBI ....................................................................................................... 55 Installing OBI ........................................................................................................... 56 Prerequisites for Upgrading P6 Analytics ................................................................. 56 Configuring OBI to Connect to the Star Schema ...................................................... 57 Copying the P6 Analytics Repository Definition File and Sample Catalog to the OBI Environment ............................................................................................................ 59 Verifying the STARDW Alias .................................................................................... 60 Updating the OraclePrimaveraAnalytics.rpd with the Correct Staruser Name and Password ................................................................................................................. 60 Updating the OraclePrimaveraAnalytics.rpd for P6 .................................................. 61 Configuring OBI to Use the P6 Analytics Repository Definition (.rpd) and Catalog ... 61

Overview of OBI

OBI is a comprehensive suite of Business Intelligence foundation and applications designed to enable the insight-driven enterprise. It integrates data from multiple enterprise sources, and transforms it into key insights that enable strategic decision-making, drive continual business process improvements, and promote alignment across the enterprise.

The OBI infrastructure consists of servers, programs, and tools used to build OBI applications. The OBI product includes an installer program that can install the complete OBI suite, or one or more OBI product components.

Once OBI is installed, apply and configure P6 Analytics to your OBI deployment. P6 Analytics provides the following default dashboards:

Main

Portfolio Analysis

Project Earned Value

Project Health

Resource Analysis

Industry Samples

Note: Any customization done to the existing RPD or Catalog must be reapplied after the installation. It may be necessary to merge the RPD and Catalog with the new RPD and Catalog delivered with this version of P6 Analytics.

Page 56: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

56

For information about the Business Intelligence & Data Warehousing Technology Center, go to the following web site:

http://www.oracle.com/technology/tech/bi/index.html

For information about the Business Intelligence & Data Warehousing documentation, go to the following web site:

http://www.oracle.com/technology/documentation/bi_ee.html

For information about configuring an Impersonator User to be used with Single Sign-On for OBI, go to the following web site:

http://download.oracle.com/docs/cd/E12096_01/books/AnyDeploy/AnyDeploySSO5.html

Installing OBI

For information on installing OBI, go to the following web site:

http://docs.oracle.com/cd/E23943_01/index.htm

Prerequisites for Upgrading P6 Analytics

Before you upgrade from R1.x or R2.0 to R3.1, ensure you:

1) Install OBI 11g (see the Tested Configurations document for supported versions).

2) Deploy the R3.1 .rpd file into Analytics.

3) Copy your existing P6 Analytics catalog to the OBI 11g location. The default location is:

$ORACLE_INSTANCE/instances/Instance1/bifoundation/OracleBIPresentationServicesComponent/coreapplication_obips1/catalog

4) Run the OBI 11g Upgrade Assistant (UA) on your existing OBI catalog:

a. Go to \Oracle_BI1\bin\ and run the ua.bat or ua.sh (if non-Windows).

b. On the first screen, select Upgrade Oracle BI RPD and Presentation Catalog.

c. On the second screen, select Upgrade Catalog.

d. Enter the locations for the required fields:

Web Catalog Directory: Browse to the Web Catalog Directory for P6 Analytics.

Web Catalog Deliveries Directory: In 10g, the deliveries directory is a special directory used for data such as Dashboard snapshots used by Briefing Books. The directory is called deliveries by default and is located in the OracleBIData/web/catalog directory. In many cases, the 10g directory is empty. If the 10g deliveries directory is not available, any empty directory named deliveries can be used for upgrading. If the upgrade assistant finds a directory called deliveries in the same folder as the catalog, it is selected by default.

e. Continue with rest of screens.

Once UA is completed, you can use this catalog entirely or take certain reports and put them into the new sample catalog provided with P6 Analytics 3.1 (All Analysis that shipped with P6 Analytics 1.x or 2.0 have been upgraded and are included in the catalog that ships with Primavera Analytics R3.1.)

Page 57: P6 Analytics and Star Database Installation and Configuration Guide

Configuring P6 Analytics

57

5) Configure P6 Analytics with the catalog you just upgraded or configure with the catalog provided with P6 Analytics 3.1 (with certain reports copied into the new catalog). For instructions to configure a catalog with P6 Analytics, refer to the Configuring P6 Analytics (on page 53).

Tips

If you created custom reports or are using sample reports fromPrimavera Analytics R1.x catalog, you must modify the reports due to new Subject Areas. You can fix these when you perform the steps in Upgrading Custom P6 Analytics Reports (on page 57).

Upgrading Custom P6 Analytics Reports

To upgrade your P6 Analytics reports:

1) Login to OBI 11g Analytics (http://server:port/analytics) with an BIAdministrator account.

2) Navigate the catalog tree to the Analysis you want to upgrade.

3) Click Edit under the Analysis you want to upgrade.

4) If you get one of the following errors:

Under Subject Areas: "Either you do not have permission to use the subject area <SubjectArea> within answers, or the subject area does not exist"

Under Compound Layout: "Error: 'View Display Error. ODBC Driver Returned an Error (SQLExecDriverW).

a. Click the + symbol next to the Error details link to see the specific elements that need correcting.

b. Click the Advanced Tab and modify the Analysis XML section.

c. Use the browser find feature (CTRL + f) to find all references to unresolved Subject Areas. Replace all instances with the new subject area.

d. After replacing all values, click the Apply XML button.

e. Click the Save option on the toolbar, to save the Analysis.

5) Click the Results tab to display the results of the Analysis.

If no errors display, then you have completed the upgrade for this report.

If there are still errors, repeat the above steps for the elements that have been changed/moved from the previous version of P6 Analytics.

6) Repeat the above steps for all custom reports or sample reports carried over from P6 Analytics 1.x.

Configuring OBI to Connect to the Star Schema

To configure OBI to connect to the Star Schema:

1) Verify a TNSNAMES.ora File Exists.

2) Resolve Multiple Oracle Homes to Work with OBI.

Page 58: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

58

Note: If you are using a non-default STARDW, you need to modify the

RPD as well. See Verifying the STARDW Alias (on page 60).

Verifying a TNSNAMES.ora File Exists

You will need a TNSNAMES.ora file for the Star Schema to function properly:

1) Browse to <OBI_Home>\Oracle_BI1\network\admin (the default OBI_Home is \Oracle\Middleware).

2) Locate the TNSNAMES.ora file.

If it exists, you can continue to the next section.

If it does not exist, you will need to create it.

3) To create a TNSNAMES file:

a. Copy it from any existing Oracle Home.

b. Place it in the <OBI_Home>\Oracle_BI1\network\admin location mentioned above.

c. Edit the file you copied with a text editor.

d. Add the following reference to the TNSNAMES.ora file:

STARDW =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = <hostname>)(PORT =

<portnumber>))

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = <ServiceName>)

)

)

where hostname is the IP address or name where the Star database is installed, portnumber is the port number where the Star database is installed, and ServiceName is the service name you used when you installed the Star database

Resolving Multiple Oracle Homes to Work with OBI

If you have multiple Oracle homes on the OBI server:

1) Browse to:

<OBI_HOME>\instances\<your_instance>\bifoundation\OracleBIApplication\coreapplication\setup

2) Edit the bi-init.cmd or bi-init.sh (depending on your operating system) file in Wordpad.

Note: The information in bi-init file will not resolve correctly in Notepad.

3) Check for the following reference:

If using Windows:

call

Page 59: P6 Analytics and Star Database Installation and Configuration Guide

Configuring P6 Analytics

59

<OBI_HOME>\instances\<your_instance>\bifoundation\OracleBIApplicatio

n\coreapplication\setup\user.cmd

If using non-Windows:

<OBI_HOME>/instances/<your_instance>/bifoundation/OracleBIApplicatio

n/coreapplication/setup/user.sh

4) Based on what is in the bi-init file:

a. If the reference exists:

1. Close the bi-init file.

2. Edit the user.cmd or user.sh file from the path referenced above.

3. In the user file, add the following reference:

If using Windows:

set TNS_ADMIN=<OBI_Home>\Oracle_BI1\network\admin

where <OBI_Home> is the location of OBIEE Home (the default is \Oracle\Middleware\)

If using non-Windows:

TNS_ADMIN=<OBI_Home>/Oracle_BI1/network/admin

where <OBI_Home> is the location of OBIEE Home (the default is /Oracle/Middleware/)

b. If the reference does not exist, add the following reference in the bi-init file:

If using Windows:

set TNS_ADMIN=<OBI_Home>\Oracle_BI1\network\admin

where <OBI_Home> is the location of OBIEE Home (the default is \Oracle\Middleware\)

If using non-Windows:

TNS_ADMIN=<OBI_Home>/Oracle_BI1/network/admin

where <OBI_Home> is the location of OBIEE Home (the default is /Oracle/Middleware/)

5) Restart the OBI processes for the changes to take effect.

Copying the P6 Analytics Repository Definition File and Sample Catalog to the OBI Environment

To copy the P6 Analytics definition file:

1) Go to <download>\obi\rpd folder.

where download is the location where you downloaded the P6 Analytics install file

For Oracle Enterprise Edition: \P6_R31_Analytics\obi\rpd

For Oracle Standard Edition: \P6_R31_Analytics\obi\rpd\OracleStandardEdition

2) Copy the OraclePrimaveraAnalytics.rpd file to the repository folder on the server where you installed OBI.

Example: $ORACLE_INSTANCE/instances/Instance1/bifoundation/OracleBIServerComp

onent/coreapplication_obips1/repository

3) Go to the download\obi\catalog folder.

where download is the location where you downloaded the P6 Analytics install file.

4) Change the name of the Primavera Analytics folder to P6 then copy it to your catalog folder on the server where you installed OBI.

Page 60: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

60

Example: $ORACLE_INSTANCE/instances/Instance1/bifoundation/OracleBIPresentati

onServicesComponent/coreapplication_obips1/catalog

Note: If you get an error that the Windows path is too long, you can put the folder in a different location with a shorter path. Changing the name of the Primavera Analytics folder to P6 should ensure you avoid this error.

Verifying the STARDW Alias

If you are not using an alias of STARDW, you can update the alias that exists for the Star database:

1) Open the OraclePrimaveraP6Analytics.rpd file in the BI Administration Tool.

Note: The default password for the Oracle Primavera repository is Admin123.

2) Select Manage, Variables.

3) Double-click the DW_DSN variable.

4) In the Default Initializer field, modify the 'STARDW' value with the correct alias for the Star instance.

5) Select OK and close the Variable Manager.

6) Select File, Save to save the changes.

7) Select File, Exit to close out of the BI Administrator.

Updating the OraclePrimaveraAnalytics.rpd with the Correct Staruser Name and Password

If you are not using the default staruser name and password, you must change them in the OraclePrimaveraP6Analytics.rpd file:

1) Change the username:

a. Open the OraclePrimaveraP6Analytics.rpd file in the BI Administration Tool.

Note: The default password for the Oracle Primavera repository is Admin123.

b. Select Manage, Variables.

c. Under the Repository Node, select Variables.

d. Double-click the DW_USERNAME variable.

e. In the Default Initializer field, modify the value 'STARUSER' with the correct staruser name in your environment.

f. Select OK and close the Variable Manager.

2) Change the password:

a. Right-click the Physical connection source (the default is Oracle Primavera P6 Data Warehouse) and select Properties.

Page 61: P6 Analytics and Star Database Installation and Configuration Guide

Configuring P6 Analytics

61

b. Select the Connection Pools tab.

c. Double-click the Oracle Primavera P6 Data Warehouse Connection Pool.

d. On the General tab, change the password to the staruser password in your environment.

e. Click OK and re-enter the password to confirm the change.

f. Select OK to close the properties screen.

g. Select File, Save to save the changes.

3) Select File, Exit to close out of the BI Administrator.

Updating the OraclePrimaveraAnalytics.rpd for P6

If you are using P6, and want to launch it from P6 Analytics, you must update the OraclePrimaveraAnalytics.rpd file with the correct URL and context root for P6 Analytics.

The following steps are only necessary in that case.

1) Open OraclePrimaveraAnalytics.rpd with the BI Administrator Tool.

Note: The default password for the OraclePrimaveraAnalytics.rpd is Admin123.

2) Access Manage, Variables.

3) Under the Repository Node, select Variables.

4) Locate the variable DW_P6_LINK_BASE_URL, double-click that variable.

5) When the edit dialog opens, modify the Default_Initializer with the correct P6 URL. For example:

http://localhost:port/p6/login

where localhost is your P6 server's host name and port is the port number for P6 (this could be 7001 or 8203 depending on how you configured and deployed P6)

Configuring OBI to Use the P6 Analytics Repository Definition (.rpd) and Catalog

To configure OBI to use the P6 Analytics repository definition and catalog:

1) Open a web browser and launch Oracle Enterprise Manager for your installation of OBI.

2) Open the following URL:

http://ipaddress:port/em

where ipaddress is the IP address of your installation and port is the port number of your installation of OBI

3) Log into Oracle Enterprise Manager.

4) Expand the Business Intelligence folder by clicking +.

5) Double-click on the name for your deployment.

6) Click Lock and Edit Configuration.

7) In the Deployments tab, select the Repository sub tab.

8) In the Upload BI Server Repository section, click Browse next to your repository in the list.

9) In the Select File box, navigate to the location of the .rpd file.

Page 62: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

62

10) Enter the password into the Repository password and Confirm password fields.

Note: The default password for the Oracle Primavera repository is Admin123.

11) In the BI Presentation Catalog section, enter the Catalog Location for the P6 Analytics catalog.

12) Click Apply.

13) Click Activate Changes.

14) Click Restart to apply the changes.

15) In the Overview page, under the Manage System section, click Restart.

16) Log out of Oracle Enterprise Manager.

Page 63: P6 Analytics and Star Database Installation and Configuration Guide

63

Advanced Configurations in P6

This section describes how to configure P6 to use the new subject areas available in P6 Analytics.

Note: See the Tested Configurations document for the supported version of P6.

In This Section

About Slowly Changing Dimensions and Daily Snapshot Fact Tables ..................... 63 Configuring a P6 Project for the Burn Down Subject Area ....................................... 64 Scheduling a P6 Burn Down Project ........................................................................ 65 Configuring a P6 Project for the Work Planning Subject Area .................................. 67 Scheduling a P6 Work Planning Project ................................................................... 68

About Slowly Changing Dimensions and Daily Snapshot Fact Tables

Slowly changing dimensions, or Type 2 dimensions, preserve an attribute's history of values by capturing non-fact, or dimensional, data and associating that data with the correct version of the fact row. Captured data includes, but is not limited to project, resource, activity, and resource assignment dimensional data. Slowly changing dimensions are used when is it important to preserve the historic context of facts.

When source data elements change, or when the ETL process is run, a new row is added to the dimension table and the previous row is left unchanged. Previously recorded facts remain associated with the old dimension row and new facts are associated with the new dimension row. These rows show the changes to an attribute over time. For example, if an activity's Planned Start Date has changed between the current capture and the previous capture, the old and new date would both be recorded in the dimension table.

Dimension rows in the dimension table are distinguished by the Effective Start Date, Effective End Date, and Current Flag. The date and time the ETL process was starts becomes the Effective Start Date for the new dimension row. The new version of a dimension Effective End Date defaults to 01-Jan-3000 00:00:00. When the ETL process is run again, the Effective End Date for the latest version of the attribute then becomes the Effective Start Date for the current version minus one second. For example, if the Effective Start Date for the current version of the attribute is 17-Nov-2014 08:00:00, then the Effective End Date for the previous version becomes 17-Nov-2014 07:59:59. The most recent dimension row in the dimension table has a value of "1" in the Current Flag column. All other rows have "0" in the Current Flag column.

Daily snapshot fact tables enable the daily capture of metrics at the Resource Assignment and Activity Levels. Daily snapshot fact tables are used in conjunction with slowly changing dimensions. For example, when the Activity History daily snapshot is recorded, new fact rows will be updated with the most current version of each record in the activity dimension. Previously recorded facts remain associated with the old dimension row version.

The daily snapshot makes it easy to determine what metrics such as Remaining Units looked like at any point in time across all projects that have been opted into this level of data capture.

Page 64: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

64

Turning off slowly changing dimensions

If you turn off the slowly changing dimensions for a field, the current dimensional row can be updated with a new value without the addition of a new dimensional row.

Slowly changing dimensions can be controlled on a field-by-field level by making adjustments to the mappings.tcsv file in the \res folder in the Star install path. A Y or N flag for each field in the mappings file controls whether a change to this field would cause a new row to be added to the dimensional table. Y indicates that a change will cause a new row to be added. N indicates that a new row will not be added if a change is made to this field. For example, if the Activity Description field has a Y flag, then changes made to this field will cause a new row to be added to the dimensional table the next time the ETL process is run. If the EPS Name field has an N flag, then the ETL process will not update the dimensional table with a new row. Configuring the Y or N flag for each field can prevent cascading updates to fact tables. For example, if a change is made to the EPS table, that change would cause a new row to be added to the dimension table for all of the activities affected by the change.

Enabling Daily History Snapshots and Slowly Changing Dimensions in a P6 Project

To enable slowly changing dimensions and daily history snapshots for a project:

1) Navigate to and log in to P6.

2) In P6, click Projects.

3) On the Projects navigation bar, click EPS.

4) On the EPS page:

a. Select a project.

b. Click the Actions menu and select Set Project Preferences....

5) In the Project Preferences dialog box:

a. Ensure the project is configured for publication services.

1. Click Services in the Project Preferences pane.

2. On the Services page, select the Enable Publication option in the Publication section.

b. Configure the project's History Level setting.

1. Click Analytics in the Project Preferences pane.

2. On the Analytics page, select Activity from the History Level drop-down list.

c. Click Save and Close.

Configuring a P6 Project for the Burn Down Subject Area

The Burn Down subject area allows you to track how a project is doing versus what you originally planned at the start of the project.

For a project to be included in the Burn Down subject area, you must configure specific project UDF and History Level settings in P6.

For more detailed information on working with P6, see the P6 documentation.

To opt a P6 project into the Burn Down subject area:

Page 65: P6 Analytics and Star Database Installation and Configuration Guide

Configuring P6 Analytics

65

1) Navigate to and log in to P6.

2) In P6, click Projects.

3) On the Projects navigation bar, click EPS.

4) On the EPS page:

a. Select a project.

b. Click the Actions menu and select Set Project Preferences....

5) In the Project Preferences dialog box, click Analytics in the Project Preferences pane.

6) On the Analytics page, select Activity from the History Level drop-down list.

7) In the Project Preferences dialog box, click Save and Close.

8) Click the Administer menu and select Enterprise Data.

9) On the Enterprise Data page, expand Projects and select Project UDFs.

10) On the Project UDFs page:

a. Add a sys_workdown UDF with a Data Type of Text.

b. Add a sys_workdown_date UDF with a Data Type of Start Date.

11) On the Projects navigation bar, click EPS.

12) On the EPS page, add the sys_workdown and sys_workdown_date UDF columns to the page.

13) For the projects you want to add to the Burn Down subject area:

a. Type project in the sys_workdown column.

b. Type a date value (for example, 09/03/2012) in the sys_workdown_date column. This value is used as the snapshot date for comparison to actual project values. If no value is entered here, the Project Start Date will be used instead.

Note: The date used for the Burn Down records is 1 day before the date entered for this UDF. For example, if the sys_workdown_date is 09/03/2012, then the ETL process will use 09/02/2012 for the Burn Down comparison.

Scheduling a P6 Burn Down Project

A project can have activities scheduled and completed before a burn down begins. This gives users the flexibility to begin the project burn down on the date specified in the sys_workdown_date UDF rather than the Project Start Date.

Page 66: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

66

When you do a burn down, a snapshot of the project's activities and assignments is taken the day before the date entered in the sys_workdown_date UDF. This snapshot is used as a baseline to compare against actual values. For example, the Baseline Remaining Units Burned can be compared to the Remaining Units Burned. The ETL process must be run one day before the sys_workdown_date (or the Project Start Date if this UDF is not used). This ETL snapshot is used as the burn down snapshot capture for the project.

Calculating Metrics in the Burn Down Subject Area

After the burn down date, perform the following steps to calculate the metrics in the Burn Down subject area.

1) Update the status of activities in the projects you configured in P6 to be included in the Burn Down subject area. For example, update the Actual and Remaining Units and which activities are completed.

2) Adjust the Data Date for the project to 12:00 a.m. the next day. (For example, if today's Data Date is Monday 12:00 a.m., then move the Data Date for the project to Tuesday at 12:00 a.m.

3) Run the ETL process the day before the data date.

Notes:

Page 67: P6 Analytics and Star Database Installation and Configuration Guide

Configuring P6 Analytics

67

To record the values for a particular day, the ETL process must be started before 11:59 p.m. of that day.

The ETL Run Date should be one day before the Data Date.

Configuring a P6 Project for the Work Planning Subject Area

The Work Planning subject area is designed for ongoing project work typical of routine and online maintenance projects in which planning metrics are tracked week over week and workweek metrics are tracked daily. There are specific Project UDF and History Level settings required in P6 to include a project in the Work Planning subject area.

To configure a P6 project for the work planning subject area:

1) Navigate to and log in to P6.

2) In P6, click Projects.

3) On the Projects navigation bar, click EPS.

4) On the EPS page:

a. Select a project.

b. Click the Actions menu and select Set Project Preferences....

5) In the Project Preferences dialog box:

a. Ensure the project is configured for publication services.

1. Click Services in the Project Preferences pane.

2. On the Services page, select the Enable Publication option in the Publication section.

b. Configure the project's History Level setting.

1. Click Analytics in the Project Preferences pane.

2. On the Analytics page, select Activity from the History Level drop-down list.

c. Click Save and Close.

6) Click the Administer menu and select Enterprise Data.

7) On the Enterprise Data page, expand Projects and select Project UDFs.

8) On the Project UDFs page:

a. Add a sys_workprocess UDF with a Data Type of Text.

b. Add a sys_scope_freeze UDF with a Data Type of Text.

c. Add a sys_schedule_freeze UDF with a Data Type of Text.

9) On the Projects navigation bar, click EPS.

10) On the EPS page, add the sys_workprocess, sys_scope_freeze, and sys_schedule_freeze UDF columns to the page.

11) For the projects you want to add to the Work Planning subject area:

a. Type workweek in the sys_workprocess column.

Page 68: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

68

b. Type a value, such as T-2w, in the sys_scope_freeze column. This is a relative value for each week in a project's schedule. For example, if you enter T-2w, scope freeze for each week in a project will be calculated as 2 weeks prior to the Planned Start Date of that week. Scope freeze metrics, such as Scope Freeze New or Scope Freeze Lost, will be captured for each week in a project schedule from each week's calculated scope freeze date up to and including its completion.

Note: The T-xw format must be followed exactly when entering the sys_scope_freeze and sys_schedule_freeze UDF values.

c. Type a value, such as T-1w, in the sys_schedule_freeze column. This is a relative value for each week in a project's schedule. For example, if you enter T-1w, schedule freeze for each week in a project will be calculated as 1 week prior to the Planned Start Date of that week. Schedule freeze metrics, such as Schedule Freeze New or Schedule Freeze Lost, will be captured for each week in a project schedule from each week's calculated schedule freeze date up to and including its completion.

Scheduling a P6 Work Planning Project

Scope freeze, schedule freeze, and actual metrics are captured for each week of planned work in a project that has been opted into the Work Planning subject area. Each individual week in the schedule will have these metrics captured leading up to that week’s execution, allowing users to monitor their planning performance on a weekly basis for an upcoming week of work.

The sys_scope_freeze and sys_schedule_freeze UDF’s control the amount of history, or the number of weeks, these metrics capture for each individual week leading up to the execution week.

The diagram below illustrates how the ETL process would capture Work Planning metrics for the week 12/17/2012 to 12/23/2012 given the following P6 settings:

The sys_scope_freeze equals T-2w (The T-xw format must be followed exactly)

The sys_schedule_freeze equals T-1w (The T-xw format must be followed exactly)

The Starting Day of Week equals Monday (This is set in P6's Application Settings.)

In this scenario, the Scope Freeze for the week starting on Monday 12/17/2012 occurs 2 weeks prior (T-2w) to that week’s planned start date. Schedule Freeze occurs 1 week prior (T-1w) to that week’s planned start date. Daily Actual Start and Finish metrics are captured throughout the week.

Page 69: P6 Analytics and Star Database Installation and Configuration Guide

Configuring P6 Analytics

69

Once the ETL process has run on these respective freeze dates, any changes in the schedule for an upcoming week, such as adds, deletes, or planned date changes will be recorded the next time the ETL process runs.

Page 70: P6 Analytics and Star Database Installation and Configuration Guide
Page 71: P6 Analytics and Star Database Installation and Configuration Guide

71

Setting Up the Sample Database, Repository Definition (.rpd), and Dashboards

The P6 Analytics package includes a sample Star database and sample OBI dashboards and analysis. You must setup and configure these components. This section explains the process for deploying P6 Analytics sample database, repository definition (.rpd), and dashboards.

Note: You must install and configure OBI prior to deploying the P6 Analytics repository definition file (.rpd) and Catalog. To install and configure OBI, please consult the following document: http://docs.oracle.com/cd/E23943_01/index.htm.

In This Section

Restoring the P6 Analytics Sample Database .......................................................... 71 Adding OBI Users for P6 Analytics Sample Data ..................................................... 72

Restoring the P6 Analytics Sample Database

To restore the P6 Analytics sample database:

Note:

Running the ETL process after you restore the sample database could impact the content in the sample catalog.

Make sure that the PATH variable includes the path to your ORACLE_HOME/bin directory.

1) Open the installation directory:

a. Go to the sample\db folder.

b. Extract the sample_expdp.zip file to a local drive.

2) Create a new Oracle database instance for P6 Analytics Sample Data.

3) Log into the newly created sample data instance as a SYSTEM or other DBA privileged user.

4) If these tablespaces do not already exist, create the necessary tablespaces with the following statements:

create tablespace STAR_DAT1

datafile 'path/STAR_DAT1.dbf'

Size 32m

Autoextend on

Extent management local;

where STAR_DAT1 is the name of the star tablespace, and path is the path to the folder where the database resides

5) If these tablespaces do not already exist, create the necessary tablespaces with the following statements:

create tablespace STAR_HST1

Page 72: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

72

datafile 'path/STAR_HST1.dbf'

Size 32m

Autoextend on

Extent management local;

where STAR_HST1 is the name of the star history tablespace, and path is the path to the folder where the data files reside.

6) Create the database users with the following statements:

prompt Creating users username

--METADATA TYPE:USER CHANGE:CREATE NAME:username

create user username

identified by password

temporary tablespace temp_table

default tablespace STAR_DAT1

;

--METADATA TYPE:GRANT CHANGE:CREATE PRIVILEGE:DBA GRANTEE:username

grant dba to username;

--METADATA TYPE:GRANT CHANGE:CREATE PRIVILEGE:JOB GRANTEE:username

grant create any job to username;

where username is the name of the user for the Star database, password is that user's password, temp_table is the name of the tablespace for temporary data, and STAR_DAT1 is the name of the Star tablespace

7) Create a directory object within the instance for the dump file with the following SQL statement:

create directory dmpdir as 'path_to_file';

where path_to_file is the location of the data extracted from the sample_expdp.zip file.

8) Ensure case sensitivity for the P6 Analytics sample database instance is set to false for database logons with the following statement:

alter system set sec_case_sensitive_logon=false;

9) Log out of the database instance.

10) Import the sample.expdp file using Oracle's datapump feature with the following command:

impdp system/password@SAMPLE directory=dmpdir dumpfile=star31.expdp

schemas=username logfile=sample.log

where dmpdir is the directory that you created and username is the name of the user you created

11) Re-run the create_context.sql script.

Adding OBI Users for P6 Analytics Sample Data

Before you start these steps, ensure you have done the steps in the following topics:

Copying the P6 Analytics Repository Definition File and Sample Catalog to the OBI Environment (on page 59)

Page 73: P6 Analytics and Star Database Installation and Configuration Guide

Configuring P6 Analytics

73

Configuring OBI to Use the P6 Analytics Repository Definition (.rpd) and Catalog (on page 61)

To add OBI users for P6 Analytics sample data:

1) Open a web browser and launch Oracle Enterprise Manager for your installation of OBI.

2) Open the following URL:

http://ipaddress:port/console

where ipaddress is the IP address of your installation and port is the port number of your installation of OBI.

3) Log into Oracle Enterprise Administration Console.

4) In the Domain Structure section, click Security Realm.

5) Click on the realm name in the table.

6) Click the Users and Groups tab.

7) Click the Users sub tab.

8) Click New.

9) In the Create a New User form:

a. Fill in the required fields for Name, Password, and Confirm Password.

b. Click OK.

Note: Oracle recommends creating a user called demouser for the P6

Analytics sample data.

10) Click on the user you created.

11) Click the Group tab.

a. Move the BIAdministrators, BIAuthors, and BIConsumers groups from the Available column to the Chosen column.

b. Click Save.

12) Log out of the Oracle Enterprise Administration Console.

Page 74: P6 Analytics and Star Database Installation and Configuration Guide
Page 75: P6 Analytics and Star Database Installation and Configuration Guide

75

Integrating P6 Analytics Data with NAVTEQ Map Data to Create Spatial Dashboards

NAVTEQ is a map data provider. It provides a sample set of map data that you can configure with Map Viewer, a component that integrates with OBI11g.

P6 EPPM can store location information for projects, activities, and resources. P6 Analytics can create intelligent dashboards to evaluate measures using the geographical location data entered in P6 EPPM.

Note: The location attributes you enter in P6 EPPM must match the attributes in the NAVTEQ data to ensure the map layers render correctly. For example, if you configure your map to use the OBIEE_WORK tile, you should query the OBIEE_NAVTEQ database user schema and use the exact code that resides in the schema.

In This Section

Preparing P6 EPPM and the Star Database for Mapping ......................................... 75 Installing and Configuring OBI 11g Sample Spatial Data ......................................... 75 Sample of Joining P6 Data and NAVTEQ Data ........................................................ 76 Configure Background Maps.................................................................................... 77 Adding Maps to Analysis .......................................................................................... 77

Preparing P6 EPPM and the Star Database for Mapping

To enter location data in P6 EPPM:

1) Login to P6.

2) Click the Administer menu and select Enterprise Data.

3) In the Enterprise Data pane, expand Global and click Locations.

4) Assign locations data to projects, activities, and resources as needed.

Note: See the P6 Help for information about entering and assigning location data.

To prepare the Star database:

1) Assign locations to your projects, activities, and resources in P6.

2) Run all publication services in P6.

3) Run the staretl process.

Installing and Configuring OBI 11g Sample Spatial Data

This section tells how to setup and configure the Sample App Mapviewer Content and how to integrate it with P6 Analytics.

To begin the process:

Page 76: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

76

1) Go to http://www.oracle.com/technetwork/middleware/bi-foundation/obiee-samples-167534.html.

2) In the OBIEE 11.1.1.3 - Sample Application (Build 825) section, download the following:

Sample Application - Setup Files

NAVTEQ Data Bundle for OBIEE

Documentation Downloads

3) Extract the zip files to a location on your computer.

4) In the Documentation Downloads file, use chapter 6 in the SampleApp_Deploy_Instructions_825.pdf for instructions on installing and configuring the NAVTEQ sample data bundle.

Sample of Joining P6 Data and NAVTEQ Data

The following provides an example of joining the Project State and Country Code data from the Primavera – Activity subject area to the sample NAVTEQ data:

1) Log into OBI with an account that has a BI Administrators role.

2) Click the Administration link at the top of your screen.

3) Under Map Data Management, click Manage Map Data.

4) In the Manage Map Data page:

a. Click the Layers tab.

b. Click the Import Layers icon.

5) In the Import Layers dialog box:

a. In the Look in field, select OBIEE_NAVTEQ_Sample.

b. Select OBIEE_STATE and OBIEE_COUNTRY.

c. Click OK.

6) Select OBIEE_STATE and click the Edit layers icon.

7) In the Edit Layer dialog box:

a. In the BI Key Columns section, click the + icon.

b. In the Select Subject Areas pop-up, select the Primavera – Activity subject area.

8) In the Select BI Key Columns dialog box:

a. Expand the Project folder, then expand the Location folder.

b. Click the State/Province Code and click Move to move this element to the Selected table.

c. Click OK to exit all dialog boxes.

9) Select OBIEE_COUNTRY and click the Edit layers icon.

10) In the Edit Layers dialog box:

a. In the BI Key Columns section, click the + icon.

b. In the Select Subject Areas pop-up, select the Primavera – Activity subject area.

11) In the Select BI Key Columns dialog box:

a. Expand the Project folder, then expand the Location folder.

b. Click the Country Code and click Move to move this element to the Selected table.

c. Click OK.

Page 77: P6 Analytics and Star Database Installation and Configuration Guide

Configuring P6 Analytics

77

Configure Background Maps

After importing the necessary map layers, the background maps have to be associated with map layers created in the previous section.

To configure Background Maps:

1) Log into OBI with an account that has BI Administrators role.

2) Click the Administration link at the top of your screen.

3) Under Map Data Management, click Manage Map Data.

4) In the Manage Map Data page:

a. Select the Background Maps tab.

b. Select one of the named background maps in the table.

c. Click the Edit Background Map icon.

5) In the Edit Background Map dialog box:

a. In the Interactive BI Layers section, click +.

b. In the Add Layers pop-up, select the options you need.

c. Click OK.

d. Adjust the zoom level as needed.

e. Click OK.

6) In the Add Layers dialog box:

Select both the OBIEE_COUNTRY and OBIEE_STATE options.

Click OK.

7) Adjust the Zoom for each map layer according to your requirements.

8) Click OK.

Adding Maps to Analysis

To add maps to an analysis:

1) Log into OBI with an account that has BI Administrators role.

2) Create a new analysis:

a. Click New.

b. In the Analysis and Interactive Reporting section, click Analysis.

c. In the Select Subject Area pop-up, select Primavera – Activity.

3) In the Criteria tab:

a. Look in the Subject Areas pane.

b. Move the Project Name, Country Code, State/Province, and Actual Total Cost subject areas to Selected Columns.

4) Click the Results tab.

5) In the Results tab, click the New View icon and select Map.

6) In the Map view, click Edit.

7) In the Edit Map View page:

Page 78: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

78

a. In the Map View field, select OBIEE_WORLD_MAP.

b. If needed, modify and add new map formats to include different color schemes, pie charts, and value binding.

Page 79: P6 Analytics and Star Database Installation and Configuration Guide

79

This section describes the general administrative tasks, including how to secure the properties file, how to clear and refresh data, and how to schedule or manually launch a database update.

In This Section

Securing the staretl.properties File .......................................................................... 79 Clearing the Data for Star ........................................................................................ 79 Refreshing the Data for Star .................................................................................... 80 Creating a Filtered Star ........................................................................................... 80 Scheduling the Star Database Update ..................................................................... 81 Manually Launching the Star Database Update Process ......................................... 81 History Settings for P6 Reporting Database 3.1 ...................................................... 81 Using Metadata ....................................................................................................... 82 Backing up the Star Database Nightly ..................................................................... 84

Securing the staretl.properties File

This section contains information you need when securing the staretl.properties file.

Ensure that only the user running the P6 Reporting Database scripts or processes has access to the staretl.properties file, located in the \star\res folder of your installation directory.

Only trusted users should have access to this file or folder.

File system protection can be set on all of the supported operating systems. Based on the settings applied, the \res folder can be password protected or hidden. A new user can be created with the least amount of permissions to this file and folder. Do not give any other user access to this location.

For options for operating system-specific security, either contact your local administrator or search for file system security for your specific operating system.

Clearing the Data for Star

To clear all the data in the Star database:

Note: This procedure assumes that you chose the default username (STARUSER) during the installation. If you chose a different name, use it instead of the default.

1) Login to the P6 Reporting Database instance with a user account that has the Drop User system privilege (such as System).

2) Run the following command:

Post Installation Administrative Tasks

Page 80: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

80

drop user staruser cascade;

Caution: Deleting the Star database will also delete the Project, Activity, and WBS history fact data that was accumulated.

Dropping the users listed in step 2 of the preceding procedure will remove all data from the P6 Reporting Database instance. You can rerun the staretl file to populate the Star database with the P6 EPPM database information.

Refreshing the Data for Star

You should refresh if data for Star has been corrupted or if the schema has been compromised.

To refresh the database:

1) Run the staretl.sh -r or staretl.bat "-r" depending on your operating system.

2) This will backup all the your history data, recreate the schema with the out-of-box configuration, and restore the history data back into the schema.

Creating a Filtered Star

You can apply a filter during the staretl process to pull over data matching a determined criteria because the P6 EPPM extended tables and P6 EPPM database calculate the data. When you create a view, you can limit the projects you include in Star to a portfolio, an EPS, or another criteria; you can customize Star with only the projects that are important to you.

When creating the Star filter, you must use the PxRptUser.

Use this example to create a view for a portfolio called My Top 10 Projects and a filter called it_portfolio_view.

1) Use the following to create the it_portfolio_view filter:

create or replace view it_portfolio_view

as

select PROJECTOBJECTID objectid

from projectportfolio pp, projectprojectportfolio ppp

where pp.objectid = ppp.PROJECTPORTFOLIOOBJECTID

and pp.name = 'My Top 10 Projects'

2) Edit the staretl.properties file:

a. Add this entry:

star.project.filter.ds1=

b. Enter the name of the view you created. For example:

star.project.filter.ds1=it_portfolio_view

3) Run the following command:

run staretl.bat

4) After process completes, ensure you can connect to the view through the database link and return the list of object ids. For example:

Page 81: P6 Analytics and Star Database Installation and Configuration Guide

Post Installation Administrative Tasks

81

select * from it_portfolio_view@dslink01

This will return the object id’s that will populate the etl_projectlist.

Scheduling the Star Database Update

To keep the Star database current, you must run the staretl periodically. Typically, this is done nightly during off hours.

Schedulers exist for both Windows and non-Windows operating systems. For Windows operating systems, use the Windows Task Scheduler. For non-Windows operating systems, use a cron job with the Crontab command. Please refer to your operating system documentation for specifics on how to configure the process to run as a recurring job.

Caution: When configuring the scheduler, Oracle recommends that you select the option to "not start the next job until the previous job has completed."

Manually Launching the Star Database Update Process

To launch the database update for Star, execute one of the following files on the machine where you installed the Star database:

staretl.bat (on a Windows platform)

staretl.sh (on a non-Windows platform)

The account used to launch the file must have administrative privileges on the machine.

History Settings for P6 Reporting Database 3.1

For P6 Reporting Database 3.1 you can control history interval and levels settings on the project level in P6. If you installed a new P6 EPPM database, the settings will be turned off for new projects. To start recording new history for projects, you must turn on the settings in P6. If you upgraded an existing P6 EPPM database, the history values will be on and set to Monthly history.

Note: If you select Activity as the History Level, this will automatically set the History Interval for Activity and Resource Assignment history to Daily. Use caution when selecting which projects you choose to have daily history captures as this can effect the amount of time and the volume of data processed when running the ETL process.

Creating History Data for P6 EPPM

In P6, you can define history level and interval settings on a per project basis. Use P6 to configure the type of data stored in P6 Analytics and in what time interval.

To configure history settings:

1) Login into P6.

Page 82: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

82

Note: A user must have the Edit Project Details Except Cost/Financials profile to edit the history settings.

2) Click Projects.

3) On the Projects navigation bar, click EPS.

4) On the EPS page:

a. Select a project.

b. Click the Actions menu and select Set Project Preferences....

5) In the Project Preferences pane, click Analytics.

6) On the Analytics page:

a. Select the History Level and History Interval settings.

You can choose one of the following for History Level:

None (the default)

Project

WBS

Activity

You can choose one of the following for History Interval:

Month (the default)

Week

Quarter

Year

Financial Period

b. Click Save to continue working or click Save and Close if you are finished.

Note: If you select Activity as the History Level, this will automatically set the History Interval for Activity and Resource Assignment history to Daily. Use caution when selecting which projects you choose to have daily history captures as this can effect the amount of time and the volume of data processed when running the ETL process. You still need to set the history interval level when selecting Activity level history, which will apply to project and WBS-level history only.

7) Run the publication services to publish the changes you made.

8) To create history data, go to the installation directory and find the \Star\Scripts folder and run the staretl.bat or staretl.sh to run the ETL process.

Using Metadata

Metadata provides a capability to alter some calculations. Metadata provides information about one or more aspects of data. For example, when using a database table, the metadata corresponds to the fields and their attributes in this table.

Metadata objects allow flexibility for defining calculated fields and customizing how to calculate certain measures.

Page 83: P6 Analytics and Star Database Installation and Configuration Guide

Post Installation Administrative Tasks

83

Metadata includes the following tables:

W_ACTIVITY_HISTORY_F

W_WBS_HISTORY_F

W_PROJECT_HISTORY_F

W_ACTIVITY_WORK_DOWN_HF

W_ASSIGNMENT_WORK_DOWN_HF

To find the fields that support metadata functionality for each table, query the dictionary table etl_calculations.

Updating Metadata Calculations

When updating metadata calculations, the ETL process validates at Step 20. This validation takes the ETL_Calculations values, ensures the set calculation will execute successfully, and that the ETL process will not fail. If for some reason the new calculation causes a failure, all metadata calculations will revert to the default calculations and the ETL process will continue. The log will report any failure of the calculation and give a warning that the calculations will be reverted. You will have an opportunity to correct and rerun the ETL process. Errors will only be reported in the log. Once the calculations are successful, you can continue the ETL process as normal, with a normal StarETL run.

To validate the calculations:

1) Run the staretl steps 17 to step 20:

In Linux, run staretl.sh -from 17 -to 20.

In Windows, run staretl.bat 17 20.

2) Check the log output for any errors or warnings.

3) Run the ETL process:

In Linux, run staretl.sh.

In Windows, run staretl.bat.

The calculations for each table and column are stored in the ETL_CALCULATIONS table. To change a calculation of one of these fields, you must run an update statement in the Star schema.

For example, you could run the following statement:

update etl_calculations

set calculation = 'CASE WHEN a.actual_start_date >= s.period_start_date

and a.actual_start_date <= s.period_end_date THEN 1 ELSE 0 END'

where column_name = 'EMERGENT_WORK' and

TABLE_NAME='W_ACTIVITY_HISTORY_F';

commit:

/

Tips

Metadata calculations are defined per data warehouse, not per data source. If you have multiple data sources in the environment, they will share the same calculations.

Page 84: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

84

The default calculations are stored in the ETL_CALCULATIONS table. You can revert the calculations back to their defaults from this table if necessary.

Backing up the Star Database Nightly

After you install and configure the Star Database, you must back it up nightly to preserve historic data and ensure you have a steady environment in case a problem occurs.

Page 85: P6 Analytics and Star Database Installation and Configuration Guide

85

This section describes how to run the Configuration Utility to reconfigure Settings, Options, and Codes after you install and configure P6 Reporting Database.

In This Section

Overview of the Configuration Utility for Star ........................................................... 85 Running the Configuration Utility for the Star Database ........................................... 85

Overview of the Configuration Utility for Star

This section describes where to find the information you need to change settings and options after you install and configure the Star database.

For the Star database, you can change:

Java Runtime Environment Location

Logging Detail Level

Thread Settings

Activity, Project, and Resource codes

Activity, Project, and WBS UDFs

Ensure the configuration utility is access-control protected and under administrative control.

Running the Configuration Utility for the Star Database

Do the following to run the Configuration Utility for the Star database:

Note: To change passwords, you must manually change them with a user that has database administrative privileges. If the administrative user changes the staruser password, they must re-run the Configuration Utility and enter the new user password.

1) Locate the folder where you installed P6 Reporting Database.

2) Run configStar.cmd.

See Configuring ETL Settings for Star (on page 29) for information on configuring these settings.

3) Click Finish.

Running the Configuration Utility

Page 86: P6 Analytics and Star Database Installation and Configuration Guide
Page 87: P6 Analytics and Star Database Installation and Configuration Guide

87

This section describes how to configure the Secure Sockets Layer (SSL). SSL ensures a secure connection between servers over the network.

In This Section

Configuring the SSL Connection ............................................................................. 87 Configuring Star to Use SSL to Run the ETL Process ............................................. 87

Configuring the SSL Connection

Use My Oracle Support's Knowledge article: 762286.1: End to End Examples of using SSL with Oracle’s JDBC THIN Driver. This article will provide examples of:

Creating a self-signed Oracle wallet for the server and client.

Configuring the database to use TCPS with the server key.

Configuring a SQL client to connect through the TCPS protocol.

Creating simple java clients that show how to connect through TCPS in several different examples.

Use these examples to guide you in creating your SSL connection.

Note: Oracle assumes that you understand the concept of wallets and the Secure Socket Layer (SSL) functionality.

Configuring Star to Use SSL to Run the ETL Process

Currently, the P6 Reporting Database Configuration Utility does not allow the staretl.properties file to be directly configured for TCPS. After it is initially configured for TCP, and after the SSL connection is configured, you must manually configure the P6 Reporting Database so that SSL is used to run the ETL process.

1) Using the wallet manager or OraclePKI:

a. Export the trusted certificate that is on the server.

b. Copy it to the client where you installed P6 Reporting Database.

2) On the client machine, import the certificate using the keytool. For example:

C:\Program Files\Java\jre1.6.0_37\bin>keytool -importcert -file

C:\wallets\server_wallet\cert.txt -keystore "C:\Program

Files\Java\jre1.6.0_37\lib\security\cacerts"

Configuring the Secure Sockets Layer

Page 88: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

88

Note: The default password for the Java default keystore file JAVA_HOME/lib/security/cacerts is changeit.

3) Edit the staretl properties file as follows:

a. Replace all occurrences of the default port number with the number of the SSL port.

b. Replace all occurrences of PROTOCOL = TCP with PROTOCOL = TCPS.

4) Go to the installation directory etl\common\ folder and run the runSubstitution.cmd file to update all files with the new port number and TCPS setting.

Page 89: P6 Analytics and Star Database Installation and Configuration Guide

89

This section describes the log files that can provide information about the installation and daily operation of P6 Reporting Database.

In case a problem occurs, this section tells where to get help if the log files do not provide sufficient information.

In This Section

Star Log Files .......................................................................................................... 89 Troubleshooting for Star .......................................................................................... 90

Star Log Files

P6 Reporting Database creates extensive log files for each step of the staretl processes. The log files are stored in a ‘log’ folder in the root of the P6 Reporting Database installation location.

The log files contain detailed information that you should inspect after running each file in the installation process and after running the database refresh process.

Log files

The following lists the log files, identifies when they are created, and gives a brief description of their contents:

File Description

staretlprocess.log Created when staretlprocess.bat (or staretlprocess.sh) is run. Contains the details of the SQL commands run to perform the database refresh updates.

staretlprocess.html Created when staretlprocess.bat (or staretlprocess.sh) is run. Contains results of the processes run to create the users, tables, and transfer of data. Provides the time it took for each step to run. Derived from the ETL_PROCESSMASTER, ETL_PROCESSINFO, and ETL_PROCESSEXCEPTION tables.

Utility Tables, Log Files, and Troubleshooting

Page 90: P6 Analytics and Star Database Installation and Configuration Guide

P6 Analytics and Star Database Installation and Configuration Guide

90

Troubleshooting for Star

P6 Reporting Database writes detailed process information to the “log” directory under the P6 Reporting Database home folder. The log directory contains information about the installation, as well as about each run of the staretl process. If an error occurs, depending on the nature of the error, the files of the log directory may include diagnostic information. Analyzing these files can help lead you to the resolution or to the file or process that caused the error.

Oracle Database Gateway 11.2 Reporting Incorrect Column Size

If the Oracle Database Gateway 11.2 reports incorrect column size, and the extract fails, ensure that the following are set in the initdg4msql.ora file:

HS_NLS_LENGTH_SEMANTICS=CHAR

HS_FDS_CHARACTER_SEMANTICS = TRUE

HS_KEEP_REMOTE_COLUMN_SIZE=ALL

The configuration utility does not launch during the P6 Reporting Database installation process

If you are installing P6 Reporting Database and the Configuration utility never launches, the location of the JRE may be incorrect. To correct this issue, run the following:

For Star on a Microsoft Windows system:

\Disk1\install\setup.exe

For Star on a non-Microsoft Windows system:

\Disk1\install\runInstaller

Ensure that you specify the correct location for your systems Java Runtime Environment (JRE). The installer will show you an example of the correct path.

ETL and OBI query performance

P6 Reporting Database has default hints that are added based on data samples. The hints aim to improve performance across all data sets. To further improve performance, you can add non-default hints to P6 Reporting Database. You should investigate adding non-default hints if you see bottlenecks in the OBI query performance or when you run the ETL process on your data set.

Contacting Customer Support

See Where to Get Support (on page 9) for detailed information about contacting Customer Support.

If you have a question about using P6 Reporting Database that you or your network administrator cannot resolve with information in the documentation, please contact Customer Support.

Page 91: P6 Analytics and Star Database Installation and Configuration Guide

91

This section describes how to uninstall the P6 Reporting Database for Windows and non-Windows systems. For information on supported Windows and non-Windows platforms, see the Tested Configurations document on the release media or download.

In This Section

Uninstalling the Software ......................................................................................... 91

Uninstalling the Software

To uninstall P6 Reporting Database, perform the following steps:

1) From the P6 Reporting Database physical media or download location, run one of the following depending on your system type:

If you are uninstalling P6 Reporting Database on a Microsoft Windows system:

Windows\Disk1\install\setup.exe

If you are uninstalling P6 Reporting Database on a non-Microsoft Windows system:

<Operating System>\Disk1\install\runInstaller

2) Click Deinstall Products.

3) Select the name that represents the P6 Reporting Database installation and click Remove.

You determined the name that represents the P6 Reporting Database installation when you installed the product. You can remove multiple installations at this time.

4) If the name of the item to remove is correct, click Yes to confirm.

5) Click Close.

6) Click Cancel and then Yes to confirm.

7) If you are uninstalling on a Microsoft Windows system, delete the installation folder/p6rdb folder, where installation folder is the folder in which you installed P6 Reporting Database.

Uninstalling P6 Reporting Database