Wednesday, 25 January 2017

Configure DataDirect ODBC on UNIX with PowerCenter


Do the following to install DataDirect ODBC drivers on UNIX:
  1. Install the Informatica Services which include the DataDirect ODBC drivers for UNIX.
  2. Set the ODBCHOME environment variable 
    > ODBCHOME=/opt/Informatica/9.6.1/ODBC7.1; export ODBCHOME
  3. Add the $ODBCHOME/bin directory to the PATH environment variable:
    Using a Bourne shell:
    $ PATH=${PATH}:$ODBCHOME/bin; export PATH
    Using a C shell:
    $ setenv PATH ${PATH}:$ODBCHOME/bin 
  4. Add the $ODBCHOME/lib to the library path variable.


  5. (OPTIONAL) Copy the odbc.ini file to the location where you would like this file to be used.
    Typically the Informatica home directory is used.
    cp $ODBCHOME/odbc.ini $HOME/.odbc.ini
  6. Set the ODBCINI environment variable to the location of the .odbc.ini (or odbc.ini) file: 
    $ ODBCINI=$HOME/.odbc.ini; export ODBCINI
    OR
    $ ODBCINI=$ODBCHOME/odbc.ini; export ODBCINI
  7. Edit the odbc.ini file (specified by the $ODBCINI environment variable) as follows:
    1. Set the InstallDir to the ODBC installation directory ($ODBCHOME).
  8. Re-Start the Informatica Node services.

Informatica Power centre “Java Heap Size” memory error issue


Error:

The following out of memory condition (found in the catalina.out) is an indication that the Java heap size needs to be increased:
Exception class: Exception class: java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
Caught an exception in one of the PCSF or PCSF base servlet threads. See below for the brief stack trace


Fix:
1. Login to the server with the user which is used for Informatica server.
2. Goto $INFA_HOME/tomcat/bin
3. Take backup of the file infaservice.sh
4. Change the below value Xmx512m to Xmx1024m or whatever the required number for variable INFA_JAVA_OPTS

"INFA_JAVA_OPTS="${INFA_JAVA_OPTS} -Xmx1024m"
While previously it was :
"INFA_JAVA_OPTS="${INFA_JAVA_OPTS} -Xmx512m".

Re-start the Node services.

Friday, 23 September 2016

How to unlock Informatica Administrator account

You may be thinking that can we UNLOCK superuser account (Administrator) in Informatica without having the current password. The answer is YES we can do it. How to do it?

1. Shutdown all the nodes and services including the Domain.
2. Run the below command to unlock. 

infasetup.sh/bat UnlockUser -un Administrator -np admin123

Full Syntax:
infasetup.sh/bat UnlockUser 
<-UserName|-un> user_name
[<-SecurityDomain|-sdn] security domain]
[<-NewPassword|-np] new_password]

3. Once it runs successfully, start the domain and try to login with new password admin123. 

Thursday, 15 September 2016

Migrating the Informatica Domain/Repository to Another Database

Migrating the Domain Configuration Repository to Another Database

1. Shut down all application services in the domain. 
2. Shut down the domain.
3. Back up the domain.

Run the infasetup BackupDomain command to back up the domain configuration to a binary file. By default,
infasetup installs in the server directory.
Use the following syntax:
infasetup.sh BackupDomain -da <database_hostname:database_port> -du <database_user_name> -dp <database_password> -dt <database_type> -ds <database_service_name> -bf <backup_file_name> -dn <domain_name>
4. Create a database schema and a user account in a supported database.

5. Restore the domain configuration backup to the database schema.
Run the infasetup RestoreDomain command to restore the domain configuration in the backup file to the specified database schema.
Use the following syntax:
infasetup.sh RestoreDomain -da <database_hostname:database_port> -du <database_user_name> -dp <database_password> -dt <database_type> -ds <database_service_name> -bf <backup_file_name>

6. Update the database connection information for each gateway node. (If both nodes are setup as gateway, you need to do this step for both nodes.)
Gateway nodes must have a connection to the domain configuration database to retrieve and update domain configuration. Run the infasetup UpdateGatewayNode command on each gateway node to update the database connection information for each gateway node.
Use the following syntax:
infasetup.sh UpdateGatewayNode -da <database_hostname:database_port> -du <database_user_name> –dp <database_password> -dt <database_type> -ds <database_service_name> -dn <domain_name>

