Wednesday, July 29, 2015

Creating Application profile for HFM application

1.      Application profile introduction

Application profile is like base of application in Hyperion Financial Management.
Before creating any application, we need to create application profile file (.per) and then we can use this file to create any number of applications.
Following 4 dimensions are defined in Application profile. We can not change these dimensions further for application.
·         Period
·         Year
·         View
·         Custom

Application profile can be created only through desktop HFM client in all versions.

In v11.1.2.3, Desktop HFM client has only one functionality of creating application profile and managing metadata. All other functions like creating application, loading data, metadata etc are performed through web client.

2.      Profile creation

Open desktop HFM client and login using credentials.

 From left side menu à Application à Define application profile

 Create a New Application Profile

On the second screen, specify languages used in application. We are using English language in our application.


On the third screen, specify Period and Year dimensions.

On the fourth screen, frequencies of periods are mentioned.

On the fifth screen, our selection for dimensions View, Year, Peroid is displayed.
On the last screen, profile is saved at required location.

This profile file is saved and used while creating HFM application.
Same profile file can be used to create any number of HFM applications.

Tuesday, January 13, 2015

Migrating artifacts using Hyperion LCM

1.      Overview

Lifecycle Mangement: Lifecycle Management provides a consistent way to migrate an application, a repository, or individual artifacts across product environments and operating systems.We can migrate application artifacts using Shared Services Console or Lifecycle Management Utility.

Migrating Scenarios:

1. When the source and destination appicaltions are registered with the different instance of Shared Services, i.e. when source and destination servers are on different environments,ex: you are migrating applications from Dev to Test, Test to Prod etc.

2. When the source and destination applications are registered with the same instance of Shared Services, Ex: Copy an application within an environment.

2.      Artifacts


Application Artifacts by Module

Module
Artifacts
Shared Services
User and Group Provisioning 
Projects/Application Metadata
Essbase
Files (.csc, .rpt, .otl, .rul)
Data
Filters
Partitions
Index and Page files (drive letters)
Application and Database properties
Security
EAS/Business Rules
Rules
Locations
Sequences
Projects
Security
Hyperion Planning
Forms
Dimensions
Application Properties
Security
Hyperion Financial Management
Metadata
Data
Journals
Forms/Grids
Rules
Lists
Security
Financial Data Quality Management
Maps
Security
Data
Metadata
Scripts
Security
Reporting and Analysis (Workspace)
Reports
Files
Database Connections
Security


3.      Procedure

Lets Migrate the App1 Planning Application from one environment to other: 

3.1.     Select source application and artifacts to be migrated

Log into Shared services, under Application Groups select the application which you want to migrate, once done select the artifacts,

 When you click on define migration it will take you to the migration wizard, Confirm source application to be migrated.

3.2.     Migrate source artifacts to Source File system

Because I want to migrate my application to a different environment I need to take a file system back up of the App1 Application, there is no need to give the location, it will automatically be stored at the pre defined location(we can set this location as well, more in detail later). The default location is: Oracle\Middleware\user_projects\epmsystem1\import_export\<userName>@Native Directory\


 You can save the migration definition file for future use, and click on Define Migration,
 You can click on Launch Migration Status Report to check the status of the migration, it will take you to the following window,
 Migration will take some time and this time depends on the size of the application, you can click on the refresh button to refresh the status of migration. After you see the completed status you can find the file system back up under the File System Folder under Application Group Management,
  If you want to have a look at the folder which is created you can check at location specified above, if you are on distributed environment you will find this folder on the Foundation Services' Server

3.3.     Migrate artifacts from source file system to Target file system

Now lets create a folder and copy the file system backup to destination server at the same location, now if we login to shared services again we will find this folder under File System,.
as per our example: Oracle\Middleware\user_projects\epmsystem1\import_export\admin@Native Directory\DevBkup09092011_11_28AM\

3.4.     Migrate artifacts from Destination File System to Destination environment.

Now we need to perform an import on the destination server, this time select DevBackup0909201111_28AM under the file system, and select all artifacts, 
 Now in Migration Wizard this File System backup will be your source and TgtApp1 will be your target application. You need to be very careful when you choose source and destination otherwise this will screw other applications if you chosen anything wrong.
 Once done you can check Migration summary to ensure the complete migration.


Thursday, January 8, 2015

Hyperion Workspace and Shared Services URL without port numbers

When an application is accessible via a network it means that it is using a TCP/IP port. When a port is used by an application, it cannot be used by another one. Even during installation/deployment, we will get an error message stating that a particular port is being used by another application. Therefore, the skill to find out what port is being used by what application comes in very handy.

