I. Linux installation and preparation
First of all, it doesn’t really matter what Linux/Unix platform to choose, as SAP is compatible with many of them. It only depends on the efforts you have to put before actual SAP installation (ie Linux partitioning, additional software deployment, and configuration, host configuration etc.). Taking this into consideration I decided to use SUSE Linux Enterprise Server for SAP Applications. There are some pros and cons of using exactly this platform, because, the updates for SUSE Linux aren’t free… but after all, the major benefit is that it’s ready for SAP installation right after deployment (doesn’t make sense whether you choose Wizard or manual/expert installation option).
The installation image for SUSE Linux is available for free from their website (you just need to register).
So, let’s presume you have already created/prepared a virtual (or real) machine with 350GiB of free space (where 300GiB will be dedicated to IDES databases) and successfully installed SUSE Linux on it.
If you use a virtual machine (let’s say VMWare), you need to mount an installation media to the Linux system. In this case study I consider installation on VMWare. To enable ‘folder sharing’ option on VMWare you need to install VMWare Tools for Linux. To do that unmounts Linux installation media from the virtual CD drive and choose ‘VM -> Install VMWare Tools’ from VMWare menu bar. The installation media with VMWare Tools will be attached to the Linux system. You have to find and copy a file named ‘VMWareTools***.tar.gz’:
Copy it to any user folder and extract the contents of this archive:
tar -zxvf VMwareTools-<version>.tar.gz
Then, you can install it:
./vmware-install.pl
As soon as installation is done, you can use VMWare folder sharing to mount SAP installation media to the Linux system.
I presume you followed SUSE Linux installation guide or wizard and have enough disk space to proceed with the installation. If you went through installation procedure with the wizard, the SWAP size should be correct as well (it calculated by wizard automatically). So, let’s move on to SAP installation.
II. SAP Installation
- Go to your mounted media with SAP installation files. Extract all the packages (if you didn’t do that earlier).
- Find ‘Installation master’ (package #51042263_8)
- From this package execute ‘sapinst’ file
./sapinst
- You will see familiar dialogue:
- I’ve chosen MaxDB option for the experience sake, but you’re free to choose any DB you want or need (of course if you have installation packages for it)
- On the next step provide the path to DB installation package
- … and specify a system ID.
- Untick FQDN option if you don’t have a DNS server up and running
- Enter DB SID:
- Specify paths to installation exports 1 and 2:
- Now, you need to accommodate your DB files:
- In Linux, I have mounted a separate partition (sapdb) for this purpose:
- If you don’t have a ‘central SLD’ deployed, choose ‘No SLD destination’ radio-button on the next step
- After checking ‘summary’ page you’re ready to go:
- Now you can relax for at least 6 hours (depends on your server configuration), but… taking slow Java performance into consideration and the fact you’re installing IDES, it may last much longer (up to 24 hours).
III. SAP Post-installation activities
Ok, I guess your SAP system has been installed successfully and you’re ready to move on. The next step is configuration.
- The very first thing we need to do is to check if Java6 is installed in your system. For this:
- a) Go to YAST -> ‘Software management’
- b) Check there if Java-1_6_0_ibm is installed:
- a) If so, check JAVA_HOME and PATH environment variables:
- set |grep JAVA_HOME
- set |grep ^PATH
b) If you can’t see the values, you have to set the values for these variables:
- export JAVA_HOME <path_to_your_JRE>
- export PATH <path_to_your_Java_bin>
- Install SAP GIU. Get the installation package (#50120297_7) and run ‘PlatinGUI730Linux_4.jar’ form it:
Java –jar PlatinGUI730Linux_4.jar
- After successful installation, you will see a new icon in the ‘Application browser’:
(Computer -> More applications…)
- The window seems familiar :)
- Unfortunately, there is a known bug, which won’t give you an opportunity to create a new connection right now (refer to the SAP Note #1918326). So, if you press ‘New’ button, you’ll see an error message like this:
- As SAP Note suggests - if you use a centrally managed configuration then make sure an entry for the routers and message servers does exist and point to an existing file. The file can be empty but the include statement must exist and point to a file, e.g. like this:
@ROUTER=http://< WEBSERVER>:<PORT>/<FOLDER>/empty_file.txt
@MESSAGESERVER=/<LOCAL>/<PATH>/empty_file.txt
So, first… create an empty file (I have created a file ‘config.ini’ in ‘/opt/SAPClients/SAPGUI7.30rev4/’)
Then, go to ‘File’ -> ‘Preferences’ and fill out ‘Message servers’ and ‘Routers’ with a path to the file as shown below:
- Now, when you press ‘New’ – a dialogue ‘Create new connection’ will pop up:
8. Go to ‘Advanced’ tab, give a name for the connection and tick ‘Expert mode’:
Fill the connection string in the format:
conn=/H/(IP_Address_server_SAP)/S/32(system_number)
conn=/H/192.168.1.255/S/3200 (for instance)
- Now you can log-in:
Horray! It works!
- Unfortunately, as soon as you log in (depends on circumstances) you may see an error message like this:
- You shouldn’t worry about installation itself, as there is nothing wrong with data or something like that. It just means that your SAP kernel is outdated and doesn’t correspond to the newer Linux kernel release. The workaround suggested by SAP is to set SUSE Linux to the kernel compatibility mode (you have to use kernel ver. 2.6 instead of installed 3.0) or… you can upgrade the kernel for SAP (the second option seems more reliable and I move on with it). For the reference sake, please read SAP Notes 1310037 and 1629558.
A lowest compatible kernel update is 105 (for 720 release) and the most recent one is 600 (SAPEXE_600-20006741.SAR). Do not forget to download SAPEXEDB for your DB vendor. I use MaxDB, so I found it under MaxDB (SAPEXEDB_600-20006739.SAR)
- Now, we need to copy just new downloaded kernel files into the separate folder on Linux and unpack them with ‘sapcar’ (it could be found in ‘/sapmnt/<SID>/exe’):
SAPCAR –xvf SAPEXE_600-20006741.SAR
(Do the same for SAPEXEDB* file).
- Stop SAP system by using the command ‘stopsap’. To do that, login as ‘<SID>adm’ user in the terminal and execute ‘stopsap’:
- If you use Oracle, you have to execute ‘saposcol -k’ right after the first command.
- Backup files from ‘/usr/sap/<SID>/DVE*/exe’ and ‘/sapmnt/<SID>/exe’
- Copy unpacked kernel files to ‘/usr/sap/<SID>/DVE*/exe’ and ‘/sapmnt/<SID>/exe’.
- Start SAP system (use ‘startsap’ command)
- Now, it works like a charm!
Good luck!
Remember, you can always discuss installation process in details on our forum related to SAP BASIS questions...