To use IBM Cognos product documentation, you must enable JavaScript in your browser.

Update Published PowerCubes and PowerCube Connections

After a PowerCube is rebuilt or updated, several methods are available for making the newer version of the published cube available. You can

To use the IBM Cognos 8 PowerCube Connection Utility to update a data source or to disable a cube, you must first connect to a dispatcher. You can connect to multiple dispatchers if your IBM Cognos 8 environment requires it.

If your IBM Cognos 8 environment is secured, you are prompted to provide authentication information when you connect to the dispatcher. If your environment has multiple namespaces, you can log on to any or all namespaces.

Copy and Activate a Newer Version of a Published PowerCube

After rebuilding or updating a PowerCube that has already been published, you can make the newer version of the PowerCube available without interruption to IBM Cognos 8 users. Transformer can copy the newer version to one or more deployment locations that you specify, and then activate the newer version in each location. Reports continue to run using the new cube data.

You can initiate the copy and activate process using Transformer commands or from the command line.

Tip: You can also use pcactivate to activate updated Transformer 7.x PowerCubes already copied to the production environment .

To copy and activate a PowerCube, Transformer does the following for each deployment location:

For a cube named MyCube.mdc, where one version was copied and activated on February 1, 2008 and a newer version was copied and activated on March 1, 2008, a deployment location contains contents similar to the following:

Assume that the report server needs to process a query using MyCube.mdc. When attempting to access MyCube.mdc, the report server recognizes that the file is not a valid PowerCube. The report server looks for a file named MyCube__UTCdate_time.ver file. In the previous example, this file is named MyCube__20080301175839.ver. Using the prefix of this .ver file, the report server goes to the MyCube_20080312175839 folder and processes the query using the version of MyCube.mdc in this folder.

You can use a different value than UTCdate_time if you manually change this value in the deployment location. Ensure that you change the value in both the prefix of the .ver file and the folder that contains the newest version of the cube. The format for both the prefix and the folder name must include two values that are separated by a two underscores (__), as follows: value__value. For example, for the .ver file, you can use the following: MyCube__1v2.ver. You cannot use MyCube_1v2.ver (single underscore) or MyCube##1v2.ver (two hash symbols).

Copying and activating newer versions of cubes should be used only when updated data is available.

Step
Steps to Set Up a Copy and Activate Strategy
  1. In the PowerCubes list, right-click a PowerCube and click Properties.

  2. Click the Deployment tab.

  3. From the Deployment Strategy list, select the deployment method:

    Tip: If the cube is a child cube belonging to a cube group and you want the child to inherit the same deployment strategy as its parent cube, click Use Strategy from Parent Cube and go to Step 6. This option is not available for standalone cubes or for member cubes of time-based partitioned cubes.

  4. From the After building the cube list, choose the copy and activation strategy to be applied each time the cube is rebuilt:

    When you select Do not deploy, Transformer performs no other action when the cube is rebuilt.

  5. Click Add, in the Folder box, enter the path to the cube, and then click OK.

    Tip: To enter the path to the cube, you can go to the location where the cube is deployed in the Deployment Location pane; type the path to the cube in the Folder box; or copy the path to the cube and paste it in the Folder box.

    If this PowerCube is available from multiple locations, add each location to the Deployment locations list.

  6. To enable automatic deletion of previous versions of the deployed PowerCube, select the Enable automatic PowerCube deletion check box and then, in the Maximum number of old cubes to keep box, type the number of previous versions to be retained.

  7. Click OK.

A message confirms that the deployment was successful. View the message details for the name of the folder in which the newer version of the PowerCube is stored.

The newer version of the PowerCube has been copied to all deployment locations and activated. In each location, the .ver file is updated to identify the name of the folder in this directory that contains the activated PowerCube.

Activate a Published PowerCube Using PCactivate

Use the pcactivate command to activate PowerCubes that are rebuilt or updated in the production environment. This is the recommended method for making newer versions of the published cube available. This method is fully automated, which reduces the risk of errors that may cause connection problems when users attempt to access the cubes. You can use the pcactivate command with updated Transformer version 7.x cubes and updated Transformer version 8.x cubes.

