Thursday, March 10, 2016

Informatica 8.6.1 to 9.0.1 Hotfix2 Upgrade on Linux


Ø Upgrade Informatica 8.6.1 to 9.0.1Hotfix2 on Linux
Upgrade Informatica 8.6.1 to 9.0.1Hotfix2 on Linux
1.   Upgrade Process
The upgrade consists of the following phases:
Upgrading the domain and server files. To upgrade the domain and server files, run the Informatica server installer and select the upgrade option. The domain upgrade wizard installs the server files and configures the domain. If the domain has multiple nodes, you must upgrade on all the nodes.
Upgrading the application services. After you upgrade the domain and server files, log in to the Administrator tool and upgrade the application services. The service upgrade wizard provides a list of all application that must be upgraded. It upgrades the services based on the order required by the dependent objects.
Upgrading the Informatica client. To upgrade the Informatica client, run the Informatica client installer and select the upgrade option. If the client is installed on multiple machines, upgrade the client on all machines.
2.   Upgrade Tasks
To upgrade PowerCenter, complete the following tasks:
1. Complete the pre-upgrade tasks for the domain and server files to ensure that you can successfully run the installer.
2. Upgrade Informatica domain and server files. Use the server installer to upgrade Informatica domain and upgrade the server files on each node. If the domain contains multiple nodes, upgrade a gateway node before you upgrade the worker nodes. After you upgrade the first gateway node, verify that the upgrade was successful before you upgrade the other nodes in the domain.
3. Complete the pre-upgrade tasks for the application services(Repository service  and Integration service).
4. Upgrade the application services. After installation, log in to the Administrator tool and upgrade the application services.
5. Upgrade the PowerCenter Client. Use the client installer to upgrade the Informatica client.
6. Perform the post-upgrade tasks.
3.   Pre-Upgrade Tasks/Pre requisites for upgrade
1.     The following table describes the minimum system requirements for a domain with different node configurations
2.     Temporary Disk Space Requirements
The installer writes temporary files to the hard disk. When the installation completes, the installer deletes the temporary files and releases the disk space.When the installation completes, the installer deletes the temporary files and releases the disk space.
The following table describes the temporary disk space requirements during installation
3.    Set the open_cursors parameter to 1000
1. SQL> SHOW parameter open_cursor;
2.  
3. NAME                                 TYPE        VALUE
4. ------------------------------------ ----------- ------------------------------
5. open_cursors                         integer     300
6. SQL> ALTER system SET open_cursors=1000;
7.  
8. System altered.
9.  
10.   SQL>  ALTER system SET open_cursors=1000 SCOPE=BOTH;
11.    
12.   System altered.
13.    
14.   SQL> SHOW parameter open_cursors;
15.    
16.   NAME                                 TYPE        VALUE
17.   ------------------------------------ ----------- ------------------------------
18.   open_cursors                         integer     1000
 
NB: The above Operation can be performed only by SYS user
4.    Database user account:
Informatica Repository user and domain user must have CONNECT, RESOURCE, and CREATE VIEW privileges.
Since it is upgrade it will already have but if it is a fresh installation please use the below steps:

For Oracle, you must perform the following instruction:
CREATE USER POW_REP IDENTIFIED BY POW_REP 
DEFAULT tablespace users
TEMPORARY tablespace temp
quota unlimited ON users;
 
GRANT CONNECT, resource, CREATE VIEW TO POW_REP;
 
CREATE USER POW_DOM IDENTIFIED BY POW_DOM 
DEFAULT tablespace users
TEMPORARY tablespace temp
quota unlimited ON users;
 
GRANT CONNECT, resource, CREATE VIEW, SELECT ANY dictionary TO POW_DOM;

