Thursday, 26 January 2017

How to auto refresh IBM Dynamic Cube

> Open DOS command and go to Cognos Installation directory (....\bin64) and run following command. User who run this command should have appropriate right to connect cognos portal.

Note:

  • Namespace name should be as it is in Cognos (upper case/ lower case)
  • [server name ] should be the name Dynamic cube been published. For example if the cube was published in a multi-server environment and server 2 was used, then [Server name] should that server name 2

Here is an example how to refresh member cache

dcadmin.bat -p 9300 -s CognosServer2 -x c:\test.txt -l "NamespaceName,user_name,****!" refreshCubeMemberCache cube0


For more details, see below:- 

You open the DCAdmin command line tool from the c10_installation\bin folder (for 32 bit installations) or bin64 folder (for 64 bit installations) as follows:
  • dcadmin.bat (Windows)
  • dcadmin.sh (Unix)
You can run the following commands using the DCAdmin command line tool. 


You can configure pauseCubes and incrementallyLoadCubes commands as dynamic cube operations for the query service (i.e., Query Service Administration Task) using IBM Cognos Administration. This allows you to run these commands by schedule or by trigger. 
Syntax
dcadmin[.bat|.sh] [-p port] [-s server] [-x output_file] [-l "namespace,userid,password"] [-arg argName argValue] command [cube0 cube1 ...]

Note that any parameter containing a comma or a space must be included in double quotation marks. For example: "param1,param2"
When you run the DCAdmin command line tool, the output script is shown on screen. You can also save the output to xml file for parsing by specifying -x output_file.
When a command is complete, the output script returns an exit code 0 if the command was successful. If there was an error, it returns an exit code 1.

No comments:

Post a Comment