If you want to find out what is using a specific Port, you can open the COMMAND PROPMT and type in
netstat -aon findstr "6800"

Default port numbers of Hyperion EPM System:
Sr No Name of Service Default Port Number
1 Shared Services 28080
2 Workspace 19000
3 Planning 8300
4 Essbase 13080
5 Essbase Agent 1423
6 HFM 80
7 Weblogic 7001

Recently, I have installed and configured one server environment for Hyperion EPM V11.1.2.1. Shared Services and Workspace URL's were accessible using following two URL's 
http://MyServer:19000/workspace/index.jsp
http://MyServer:28080/interop/index.jsp

But, as per the client's requirement, port numbers were not required while accessing final URL's of Hyperion EPM system.

It is possible if we change default port of accessing URL's to 80. To implement the same, complete following steps:
1- Stop all Oracle/Hyperion services
2- Launch EPM System Configurator
3- Choose to modify existing EPM Oracle Instance
4- On configuration tab, uncheck all actions and only check "configure web server" option found below Hyperion Foundation
5- Choose your web server and specify the new port
6- Keep other selections as defaults and press next
7- Continue until your configuration is completed then press finish
8- Start all Oracle/Hyperion services

Now, my URL's are accessible using following URL's
http://MyServer/workspace/index.jsp
http://MyServer/interop/index.jsp


Monday, December 15, 2014

De fragmentation of Essbase Cube

Overview of Fragmentation in Essbase

Fragmentation is typically unused disk space.
In Essbase, fragmentation occurs when blocks are "re-written" within the database. Not all "re-writes" to a cube will cause fragmentation. Listed below are some behaviors that can cause Essbase fragmentation.
Fragmentation cannot be reduced completely. Fragmentation is likely to occur with the following:

·         Frequent data load in cube
·         Frequent retrieval
·         Frequent Calculation of Cube

Defragmentation overview

Defragmentation is nothing but removing fragmentation i.e. optimizing unused space.

E.g. We can’t store more than 10kb file in to fragmentized space, because no 10kb free block is available in the fragmentized disk. After defragmentation we have enough space to store then 10kb file size.

Measuring Fragmentation

Fragmentation is measured by
·         Average Fragmentation Quotient
·         Average Clustering Ratio


We have taken measurement of average Fragmentation quotient and average clustering ratio in our Test environment on 13th Dec 2014 as given below
 The optimum clustering ratio value is 1. If average clustering ratio is less than 1, then the cube is fragmented which affects performance and needs to be defragmented.

For fragmentation quotient,  Any quotient above the high end of the range indicates that reducing fragmentation may help
 The above screenshot is taken from my current project - Test Environment.
In Test, we have copied Production application on 13th Dec 2014, so it is right now de-fragmented and showing good values of clustering ratio and fragmentation quotient.

Defragmentation steps

Measure Clustering ratio and Fragmentation Quotient

1.       Step 1 : Login to Essbase
Run -->  CMD --> ESSCMD
Enter Essbase server name as host
Enter proper username and password

2.       Step 2 : Select application and cube
SELECT APPNAME
Enter DB name --> DBNAME

3.       Step 3 : Get data base stats
GETDBSTATS
Check Average clustering ratio and Average Defragmentation Ratio as mentioned in above step.

Export Data – Level0

Export Level0 data from DBNAME cube and save it to “DBNAME_LEVEL0.txt” file

Clear All Data in DBNAME cube

Once data exported successfully, clear all data of database.

Load data from “DBNAME_LEVEL0.txt”

Now Application has blank Database, Right click on Database and select “Load Data”.
Click on “Find Data File” and browse data file then click ok
 Check if the data load to the cube is successful.

Restructure cube DBNAME

Measure Clustering ratio and Fragmentation Quotient

Repeat steps mentioned at the beginning for measuring clustering ratio and fragmentation quotient.

Wednesday, July 23, 2014

Invalid Records in HFM

Invalid Records

There are two types of invalid records in Oracle HFM.
  1. Invalid Metadata Members
  2. Invalid Intersections

Let us understand these records one by one.

1.     Invalid Metadata Members

These are members that existed at some point and were populated with data. Renaming or deleting these members orphans the data in the database.

E.g.  Suppose we have entity  called “FRANCE – 08980” in our HFM application SMBAPP.
When we create this entity , from HFM we can see Alias FRANCE and entity – 08980 either from HFM client, or webform or grid or smartview.
But behind HFM, in Oracle RDBMS, FRANCE is given an ID of 12 (Let’s assume) as it was 12th entity created. We can find the field when we look at the tables and locate the EntityID field. All the data loaded will be broken out by record and given an EntityID of 12
Suppose , we are not using this entity “FRANCE” anymore. When we delete the entity “FRANCE – 08980”, the only thing removed is the association between France and 10. The data records remain.

