Agile Product Lifecycle Management: Agile PLM Data Mart - Setup Guide
Agile Product Lifecycle Management: Agile PLM Data Mart - Setup Guide
Agile Product Lifecycle Management: Agile PLM Data Mart - Setup Guide
The Programs (which include both the software and documentation) contain proprietary information;
they are provided under a license agreement containing restrictions on use and disclosure and are
also protected by copyright, patent, and other intellectual and industrial property laws. Reverse
engineering, disassembly, or decompilation of the Programs, except to the extent required to obtain
interoperability with other independently created software or as specified by law, is prohibited.
The information contained in this document is subject to change without notice. If you find any
problems in the documentation, please report them to us in writing. This document is not warranted
to be error-free. Except as may be expressly permitted in your license agreement for these
Programs, no part of these Programs may be reproduced or transmitted in any form or by any
means, electronic or mechanical, for any purpose.
Oracle Data Integrator can be used for initial Oracle Agile PLM source to Oracle Agile PLM Data
Mart target synchronizations. Oracle Data Integrator can be used for subsequent bulk loads and
batch data transfers from Oracle Agile PLM source to Oracle Agile PLM Data Mart target.
If the Programs are delivered to the United States Government or anyone licensing or using the
Programs on behalf of the United States Government, the following notice is applicable:
U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and
technical data delivered to U.S. Government customers are "commercial computer software" or
"commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-
specific supplemental regulations. As such, use, duplication, disclosure, modification, and
adaptation of the Programs, including documentation and technical data, shall be subject to the
licensing restrictions set forth in the applicable Oracle license agreement, and, to the extent
applicable, the additional rights set forth in FAR 52.227-19, Commercial Computer Software--
Restricted Rights (June 1987). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065.
The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other
inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-
safe, backup, redundancy and other measures to ensure the safe use of such applications if the
Programs are used for such purposes, and we disclaim liability for any damages caused by such
use of the Programs.
Oracle and Agile are registered trademarks of Oracle Corporation and/or its affiliates. Other names
may be trademarks of their respective owners.
The Programs may provide links to Web sites and access to content, products, and services from
third parties. Oracle is not responsible for the availability of, or any content provided on, third-party
Web sites. You bear all risks associated with the use of such content. If you choose to purchase
any products or services from a third party, the relationship is directly between you and the third
party. Oracle is not responsible for: (a) the quality of third-party products or services; or (b) fulfilling
any of the terms of the agreement with the third party, including delivery of products or services and
warranty obligations related to purchased products or services. Oracle is not responsible for any
loss or damage of any sort that you may incur from dealing with any third party.
CONTENTS
Copyright and Trademarks................................................................................................................... ii
iii
Executing ETL.................................................................................................................. 33
Setting up ODI Users .........................................................................................................................33
Executing ETL from ODI ....................................................................................................................35
Executing ETL from Command Prompt .............................................................................................35
Troubleshooting .............................................................................................................. 43
Installation Issues ...............................................................................................................................43
ETL Runtime Issues ...........................................................................................................................44
PL/SQL Loggings ...............................................................................................................................44
General Issues ...................................................................................................................................45
Detecting Errors in ODI coming from Oracle......................................................................................45
Best Practices.................................................................................................................. 49
Note To read the PDF files, you must use the free Adobe Acrobat Reader™ version 7.0 or later.
This program can be downloaded from the Adobe Web site (http://www.adobe.com).
Note Before calling Agile Support about a problem with an Oracle|Agile PLM manual, please
have the full part number, which is located on the title page.
Documentation Accessibility
Our goal is to make Oracle products, services, and supporting documentation accessible, with good
usability, to the disabled community. To that end, our documentation includes features that make
information available to users of assistive technology. This documentation is available in HTML
format, and contains markup to facilitate access by the disabled community. Accessibility standards
will continue to evolve over time, and Oracle is actively engaged with other market-leading
technology vendors to address technical obstacles so that our documentation can be accessible to
all of our customers. For more information, visit the Oracle Accessibility Program Web site at
http://www.oracle.com/accessibility/ http://www.oracle.com/accessibility/.
Readme
Any last-minute information about Oracle|Agile PLM can be found in the Readme file on the Oracle
Technology Network (OTN) Web site (http://www.oracle.com/technology/documentation/agile.html)
v
Agile Training Aids
Go to the Oracle University Web page
(http://www.oracle.com/education/chooser/selectcountry_new.html) for more information on Agile
Training offerings.
The Agile PLM Data Mart operational data store facilitates the following use cases:
1. Integrate Agile Data with your Corporate Data Warehouse using corporate ETL’s
2. Build and deploy your corporate Business Reporting & Intelligence applications
3. Deploy pre-packaged Agile PLM Business Intelligence (BI) Solutions
For #2 above, we recommend that you design a Multi-dimensional schema (MDS) layer with the
Agile PLM Data Mart as the staging schema. MDS consists of Facts & Dimension tables and it’s
design is driven by Reporting & Intelligence business requirements.
Deployment Architecture
Deployment Scenarios
Agile PLM Data Mart can be deployed on a single system or multiple systems. The systems should
have the requisite hardware and software configurations.
Single System
Same Instance
Different Instances
Multiple Systems
Two Systems Three Systems
The size of Agile PLM Data Mart Database would be approximately twice (2x) that of Agile PLM
Database.
Page - 5
Agile PLM Data Mart - Setup Guide
COMMON
Users <100 >100 >500 >1000
User Groups <10 >10 >50 >100
Suppliers < 600 > 1,000 > 2,500 > 5,000
Customers < 100 > 100 > 5000 > 35,000
Discussions < 1,000 > 10,000 > 50,000 > 75,000
Average Workflow steps for all Change objects <6 >6 >8 >12
(ECO, PSR and etc.)
Average Approvers for all changes <5 >5 >10 >20
Transfer Orders / week < 13,000 > 13,000 > 26,000 > 780,000
Files < 250,000 > 250,000 > 500,000 > 1,000,000
Items < 100,000 > 100,000 > 150,000 > 200,000
Manufacturers < 1,500 > 1,500 > 4,000 > 6,500
PC
Manufacturer Parts < 15,000 > 15,000 > 80,000 > 150,000
BoM Rows < 200,000 > 200,000 > 1,000,000 >10,000,000
AML Rows < 100,000 > 100,000 280,000 >450,000
Initial Changes < 10,000 > 10,000 > 40,000 > 70,000
Changes / day (derived) < 15 > 15 > 30 > 75
Avg Assembly BoM size <20 >20 >100 >500
Avg AML / Item <2 >2 >5 >10
Avg Affected Items / Change <2 >2 >5 >10
PQM
Initial Problem Service Requests <10,000 >10,000 >50,000 >100,000
Problem Service Requests / week <2 >2 > 80 > 400
Initial Problem Service Requests <1,000 >1,000 >10,000 >20,000
Quality Change Request / week <2 >2 > 25 > 100
Avg Items / PSR <2 >2 >5 >10
Avg PSRs / PSR <2 >2 >5 >10
Avg QCR / PSR <2 >2 >5 >10
Avg PSRs / QCR <2 >2 >5 >10
Avg Changes / QCR <2 >2 >5 >10
Activities / Year < 75,000 > 75,000 > 500,000 > 1,000,000
Decisions / Year < 1500 > 1500 > 10,000 > 20,000
Root Programs / Year < 500 > 500 > 5,000 > 10,000
Software Requirements
The following are the operating systems and softwares supported in the Agile PLM Data Mart
Components Type Platform
Operating Systems Microsoft Windows Server 2003
Unix Solaris 9 & 10
Linux RedHat 4
Databases Oracle 9i R2 Enterprise Edition *
10g R2 Enterprise Edition *
Note * It is required to have Oracle Enterprise
Edition for the PLM Source DB to use PLM
Data Mart
Tools Oracle Data Integrator (ODI) 10.1.3.4.2
Java Development Kit 1.5.x
Hardware Requirements
Before you begin installation of Agile PLM Data Mart, please ensure that at least 2 GB of disk space
is available on the server where Data Mart will be installed.
Important Agile PLM Datamart computers and databases should be dedicated to Agile and should
not have any other software installed, unless otherwise specified. Do not include other
database schemas or use the Agile host server as the primary domain controller (PDC) or
Page - 7
Agile PLM Data Mart - Setup Guide
When choosing a hardware configuration, consider the number of total users, the number of
concurrent users, the size of your database, the number of ECOs processed per day, and overall
activity level. For specific technical guidance, please contact Oracle Technical Support or your Agile
PLM Solutions Consultant.
It is required that the computer system on which you are installing Agile PLM Data Mart
components, and the Oracle Database, has at least two physical drives, or two partitions. This
allows you to place the operating system on one drive/partition and use the other for Agile and/or
Oracle components, thus ensuring better performance.
The following are the minimum hardware requirements based on database server size.
Environment CPU RAM Minimum Disk Space
Development (DEV) 1 4 GB 2x Agile PLM DB Size
Testing or Staging (STAGE) 2 4 GB
Production (PROD) 2 or 4 8 GB
Prerequisites........................................................................................................................................................ 9
Pre-installation Checks ........................................................................................................................................ 11
Data Mart Installer ............................................................................................................................................... 14
Adding DB Services in Listener ........................................................................................................................... 29
Executing Installation Scripts............................................................................................................................... 29
Validating the Data Mart Installation .................................................................................................................... 29
Important It is preferable that the Data Mart Database installation is carried out under the guidance
of a DBA.
Important The ETL installation can be carried out by anyone who has administrative privileges for
the machine.
Agile PLM Data Mart can be installed using the Installer program shipped in Installation Pack. It
works on the following operating systems:
Windows 2003 Server
Solaris
Linux
Prerequisites
The following should be installed and configured before you begin installilng the Agile PLM Data
Mart -
Oracle Database Server
Agile PLM Database
Oracle Data Integrator
Java Development Kit
If any of these is missing or improperly configured, the Data Mart installation process will fail.
Agle PLM Data Mart Installer is based on Apache ANT, which is packaged within the Installation
Pack and is deployed automatically.
You are not required to create any DB Schema Users - the installer creates them.
Agile PLM Data Mart supports only 10g R2 and 9i R2 versions of Oracle Database, Enterprise Edition.
For complete information about Oracle Database and its installation procedures, please refer Oracle
DB Installation Guide. This is available for free download at Oracle Technology Network (OTN)
Web site (http://www.oracle.com/technology/documentation/agile.html).
The source PLM DB should already be existing. The target DB, i.e., the Data Mart DB, however,
can be created in an existing instance, or in a new instance, which can be created using our
installer.
The Agile PLM Data Mart Installer will seek the following information, which should be available with
your Agile PLM Administrator:
Database Host Name
Database Port Number
Database Name
Database SID
Sys User Password
System User Password
PLM DB Username
PLM DB Password
Agile PLM Data Mart is designed to extract data from the following Releases of Agile PLM
Agile PLM Release Schema Version
9.2.2 538
9.2.2 HF7 542
9.2.2.1 563
9.2.2.1 HF12 564
9.2.2.2 581
9.2.2.3 588
9.2.2.4 614
The installer creates the Data Mart Schema on Target Database Server. The ODI should be
installed on the same system where you wish to install Agile PLM Data Mart ETL Components.
For complete information on ODI, refer its documentation, which is available for free download at
Oracle Technology Network (OTN) Web site
(http://www.oracle.com/technology/documentation/agile.html)
ODI, and its patch, can be downloaded from Oracle web site http://www.Oracle.com.
Pre-installation Checks
Several preliminary steps are required before you begin the installation process.
Verify that your computer meets the minimum hardware and software requirements. Refer
chapter on Resource and Capacity Planning in this guide.
Ensure that you have administrative privileges on your computer.
Ensure that the PLM Source DB is available.
Ensure correct Java and ODI versions are installed (as per our recommendations).
Ensure ODI_JAVA_HOME is pointing to JDK 1.5.x If not, please set it.
Ensure JAVA_HOME is pointing to JDK 1.5.x
Add JAVA_HOME to path
If your computer has a dynamic IP address, install a loopback adapter
If you are installing from a network drive, use Windows File Manager to map that drive to your
computer.
For Data Mart Database creation, make sure that SQLNET.AUTHENTICATION_SERVICES in
the Network Configuration File, sqlnet.ora, is set to (NTS).
Virus Protection is disabled.
If virus protection is enabled, components used in the installer can be falsely identified as being
infected and lockup the installation. You can turn the virus protection on after the installation is
complete.
Page - 11
Agile PLM Data Mart - Setup Guide
Recommendations
Do not install the Agile PLM Data Mart on the same drive as that of the operating system.
Install the Agile PLM Data Mart directly under the root directory. For example,
D:\PLMDatamart.
There must be at least 20 GB of free disk space and 2 GB memory available for PLM Data Mart.
Important The complete path and folder names should NOT contain any spaces, because ODI fails
to recognize any spaces in folder names or paths. For example, the path d:\Program
Files\Data Mart will lead to failure of ODI operation.
Installing in Windows
Settings
Before you invoke Installer program, you are required to set the Environment Variables -
1. On your desktop, right click on My Computer icon and select Properties. The System Properties
panel appears.
2. Click Environment Variables in Advanced tab
3. Define User variable for Java Home.
Example : JAVA_HOME=C:\Java\jdk1.5
4. Set system variable for Path of Java Home
Example : PATH=%JAVA_HOME%\bin
5. Click OK to complete
Installing in Solaris
Settings
For the Oracle databases to work properly, the default semaphore settings in Solaris do not work.
These settings should be reconfigured as follows
Before you invoke Installer program, you are required to set the profile as follows -
(Oracle 9i) ORACLE_HOME=/u01/app/oracle/product/9.2.0SE; export
ORACLE_HOME
(Oracle 10g) ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1;
export ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin; export PATH
JAVA_HOME=/u01/oracle/software/jdk1.5.0_15; export JAVA_HOME
ODI_JAVA_HOME=$JAVA_HOME; export ODI_JAVA_HOME
ODI_HOME=/u01/oracle/software/odi/oracledi; export ODI_HOME
Important The user should have full permissions for all the folders of Oracle DB and ODI. Else, the
Installation will fail.
Installing in Linux
Settings
Modify the system kernel parameters:
1. Change to the root user, and back up the /etc/sysctl.conf file:
$ su - [Enter]
# cp /etc/sysctl.conf /etc/sysctl.conf_save [Enter]
1. Verify the following /etc/sysctl.conf kernel parameters. If the parameters do not exist, go to the
Page - 13
Agile PLM Data Mart - Setup Guide
next step.
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
Important If you have been running the host computer as an Oracle database server, you have to
check with your Linux system administrator before changing these parameters. For these
parameter settings, you can also refer to the Oracle documentation.
Note Restart the computer if you modify the /etc/sysctl.conf file. Alternatively, you can use the
sysctl command to modify the semaphore parameters immediately. However, using systcl
command does not make the changes permanent. Permanent changes are required in
/etc/sysctl.conf file.
Before you invoke Installer program, you are required to set the profile as follows -
(Oracle 9i) ORACLE_HOME=/u01/app/oracle/product/9.2.0SE; export
ORACLE_HOME
(Oracle 10g) ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1;
export ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin; export PATH
JAVA_HOME=/u01/oracle/software/jdk1.5.0_15; export JAVA_HOME
ODI_JAVA_HOME=$JAVA_HOME; export ODI_JAVA_HOME
ODI_HOME=/u01/oracle/software/odi/oracledi; export ODI_HOME
Important The user should have full permissions for all the folders of Oracle DB and ODI. Else, the
Installation will fail.
The Data Mart Installer follows an installation process, shown and described in Data Mart
Installation Process. It is recommended to keep the Data Mart Installation Process diagram handy
while carrying out the installation.
Each step of the installation process has been numbered, with a prefix "S-" for ease of
understanding. These numbers, for example S-2c, correspond to each of Installer screens appearing
in a sequence of installation steps for an installation stage. The characteristics of user inputs (fields
or selections) required in each step of installer screen are detailed in the tables under each stage
heading. The numbering of these tables corresponds to each screen that appears in a particular
sequence in accordance with your selections.
Note The step numbering does not appear on installer screens. It is only for ease of
referencing.
Page - 15
Agile PLM Data Mart - Setup Guide
Getting Started
The following tables list out the input fields and/or selection options that appears on each screen of
installer program, and the requisite input characteristics/attributes.
Note The Installer should be launched in system where the database is installed. Remote DB
connection is not supported.
Note If you selected the Installation Option PLM Data Mart ETL on S-1, proceed to S-4b in Installing
Data Mart ETL Components (on page 21)
Page - 17
Agile PLM Data Mart - Setup Guide
Note If you selected the Installation PLM Data Mart Schema Creation on S-1, proceed to S-4a in
Installing Data Mart Schema (on page 18).
Note If you selected the Installation Option PLM Data Mart Schema & ETL on S-1, proceed to S-4c in
Installing Data Mart Schema and ETL Components (on page 24).
Page - 19
Agile PLM Data Mart - Setup Guide
Note If you selected the option of Use Existing Database & Tablespace in S-4a: Select Data Mart
Schema, skip to S-00.
S-9a: Enter Datafile Configuration for System, Temp Tablespaces & Redo Log Files
Input Fields / Options Characteristics
System Tablespace Datafile Choose or enter the paths
Temp Tablespace Datafile The folder names should not contain any spaces, as ODI does not resolve
Redo Log file spaces and hence, fails to operate
S-10a: Enter Datafile Configuration for Data Mart, Control & Undo Log Files
Input Fields / Options Characteristics
Data Mart and ODI Tablespace Choose or enter the paths
Control Files The folder names should not contain any spaces, as ODI does not resolve
Undo Log files spaces and hence, fails to operate
Page - 21
Agile PLM Data Mart - Setup Guide
Page - 23
Agile PLM Data Mart - Setup Guide
Page - 25
Agile PLM Data Mart - Setup Guide
Note If you selected the option of Use Existing Database & Tablespace in S-4c: Select Data Mart
Schema, skip to S-13c.
Page - 27
Agile PLM Data Mart - Setup Guide
S-11c: Enter Datafile Configuration for Data Mart & ODI , Control & Undo Log Files
Input Fields / Options Characteristics
Data Mart and ODI Tablespace Choose or enter the paths
Control Files The folder names should not contain any spaces, as ODI does not resolve
Undo Log files spaces and hence, fails to operate
S-12c: Enter Datafile Configuration for System, Temp Tablespaces & Redo Log Files
Input Fields / Options Characteristics
System Tablespace Datafile Choose or enter the paths
Temp Tablespace Datafile The folder names should not contain any spaces, as ODI does not resolve
Redo Log file spaces and hence, fails to operate
Upon completion of the Installation process, you are required to add DB services in Listener. Use
the Oracle Net Manager to specify
Global Database Name [eg, PLMDM]
Oracle Home Directory [eg, D:\ORACLE\product\10.2.0\db_1]
SID [eg, PLMDM]
If you selected the option Generate SQL Scripts in S-4: Select Data Mart Schema stage of Installation,
the Installer generates a set of SQL files and stores them in Schema folder under Data Mart Home
directory. You need to execute the them in SQLplus in the order given below. The purpose of this is
to manually create PLM Data Mart DB schemas by executing the given scripts.
Note In SQLplus, connect to the Data Mart DB using the Data Mart User Name and Password.
The given sequence of execution is very important, else it will lead to failed installation.
Page - 29
Agile PLM Data Mart - Setup Guide
The next topics provide additional checks for validating and verifying the installation.
Database Schemas
Check to ensure that the following Database schemas are creating successfully:
Data Mart DB
ODI Master Repository
ODI Work Repository
Besides making sure the Directory structure and schemas are properly created, following validation
checks should be done to make sure Data Mart is installed properly:
4. Make sure TLOG table, VLOG view and TLOG synonym are created.
If any any of the above verifications fail, look for any Oracle Database errors in the DatamartInstall.log
file. DatamartInstall.log file is located in the <PLM Datamart Home> \LOGS folder. It includes
information log details for the following installation steps:
Creation of Users (Datamart Schema User, ODI Master Repository user, ODI Work Repository
User)
PL/SQL logger (Analyitcs Log user, creation of tables TLOG)
Datamart DB creation
ODI Repository creation
ODI Physical connection configuration, Logical connection configuration, importing Model
folder, Project folder
Page - 31
Agile PLM Data Mart - Setup Guide
2. Projects tab has AGILE PLM ANALYTICS project and the project has following packages under
Agile Datamart Folder:
1. Open ODI Topology Manager and make sure the Source PLM Database SID and schema
user details are populated:
a. Double click on Physical Architecture tab > Technologies > Oracle > SRC_CONN_PHYSICAL
and verify Instance and Schema name details in the Definition tab.
b. Click on JDBC tab and verify that JDBC URL is pointing proper SID on Source PLM
Database machine.
Executing ETL
This chapter includes the following:
Before you opt for either of the two ways, you are required to setup ODI users for the first time.
Note ODI User setup requires the information entered during the Data Mart installation, such
as, user names, passwords. Keep this access information handy.
To establish connection to Agile PLM Data Mart, you must first configure a User, as follows
1. In Windows, execute the program Operator from Start > Programs > OracleODI
The Oracle Data Integrator Login screen appears
2. Click the New Icon to create a new Work Repository Connection
3. Enter Login Name, User name and password for ODI connection.
These can be of your choice. The default User Name is SUPERVISOR and the password is
SUNOPSIS (case sensitive).
Note To configure additional user or change password for SUPERVISOR, please
refer to ODI documentation.
4. Enter the User name and password for Master Repository DB connection that you specified
during installation.
5. Select Oracle JDBC Driver from Driver List
The Driver Name field gets automatically filled with oracle.jdbc.driver.OracleDriver.
6. Enter the following URL
jdbc:oracle:thin:@<host>:<port>:<sid>
where
<host> Host name of Data Mart DB Server
<port> Port Number of Data Mart DB Server
<sid> SID or the Instance name of Data Mart DB
7. Enter the Repository Name for Work Repository
8. Click Test button to verify if the connection works. Click OK . You will be prompted to enter the
Work Repository Password.
9. Enter the work repository password that was assigned during the Data Mart installation and
Click OK.
Note For complete information on installation and usage of ODI, please refer its documentation
available for free download at
http://www.oracle.com/technology/documentation/index.html
http://www.oracle.com/technology/documentation/index.html
Page - 35
Agile PLM Data Mart - Setup Guide
When you execute ETL, the Data Mart application creates Tables for each List Dimension. These
tables serve as master data source of list items.
These List Dimension Tables are named according to their List Names. Should you want, you may
rename them in accordance with your own naming conventions. For this objective, Agile PLM Data
Mart Installer is bundled with a configuration tool - List Dimension Configurator.
It displays all the List IDs, List Names and List Dimension Names, sorted on List ID. You can sort
the displayed data on List Name or List Dimension Name too.
2. Identify the the desired List Name whose List Dimension Name you wish to modify/rename.
3. Click in corresponding cell under List Dimension Name column. The cell attains Edit mode.
4. If the cell is empty, enter the desired name. Else, select the existing name, delete and then enter a
new name.
Note The List IDs and the correponding List Names are fixed, i.e., you cannot modify
them.
5. Click Save button. The new values are stored in the List Dimension Control table -
ODM_LISTDIM_CTL in the Data Mart.
Note The Save button remains inactive, that is, not-clickable, until you edit any List
Dimension Name.
Note Undo, or Ctrl-Z, does not work.
6. Continue editing the List Dimension Names or click Cancel button to exit.
Note Any updates made to List Dimension Names using Configurator shall only be processed
during next ETL run.
The ODM_LISTDIM_CTL table stores the latest List Dimension Names. Before commiting them, it
copies the existing data into its backup table, ODM_LISTDIM_CTL_BK, along with the timestamps
of each modification. Thus, it maintains the entire history of each and every earlier List Dimension
Name, facilitating you to switch back, should you want to.
To create a new List in Agile PLM and also change it's dimension table in Target Data Mart:
1. Create a new List in Agile PLM Administrator
2. Execute Data Mart ETL using appropriate steps outlined in Executing ETL on page 33.
3. Run Configurator and identify the row for newly created List in Configurator.
4. (Optional) Delete dimension table that was already created during previous ETL run. This step
allows schema from having orphan dimension tables.
5. Change Dimension Table name for the newly created List using steps in List Dimension
Configurator on page 37.
6. Once changes are completed and saved, run Data Mart ETL using appropriate steps outlined
in Executing ETL on page 33.
Page - 39
Agile PLM Data Mart - Setup Guide
PPM=Y
PC=Y
3. Change the property values to Y or N.
The properties value Y enables the module, and N disables.
4. In Windows, execute LoadParameters.bat located in bin folder under Data Mart Home Directory,
e.g., c:\PLMDataMart\bin.
5. In Solaris and Linux, execute LoadParameters.sh located in bin folder under Data Mart Home
Directory, e.g., $PLMDataMart\bin.
Alternately
1. Change and commit the values (Y or N) in the Parameter Table.
For complete information on scheduling and related actions, refer the following sections in the
Oracle Data Integrator User’s Guide 10g Release 3 (10.1.3). This guide is available for free
download at http://www.oracle.com/technology/documentation/index.html
http://www.oracle.com/technology/documentation/index.html.
Note In ODI Operator, setup the DATAMART_LOAD Version 001 Scenario in the scheduler tab
based on your scheduling preference.
If you want use an external scheduler, refer Scheduling a Scenario with an external scheduler in the
Oracle Data Integrator User’s Guide 10g Release 3 (10.1.3) on page 99.
Hence, any changes in any passwords in the DB should also be reflected in this properties file. The
encryption of password is required for security reasons.
Note The LoadParameters.bat file will use this properties file to change the PLM modules.
Note The configurator.bat will also use this prop file. hence pwds
To change a password :
1. Go to bin folder in Data Mart Home directory
2. Execute the batch file along with a desired password, as follows
dmencoder <pwd>
where <pwd> is an alpha-numeric character string password.
An encrypted string appears.
1. Select and copy the encrypted string
2. Open the DataMartConfig.properties file, located in config folder under Data Mart Home directory,
in a text editor.
3. Delete the password that you wish to change.
4. Paste the new encrypted string and save & close the file.
Note To reflect the changed password(s) in ODI, refer ODI Administration Guide.
Page - 41
Chapter 6
Troubleshooting
This chapter includes the following:
Installation Issues
Installer failed to create Data Mart schema, ODI Work repository and/or ODI Master repository
schemas
Look for errors in DatamartInstall.log, located in the logs folder of the PLM Data Mart install home
directory, to root cause the issue
Possible root causes could be:
Database version specified is different from the one installed in the system. For example,
Oracle 10g option is selected during installer while the machine has Oracle 9i.
Path specified for Oracle Target DB Tablespaces could be invalid.
Oracle Database path specified is incorrect.
Database Instance exists, but the System user does not have proper privileges required to
create and grant appropriate roles to schema users.
Installer failed to create ODI Work repository and ODI Master repository
Look for errors under ODIRepCreation: tag in DatamartInstall.log to root cause following
Work Repository and Master Repository schemas are not created for possible root causes
outlined in #1.
Tablespace specified for Work & Master repository are invalid.
JAVA_HOME and JAVA_ODI_HOME environment variables are incorrect.
Specified ODI directory is incorrect or ODI is not installed at specified path.
ODI Project “AGILE PLM ANALYTICS” does not have any packages
Besides the root causes outlined in #2, look for errors under ODI-PHY-Creation section in
DatamartInstall.log for other issues:
OdiImportObject failed to execute for incorrect JRE specified
JDK version specified is either less than 1.5.x or 1.6 or above. Data Mart 3.0 release works
with JDK 1.5.0.x version.
Specified Work Reposity Name is already used in existing ODI
ODI already has projects that have conflicting Work and Master Repository IDs. PLM Data
PL/SQL Loggings
The log details are stored in following table/view in the Data Mart schema
TLOG (table) This table contains information like timestamp, ID etc. This table will be appending, if the
the mode is ERRORMODE. This table will be purged, if the mode is DEBUGMODE
VLOG (view) This is a view created for TLOG table and contains only the ERROR messages. The
difference between ERROR_MODE and DEBUG_MODE is explained below
ERROR MODE This is a default mode and value for this is ‘0’ in DEBUG_MODE
column in PARAMETER Table in PLM Data Mart database
schema. This captures error message.
DEBUG MODE This mode contains the value as ‘1’ in DEBUG_MODE column in
PARAMETER table PLM Data Mart database schema. This
captures step by step information inside a PL/SQL Procedure. You
will need to update the DEBUG_MODE of the parameter table to
“1” to run in DEBUG mode.
General Issues
DB Errors
1. Connectivity Errors
a. PLM Source DB is available and accessible from PLM Data Mart machine
b. Verify PLM Source DB schema details
c. Target (PLM Data Mart) DB is available
d. Verify Target DB schema details
2. Data Issues such as column width
a. Check the column is both Source and Target schema (refer to Schema documentation for
table/column details)
3. Disk space
a. Check the Target DB machine to ensure enough space is available for ETL to execute and
add data
4. Database Sessions to execute ETL
a. Check the DB for enough sessions (>500) with which the ODI will run smoothly. For
checking DB session and process parameters
Login as sys/<PWD> as sysdba in command prompt using sqlplus.
SHOW PARAMETER SESSIONS
SHOW PARAMETER PROCESSES
Alter system set processes=1000 scope=spfile; OR
Alter system set processes=1000 scope=both;
After altering the Database restart the instance.
1. Linux/Unix Specific only
a. If customer gets a ‘cannot execute’ message, need to do ‘chmod u+x PLMDMSetup*.bin’.
b. Need to make sure the TNS Listener is running. Can check by ‘ps –ef | grep tns’. If
nothing shows, then it is not running.
c. If the TNS Listener is running, need to check the status. Can do so by ‘lsnrctl status’.
The java.sql.SQLException code simply indicates that a query was made to the database through the
JDBC driver, which has returned an error. This error is frequently a database or driver error, and
must be interpreted in this direction.
Only the part of text in bold must first be taken in account. It must be searched in the Oracle
Page - 45
Agile PLM Data Mart - Setup Guide
documentation. If its contains an error code specific to Oracle, like here (in red), the error can be
immediately identified.
If such an error is identified in the execution log, it is necessary to analyze the SQL code send to
the database to find the source of the error. The code is displayed in the description tab of the
erroneous task.
The most common errors with an Oracle server are detailed below, with their principal causes.
Connection Errors
1. UnknownDriverException
The JDBC driver is incorrect. Check the name of the driver.
2. I/O Exception: Connection
refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERR
OR=(CODE=12505)(EMFI=4))))
The instance name in the JDBC URL is invalid. Check ODI Topology Manager to make sure
JDBC URL is proper.
3. I/O Exception: The Network Adapter could not establish the connection
The IP address, machine name of Oracle listener port is incorrect in the JDBC URL.
4. ORA-01017: invalid username/password; logon denied
The user and/or password specified in the data server definition is invalid. This error may also
appear for certain Oracle Data Integrator commands, such as SqlUnload.
5. Protocol violation
This error indicates an incompatibility between the Oracle JDBC driver and the database you
connect to. If it occurs at connection time, or at the first operation launched on the Oracle
database, then install the version of the Oracle JDBC driver provided with your database
installation.
6. ORA-00600 internal error code
Internal error of the Oracle database. May be caused by a driver incompatibility.
7. ORA-12154 TNS:could not resolve service name
TNS alias resolution. This problem may occur when using the OCI driver, or a KM using
DBLinks. Check the configuration of the TNS aliases on the machines.
8. ORA-02019 connection description for remote database not found
You use a KM using non existing DBLinks. Check the KM options and pre-requisites.
Errors in Interfaces
1. ORA-00900 invalid SQL statement
ORA-00923 FROM Keyword not found where expected.
The code generated by the interface, or typed in a procedure is invalid for Oracle. This is
usually related to an input error in the mapping, filter of join. The typical case is a missing quote
or an unclosed bracket.
A frequent cause is also the call made to a non SQL syntax, like the call to an Oracle stored
procedure using the syntax EXECUTE SCHEMA.PACKAGE.PROC(PARAM1, PARAM2).
Page - 47
Chapter 7
Best Practices
1. Purging logs
Use “Purge Log” feature which is available in ODI Operator.
a. Login to ODI Operator
b. Go to File | Purge Logs option
Note Users have option to Purge Logs based on Timeline (From/To Date), Context,
Agent, Status, User Name and Session name.
In regards to purging PLM Data Mart logs recommendation, it is up to individual customer in
how they want to implement it. Refer ODI documentation from for more details.
2. Archiving
We recommend taking regular backup of the following,
Data Mart Target DB schema
VLOG (Parameter table)
ODI logs (this can be done by using the “Export Logs” feature in ODI Operator).
Note Perform following to use “Export Logs”
Login to ODI Operator
Select to “Export Logs” option from “File” drop down list
3. DB password change
In order to update the connection details for Source or Target DB
Update “DataMartconfig.properties” file in <Data Mart Home directory>/Config folder
Note Before updating encrypt the password using dmencoder utility (located in bin
directory of PLM Data Mart install folder).
Following sections needs to be updated based on change:
PLM Source DB Details : # PLM DATABASE DETAILS ###
Target Data Mart DB Details: ####### DataMart Database Details######
Target Data Mart DB Schema Details: ###PLM Database TNSEntry Name####
ODI Database Schema Details: ## Oracle Data Integrator Repository Details##
ODI Work Repository Details: # ODI Work Repository Details
4. ETL performance (increase Java Heap_Size)
We recommend increasing the Heap-Size to enhance ETL performance. This can be done in
ODIPARAMS.BAT file located in <ODI Home> / Bin directory
The default setting in the ODIPARAMS.bat is
set ODI_INIT_HEAP=32m
set ODI_MAX_HEAP=256m --- this gets mapped into -Xmx%ODI_MAX_HEAP%
5. Deployment
1. Schema Configuration
The source PLM Database schema and Target DB Schemas MUST be 10 characters or
less. Also, it may not contain any special characters except underscore "_"
2. Install Location Restrictions
PLM Data Mart should be installed in a directory which contains operating systems files
(e.g. c:\)
a. PLM Datamart should not be installed in any directory which has space in it (e.g.
d:\program files).
b. The ODI home directory should not exist in a directory which has space it. If it does,
the PLM Data Mart installation will not proceed.
3. Table space Data Sizing
Refer Resource and Capacity Planning "Resource and Capacity Planning" on page 3 for
complete information.