Verify that the port numbers are available on the machines where you install Informatica Services.
[root@di-obia-01 ~]# netstat -tulpn|grep 6005
The installer validates the port numbers that you specify to ensure that there will be no port conflicts in the domain.
Informatica service processes can use a large number of files. Set the Linux - File Descriptor (Open Files dictionary) limit per process to 3000 or higher.
In the file /etc/security/limits.conf, add this line:
# PowerCenter
powercenter    hard   nofile    3001
powercenter    soft   nofile    2500
And verify with the ulimit function logged as the powercenter system user account:
[powercenter@di-obia-01 ~]$ ulimit -Hn
3001
7.     Copy the installable  to a location in the box:
In order to give permission to the installable go to the location of installable and then:
chmod -R 744 /tmp/powercenter901/install.sh
8.    Setting up display:
su root
xhost +SI:localuser:oracle
9.     Installation directory and Permission
Create new directory to hold the new version of informatica .In my case I created a folder called Infa 9.In order to give the appropriate permissions give the following commands after making the new directory:
                               mkdir -p      /home/oracle/Infa9      //makes directory
 
chown -R oracle /home/oracle 
chown -R oracle /home/oracle/Infa9   //gives the ownership to the user called Oracle which is highlighted
chmod -R 775 /home/oracle
chmod -R 775 /home/oracle/Infa9
GRANT CONNECT, resource, CREATE VIEW, SELECT ANY dictionary TO POW_DOM1;
10.                             Change the permission of the file install.sh to execute
chmod -R 744 /tmp/powercenter901/install.sh
 
11.  Verify Environment Variables(Very very Important step)

Configure the environment variables to work with the Informatica installation. Incorrectly configured environment variables can cause the Informatica installation to fail.The installer appends file paths required by Informatica to the PATH environment variable. Verify that the length of the PATH environment variable does not exceed the system limits and that the variable does not contain double quotes.On UNIX/LINUX, create the environment variables with the system user account that you will use for installation. Log in with the account that you plan to use to install Informatica, and then create the environment variables.

a.     Locale Environment Variables
 
Use LANG and LC_ALL to set the UNIX code page for the installer.
Set the LANG and LC_ALL environment variables to the following values for the English language that you use:
Language    Value
English           C
After you install, update the locale setting to one that is compatible with the code page of the repository.
b.     JRE_HOME
 
If you install Informatica Services on a machine with 32-bit or 64-bit SUSE Linux or Linux EMT64 operating system, clear the JRE_HOME environment variable before you start the installation.
.
c.      Clear Environment Variables
 
Clear environment variables from previous Informatica versions before you upgrade.
Incorrectly configured environment variables can cause the domain or nodes to fail to start or can cause connection problems between Informatica clients and the domain.

Clear PATH statements

Verify that the existing environment variables do not contain earlier versions of Informatica in the PATH or library path environment variables and that the path does not contain double quotes.

Clear INFA_HOME

Designates the Informatica installation directory.

Clear INFA_DOMAINS_FILE

Designates the location of domains.infa on the machine where you install the Informatica server components or the Informatica clients.

In short my environment variables entries were as given below:
export INFA_JAVA_OPTS=-Xmx1024m
export INFA_HOME=/home/oracle/Infa9
export INFA_DOMA/home/oracle/Informatica/PowerCenter8.6.1/domains.infa
export INFA_DOMAINS_FILE=/home/oracle/Infa9/domains.infa
export INFA_CMD_STYLE=8

12.                              Back Up the Domain

Before you upgrade the domain, you must back up the domain.

Complete the following steps to back up the domain:

Run the infasetup BackupDomain command to back up the domain configuration repository to a file.

My example command:

[oracle@racinfaserver server]$ ./infasetup.sh backupdomain -da racinfaserver:1521 -du POW_DOM1 -dp POW_DOM1 -dt Oracle -ds

orcl.localdomain -bf domain_backup.xml -dn Domain_rac
[ICMD_10123] Successfully backed up domain [Domain_rac] to file [domain_backup.xml].

Back up the metadata configuration files to any directory accessible by the machines where you install Informatica.

13.   Back Up the Repository
 
To back up a PowerCenter repository, select the service in the Administration Console and on the Actions list select Backup Contents.A backup file with the extension .rep will be created.

14.  Shut Down the Domain

You must shut down the domain before you upgrade it.
To shut down the domain, stop the Informatica service process on each node in the domain.
You can stop the Informatica service process on each node by the following  methods:

To stop Informatica on UNIX, you use the infaservice command.

By default, the infaservice executable file is installed in the following directory:

/tomcat/bin

Enter the following command to stop the daemon:

./infaservice.sh  shutdown after navigating to the above mentioned path.

