Sunday, February 24, 2013

Cognos single signon

How to configure Cognos to use single sign on (Other prerequisites are missing like adding namespace linked to AD and installing Gateway on IIS ):


I was asked to make Cognos security use the user credential from windows without need to retype it which known as single signon, First I thought it was was not applicable till I found so I will share it with you may it be useful. 

It was so simple:
1- Open Cognos configuration.
2- Go to Security -> Authentication
3- Select the configuration resource you use (If you already created security configuration to use active    directory for example, if you didn't yet I will cover it later)
4- From top right window select Advanced options from the table and press the button for edit.
5- Press Add then in name write: singleSignOnOption and under value write: IdentityMapping
6- Press Ok, restart the service and congratulations :)

Tuesday, December 6, 2011

Cognos Planning: Model Design consideration

Model Design consideration

While working with Cognos Planning I have the error : "Out of memory" too many times and learned some tips and knowledge from handling these errors. But still server spec. and resources are very important to study before implement your model and GTP. Following is some considerations I learned while working with Planning:
(I will update this article as can as possible)

1. D-List and D-Cube in Analyst sizing and tips:

  • Use only one item in the E-List in Analyst
  • If the cube size is to big (more than 2.5 million cells) open a selection with smaller size to view the cube from because Analyst has limitation in memory usage.
  • Divide and conquer: Divide the D-Cube to more smaller D-Cube and create a top level summary one with D-Links among them
  • Arrange the D-Cube dimensions as following: 1- Calculation dimension(measure dimension), 2- E-List dimension, 3- D-Lists with aggregations rather than "Versions" D-List, 4- "Versions" D-List, 5- Time scale D-List.
  • If your dimensions are list of items with one simple sum (A, B, C,...,Z, Total=[A+B+...+Z]) add one new item with simple calculation (Total A = +A) and exclude it from the application later with access table. This approach reduce memory usage by a factor more than 10.
  • Don't use Analyst to Contributor D-Link if you have big cubes, You can use Administration link from CAC 
  That is enough for today I will work in this later.   

Cognos and Arabic support

Cognos and Arabic Support

I was work with a new project that has Arabic data. The server work with windows server 2003, Cognos was installed but the windows wasn't configured to support Arabic. After adding Arabic to windows, Cognos give me error and still can't present Arabic in Planning Anlayst or in CAC and in Cognos connection goes worth because the Home link and Content were not working giving me blank pages. You may use any other Application to open the package and it will open and Arabic will appear.

After searching and trials I found that you must install Arabic in windows before Cognos installation









Sunday, June 26, 2011

Contributor Administration Error "could not load the XML into the DOM"

This error may ocure after installing Cognos planning if you use SQL server as a content store.

Error Message:

    could not load the XML into the DOM. Reason : -1072896681 Invalid xml declaration
    at character 3 on line 32

Reason:

    Probably the content store has a conflict configuration. In this case it was collation conflict

Solution: 
  1. Stop cognos services
  2. Delete the content store databse and create it with collation:
  3.         SQL_Latin1_General_CP1_CI_AS
  4. Open "C:\Program Files\ibm\cognos\c10\bin\FileSys.ini"
  5. Delete the line strats with InstanceLock and save the file
  6. Start cognos services
  7. Open cognos contributor administration and test.
 
Finnally when use SQL server as a content store DB follow the following: 
  1. Collation must be insenstive 
  2. Collation must use UTF 8 or UTF 16 for encoding 
 

Wednesday, June 1, 2011

MS SQL Reduce the transaction log size


Do you have a big database ?
Your transactions is very slow?

When the transaction logs become too large. Full transaction logs can make your Microsoft SQL Server database unusable.Since the speed of transactions are limited with the speed of writing in the log file, you have to manage log file space and grownig.

Reduce the transaction log size

To recover from a situation where the transaction logs are full, you must reduce the size of the transaction logs. To do this, you must truncate the inactive transactions in your transaction log and shrink the transaction log file.
Note The transaction logs are very important to maintain the transactional integrity of the database. Therefore, you must not delete the transaction log files even after you make a backup of your database and the transaction logs.

Truncate the inactive transactions in your transaction log

