Thursday, 21 June 2012

Installation of OIM 11g on OEL (yet to complete)

OIM 11g installation on OEL 6.1
*******************************
Step1)Install Java
Ensure you have root access
Download 'jdk-6u33-linux-x64-rpm.bin' from Oracle.
create some folder under 'root's home directory... say 'java' and place this file there.
Now give permission to the jdk-6u33-linux-x64-rpm.bin file as below.
chmod +x jdk-6u26-linux-i586-rpm.bin
Now execute the following command
./jdk-6u26-linux-i586-rpm.bin
and follow the on screen instructions and you are done !!

Java gets installed at the following location by default
/usr/java/jdk1.6.0_33

Now you can delete the folder 'java' which you created to place the jdk-6u26-linux-i586-rpm.bin  file.
It is just the software you used to install java at /usr/java/jdk1.6.0_33 location.

Now its time to set JAVA_HOME and to add JAVA_HOME to the PATH variable.

Go to root's home directory.[ opening any terminal and just type 'cd' will take you to root's home directory]
there will be a file '.bash_profile' which is a shell script which runs at the login each time.

edit that script and paste below lines

JAVA_HOME=/usr/java/jdk1.6.0_33
export JAVA_HOME

PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
:.
export PATH

save and close it.

You expect you are done.

You may run the 'java' and 'javac' commands and ensure that java is working

Now just type java -version and you will be astonished. You might see a different version of java to that of what was installed in above step.
The reason being, OEL by default comes with openjdk and now you just installed one more version in OEL.

We need to point the operating system to the latest java version that you installed.

Go to /usr/sbin

now execute the following command.

/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_33/bin/java 16033

Here are the arguments:
–install tells that we’ll add a new alternative
/usr/bin/java is the default path for Java
java is the name of the software
/usr/java/jdk1.6.0_33/bin/java is the path of latest java we installed
16033 is the priority, I recommend you to give the exact version number so when you install a newer version and enter its version as priority, it̢۪ll be selected as the default one (as long as mode is auto).

You may verify the same by executing the following command
/usr/sbin/alternatives --display java
You will finally see Current `best' version is /usr/java/jdk1.6.0_33/bin/java.

now you may execute java -version command and see the below output

java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)


so now java is set to the version that you installed.

There is another way as well to know what are all the available java versions that can be made active.
just execute the command and follow the instructions provided on screen

/usr/sbin/alternatives --config java

You will see something like below.

There are 2 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
   1           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
*+ 2           /usr/java/jdk1.6.0_33/bin/java

Enter to keep the current selection[+], or type selection number:


You may enter your selection here and you are done!!

Happy learning...

For more clarity you might want to refer to below link

http://www.gokhanatil.com/2011/07/how-to-installupdate-java-jdk-on-oracle.html

Step2: Install Database.
will post later

No comments:

Post a Comment