The pcactivate command:

The next time the published cube is accessed, the newer version is accessed automatically.

Before you can use the pcactivate command, the cube must be

For example, if the data source definition indicates that the access path for the cube is c:\Cubes\Product.mdc, you must copy the cube as indicated below before you can use the pcactivate command:

c:\Cubes\Product\Product.mdc

The syntax for using the pcactivate command is as follows:

pcactivate cube_name.mdc [destination_location] [destination_location]

If you type a path in the cube_name.mdc parameter, it is ignored.

Note:You cannot run the pcactivate executable, pcactivate.exe, outside the bin directory.

Steps
  1. Copy the Transformer cube to the production environment.

    The name of the destination directory must be the same as the Transformer cube name. For example, if the cube is named cube_name.mdc, the destination directory must be named cube_name.

    The location of the destination directory must be the same as where the cube is found when opened by IBM Cognos 8. For example, if the data source definition for the PowerCube in Content Manager indicates that the cube is found at d:\Cubes\Product.mdc, then the destination directory must be d:\Cubes\Product.

  2. Open the Pcativate utility.

    The pcactivate.exe file is located in the installation_location\cognos\c8\bin folder.

  3. At the command line prompt, type the following:

    pcactivate cube_name.mdccube location

    For example, type

    pcactivate product.mdc c:\cubes\product

Update Data Source Connection Information

You can update the data source connection information, with little to no impact on your IBM Cognos 8 users, using the IBM Cognos 8 PowerCube Connection Utility. When data source connection strings are changed, reports that reference the updated data source connection continue to run and end users begin seeing new cube data.

You can run the IBM Cognos 8 PowerCube Connection Utility to update PowerCube data source connections interactively, or as part of a batch script. Use the utility with cubes supported in IBM Cognos 8 version 8.3: IBM Cognos Series 7 and IBM Cognos 8 cubes, and on any platform supported by IBM Cognos 8 version 8.3.

Before you use the IBM Cognos 8 PowerCube Connection Utility to update published cube connections, ensure that your published PowerCube data source appears in the Administration tool.

Tip: When you use the IBM Cognos 8 PowerCube Connection Utility, you must press the Enter key at each prompt, even those prompts for which you enter values.

Steps to Manually Update a Data Source Connection
  1. Open a command line window and go to the installation_location/c8/webapps/PCConn directory.

  2. At the command line, type PCConn to launch the IBM Cognos 8 PowerCube Connection Utility.

    Tip: To view a list of available IBM Cognos 8 PowerCube Connection Utility commands, at the command prompt, type help.

  3. To connect to a dispatcher, at the command prompt, type

    connect server:port

    where server and port represent the IBM Cognos 8 server and port number.

  4. To connect to multiple dispatchers, repeat step 3 for each dispatcher to which you want to connect.

    Tip: To view a list of dispatchers that you are currently connected to in the IBM Cognos 8 PowerCube Connection Utility, at the command prompt, type connections.

  5. If your IBM Cognos 8 environment is secured and you are prompted for your logon credentials, enter the following authentication information:

  6. If you want to review the current data source connection information, at the command prompt, type

    get data_source_name

    where data_source_name is the name of your PowerCube data source connection.

    The IBM Cognos 8 PowerCube Connection Utility returns the connection information for the data source, and allows you to see the connection string without opening the Administration tool.

  7. At the command prompt, type

    set data_source_name

    You are prompted to type the new Windows or UNIX/Linux path.

    Tips:

  8. Open IBM Cognos Connection, and go to the Administration tool.

  9. Click the Configuration tab and click the data source.

  10. Click the Set properties link.

  11. On the Connection tab, review the new Connection string for the data source.

Overwrite a Published PowerCube

You can also use the IBM Cognos 8 PowerCube Connection Utility to enable, disable, or view the current state of a data source. To update the data source by overwriting it, disable it first. Use this approach when your process for updating published PowerCubes includes a staging folder. When a data source is disabled, end users cannot use any package that references the data source. When users attempt to use a package that references a disabled data source, they receive an error indicating that the data source cannot be found.