15.Ensure that the db and listener services are up
4.   Steps for Upgrade process :
1.       Upgrade Informatica Domain
After navigating to the install.sh file run it after ensuring proper GUI is setup in order to launch the universal installer.
 

a. On the first page opt Upgrade.
b. Click on Next ; then a couple of pages on prerequisite check will be coming
c. In one page it will prompt to enter the older installation location of Informatica and new to be installed location of informatica
d. After that step even though the domain has been shut down a prompt as given below will come:
Never mind and click ok J.
e. After the next summary screen click on install and after sometime the below screen appears.


f. The below screen enables you to select the port that you want to use.

2.       Upgrade Application Services
Before upgrading the services there are 2 pre-requisite steps:
1. Configure environment variables – Set INFA_DOMAINS_FILE and INFA_HOME to point ot the new installation
2. Clear your browser cache
To upgrade the servcies use the Informatica Administration console. The new URL to access the console is:
http://:8002/administrator
In the top right corner is a ‘Manage’ menu. Use this to access the Upgrade Wizard:

This will prompt for the service to upgrade. You need to select your Repository Service here and then supply the username and password for the Repository. This will then upgrade the service:

After the upgrade the repository will be in Exclusive mode – this needs resetting to Normal mode. You will also need to restart the Integration
Service as I found this hadn’t started correctly.
After upgrading the Domain and the Repository service its wise to ensure settings from the original install have been migrated, so check (and
change if necessary):

1. Source and Lookup files have been moved to the SrcFiles and LkpFiles directories under the new INFA_HOME directory
2. ValidateDataCodePages variable is set to ‘No’ in the Integration Service configuration properties
3. Custom properties (ServerPort and overrideMpltVarWithMapVar) are still set correctly as per original install
4. The Repository Admin user is in the Native Security group.


Oracle 11g R2 DB installation on Linux



Installation of 11g R2 database 64 bit on Linux
1. Unpack Files
Unzip the files.
# 11.2.0.1
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
2. Prerequisites:
a)      Setting the host file
The "/etc/hosts" file must contain a fully qualified name for the server.
    
For example.
127.0.0.1       localhost.localdomain  localhost
192.168.56.101   racinfaserver

This step is very very important for all the following installations in Linux.

b)     Many Linux packages are required to be installed for DB installations
“I have done the installation on a VM so in order to do the automatic package installation, access of internet is required. Regarding VM I have to make the network settings of VM as NAT then only internet was available inside my VM.”
Follow the below steps to do an automatic installation of the Linux packages after logging in as root:
1.      Download and copy the appropriate yum configuration file in place, by running the following commands as root:

Oracle Linux 4, Update 6 or Newer

# cd /etc/yum.repos.d
# mv Oracle-Base.repo Oracle-Base.repo.disabled
# wget http://public-yum.oracle.com/public-yum-el4.repo

Oracle Linux 5

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo

Oracle Linux 6

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo

Oracle VM 2

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ovm2.repo
 
2. To validate the same run the following command:
 
      # yum install oracle-validated
 
All necessary prerequisites will be performed automatically.
It is probably worth doing a full update as well, but this is not strictly speaking necessary.
# yum update