This is to make the speed of the metadata loads acceptable. Running all the possible validations could really slow the loads down. Over time, as metadata is changed, some of the existing records in the database will become invalid.

This type of invalid record can be deleted safely by using Delete Invalid Records.

2.     Invalid Intersections

This type is created when there was a relationship between the metadata members that was valid and is no longer. The members are still valid in the application, but the relationship where the data is populated is no longer valid.

Most commonly it is when there are changes to the CustomXTopMember relationship. This type of invalid data is not currently removed by any HFM functionality. The only way to resolve this issue is to rebuild the application.
Rebuilding the application as an option is not appealing. The best option is to be aware of this, and clear your data before you make the metadata changes.

We might wonder why Oracle did not put this validation of invalid records check during loading metadata.
 The reality is that validating every possible intersection is not reasonable. There is a big impact to metadata loading when the existing validations run.
We can see the impact when you try to load a file that has many errors or validation checks.
Because of this impact, one validation in particular is excluded when metadata is loaded into HFM. It is the validation to check for invalid records.

Oracle recommendation for deleting invalid records


It is recommended by Oracle that customers delete invalid records every couple of months, especially after significant changes to metadata. While doing this task is relatively safe for the database, if we have never done it, or it has been a while since you’ve done it, it can take a long time to complete. So be sure to do this during a down time for the application and never during the close.

Procedure to delete invalid records

1.       Open Hyerion Worksace
2.       Open the application from which to delete invalid records.
3.       Select Tasks -- > Data Management
4.       From the Manage Data page, expand Clear Invalid Records.
5.       Perform a task:
a.       Click Scan to scan for invalid records.
b.      Click Clear Invalid Records to clear the records.


Invalid records can also be deleted while copying application by selecting Advanced Options tab in copy utility.



Monday, July 21, 2014

Oracle Hyerion Financial Management Copy Utility

Oracle Hyerion Financial Management Copy Utility

The copy utility is useful when we need to copy a single application either entirely or just a portion between environments such as between Production and Test, QA or Development
Source Environment = Environment from which we want to copy application
Target Environment = Environment on which we want to copy application.

HFM Copy utility should be run either from HFM server either in Source Environment or in Target Environment.

In current project, I have downloaded HFM Application copy utility bundled with Hyperion EPM Suite V11.1.2.3.501 and I am using it with Hyperion EPM Suite V11.1.2.1 as recommended by Oracle.
The copy utility from a newer Financial Management release is backwards compatible to as far back as version 9.2. It is typically recommended to use the most current commercial release of the utility to take advantage of fixes and new features.

Create UDL

On the HFM server from which, we are going to run copy utility function, we need to create two UDL files.
1.       Source UDL file – To establish connection with DB used in Source environment.
2.       Target UDL file – To establish connection with DB used in Target environment.
These UDL files should use DB schema specified for HFM in environment.

Source UDL


On the HFM server , create a new test document.


 Save the text document as “Source.udl”

So, we will be able to see Source UDL file as shown below.

Target UDL file

Repeat the same process as mentioned for Source UDL for “Target.udl”

Running Copy Utility

The Financial Management Application Copy Utility is installed on the Financial Management Application server by default.
Location = EPM_ORACLE_HOME \Products\ FinancialManagement \Utilities
Filename on 32-bit = HfmCopyApplication.exe
Filename on 64-bit = HfmCopyApplication_x64.exe

From the above location, run copy utility as an administrator
 Starting with 11.1.2.2.302, you now have the option to copy an application or to rename the application in-place. Note that the renamed application must be registered to Shared Services, just like a copied application, before it can be accessed.

Source Database Connection

Starting with 11.1.2.2.302, you have 3 options to connect to the data source:
·         Use Pre-configured HFM database connection: The utility reads the HFM database connection details from HIT for the Source connection. This option is available only when HIT configuration has been detected.
·         Use UDL File: Select the >> button to navigate to the proper UDL file for the Source environment. UDL must be manually created.
·         Enter Connection Information: UI allows you to manually enter connection details.



Source Application


The list of applications is retrieved from the Hsx_DataSources table in the Source environment.

Target Database Connection

Starting with 11.1.2.2.302, you have 3 options to connect to the data source:
·         Use Pre-configured HFM database connection: The utility reads the HFM database connection details from HIT for the Source connection. This option is available only when HIT configuration has been detected.
·         Use UDL File: Select the >> button to navigate to the proper UDL file for the Source environment. UDL must be manually created.
·         Enter Connection Information: UI allows you to manually enter connection details. 

