Monday, May 23, 2016

Informatica Interview questions

Informatica Interview questions 
1) How will you access a flat file which is not in Informatica server location?  
   A:- USING FTP  
 
2) Does informatica recognizes Excel data (Ext .XLS not .csv ) as flat file or Table and how can we fetch excel data?      
A: - As a table...we select data in excel and create range for that. and create odbc connection for that range and we import that range
We select the data in excel and create a NAME for that" that name is treated as Table by Informatica.
 
3) What is remote file name and what is its significance in flat file loading. 
A:- Remote file name: When we define a ftp connection for any flat file source we need to edit the FTP connection to add remote file name  otherwise session will be Invalid. Remote file name is like flat file name only. In the ftp connection also we need to mention Flatfile path and name.  
4) What is the easy way of debugging a flat file which have say 1000 records and problem is around 413 records.  
A: - Debugging 413 rows: In the session flat file properties (Advanced section) mention number of rows to skip as 412. So that when you run Debugger it reads from 413 rows.
   
5) Is look up active or passive and how? (From 9.1 onwards it is active!!!)  
A:-  In Informatica 9.1 Lookup is active because of property - "Lookup policy on multiple match", this can be chosen as first, last, any value or all values. So now we can configure the Lookup transformation to return all rows that match a lookup condition. Hence, a Lookup transformation is an active transformation when it can return more than one row for any given input row.
Guidelines for Returning Multiple Rows:

Follow the below guidelines when you configure the lookup transformation to return multiple rows:
·                     You can cache all the rows from the lookup source for cached lookups.
·                     You can customize the SQL Override for both cached and uncache lookup that return     multiple rows.
·                     You cannot use dynamic cache for Lookup transformation that returns multiple rows.
·                     You cannot return multiple rows from an unconnected Lookup transformation.
·                     You can configure multiple Lookup transformations to share a named cache if the Lookup transformations have matching caching lookup on multiple match policies.
·                     Lookup transformation that returns multiple rows cannot share a cache with a Lookup transformation that returns one matching row for each input row.

However this property is available only for connected lookup, unconnected lookups are still passive. 
 
6) I have created a reusable sequence generator can i demote it to Non- Reusable? What is the significance of CYCLE property in sequence generator...if i disabled that what is the problem?"  
A: - CYCLE:-
If disabled, the Integration Service stops the sequence at the configured end value. The Integration Service fails the session with overflow errors if it reaches the end value and still has rows to process.
 
7) We have 3 pipelines each one contains 10 rows out of which 3 rows from each of the pipelines have same values. Can we remove duplicates and load unique set using Union transformation? what is the process?  
Ans:- UNION:  Union transformation does not remove duplicate rows.
1) Yes, Union t/f does not remove duplicates,
To remove duplicate rows, you must add another transformation sorter but i can suggest A
Aggregator with group by (columns as per ur requirment )
 
2) Yes ,we cannot use sequence generator or update strategy transformation upstream for union transformation,The reason behind is :
 
We can not use Sequence generator before Union transformation because
 
union transformation used to combined two sets of same attributes data into one set. If you use Sequence transformation for two sets of data before Union then the output of union will give duplicate values and if you are trying load this attribute values in target as primary key it will reject data. 
 
Update Strategy:  Union transformation used to change row type. If any update Strategy transformation used before Union and any record flagged as Update or Reject, that record type may change in Union transformation.
 
8) How many ports can i make as rank and is it possible to fetch top 4th to 13 th ranked employees based on condition?  
A:-
RANK: We can only make one port as RANK and we can achieve only number of ranks from either top or bottom. Like top 5 or bottom 10 etc. If tha data has 100 rows we can’t achieve top 4th to 13 using single rank transformation. If we use two rank transformations ...first one top 13 and second one bottom 9 will suffice our requirement.
   
9) I have 3 rows in the Source field1 as A, B and C.I specified in the router 4 conditions Field1=A , Field1=A OR B ,Field1=A  OR C and Field1= B OR C. How many rows will be loaded in to target.      
A: - 7
 
Why need staging area database for DWH?
Answer:   Staging area needs to clean operational data before loading into data warehouse.
cleaning in the sense your merging data which comes from different source .

Linux Basic Commands

Linux Basic Commands