When the transaction logs are full, you must immediately back up your transaction log file. While the backup of your transaction log files is created, SQL Server automatically truncates the inactive part of the transaction log. The inactive part of the transaction log file contains the completed transactions, and therefore, the transaction log file is no longer used by SQL Server during the recovery process. SQL Server reuses this truncated, inactive space in the transaction log instead of permitting the transaction log to continue to grow and to use more space.

Important After you manually truncate the transaction log files, you must create a full database backup before you create a transaction log backup.

For steps to backup your database transaction log review the following:
How to backup transaction log

Shrink the transaction log file

The backup operation or the Truncate method does not reduce the log file size. To reduce the size of the transaction log file, you must shrink the transaction log file. To shrink a transaction log file to the requested size and to remove the unused pages, you must use the DBCC SHRINKFILE operation. The DBCC SHRINKFILE Transact-SQL statement can only shrink the inactive part inside the log file.

Note The DBCC SHRINKFILE Transact-SQL statement cannot truncate the log and shrink the used space inside the log file on its own.

For steps to shrink your database transaction log review the following:
(can be used on log files and data files)
How to shrink the transaction log file

Examples:

1- Shrinking a data file to a specified target size
The following example shrinks the size of a data file named DataFile1 in the UserDB user database to 7 MB.
USE UserDB;
GO
DBCC SHRINKFILE (DataFile1, 7);
GO
2- Shrinking a log file to a specified target size
The following example shrinks the log file in the AdventureWorks2008R2 database to 1 MB. To allow the DBCC SHRINKFILE command to shrink the file, the file is first truncated by setting the database recovery model to SIMPLE.
USE AdventureWorks2008R2;
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE AdventureWorks2008R2
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (AdventureWorks2008R2_Log, 1);
GO
-- Reset the database recovery model.
ALTER DATABASE AdventureWorks2008R2
SET RECOVERY FULL;
GO
3- Truncating a data file
The following example truncates the primary data file in the AdventureWorks2008R2 database. The sys.database_files catalog view is queried to obtain the file_id of the data file.
USE AdventureWorks2008R2;
GO
SELECT file_id, name
FROM sys.database_files;
GO
DBCC SHRINKFILE (1, TRUNCATEONLY);

Now you can continue work with your Database.


 

Cognos Planning Modeling

Take Care with Modeling!

Cognos modeling is really an art not only science. It remembers me of writing peoms.
Modeler will think too much in things that others don't see and finally they shouldn't see it.

For now I see cognos planning as OLAP with capability to populate data after design and other planning features BUT it has limitations in hierarchy representation of data, number of dimensions and cube cell count.

I belive in "Chunk the application up into components and modules"
And I still learning the sense of modeling by reading and try and error .  

Sunday, May 15, 2011

Cognos Planning Analyst and Hierarchy Data

I am a new COGNOS developer and in my first project on cognos planning, we was designing a model for a company with 5 level hierarchy in products data. I faced the ploblem of representing them in the same hierarchry. Such that planner can drill down and up throw them. 

Hierarchy Data
In any bussines application you will find a Hierarchy Data. And it is so easy now to represent in database with to many ways. what about cognos planning ?

Cognos Anlayst: Designing Model
In cognos analyst you build the data model used in planning so you have to represent Hierarchy Data in way that you can keep track of the relation between them.
Assume the following example:
company has products in 3 level hierarchy: product no., size, category
if you create one D-list for each level, and insert them in sales D-cube you will have the cartesian product of them which is wrong since every category has special products.

Solution:
      You may know how to import all of them in one D-list and the hierarchy will be represented as subtotals (while import define parent relations, you can define up to 9 levels). then make the D-cube with products D-list.
now you want to enable drill down on the hierarchy. you will need to create a dimention for each hierarchy with upper level data, for example:
cat1 has s1 size and p1,p2 products
cat2 has s2 size and p3,p4 products
create D-list for products with size and category, another one for size and contains category and category D-list  
simply build a D-cube for each hierarchy. (replace products with the other dimention like category and save as new D-cube)
then create D-links between the products sales D-cube and other D-cubes from bottom up to allow drill down then if your plan model use up down schema create the corresponding D-links.
This will work fine but take not from redundancy even in different level of hierarchy

Thanks for your reading, and feel free to contact me for details or suggestion.

Muhammad Eissa,