© 2009 IBM Corporation Configure TADDM Reports with Oracle database Krzysztof Sudziarski 4/8/2011.

Post on 19-Jan-2016

216 views 1 download

transcript

© 2009 IBM Corporation

Configure TADDM Reports with Oracle database

Krzysztof Sudziarski

4/8/2011

© 2009 IBM Corporation2

Install Tivoli Common Reporting 2.1

Install Oracle Client 10.2.0.1.0

Install IBM Cognos 8 Framework Manager

Install IBM Cognos 8 Fix

Configure Framework Manager

Import model and sample reports to TCR

Publish model using Framework Manager

Configure Data Source in TCR

Import TADDM BIRT reports to TCR

Configure TADDM BIRT reports in TCR

Verification

Agenda

© 2009 IBM Corporation3

Install Tivoli Common Reporting 2.1

Install TCR 2.1

© 2009 IBM Corporation4

Install Tivoli Common Reporting 2.1

Install Oracle Client 10.2.0.1.0

Install IBM Cognos 8 Framework Manager

Install IBM Cognos 8 Fix

Configure Framework Manager

Import model and sample reports to TCR

Publish model using Framework Manager

Configure Data Source in TCR

Import TADDM BIRT reports to TCR

Configure TADDM BIRT reports in TCR

Verification

© 2009 IBM Corporation5

Install Oracle Client 10.2.0.1.0

Select „Administrator” mode

© 2009 IBM Corporation6

Install Oracle Client 10.2.0.1.0

Specify home details

© 2009 IBM Corporation7

Install Oracle Client 10.2.0.1.0

Ensure that prerequisites are met.

© 2009 IBM Corporation8

Install Oracle Client 10.2.0.1.0

Press install

© 2009 IBM Corporation9

Install Oracle Client 10.2.0.1.0

Configuration assistant shows up

Leave „Perform typical configuration” unchecked

© 2009 IBM Corporation10

Install Oracle Client 10.2.0.1.0

Use default

Make sure „Local Naming” is selected

© 2009 IBM Corporation11

Install Oracle Client 10.2.0.1.0

Enter „Service Name” of your remote Oracle Database Server.

We used ORCL in our case.

© 2009 IBM Corporation12

Install Oracle Client 10.2.0.1.0

Choose „TCP” protocol.

© 2009 IBM Corporation13

Install Oracle Client 10.2.0.1.0

Specify the host name of the database.

© 2009 IBM Corporation14

Install Oracle Client 10.2.0.1.0

Choose „Yes, perform a test” option.

© 2009 IBM Corporation15

Install Oracle Client 10.2.0.1.0

Click „Change Login” button and specify credentials to your database.

© 2009 IBM Corporation16

Install Oracle Client 10.2.0.1.0

Verify that test completes successfully.

© 2009 IBM Corporation17

Install Oracle Client 10.2.0.1.0

For „Net Service Name” use default value which is the same as Service Name.

It was ORCL in our case.

Press next and finish creating configuration.

Finish installation

© 2009 IBM Corporation18

Install Oracle Client 10.2.0.1.0

1) The tnsnames.ora file was created in default location after you finished Oracle Client installer. You can find the tnsnames.ora file in %ORACLE_HOME%/client_1/NETWORK/ADMIN

2) Create TNS_ADMIN system variable and set value to directory above (e.g. c:\oracle\product\10.2.0\client_1\NETWORK\ADMIN)

3) Reboot

For details see Oracle documentation:http://download.oracle.com/docs/html/B10131_02/post_install.htm#CHDFHDJA

© 2009 IBM Corporation19

Install Tivoli Common Reporting 2.1

Install Oracle Client 10.2.0.1.0

Install IBM Cognos 8 Framework Manager

Install IBM Cognos 8 Fix

Configure Framework Manager

Import model and sample reports to TCR

Publish model using Framework Manager

Configure Data Source in TCR

Import TADDM BIRT reports to TCR

Configure TADDM BIRT reports in TCR

Verification

© 2009 IBM Corporation20

Install IBM Cognos 8 Framework Manager

Install Cognos Modelling package with default options

© 2009 IBM Corporation21

Install Tivoli Common Reporting 2.1

Install Oracle Client 10.2.0.1.0

Install IBM Cognos 8 Framework Manager

Install IBM Cognos 8 Fix

Configure Framework Manager

Import model and sample reports to TCR

Publish model using Framework Manager

Configure Data Source in TCR

Import TADDM BIRT reports to TCR

Configure TADDM BIRT reports in TCR

Verification