1. ls -l for listing the files as well as directories those are kept in
the particular working directory
Syntax
[root@sss root]#ls -l
2. ls -la same as 'ls -l'but by this command we can also see the hiden
files.
Syntax
[root@sss root]#ls -la
3. ls -li same as 'ls -la' but it will also shows us the inode number of
each and every file
Syntax
[root@sss root]#ls -li
4. ls by this command we can see only file name nothing else
Syntax
[root@sss root]#ls
5. clear it will clear the screen(short cut ctl+l)
Syntax
[root@sss root]#clear
6. exit to end a current session as well current terminal logging
Syntax
[root@sss root]exit
7. touch to create a new empty file
syntax
[root@sss root]#touch
8. cd to change the working/present directory
Syntax
[root@sss root]#cd /home/mango
where '/home/mango' is the desired directory to be change from
'/root'
9. cat to view the contents of a file and it is also used for creating a
new file with some contents
Syntax
[root@sss root]#cat <file name> to view file contents
[root@sss root]#cat > newfilename enter,then you can write something in
the file and then to save the file contents press clt+d then enter
10. mkdir to make a new directory
Syntax
[root@sss root]#mkdir newdirname
you can also create a directory at your desired path without
changing your present working directory
Syntax
[root@sss root]#mkdir /home/mango/newdirname
11. rm to remove a empty file
Syntax
[root@sss root]#rm filename
Page 1
Basic Commands
12. rmdir to remove a empty directory
Syntax
[root@sss root]#rmdir directoryname
13. rm [-i/-r/-f] to remove a directory with its subdirectories as well as its
files that is to remove a directory which already contains some files in it
Syntax
[root@sss root]#rm -i directory/filename
-i stands for interactively
-r stands for recursively
-f stands for forcefully
14. cp to copy something in a destination file or directory
Syntax
[root@sss root]#cp sourcepath destinationpath
example: [root@sss root]#cp /home/mango/webmin.rpm /root/abcd
in this example the webmin.rpm file will be copied in
/root/abcd directory
15. mv to move one file or directory from one place to another place, it
is also used for renaming a directory or file
Syntax
[root@sss root]#mv source destination
[root@sss root]#mv oldfilename newfilename [to change the file name]
16. man to view the mannual page of commands for syntax
Syntax
[root@sss root]#man commandname
17. info to view the information about any command
Syntax
[root@sss root]#mkdir info
18. --help to view the help doccuments of a command
Syntax
[root@sss root]#commandname --help
19 .dir to view the subdirectories and filesn under the directory
Syntax
[root@sss root]#dir
20. su - to become a super user
Syntax
[mango@sss mango]$su -
output wil be
[root@sss root#]
21. who by this command you can see the user name and their ip addresses
who have loged in on your server
Syntax
[root@sss root]#who
22. whoami this command shows your current logged in terminal user name
Syntax
[root@sss root]#whoami
23. who am i this command shows you the logged in terminal number and user
name and more detailed information
Page 2
Basic Commands
Syntax
[root@sss root]#who am i
24. pwd to view the present working directory
Syntax
[root@sss root]#pwd
25. rpm -ivh to intall a rpm package
Syntax
[root@sss root]#rpm -ivh packagename.rpm
rpm stands for 'redhat package manager'
-i stands for install
-v stands for verbose mode
-h stands for with hash sign(#)
26. rpm -q to querry about any rpm package
Syntax
[root@sss root]#rpm -q packagename
27. rpm -e to uninstall a rpm package
Syntax
[root@sss root]#rpm -e package
28. find / -name to find any file or directory in linux file system
Syntax
[root@sss root]#find / -name filename
29. su username to switch from one user to another users home directory
Syntax
[root@sss root]#su mango
output will be
[mango@sss root]#cd
[mango@sss mango]#
30. su - username to switch from one user to another user users home
directory directly
Syntax
[root@sss root]#su - mango
31. useradd to create a new user
Syntax
[root@sss root]#useradd username
32. passwd to give a password of a user
Syntax
[root@sss root]#passwd tarun
output will be
give a password for user tarun:(here you have to type a password for tarun user)
confirm password:(again type the same password)
33. userdel to remove a user from linux
Syntax
[root@sss root]#userdel tarun
Page 3
Basic Commands
34. groupadd to add a new group
Syntax
[root@sss root]#groupadd groupname
35. gruopdel to delete a group
Syntax
[root@sss root]#groupdel groupname
36. chown to change the ownership of a file or directory
Syntax
[root@sss root]#chown ownername filename
example:
[root@sss /]#ls -l
output
drwxrw-rw- 2 root root 4096 Mar 11 12:03 abcd
(permission) (own) (group own)(size) (name)
[root@sss root]#chown tarun /abcd
in this example /abcd directory owner will be change to tarun user
effect
[root@sss /]#ls -l
drwxrw-rw- 2 tarun root 4096 Mar 11 12:03 abcd
37. chgrp to change the group ownership of a file or directory
Syntax
[root@nettec root]#chgrp newgroupownername filename
example
[root@sss /]#ls -l
drwxrw-rw- 2 tarun root 4096 Mar 11 12:03 abcd
[root@sss root]#chgrp tarun /abcd
effect
[root@sss /]#ls -l
drwxrw-rw- 2 tarun tarun 4096 Mar 11 12:03 abcd
38. chmod to change the permission of a file or directory
drwxrw-rw- 2 root root 4096 Mar 11 12:03 abcd
(permission) (ownr) (grpownr) (size) (name) IN
OCTAL VALUE
d stands for directiry READ=4
r stands for read only permission WRITE=2
w stands for write only permission EXECUTE=1
x stands for execute only permission
drwxrw-rw- FIRST OCTET FOR DENOTING THE DIRECTORY OR FILE OR LINK FILE ETC.
SECOND THREE OCTET FOR USER OR OWNER PERMISSION (rwx OR 7 IN
OCTAL VALUE)
THIRD THREE OCTET FOR GROUP PERMISSION (rw- OR 6 IN OCTAL VALUE)
FORTH THREE OCTET FOR OTHERS PERMISSION (rw- OR 6 IN OCTAL VALUE)
SYNTAX
[root@sss root]#chmod value fileordirectoryname
example
[root@sss /]#ls -l
drwxrw-rw- 2 nidhi root 4096 Mar 11 12:03 abcd
[root@sss /]#chmod 402 /abcd
[root@sss /]#ls -l
drw-----w- 2 nidhi nidhi 4096 Mar 11 12:03 abcd