Target Application

For the Target destination, the utility will read the Windows registry and populate the drop down with the names of applications that were previously copied. If this is the first time running the utility then it will show only the Source application name. The registry key read is user specific, HKEY_CURRENT_USER\Software\Hyperion Solutions\HfmCopyApplication\Settings or HKEY_CURRENT_USER\Software\Hyperion Solutions\HfmCopyApplication_x64\Settings,

and the values read to populate the drop down are DestApp00 – DestAppXX. You may select an existing application name from the drop down or manually type a new application name. The Target application name must adhere to the naming convention as covered in the Financial Management Administrators guide.

Advanced Options 

 Copy Application Data: This box is typically checked to generate an identical copy of the Source application. Clear this check box to create a “shell” application. Application metadata tables will be copied and populated while data tables are only created but are not populated.
Copy Audit data: This box can be cleared if Task and Data audit trails are not required to be maintained in the Target environment. Often the Task and Data audit tables are very large tables and should not be copied unless required.
Copy Cluster Settings: This check box should normally not be checked. This will copy the Financial Management Cluster related tables only if the Source environment has a cluster defined. Copying this information between Production and Test can cause cross over connections where Test environments connecting to a cluster actually connect to the Production application servers.
Overwrite existing Application (if it exists): In general always select “Drop All Application tables prior to copy”. It is possible for the Target application to have Scenario and Year data populated that the Source application does not have and not dropping these tables would introduce variances in the newly copied application compared to the Source application. The circumstances in which “Only drop tables that are being copied” would be a valid option would be rare.
*Note that the HFM_Errorlog table is not copied by this utility regardless of the options selected.

Advanced Options

The Advanced Options dialog is broken up in to three pages. It would typically not be required to make any changes to any selections on these tabs unless directed by Support to address a specific situation.
 Use Client-Side Cursors: This option will bring all row data to the client from the RDBMS server. The server will cache no data. All caching will occur on the client, meaning the client will require more memory and the server will require less memory. Reduce the number of threads to 2 x Number of CPUs if this option is selected. Use this option if Server-Side cursors fail.
Use Server-Side Cursors: This option will run faster and require less memory on the client. The data set will be cached on the server (requiring more resources on the server). This is the default option.
SQL Binding: This option specifies how the SQL statement is executed on the server. The default is to use SQL binding. Change this option to not use SQL binding if excessive errors occur or “Multi-Step OLE DB Errors” occur. It is best to leave this option on and then restart any failed processes with this option disabled (if the error is a “Multi-Step…” error).
Thread Usage: This option allows the user to specify the number of processing threads. The minimum is one and the maximum is twenty. This option basically controls how many current tables are being processed and has an impact on the amount of network traffic and the load placed on Source and Target RDBMS servers.
Log SQL Errors: This option specifies whether to output every SQL error to the log file. Please note, some errors are expected. You may see errors for the attempt to drop tables that do not exist or the defaulting of sequence values. This is acceptable. Do not use the presence of SQL errors in the log to gauge whether the processing succeeded. This option is not checked by default to reduce confusion when reviewing the log.
Number of Task retries: This option specifies the number of times a query should be re-executed in the event of a failure. This is to resolve possible deadlock issues when inserting data in the database.

Data Options

The Data Options tab allows you to control what data is actually copied. The Copy Application Data check box must be checked on the Options screen before any data will be copied. The screen shot below shows non-default selections where the utility would only copy data in years 2006 and 2007 for the Actual Scenario:

Year Options
Limit Data to one or more Years: Select this option when you need to copy a subset of historical data. Be careful to consider the impact Rules may have when previous Year data is not copied.
Scenario Options
Limit data to one or more Scenarios: Select this option to copy only a subset of the overall application. Be care to consider the impact Rules may have when Scenarios are not copied
Data Options
Do not export Numeric Data: When this option is selected the numeric data is not copied but cell text and line item detail information is copied.
Do not export User data (grids, forms, reports, etc): This is information maintained in the USERPARAMS.
Invalid Records Options
Note the warning that these options will impact performance and require more database sort area. The utility does a join on the DCN and DCE tables with the metadata ITEM tables.
Filter invalid Calc Status Records: Invalid Calc status records are the result of Meta Data changes. This option selects only the rows for which the entity and value exist in the database.
Filter invalid Data Records: Invalid Data status records are the result of Meta Data changes. This option selects only the rows where the entity, account, ICP, custom1-4 exist.
Filter Zero value data records: Zeros in the application can impact application performance. The utility does not copy rows found to have zeros for all periods.

