Cognos ReportNetTM Installation and Configuration Guide

Cognos ReportNetTM Installation and Configuration Guide Cognos ReportNetTM Installation and Configuration Guide

sharepoint.cabq.gov
from sharepoint.cabq.gov More from this publisher
20.07.2014 Views

Chapter 8: Setting Up the Samples Before you restore the samples databases, ensure that you have 50 MB of disk space available in the target location. SQL Server Considerations If you restore the SQL Server backup files, you must use Microsoft SQL Server 2000 or Microsoft SQL Server 7. DB2 Considerations Before you restore the DB2 move files on Unix or Windows, extract the DB2 move files by using the gnutar -xcvf DB2_move_file_name or tar -xcvf DB2_move_file_name command. Also, when you set up the gosldw database in DB2, create a large buffer pool of 16k and an associated tablespace. If you use WinZip to extract the DB2 move files on Windows, ensure that the TAR file smart CR/LF conversion option is not selected. Steps 1. On the computer where ReportNet is installed, go to the sqlserver, oracle, or db2 directory located in crn_location\webcontent\samples\db. 2. If required, copy the backup files for the samples databases to your database backup directory. 3. Restore the four samples databases with your database management tool. 4. Create one user who has select permissions for all the tables in the restored databases. The Great Outdoors databases are restored. You can now create the data source connections in the portal. Create Data Source Connections to the Samples Databases You must create data source connections to the samples databases that you restored. ReportNet uses this information to connect to the samples databases and run the sample reports or use the sample package. Before you create the data source connections, you must restore the backup files for the samples databases. Also, ensure that ReportNet is running. To create data sources, you must have execute permissions for the Administration secured function. Steps 1. Open Cognos Connection. 2. On the toolbar, click Directory. 3. Click the Data Sources tab. 4. Click the new data source button. The New Data Source wizard appears 5. In the Name box, type gosales and click Next. 6. In the connection page, click the type of database that you restored and want to connect to, select an isolation level, and then click Next. The connection string page for the selected database appears. 92 Cognos ReportNet TM

Chapter 8: Setting Up the Samples 7. Do one of the following: • If you restored the samples databases in SQL Server, in the Server Name box, type the name of the server where the restored databases are located. In the Database name box, type gosl. • If you restored the samples databases in Oracle, in the SQL*Net connect string box, type the Oracle connection string. • If you restored the samples databases in DB2, in the DB2 database name box, type gosl. In the DB2 connect string box, type the DB2 connection string. 8. Under Signons, select the User ID, Password, and Create a signon that the Everyone group can use check boxes, type the user ID and password for the user that you created when you restored the databases, and then click Finish. Tip: To test whether the parameters are correct, click Test. 9. Click Finish. 10. Repeat steps 4 to 9 for the goretailers samples database. Use goretailers for the data source name and gort for the database name. The Great Outdoor data source connections appear as entries in the Data Sources tab of the Directory tool. You can now import the samples unless there is a syntax error in the connection string or an incorrect parameter. Modify the Sample Model for Oracle and DB2 The sample model is based on the gosl and gort samples databases. Because the sample model is built in Microsoft SQL Server, if you want to use it with the samples databases in Oracle and DB2, you must modify its data source properties. Before you can modify the sample model, the data source connections to the samples databases must be created. Steps 1. Launch Framework Manager. 2. From the Welcome page, click Open a project. 3. Go to the crn_location\webcontent\samples\Models\gosales_goretailers directory, click the gosales_goretailers.cpf file, and then click Open. 4. In the Project Viewer pane, expand the Data Sources folder, and click gosales. The properties of the data source appear in the Properties pane. 5. Click the Content Manager Datasource property, delete the existing setting, type the name of the Oracleor DB2 data source. Tip: To edit a property value, you can click the ellipses button beside the value. 6. Click the Catalog property and delete the existing setting. 7. Click the Schema property, delete the existing setting, and type the name of the schema for Oracleor DB2 specified when you set up the data sources. 8. Double-click the Type property, click the Interface property, delete the existing setting, and type OR for Oracle or D2 for DB2. 9. To test the modified data source properties, in the Project Viewer pane, in the Data Sources folder, right-click gosales, and then click Test Data Source. A message appears to inform you whether the test was successful. 10. Repeat steps 4 to 10 for the goretailers data source. Import the Samples To use the sample package and reports, you must import them from the sample deployment archive using the deployment tool. Installation and Configuration Guide 93

Chapter 8: Setting Up the Samples<br />

Before you restore the samples databases, ensure that you have 50 MB of disk space available<br />

in the target location.<br />

SQL Server Considerations<br />

If you restore the SQL Server backup files, you must use Microsoft SQL Server 2000 or<br />

Microsoft SQL Server 7.<br />

DB2 Considerations<br />

Before you restore the DB2 move files on Unix or Windows, extract the DB2 move files by using<br />

the gnutar -xcvf DB2_move_file_name or tar -xcvf DB2_move_file_name comm<strong>and</strong>. Also,<br />

when you set up the gosldw database in DB2, create a large buffer pool of 16k <strong>and</strong> an<br />

associated tablespace.<br />

If you use WinZip to extract the DB2 move files on Windows, ensure that the TAR file smart<br />

CR/LF conversion option is not selected.<br />

Steps<br />

1. On the computer where ReportNet is installed, go to the sqlserver, oracle, or db2 directory<br />

located in crn_location\webcontent\samples\db.<br />

2. If required, copy the backup files for the samples databases to your database backup<br />

directory.<br />

3. Restore the four samples databases with your database management tool.<br />

4. Create one user who has select permissions for all the tables in the restored databases.<br />

The Great Outdoors databases are restored. You can now create the data source connections<br />

in the portal.<br />

Create Data Source Connections to the Samples<br />

Databases<br />

You must create data source connections to the samples databases that you restored.<br />

ReportNet uses this information to connect to the samples databases <strong>and</strong> run the sample<br />

reports or use the sample package.<br />

Before you create the data source connections, you must restore the backup files for the<br />

samples databases. Also, ensure that ReportNet is running.<br />

To create data sources, you must have execute permissions for the Administration secured<br />

function.<br />

Steps<br />

1. Open <strong>Cognos</strong> Connection.<br />

2. On the toolbar, click Directory.<br />

3. Click the Data Sources tab.<br />

4. Click the new data source button.<br />

The New Data Source wizard appears<br />

5. In the Name box, type gosales <strong>and</strong> click Next.<br />

6. In the connection page, click the type of database that you restored <strong>and</strong> want to connect to,<br />

select an isolation level, <strong>and</strong> then click Next.<br />

The connection string page for the selected database appears.<br />

92 <strong>Cognos</strong> ReportNet TM

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!