c)      Creating Required Operating System Groups and Users
The Oracle Inventory group (typically, oinstall)
■ The OSDBA group (dba)
■ The Oracle software owner (typically, oracle)
To determine whether these groups and users already exist, and if necessary, to create
them, follow these steps:
1. To determine whether the oinstall group exists, enter the following command:
# more /etc/oraInst.loc
If the output of this command shows the oinstall group name, then the group
already exists.
If the oraInst.loc file exists, then the output from this command is similar to
the following:
inventory_loc=/u01/app/oraInventory
inst_group=oinstall
The inst_group parameter shows the name of the Oracle Inventory group,
Oinstall.
2. To determine whether the dba group exists, enter the following command:
# grep dba /etc/group
If the output from this commands shows the dba group name, then the group
already exists.
3. If necessary, enter the following commands to create the oinstall and dba
groups:
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
4. To determine whether the oracle user exists and belongs to the correct groups,
enter the following command:
# id oracle
If the oracle user exists, then this command displays information about the groups to which the user belongs. The output should be similar to the following,indicating that oinstall is the primary group and dba is a secondary group:
5. If necessary, complete one of the following actions:
■ If the oracle user exists, but its primary group is not oinstall or it is not a
member of the dba group, then enter the following command:
# /usr/sbin/usermod -g oinstall -G dba oracle                                 
■ If the oracle user does not exist, enter the following command to create it:
# /usr/sbin/useradd -g oinstall -G dba oracle
This command creates the oracle user and specifies oinstall as the
primary group and dba as the secondary group.
6. Enter the following command to set the password of the oracle user:
# passwd oracle
d)     Creating Required Directories in which the Oracle software will be installed.
mkdir -p /u01/a     pp/oracle/product/11.2.0/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
e)       Configuring the oracle User’s Environment
1) login into root user( su -l root)
2) execute this command : xhost +SI:localuser:oracle
3) login to the oracle user
NB: Sometimes it will not work then a machine reboot can make it work ;)
f) Setting up the environment variables
Login as the oracle user and add the following lines at the end of the ".bash_profile" file, remembering to adjust them for your specific installation.
How to edit the .bash_profile in Linux:
Type the following commands:
cd click enter
vi .bash_profile
it will be in insert mode then; now make the changes and once the changes are done
click esc button
click   Shift :wq!
after that type the below command too:
source ~/.bash_profile
then only the changes will get reflected
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
 
ORACLE_HOSTNAME=ol5-112.localdomain; export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=DB11G; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
 
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
“SETTING UP ENVIRONMENT VARIABLES  IS VERY IMPORTANT FOR ANY LINUX INSTALLATIONS”.
3.   DB Installation:

Step 1:  Launch Installer

Login as oracle user, change directory to 11GDB Software and launch runInstaller


Step 2:  Configure Security Updates

Uncheck “I wish to receive security updates”, click Next to continue. Click on “Yes” on the popup.

Step 3:  Download software updates

Check “Skip software updates”. Click Next to continue.

Step 4: Select Install option

Select  “Create and Configure a database”. Click next to continue.

Step 5:  System class

Select “Server Class”. Click next to continue.

Step 6:  Grid installation option

Select “single instance database installation”. Click next to continue.

Step 7:  Install Type

Select “Advanced Install”. Click next to continue.

Step 8:  Product Language

Select English on selected Language panel. Click next to continue.

Step 9  Database Edition

Select “Enterprise Edition”.  Click next to continue.

Step 10:  Installation Location

Specify Oracle Base and Software Location. Click Next to continue.

Step 11:  Configuration Type

Select “Data Warehousing” Type. Click Next to continue.

Step 12:  Database Identifiers

Provide Global Database Name. Click Next to continue.

Step 13:  Configuration Options

Allocate Memory according to Requirement, Provide Database Character Set as “AL32UTF8”.  Click Next to continue.

Step 14:  Management Options

Click Next to continue.

Step 15:  Database Storage Options

Provide Location to Store Database files. Click Next to continue.

Step 16:  Recovery Options

Select “Do not Enable automated backups”. Click Next to continue.





                                                                                                                      

Step 17:  Schema passwords

Use Different password for pre-loaded schemas or Same passwords across all schemas. Click Next to continue.

Step 18:  Privileged group

Make sure Database Administrator Group is “DBA”. Click next to continue.

Step 19:  Prerequisite Checks

Make sure all Prerequisite checks are fine. Click next to continue.

Step 20:  Summary

Click on install to start the installation.

Step 21:  Progress

Creation of Datawarehouse purpose Database is in progress.

Step 22:  Database Creation Complete.

Upon Successfull creation of general-purpose database. Click on Exit.

Step 23:  root.sh script

During the course of Installation, Installer will prompt to run root.sh script. Click ok.

Step 24:  Installation completed

Installation completed.

 

4.   DB service  and listener startup-stop and status check:
Run the following commands to start the instance:
$ sqlplus
SQL> CONNECT SYS as SYSDBA
Enter password: sys_password
    SQL> STARTUP
After the instance starts, you can exit from SQL*Plus.
Run the following commands to shut down the instance:
   $ sqlplus
SQL> CONNECT SYS as SYSDBA
Enter password: sys_password
SQL> SHUTDOWN NORMAL
After the instance shuts down, you can quit SQL*Plus.
Listener service must be up otherwise informatica will not able to communicate to DB.

Display Oracle Listener Status