DataBase Options


The Database Options tab allows for control over where the data is stored in the database. Multiple tablespaces can be configured based on database table types.

Data Table: consist of all Scenario/Year tables (DCN, DCE, CSN, CSE, LID, TXT, RTD, etc). These tables are generally written to and read from quite frequently. They generally have large amounts of relatively small rows.
Metadata Tables: consist of all of the metadata based tables (DESC, LAYOUT, HEADER, ITEM). These tables are read from and written to fairly infrequently. They have small numbers of small rows.
System Tables: are read from rather frequently (HSV, HSX, HFM). Excluding the HFM_ERRORLOG table (which is not read or written to by the Copy App utility) these tables have small row counts.
Audit Tables: generally have large numbers of rows of medium sized data. They are written to rather frequently and read from infrequently.
BLOB Tables: (the current option shows LOB tables but will be changed to read BLOB in the next release) have BLOB columns that are broken up to 2Kb chunks. These tables are read from more frequently than written to.
Data Tablespace: Allows you to control where data objects are created by copy utility. Change from <Default> is only needed in environments where DBA wants to separate data and index objects. Note that the HFM application server(s) should also be configure to use the same tablespace options so new tables are created in the expected location.
When the Target database is MS SQL Server, you will see all File groups configured for the specific database configured in the Target UDL. When the Target database is Oracle, you will see a list of all tablespaces that the user has quota to create objects.
Index Tablespace: Allows you to control where index objects are created by copy utility. Change from <Default> is only needed in environments where DBA wants to separate data and index objects. Note that the HFM application server(s) should also be configured to use the same tablespace options so new indexes are created in the expected location. When the Target database is MS SQL Server, you will see all File groups configured for the specific database configured in the Target UDL. When the Target database is Oracle, you will see a list of all tablespaces that the user has quota to create objects.

Confirmation Screen


This screen allows you to verify all settings before selecting “Next” to start the copy process.

Copying 

 The processing status screen displays the current status of each task. To see the log entries for any given task at any time during processing, simply double-click on the task row to display the Task Entry Log screen.
Note that when the Source and Target are the same database and the same schema (user) the utility does not process each table row by row, instead an INSERT INTO…SELECT FROM statement is used. As a result of this, the utility will not display a row count showing the number of rows that have been processed but the log still will show the number of rows copied.

Task Entry Log Screen

Completed Tasks


Failed Tasks

 To see the log entries for any task, running or completed, double click on the entry in the Task Status window. If the Display SQL Errors option has been selected, the error generated by the RDBMS will also be displayed in the log.
If the Task Entry Log screen is displayed after all processing has completed, you will have the option of restarting the task.

Restart Task


Once all processing has completed, you can go to any task in the list, double-click on the entry and activate the Restart Task page. From this page you can change task options and select the Restart Task button. The task will then be re-executed with the new options (if any). The task entry in the Processing Status screen will be updated with current Task progress.

Finished Screen

 If all tables have successfully copied then select “OK” to see the Finish screen.
 From the Finished screen, you can review the log file.

Copy Utility Log

Log for copy utility is located at MIDDLEWARE_HOME\EPMSystem11R1\logs\hfm\HFMCopyAppCmdLog.logThe log is saved as HFMCopyApp-MMDDYYYYHHMMSS.log where MMDDYYYYHHMMSS is based on the Date and time the original file was created.

Sample log file appears as below

The next step in log is initialization.

One step in the initialization is the creation of 2 cache tables in the Source environment named HFMCAU_COLUMN_INFO and HFMCAU_INDEX_INFO. These 2 tables contain the table and index Data Definition Language (DDL) to use when creating the new tables in the Target environment. The cache tables are dropped when the copy utility successfully completes. An error in the initializing section related to these 2 cache tables usually either means the RDBMS user in the Source UDL file does not have the rights to create tables or that these 2 cache tables already exist but were created from an older version of the utility. DBA can check and drop these 2 tables if they are found to exist when the copy utility is not running. The information contained in these 2 tables allows the utility to create the Target tables faster as the DDL can be retrieved faster from the tables rather than generating the DDL one table at a time while the utility is running. If the cache tables are not able to be created for any reason the Target application can still be successfully copied.

Next is an example of an error caused when a newer version of the copy utility tries to update preexisting cache tables left over from a failed copy attempt started from an older utility version. Manually dropping these 2 tables prevents the error from happening the next time the utility is run:

The next portion in log file shows entries for one table are successfully copied.