If a data source is in use when you attempt to disable it, you will receive a file lock error. To avoid this situation, we recommend that when you disable a data source, you also stop the Report and Report Batch services. Stopping the Report and Report Batch services affects not only the data source that is disabled, but all the data sources in the IBM Cognos 8 configuration. As a result, use this approach only during periods when your end users will not require access to the data sources.

Tip: When you use the IBM Cognos 8 PowerCube Connection Utility, you must press the Enter key at each prompt, even those prompts for which you enter values.

Steps to Manually Disable a Data Source for Overwriting
  1. Open a command line window and go to the installation_location/c8/webapps/PCConn directory.

  2. At the command line, type PCConn to launch the IBM Cognos 8 PowerCube Connection Utility.

    Tip: To view a list of available IBM Cognos 8 PowerCube Connection Utility commands, at the command prompt, type help, and press Enter.

  3. To connect to a dispatcher, at the command prompt, type

    connect server:port

    where server and port represent the IBM Cognos 8 server and port number.

  4. To connect to multiple dispatchers, repeat step 3 for each dispatcher to which you want to connect.

    Tip: To view a list of dispatchers that you are currently connected to in the IBM Cognos 8 PowerCube Connection Utility, at the command prompt, type connections.

  5. If your IBM Cognos 8 environment is secured and you are prompted for your logon credentials, enter the following authentication information:

  6. At the command prompt, type

    disable data_source_name

    Tip: To confirm that the PowerCube is disabled, at the command prompt, type

    state data_source_name.

  7. To stop the Report and Report Batch services, at the command prompt, type

    stop reportService, batchReportService.

  8. In your server environment, overwrite the PowerCube with the updated version.

  9. To restart the Report and Batch Report services, at the command prompt, type

    start reportService, batchReportService.

  10. At the command prompt, type

    enable data_source_name

Using Automated Processes to Update PowerCube Connection Information

You can automate the process of rebuilding and updating your published cubes with the IBM Cognos 8 PowerCube Connection Utility using batch processes and scripts. PowerCube update scripts can be combined with your cube build scripts, as well as with any ELT (extract, load, and transform) batch processes that you might have in place.

In large production environments, you may want to build PowerCubes on a server running Transformer that is separate from the server where the cubes are deployed. This allows you to optimize system resources for your cube builds and for your consumers, without the two environments competing for resources.

You can use commands in a text file to carry out the cube update process, and combine those commands with your Transformer cube building scripts to produce a fully automated cube build and update process.

The IBM Cognos 8 PowerCube Connection Utility takes commands from a text file using the -f command:

% PCConn -f commands.txt

Unless you add the -q command, the utility prints to stdout:

% PCConn -q -f commands.txt

Batch Process Workflow

Using batch processes to update published cubes with the IBM Cognos 8 PowerCube Connection Utility involves the following workflow:

      

Build cubes on a separate server running Transformer using a staging folder.

      

Rename the cube.

One option when renaming the cube is to append a date to the end of the cube name.

      

Use FTP to transfer the cube to the IBM Cognos 8 server location referenced by the data source connection.

If you choose not to rename the cube as part of the batch process, consider deploying the cubes to folders named to allow for easy tracking.

      

Use the set command to change the connection to point to the updated published PowerCube.

The IBM Cognos 8 Web studios will immediately recognize the new data source connection information without any further action by the modeler or administrator. Reports that reference the updated data source connection continue to run and end users begin seeing the new cube data, for example, during

  • subsequent report runs

  • active sessions during drill up/down or page up/down actions

Examples: Cube Update Script

Here are examples of a script using the set command. In these examples, the cube was already updated in Transformer.

Example - Allow Anonymous Access Set to True
connect <servername>:9300 
logon -ns <namespace_ID> -uid <user_ID> -pwd <password> 
set <data_source_name> 
C:\cube_name1.mdc
exit

The empty return in the script indicates that there is no UNIX/Linux deployment path for the cube.

Example - Allow Anonymous Access Set to False
connect <servername>:9300
-ns <namespace_ID> -uid <user_ID> -pwd <password>
set <data_source_name>
C:\cube_name1.mdc
exit

The empty return in the script indicates that there is no UNIX/Linux deployment path for the cube.