on 02-12-2010 1:02 PM
Hi gurus,
I´m trying to install an ECC 6.0 SR3 (ABAP) on RHEL v.5 with Oracle DB.
But as I am newbie I have some doubts, in this point is with the Java Version JRE that is required in sap installion process.
I already installed the JRE through RPM Package File (I followed the instructions/steps described in this url - http://java.sun.com/j2se/1.4.2/jre/install-linux.html ) and I don´t have any problem... by the way I installed the JRE version 1.4.2_25 b02.
But after the installation I had a question, how do I check if the package was installed correctly? I insert the commad java -version, and the result was this:
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-46)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
With this information I really do not know if the version 25 was installed...
I already check if there is some directory with the new file, and actually there exist in the directory /usr/java but this is not tell me if this is the new one!!
It´s possible to know which one is installed with other command by terminal?
Best regards,
Joao Dimas - Portugal
Hello João,
SAP Note 1172419 tells you what Java version you need.
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Matthias,
I didn´t ask what release I should install in my RHEL!! Because I already install the JRE version 1.4.2_25 b02.
What I asked was if there is any other command as java -version that give me the information what version is installed, to make sure that the installation was done properly.
For example in windows platforms when I run the command java -version the result give us all information about which release with detail, is install on that server! Like this (example):
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
However in Linux platform it only show this information:
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-46)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I really do not know if the version 25 was installed
As you can see above isn´t display any kind of information of release that is installed (only said "1.4.2") on Linux Red Hat server and therefore I really don´t know what version is installed in this server, could be an old one version that comes by default!
You already understand my question/doubt..?!
King regards,
João Dimas - Portugal
Hello Matthias,
That command don´t give me what I want... the only result is this:
java full version "gcj - 1.4.2"
This will mean that the installation that I did (JRE version 1.4.2_25 b02) was not successful??
But a some momments ago I checked the Package Manager and there I see the package with the version that I installed (1.4.2_25 b02), as you can see in following images:
http://img715.imageshack.us/img715/5631/javajrepackagemanager.png
Through terminal with command "yum list | grep installed | more":
http://img715.imageshack.us/img715/6003/javaversion.png
I don´t know... I think that is installed!! What do you think?
Kind regards,
João Dimas - Portugal
Dear João Dimas,
this does mean, that the java you installed is not in the $PATH variable. Only what is available within the $PATH variable will be found when calling binaries without full path information. Maybe on windows the $PATH variable was changes during installation, on Linux it isn't. On Linux you have to set the variable yourself. I also assume that /etc/alternatives/java points to the gcj ...
Hannes
Hello Hannes,
Yeah you´re right but in windows platforms after the installation of JRE is always necessary to define the variable system where the path for this binary is and this in that variable system $PATH... and other thing that is always necessary when database is oracle, is define a user variable with name JAVA_HOME!!
But on Linux platform I don´t know how can I do that... How can I define variables either system and user, if that is necessary, I think so...
Can you help me how can I indicate this path to that variables... how can I define them...?!
Thank you
Best regards,
João Dimas - Portugal
Hi,
<VARIABLE>=<string>
export <VARIABLE>
SET <VARIABLE>=<string>
Depends on the used Shell, you can set the required Environment variable in Linux/Unix.
e.g.
PATH=$PATH:<path to JDK installation/bin>
EXPORT PATH
JAVA_HOME=<path to Jdk>
EXPORT JAVA_HOME
You can set the required parameters permanently in Linux/Unix , by adding them into the start-up scripts/files such as (~/ .bashrc) or ( ~/ .cshrc file),
Regards,
Bhavik G. Shroff
You only have to use the during installation time so that sapinst will find the correct one. sapinst makes sure, they are added automatically to the <sid>adm user; so simply do a
export JAVA_HOME=<PATH_TO_JAVA_HOME>
export PATH=$JAVA_HOME/bin:$PATH
Then start sapinst in the same shell window you entered those variables.
Markus
> But tell me one thing before I do anything, it is required to create these variables, like I always made in windows platform?
Did you actually read my last reply?
I repeat it again:
You only have to use the during installation time so that sapinst will find the correct one. sapinst makes sure, they are added automatically to the <sid>adm user;
Markus
Hello Markus,
Sorry for my previous question... that helped me, thanks!
But now I´m faccing with another problem when I tried to start the SAPInst by the command ./sapinst and then showed me the message that I do not have permissions "Permission denied"... but I´m logged with root user!
You can see this error in the following image:
http://img121.imageshack.us/img121/2388/permissiondenied.jpg
How can I solve this problem?
Best regards,
João Dimas - Portugal
But now I´m faccing with another problem when I tried to start the SAPInst by the command ./sapinst and then showed me the message that I do not have permissions "Permission denied"... but I´m logged with root user!
Why do you use screenshots? I'd just paste the text here - much easier to search if someone has likewise problems
sapinst has no execute permission.
Execute
chmod u+x sapinst
then try again.
Markus
Hi Markus,
Thank you for your last answer it helped me, your´re right regarding to my screenshots.. sorry!
So... But when sapinst started an error occurred (besides a new window - SAPinst GUI - open with same error):
[root@redhatsap IM_LINUX_X86_64]# ./sapinst
[==============================] extracting... done!
Starting GuiServer using:
/usr/java/j2sdk1.4.2_25/bin/java -Xmx256M -Djava.security.egd=file:/dev/urandom
-cp /tmp/sapinst_exe.469.1266363842/JAR/instgui.jar:/tmp/sapinst_exe.469.1266
363842/JAR/inqmyxml.jar SDTServer config=jar:sdtserver.xml guiport=21212
sapinsthost=localhost sapinstport=21200 guistart=true
init: retrieving account information for group sapinst...
init: retrieving account information done.
load resource pool /root/Desktop/sap/51033511_8_BS_2005_SR3_SAP_Installation
_Master/IM_LINUX_X86_64/resourcepool.xml
guiengine: No GUI server connected; waiting for a connection on host redhatsap,
port 21200 to continue with the installation
So I have two questions:
1 - How do I set this port to this service, to resolve this situation?
2 - How and where can I see how much swap I have on Linux? (This server have 4Gb of RAM)
Best regards,
João Dimas - Portugal
> [root@redhatsap IM_LINUX_X86_64]# ./sapinst
> [==============================] \ extracting... done!
>
> Starting GuiServer using:
> /usr/java/j2sdk1.4.2_25/bin/java -Xmx256M
You are using the wrong JDK.
Since you're on 64bit you need to use a 64bit JDK. Sun has no 64bit 1.4.2 JDK for Linux so you need to download the IBM JDK.
This is described in the installation guide chapter "3.9 Installing the Java Runtime Environment" and
Note 861215 - Recommended Settings for the Linux on AMD64/EM64T JVM
> 1 - How do I set this port to this service, to resolve this situation?
Which port to set where?
Chapter 4.3.1 Running SAPinst on UNIX
> 2 - How and where can I see how much swap I have on Linux? (This server have 4Gb of RAM)
Installation guide, chapter 3.2.7 Setting up Swap Space for Linux
No offense, I'm willing to help - but did you actually have a look at the installation guide?
Markus
Hi,
As I said in my earlier post, IBM JDK 1.4.2 is recommended for SAP Installation on Linux.
Please refer this [SAP Note 1090932 - IBM download site for special JDK builds - iFix|https://service.sap.com/sap/support/notes/1090932].
e.g.
(IBMJava2-AMD64-142-SDK-1.4.2-13.0.x86_64.rpm)
And set the required JAVA_HOME and $PATH variable as suggested in earlier posts.
It will be good if you follow the concerned Official SAP Installation guides, where all required things are narrated step by step with proper understanding.
Regards,
Bhavik G. Shroff
Hello Markus,
First at all, off course... Yes, I am reading step by step the installation guide (I´m in chapter "4. Installation")
1- Ok Markus, but for me it is strange how I could know that the JDK was wrong, that because I don´t know why I have to install this component for IBM JDK ...... This server has a x86_64 bit architecture, where is related to IBM? I did not understood that sorry... and the component that is installed is 1.4.2 JDK with last version which is 25 to x64 bit (for my x86_64 architecture) ... Forgive my ignorance here, but I don´t understand Markus! Where there is a relationship with the AMD64 architecture? If you are correct... if this is a AMD64 therefore I have to download new installation media DVD´s for this installation for AMD64 architecture, isn´t it? Because all the dvd's that I have here to install this system is refer to the version x86_64!
2- Regarding SWAP question... I had read this chapter "3.2.7 Setting up Swap Space for Linux" in the installation guide and it just says there is how I see how much swap is set in the operating system, with the command swapon-s, when I type this command it show me this:
[root@redhatsap IM_LINUX_X86_64]# swapon -s
Filename Type Size Used Priority
/dev/mapper/VolGroup01-LogVol01 partition 5931000 0 -1
This means that I have about 5,9 Gb of RAM memory?
If I need to allocate more memory, as sap recommends 2xRAM, with 8 GB of RAM, how can I do that, in installation guide it tell me to go read the manual for linux... what documentation?!
"2. If required, configure swap space as follows:
On Red Hat Linux:
Check the documentation provided by Red Hat."
Many appologies for my confusions.. Markus!
Best regards,
João Dimas - Portugal
1- Ok Markus, but for me it is strange how I could know that the JDK was wrong, that because I don´t know why I have to install this component for IBM JDK ...... This server has a x86_64 bit architecture, where is related to IBM? I did not understood that sorry... and the component that is installed is 1.4.2 JDK with last version which is 25 to x64 bit (for my x86_64 architecture) ... Forgive my ignorance here, but I don´t understand Markus! Where there is a relationship with the AMD64 architecture? If you are correct... if this is a AMD64 therefore I have to download new installation media DVD´s for this installation for AMD64 architecture, isn´t it? Because all the dvd's that I have here to install this system is refer to the version x86_64!
X86_64 == AMD64 == x64 see
http://en.wikipedia.org/wiki/X86-64
This is all the same. AMD invented the "64bit extension" for their x86 CPUs, later Intel licensed that extension. All those terms are synonyms.
So if
java -version
does not give you the IBM JDK your installation will fail.
If you check the PAM (http://service.sap.com/pam) you'll see that for 64bit Linux (AMD64, x86_64, x64) only the IBM JDK is supported because Sun has no 64bit JDK for this (ancient) version 1.4.2 for Linux x86_64.
[root@redhatsap IM_LINUX_X86_64]# swapon -s
> Filename Type Size Used Priority
> /dev/mapper/VolGroup01-LogVol01 partition 5931000 0 -1
This means that I have about 5,9 Gb of RAM memory?
That means that you have 5,9 GB of SWAP. You get your total memory using the command "free" or use the command "top".
If I need to allocate more memory, as sap recommends 2xRAM, with 8 GB of RAM, how can I do that, in installation guide it tell me to go read the manual for linux... what documentation?!
Honestly, this here is not the place to learn Linux.
I'd use e. g. Google and enter "Redhat 5 add swap space"
http://centos.org/docs/5/html/Deployment_Guide-en-US/s1-swap-adding.html
(btw: CentOS is a RedHat clone, it's the same software and so the same commands).
Markus
Hello Markus,
Thank you very much for your help so far and patience, you are very kind.
Sorry for my confusion about X64 bits family.. I already understand that point.
1- I already change the JAVA JRE, and also the $JAVA_HOME and $PATH variables for the new one, as you can see below:
[root@redhatsap ~]# java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 2.3)
IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 Linux amd64-64 j9vmxa64142-20090310 (JIT enabled)
J9VM - 20090309_31291_LHdSMr
JIT - 20090210_1447ifx1_r8
GC - 200902_24)
So this is already fixed!!
2- Another point that I have doubts and is a requirement, it is the extension process of SWAP. I have only 5,9Gb of SWAP and I want to apply more 14,1Gb for a total amount of 20Gb Swap. But I don´t know why this not extended... I followed the instructions in the document that you give me but even so after I type that commands the swap was not extended!...
(it has 4Gb RAM).
Look at the following lines please:
[root@redhatsap ~]# swapoff -v /dev/mapper/VolGroup01-LogVol01
swapoff on /dev/mapper/VolGroup01-LogVol01
[root@redhatsap ~]# lvm lvresize /dev/mapper/VolGroup01-LogVol01 -L +14000
/dev/hdc: open failed: Read-only file system
Rounding up size to full physical extent 13.69 GB
Extending logical volume LogVol01 to 19.34 GB
Insufficient free space: 438 extents needed, but only 0 available
[root@redhatsap ~]# swapon -va
swapon on /dev/VolGroup01/LogVol01
[root@redhatsap ~]# cat /proc/swaps # free
Filename Type Size Used Priority
/dev/mapper/VolGroup01-LogVol01 partition 5931000 0 -2
[root@redhatsap ~]# swapon -s
Filename Type Size Used Priority
/dev/mapper/VolGroup01-LogVol01 partition 5931000 0 -2
[root@redhatsap ~]# free
total used free shared buffers cached
Mem: 3886696 1734060 2152636 0 191452 1246100
-/+ buffers/cache: 296508 3590188
Swap: 5931000 0 5931000
Can you help me please why this did not grow / increase?
Best regards,
João Dimas - Portugal
>
[root@redhatsap ~]# java -version
> java version "1.4.2"
> Java(TM) 2 Runtime Environment, Standard Edition (build 2.3)
> IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 Linux amd64-64 j9vmxa64142-20090310 (JIT enabled)
> J9VM - 20090309_31291_LHdSMr
> JIT - 20090210_1447ifx1_r8
> GC - 200902_24)
>
> So this is already fixed!!
That's perfect!
> [root@redhatsap ~]# lvm lvresize /dev/mapper/VolGroup01-LogVol01 -L +14000
> /dev/hdc: open failed: Read-only file system
> Rounding up size to full physical extent 13.69 GB
> Extending logical volume LogVol01 to 19.34 GB
> Insufficient free space: 438 extents needed, but only 0 available
So you're trying to add space - do you actually have that space on your harddisk? If not, then you can't resize where - where should the swap go?
Markus
Hi Markus,
Check these three following commands: fdisk -l ; vgdisplay ; lvdisplay. Maybe it help you to analyse whats the main problem here so I was unable to do the swap increase growth. Of course I have disk space, it has about 154Gb of free space.
[root@redhatsap ~]# fdisk -l
Disk /dev/sda: 193.2 GB, 193273528320 bytes
255 heads, 63 sectors/track, 23497 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 23497 188635230 8e Linux LVM
[root@redhatsap ~]# vgdisplay
--- Volume group ---
VG Name VolGroup01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 179.88 GB
PE Size 32.00 MB
Total PE 5756
Alloc PE / Size 5756 / 179.88 GB
Free PE / Size 0 / 0
VG UUID oSA0Rl-Cz8c-nVqc-pH1A-9SKw-XvZk-pTgnRU
[root@redhatsap ~]# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup01/LogVol00
VG Name VolGroup01
LV UUID Jln8g0-YwHm-KVim-KmqT-0IPF-TDnJ-u87BRX
LV Write Access read/write
LV Status available
# open 1
LV Size 174.22 GB
Current LE 5575
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup01/LogVol01
VG Name VolGroup01
LV UUID c0JLG5-4ghB-Iftx-MucI-6MWV-IR9L-vRfQMV
LV Write Access read/write
LV Status available
# open 1
LV Size 5.66 GB
Current LE 181
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
> Check these three following commands: fdisk -l ; vgdisplay ; lvdisplay. Maybe it help you to analyse whats the main problem here so I was unable to do the swap increase growth. Of course I have disk space, it has about 154Gb of free space.
you have free space on your volume group, yes, but you would need another device to add to your volume group.
It's like you have created two partitions on Windows like C: and 😧 and now you're trying to "just format" an E:.
Do add swap in your current configuration you have to create a swap file (as described in the documentation) or you have to add another disk.
Markus
Hi Markus,
Thanks for your help, the situation with swap volume is now solved. I created a new swap file and so now the system has two files with total 20Gb.
But I'm still with the same problem, after entering the command. / SAPInst it opens a window SAPInst GUI (in image bellow) that shows an error, even when I click the Log on button it returns to show the same window SAPInst GUI and I do not go from this point...!
Sorry but in this case I have to put here an image for you and other people can see the problem with more detail:
SAPinst GUI windows (error could not connect to localhost on port 21212)
http://img692.imageshack.us/img692/6174/errorsapinstgui.jpg
So can you tell me what I have to do to overcome this problem??
Best regards,
João Dimas - Portugal
Hello Rajesh Bhatt,
You ask me where is the installation directory... the DVD Media of sapinst is in Desktop ... I think this isn´t in /root directory, I´m correct?
Regarding the log files of sapinst... this is in /temp directory sapinst directory which is a default directory created by sapinst!
Therefore it seems to me that everything is fine!!...
Kind regards,
João Dimas - Portugal
You ask me where is the installation directory...
the DVD Media of sapinst is in Desktop ...
I think this isn´t in /root directory, I´m correct?
Well, this depends on the user...
if you are the 'root', the folder of your desktop usually is /root/Desktop
if you are 'anotheruser', then the folder of your desktop usually is /home/anotheruser/Deskop
so be careful ...
Hi,
Can you please reply me about where you have mounted the SAP CDs?
If it is in the /root diectory you should first move that to /tmp or any other directory. Also Make sure the path for temp directory is /tmp or /temp.
It's very important that you move your installation CD's to some directory other than /root. I used to put my all installation cd's in /var or /opt. And once I am done I copy the sapinst_dir folder for future reference.
Regards
Raj.
Hello Rajesh Bhatt,
I think I answered to you in my previous message, the DVD Media of SAP are in Desktop ... I think this isn´t in /root directory, I´m correct?
Regarding the log files of sap installation, this are in /temp directory which are created by default whenever I start the ./sapinst.
Therefore it seems to me that everything is fine!!...
Kind regards,
João Dimas - Portugal
Hello Hannes and others,
I already found the solution for this problem related to ./sapinst error (when I tried to open the sapinst GUI window...).
The problem was located at IP address and your own DNS name of this server that was mapped incorrectly in the directory /etc/hosts which was with other IP (I don´t know why!) and from the moment I put the correct IP and its name, this issue was resolved and I could finally start the sapinst.
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
172.31.109.14 redhatsap
Ahh and I guess that was another problem associated to this... the IP of the server was not associated with a correct DNS.
Thank you for your help!
Best regards,
João Dimas - Portugal
In case you are using the /tmp directory.... There is service called cron that executes commands at a specific time or on a specific time period. One default cron job with many distros of linux (including RHEL and CentOS) is a temp cleanup job.
In the case of an IDES installation on certain systems, the ABAP import can take so long the cron job deletes installation files stored in the /tmp directory structure. This can result in some very strange errors which will be hard to troubleshoot. You will want to disable this "tmp cleanup" job while you're installing.
Regards,
Zach
Hello Kamal Kishore,
I did not understand what you want to refer in your last message... had you read my last message?... I already solve the problem that I mentioned here... the solution for that is in my last message!
I´ll close this thread... sorry!... But even so could you be more explicit what you wanted to say in your previous message, is about what? sorry...
Kind regards,
João Dimas - Portugal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.