7. Start all nodes in the domain. (Start the Informatica Service – infaservice.sh startup)
8. Enable all application services in the domain.


Migrating the PowerCenter Repository to Another Database


1. Back up the repository contents.
select the PowerCenter Repository Service in the Administrator tool, and then select Actions > Repository Contents > Back Up.
2. Disable the service.
3. Create a database schema and a user account in a supported database.
4. Update the database connection properties for the PowerCenter Repository Service, such as the database type, connect string, database user name, and database password.
5. Enable the service in exclusive mode.
6. Restore the repository backup to the database schema. select the PowerCenter Repository Service in the Administrator tool that manages the content that you want to restore, and then select Actions > Repository Contents > Restore.
7. Change the operating mode of the service to normal and restart the service.

Migrating the Data Analyzer Repository to Another Database


1. Back up the repository contents.
select the Reporting Service in the Administrator tool, and then select Actions > Repository Contents > Back Up.
2. Disable the service.
3. Create a database schema and a user account in a supported database.
4. Update the database connection properties for the Reporting Service, such as the database type, connect string, database user name, and database password.
5. Restore the repository backup to the database schema.
select the Reporting Service in the Administrator tool that manages the content that you want to restore, and then select Actions > Repository Contents > Restore.
6. Enable the service.

Monday, 22 August 2016

How to Create alias in windows and unix operating system

This article shows how to create a alias in both windows and Unix command prompt.

1. Windows:

1. Open the command prompt. ( Run -> type "cmd" and hit enter.

2. use the below command to create an alias.
            doskey <alias>=<command>

For ex : if i want to set alias sys to connect the database i use the below command.
* doskey sys=sqlplus system/oracle

Now if you type sys it will directly connect to the database by running the sqlplus command.


UNIX:
Now we will see how to create alias in Unix operating system.

1. Login to bash shell.

2. Below is the command used to create an alias in UNIX.

* alias <alias_name>=<command>

For ex : if i want to set l to run the command ls -lrt use the below command.

alias l="ls -lrt"

When you type l it will run the command you have set for this alias.

MBP:~ nirmalg$ alias l="ls -lrt"
MBP:~ nirmalg$ l
total 0
drwxr-xr-x+  4 user1  staff   128 Mar 29 16:37 Public
drwx------+  5 user1  staff   160 Apr  9 22:01 Pictures
drwxr-xr-x   6 user1  staff   192 Apr 24 06:57 Applications

MBP:~ nirmalg$ 


Saturday, 20 August 2016

Informatica Powercenter Repository Queries set-1

Overview:
The below SQL queries are given to Informatica Development or Administration teams to see the metadata from Power center repository database. Please suffix your schema name if required with the table names.

1: To get the source and target connection objects information
SELECT WF.SUBJECT_AREA AS FOLDER_NAME, WF.WORKFLOW_NAME AS WORKFLOW_NAME,
T.INSTANCE_NAME AS SESSION_NAME, T.TASK_TYPE_NAME,
C.CNX_NAME AS CONNECTION_NAME, V.CONNECTION_SUBTYPE, V.HOST_NAME,
V.USER_NAME, C.INSTANCE_NAME, C.READER_WRITER_TYPE,
C.SESS_EXTN_OBJECT_TYPE
FROM REP_TASK_INST T,
REP_SESS_WIDGET_CNXS C,
REP_WORKFLOWS WF,
V_IME_CONNECTION V
WHERE T.TASK_ID = C.SESSION_ID
AND WF.WORKFLOW_ID = T.WORKFLOW_ID
AND C.CNX_NAME = V.CONNECTION_NAME
--AND WF.SUBJECT_AREA = <FOLDER NAME>
2 : Check the master gateway node
select * from ISP_MASTER_ELECTION;
3: Check which Session has Target Table Truncate Option enabled:
select task_name,'Truncate Target Table' ATTR,
decode(attr_value,1,'Yes','No') Value
from OPB_EXTN_ATTR A, REP_ALL_TASKS B
where A.SESSION_ID=B.TASK_ID and attr_id=9
4: To Find the tracing levels of Powercenter Sessions:
select task_name,
decode (attr_value,
0,'None',
1,'Terse',
2,'Normal',
3,'Verbose Initialisation',
4,'Verbose Data','') Tracing_Level
from
REP_SESS_CONFIG_PARM A,
opb_task B
WHERE a.SESSION_ID=TSK.TASK_ID
and b.TASK_TYPE=68
and attr_id=204
and attr_type=6
5: Find all the Invalid workflows:
select subj_name, task_name
from opb_task a, opb_subject b
where task_type = 71
and is_valid = 0
and a.subj_id = b.subject_id
and UPPER(SUBJ_NAME) like UPPER('<FOLDER_NAME>')

6: List of Users and Groups having Folders Permissions:

SELECT b.subj_name folder_name, c.NAME "USER/GROUP NAME",
DECODE (a.user_type, 1, 'USER', 2, 'GROUP') TYPE,
CASE WHEN ((a.permissions - (a.user_id + 1)) IN (8, 16))THEN 'R--'
WHEN ((a.permissions - (a.user_id + 1)) IN (10, 20))THEN 'R-X'
WHEN ((a.permissions - (a.user_id + 1)) IN (12, 24))THEN 'RW-'
WHEN ((a.permissions - (a.user_id + 1)) IN (14, 28))THEN 'RWX'
ELSE 'NO PERMISSIONS'
END permissions,
CASE WHEN (a.user_id = b.owner_id and c.type = 1 ) THEN 'Y' ELSE 'N' END as Owner
FROM opb_object_access a, opb_subject b, opb_user_group c
WHERE a.object_type = 29
AND a.object_id = b.subj_id
AND a.user_id = c.ID
AND a.user_type = c.TYPE
order by 1,2,3

7: List of all Shared Folders:

SELECT SUBJ_NAME,SUBJ_DESC FROM OPB_SUBJECT WHERE IS_SHARED <>0 ORDER BY 1,2

8: List of all Repository Folders:

SELECT SUBJ_NAME,SUBJ_DESC FROM OPB_SUBJECT ORDER BY 1,2

9: List of Folder and their Owners with OS profiles:

SELECT SUBJ_NAME FOLDER_NAME, OS_USER OS_PROFILE, USER_NAME OWNER FROM OPB_SUBJECT A, REP_USERS B
WHERE A.OWNER_ID=B.USER_ID
ORDER BY 1

10: List of Workflows with NO Integration Service assigned:

SELECT SUBJECT_AREA as FOLDER_NAME, WORKFLOW_NAME, SERVER_NAME as INTEGRATION_SERVICE
FROM REP_WORKFLOWS
WHERE SERVER_NAME IS NULL



Informatica Powercenter Client Installation

This article shows you how install the Informatica power center client.

Pre-Requirements:

Unzip the downloaded file from the web. The client will come along with the same zip file in which you download the server package.

For more information how to download and install the informatica server refer the below link.

Informatica Powercenter server Installation

Below steps shows how to install the client.

Step 1:

Run the client installer as Administrator. Right click on install.bat and Run as Administrator.


Step 2:

Once the installer starts, below window will start. Select the option "Install or Upgrade Informatica" and click on Start button.

Step 3:

Select Informatica 961 Hotfix 4 Client option and click on Next.

Step 4:

The installation pre-requisites will be displayed. Verify and click on Next

Step 5:

Select all the client options and click on Next.

Step 6:

Select the directory ($INFA_HOME) where the client has to installed. You can select any folder where you have write access on any filesystem. Once done click on Next

Step 7:

Select the first option (Install Data Transformation Studio and a standalone copy of Eclipse) and clink on Next.

Step 8:

Review the settings and click on Install to proceed with the client installation.

Step 9:

The progress of the installation will be shown in the next window.

Step 10:

Once the above completed, it will show the Post installation summary and click on Done to complete the installation.

Once the installation is complete, you will be able to see the below client tools available in the start menu.





Thank you.