If the Oracle listener is not running, you’ll get the following message.
$ lsnrctl status
 
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 04-APR-2009 16:27:39
 
Copyright (c) 1991, 2007, Oracle.  All rights reserved.
 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.2)(PORT=1521)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 2: No such file or directory

If the Oracle listener is running, you’ll get the following message.

$ lsnrctl status
 
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 04-APR-2009 16:27:02
 
Copyright (c) 1991, 2007, Oracle.  All rights reserved.
 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.2)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Start Date                29-APR-2009 18:43:13
Uptime                    6 days 21 hr. 43 min. 49 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.1.0/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/devdb/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.2)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Services Summary...
Service "devdb" has 1 instance(s).
  Instance "devdb", status UNKNOWN, has 1 handler(s) for this service...
Service "devdb.thegeekstuff.com" has 1 instance(s).
  Instance "devdb", status READY, has 1 handler(s) for this service...
Service "devdbXDB.thegeekstuff.com" has 1 instance(s).
  Instance "devdb", status READY, has 1 handler(s) for this service...
Service "devdb_XPT.thegeekstuff.com" has 1 instance(s).
  Instance "devdb", status READY, has 1 handler(s) for this service...
The command completed successfully

Start Oracle Listener

If the Oracle listener is not running, start the listener as shown below. This will start all the listeners. If you want to start a specific listener, specify the listener name next to start. i.e lsnrctl start [listener-name]
$ lsnrctl start
 
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 04-APR-2009 16:27:42
 
Copyright (c) 1991, 2007, Oracle.  All rights reserved.
 
Starting /u01/app/oracle/product/11.1.0/bin/tnslsnr: please wait...
 
TNSLSNR for Linux: Version 11.1.0.6.0 - Production
System parameter file is /u01/app/oracle/product/11.1.0/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/devdb/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.2)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.2)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Start Date                04-APR-2009 16:27:42
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.1.0/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/devdb/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.2)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Services Summary...
Service "devdb" has 1 instance(s).
  Instance "devdb", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

Restart Oracle Listener

To restart the listener use lsnrctl reload as shown below instead of lsnrctl stop and lsnrctl start. realod will read the listener.ora file for new setting without stop and start of the Oracle listener.
lsnrctl reload
 
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 04-APR-2009 17:03:31
 
Copyright (c) 1991, 2007, Oracle.  All rights reserved.
 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.2)(PORT=1521)))
The command completed successfully
5.   Issues and Challenges Faced:
•                   bash.profile file was not edited to contain all env entries(which is very importnant)
•                   Oracle home value was not set even after the script was run; when the environment variable was echoed it was blank-resolved it by editing the bash.profile file and performing the source command as mentioned in the earlier section
•                   Path was wrong in sprofile.ora file
•                   LRM-00109: could not open parameter file

Symptom:

When trying to start up Oracle, the following error is encountered:
LRM-00109: could not open parameter file '...'
ORA-01078: failure in processing system parameters

Cause:

Oracle could not open the init-ora file. Typically this is because either the init-ora file is in a different directory to the one Oracle is looking in, or it has a different name to what Oracle expects.
By default the init-ora file is located in the directory:
{ORACLE_HOME}/Database
and is called:
init{ORA_SID}.ora

Possibly Remedies:

·         Check the name and location of the init-ora file. Then when starting the database specify explicity the location of the initialisation file, i.e.
Startup pfile=''
·         If the database is the 'default' database then set the location of the init-ora file in the registry. (This possibly only applies to Oracle 7?) This should be specified in the registry under the key 'HKEY_LOCAL_MACHINE \ Software \ Oracle'. Add the values:
ORACLE_SID = ""
PFILE_ =
•                   When tried to start the db service got  the below issue:
ORA-01506:
missing or illegal database name
Cause:     No db_name INIT.ORA aprameter was specified.
Action:     The database name must be given in the db_name INIT.ORA parameter.
•                   Path to one of the ctl files was wrong in init.ora file which was present in one of the installation folder
To search init.ora file the following linux commands can be used:
updatedb
locate init.ora
6.     How to uninstall  server client of 11 g r2 server in windows:
The best video on install and uninstall on windows:
http://www.youtube.com/watch?v=nnnA2HcZl_8