© 2009 IBM Corporation22

Install IBM Cognos 8 Fix

Install Cognos Modelling Fix with default options

This step is important for proper configuration

© 2009 IBM Corporation23

Install Tivoli Common Reporting 2.1

Install Oracle Client 10.2.0.1.0

Install IBM Cognos 8 Framework Manager

Install IBM Cognos 8 Fix

Configure Framework Manager

Import model and sample reports to TCR

Publish model using Framework Manager

Configure Data Source in TCR

Import TADDM BIRT reports to TCR

Configure TADDM BIRT reports in TCR

Verification

© 2009 IBM Corporation24

Configure Framework Manager

1) Open IBM Cognos Configuration (TCR)

2) Open IBM Cognos Configuration

© 2009 IBM Corporation25

Configure Framework Manager

1) Copy „Gateway URI” from „IBM Cognos Configuration (from TCR)” to „Gateway URI” in „IBM Cognos Configuration (in Framework Manager)”

2) Copy „External dispatcher URI” from „IBM Cognos Configuration (from TCR)” to „Dispatcher URI for external applications” in „IBM Cognos Configuration (in Framework Manager)”

© 2009 IBM Corporation26

Install Tivoli Common Reporting 2.1

Install Oracle Client 10.2.0.1.0

Install IBM Cognos 8 Framework Manager

Install IBM Cognos 8 Fix

Configure Framework Manager

Import model and sample reports to TCR

Publish model using Framework Manager

Configure Data Source in TCR

Import TADDM BIRT reports to TCR

Configure TADDM BIRT reports in TCR

Verification

© 2009 IBM Corporation27

Import model and sample reports to TCR

Copy the $COLLATION_HOME/etc/reporting/TADDMPackage.zip package from the TADDM server to the TCR_component_dir\Cognos\deployment directory of the Tivoli Common Reporting server

© 2009 IBM Corporation28

Import model and sample reports to TCR

Open Common Reporting in TIP (https://localhost:16311/ibm/console/logon.jsp)

Select „Admin” from „Launch” drop down menu

© 2009 IBM Corporation29

Import model and sample reports to TCR

Go to „Configuration” tab and press „New Import” icon

© 2009 IBM Corporation30

Import model and sample reports to TCR

Select „TADDMPackage” package

© 2009 IBM Corporation31

Import model and sample reports to TCR

© 2009 IBM Corporation32

Import model and sample reports to TCR

Put tick in table next to package symbol

© 2009 IBM Corporation33

Import model and sample reports to TCR

© 2009 IBM Corporation34

Import model and sample reports to TCR

© 2009 IBM Corporation35

Install Tivoli Common Reporting 2.1

Install Oracle Client 10.2.0.1.0

Install IBM Cognos 8 Framework Manager

Install IBM Cognos 8 Fix

Configure Framework Manager

Import model and sample reports to TCR

Publish model using Framework Manager

Configure Data Source in TCR

Import TADDM BIRT reports to TCR

Configure TADDM BIRT reports in TCR

Verification

© 2009 IBM Corporation36

Publish model using Framework Manager

Start IBM Cognos 8 Framework Manager.

Create a new project.

© 2009 IBM Corporation37

Publish model using Framework Manager

Enter credentials for your TCR (TIP) installation.

© 2009 IBM Corporation38

Publish model using Framework Manager

Enter credentials for your TCR (TIP) installation once again.

© 2009 IBM Corporation39

Publish model using Framework Manager

1) Close the project.

2) Overwrite model.xml file, from your Cognos Framework project directory, with model.xml from TADDM installation ($COLLATION_HOME/etc/reporting/tcr/model.xml )

3) Start Cognos Framework Manager and open your project

© 2009 IBM Corporation40

Publish model using Framework Manager

Clear the Schema field in Data Source properties.

© 2009 IBM Corporation41

Publish model using Framework Manager

1) Save the project

2) Publish model

© 2009 IBM Corporation42

Install Tivoli Common Reporting 2.1

Install Oracle Client 10.2.0.1.0

Install IBM Cognos 8 Framework Manager

Install IBM Cognos 8 Fix

Configure Framework Manager

Import model and sample reports to TCR

Publish model using Framework Manager

Configure Data Source in TCR

Import TADDM BIRT reports to TCR

Configure TADDM BIRT reports in TCR

Verification

© 2009 IBM Corporation43

Configure Data Source in TCR Open „Common Reporting” in TIP

Navigate to „Administration”

© 2009 IBM Corporation44

Configure Data Source in TCR Select „Configuration” tab

