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.

Login to Informatica Admin Console

This Article shows you how to login into Informatica Admin Console once the Informatica server is installed.

Before this we have installed the informatica server on our machine.

Step 1:

Goto start menu and search for "Informatica Administrator Home Page" 

Step 2:

Once the page is opened the home page will look like as shown below. Provide the username and password that you have set at the time of installation and click on Login.

Step 3:

Once you login by default it will open the domain overview screen which will show status of all the services created. In this i have only one Repository Service.

From the above screen, you can create the required services like Repository service, Integration Service etc... And also do all kind of admin activities.


How to Create Repository Service
:

Follow the below youtube link to see how to create a Respository Service. 

Tuesday 16 August 2016

Informatica PowerCenter Domain Status Checking

There are multiple ways to check the Domain Status.
  1. From Command prompt:
    1. Run the below command in UNIX/LINUX
      1. $INFA_HOME/isp/bin/infacmd.sh isp ping -dn <Domain_name>
    2. Run the below command in Windows
      1. change the directory to $INFA_HOME/isp/bin/. If the PATH variables are set to $INFA_HOME/server/bin you can run this command from any where.
        1. infacmd.bat/sh ping -dn <Domain_name>
        2. to check the admin console service status run the below command.  infacmd.bat/sh ping -dn <Domain_name> -sn _Admin_Console
  1. From database:
    1. Connect to Domain database.
    2. Run the sql query : select * from ISP_MASTER_ELECTION; -- this will return you a record with the host and post details.
  2. From Browser:
    1. Open the admin console URL. if the URL is opening then the domain is running.