Press „New Data Source”

© 2009 IBM Corporation45

Configure Data Source in TCR Type „CMDBTCR” in data source name. This data source name is referenced in model

therefore you have to name this data source as „CMDBTCR”.

© 2009 IBM Corporation46

Configure Data Source in TCR

© 2009 IBM Corporation47

Configure Data Source in TCR Specify Oracle Database „Service Name” in „SQL*Net connect string”. This is Service Name

you specified in Oracle Net Configuration Assistant in previous steps. If you have forgotten this value you can check this value in %TNS_ADMIN%/tnsnames.ora file

Specify Oracle user and password for your SID

© 2009 IBM Corporation48

Configure Data Source in TCR

© 2009 IBM Corporation49

Configure Data Source in TCR

© 2009 IBM Corporation50

Install Tivoli Common Reporting 2.1

Install Oracle Client 10.2.0.1.0

Install IBM Cognos 8 Framework Manager

Install IBM Cognos 8 Fix

Configure Framework Manager

Import model and sample reports to TCR

Publish model using Framework Manager

Configure Data Source in TCR

Import TADDM BIRT reports to TCR

Configure TADDM BIRT reports in TCR

Verification

© 2009 IBM Corporation51

Import TADDM BIRT reports to TCR

Open a command prompt and navigate to TIP_install_dir/tipv2Components/TCRComponent/bin

Run the import commandtrcmd -user userID -password password -import -bulk pkgFilewherepkgFile - the path to the TADDMReports.zip report package file copied to the Tivoli Common Reporting server from $COLLATION_HOME/etc/reporting on the TADDM serveruserID – TIP administrator user id (e.g. tipadmin)password – TIP administrator password

© 2009 IBM Corporation52

Install Tivoli Common Reporting 2.1

Install Oracle Client 10.2.0.1.0

Install IBM Cognos 8 Framework Manager

Install IBM Cognos 8 Fix

Configure Framework Manager

Import model and sample reports to TCR

Publish model using Framework Manager

Configure Data Source in TCR

Import TADDM BIRT reports to TCR

Configure TADDM BIRT reports in TCR

Verification

© 2009 IBM Corporation53

Configure TADDM BIRT reports in TCR

Make sure the appropriate JDBC driver files are installed in the Tivoli Common Reporting drivers directorytip_install_dir/tip21Components/TCRComponent/lib/birt-runtime-2_2_2/ReportEngine/plugins/ org.eclipse.birt.report.data.oda.jdbc_2.2.2.r22x_v20071206/driversFor Oracle make sure that ojdbc14.jar or ojdbc5.jar is in that directory

Open a command prompt and navigate to tip_install_dir/tip21Components/TCRComponent/bin

Run the list command to list all the available reports and choose the one you want to configuretrcmd -user userID -password password -list -reports

Run the modify commandtrcmd -user userID -password password -modify -datasources -reports -reportname "reportName" -setdatasource odaDriverClass=driverClass odaURL=jdbcUrl odaUser=dbUser odaPassword=dbPassworde.g.:trcmd -user tipadmin -password tipadmin -modify -datasources -reports -reportname "/content/package[@name='Tivoli Products']/folder[@name='TADDM Reports']/report[@name='Unknown Servers Report']" -setdatasource odaDriverClass=oracle.jdbc.driver.OracleDriver odaURL=jdbc:jdbc:oracle:thin:@192.168.0.1:1521:orcl odaUser=taddm_dev odaPassword=taddm_dev

Repeat the previous steps for each of the TADDM reports you want to configure

© 2009 IBM Corporation54

Install Tivoli Common Reporting 2.1

Install Oracle Client 10.2.0.1.0

Install IBM Cognos 8 Framework Manager

Install IBM Cognos 8 Fix

Configure Framework Manager

Import model and sample reports to TCR

Publish model using Framework Manager

Configure Data Source in TCR

Import TADDM BIRT reports to TCR

Configure TADDM BIRT reports in TCR

Verification

© 2009 IBM Corporation55

Verification Open Common Reporting in TIP (https://localhost:16311/ibm/console/logon.jsp)

Check if you have „TADDM” and „Tivoli Products” folders

© 2009 IBM Corporation56

Verification Navigate to „TADDM” folder and run sample Cognos report

© 2009 IBM Corporation57

Verification Check if Cognos report is rendered without any errors

© 2009 IBM Corporation58

Verification Navigate to „Tivoli Products” / „TADDM Reports” and run configured BIRT report

© 2009 IBM Corporation59

Verification Check if BIRT report is rendered without any errors