Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member


For some reason the advent of a new Test Drive (Evaluation) edition of SAP NetWeaver NW2004S for Linux escaped my attention.  However, thanks to Ulrich (you know who you are :smile: I now have a copy.  Problem was, that it is recommended to only work with RedHat, or SUSE - and I don't run either (well not at home anyway).




It turns out that this shouldn't be a problem, at least not if you use Ubuntu, Edgy, AMD64 (and probably many other flavours).  As an aside - I find it particularily interesting that SAP chose to go for 64bit instead of 32bit  - I wonder how much of a future 32bit has?



As a result of my experiences, I'm offering a list of the things that I had to do for my particular setup. Please note, these are in addition to what instructions SAP have supplied (on the DVD - see /path to DVD/index.html) - NOT a substitute.


Get a copy?



It's not immediately obvious how to get a copy of the latest Linux version for NW2004S (DVD) - I found it by using one of the links from the older versions at http://www.sap.com/linux.  Click on this link, and then enter "testdrive" in the top right search box.  Next, choose the entry titled "SAP NW2004s Testdrive MaxDB (DL9)".  I can't give you a specific bookmark link for all the usual gripes/reasons to do with ITS, and EP.  Now go "Whoopee!" - when you checkout of the knowledge shop as it's all free!
</p>

Do your preparation


You have to download
      the special "JDK 1.4.2 for SAP Customers" from: https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=javasap .
    • Set the PATH and JAVA_HOME environment variables correctly. I installed the JDK in /opt. Editing /etc/profile, I prepended PATH with:
export PATH=/opt/IBMJava2-amd64-142/bin:$PATH

Set JAVA_HOME with:
export JAVA_HOME=/opt/IBMJava2-amd64-142

Make sure that you check other files that influence environment variables like /root/.bashrc, /etc/bash.bashrc, and /etc/login.defs.

    1. **Update - 30.12.2006 ** I found that the J2EE engine wasn't launching correctly - the quickest fix for this I found was to link the java home above to /usr/lib/java:
ln -s /opt/IBMJava2-amd64-142 /usr/lib/java

Make sure that you don't allready have Java installed in this location etc.



    1. Make sure that all the /sbin directories are in $PATH (e.g. /sbin and /usr/sbin). You can check this again by looking at the defaults in /etc/profile (and the others mentioned above)

    2. Check your swap space available, and tmpfs settings.

    1. If you dont have enough swap space, and cannot create another swap filesystem, then you can create a swap file using this script to create a 2Gb swapfile:
      #!/bin/sh
      rm -f /root/swapfile0
      dd if=/dev/zero of=/root/swapfile0 bs=1024 count=2097152
      mkswap /root/swapfile0
      swapon /root/swapfile0
      If you use this then add
      swapon /root/swapfile0
      to /etc/rc.local so that it is activated at each reboot.

    2. For tmpfs - check whether you have one or not with:
      mount | grep tmpfs
      I have a line like:
      tmpfs on /dev/shm type tmpfs (rw,size=1g)
      . If you need to create the tmpfs then you can add:
      tmpfs /dev/shm tmpfs size=1g 0 0
      to /etc/fstab and then execute
      mount -a
      to mount it.




    1. The default shell for /bin/sh has been linked to /bin/dash. For the duration of the install this must be changed to linking to /bin/bash. Do this:
cd /bin
mv sh sh.save
ln -s /bin/bash /bin/sh

Once the installation is complete, you must remember to reverse this:
cd /bin
rm sh
mv sh.save sh






Server Installation



Once you have reached the installation phase, I recommend that you copy the contents of the DVD locally, so that the install.sh script can be altered. for me copying was:


mkdir -p /home/sap
rsync -av /media/cdrom0/* /home/sap/

Edit /home/sap/install.sh. Find the line installed_jdk_home="", and change it to installed_jdk_home="/opt/IBMJava2-amd64-142".



Run the install, and you should get output like:


...
Do you agree to the above license terms? yes/no:
yes


  #==========================================
  #
 
  1. Installing SAP NetWeaver 7.0 -  TestDrive
  #
  #==========================================


   add user n4sadm
   unpacking adm_env.tar.bz2
   Enter new UNIX password:
   Retype new UNIX password:
   passwd: password updated successfully
   add user sdb
   Enter new UNIX password:
   Retype new UNIX password:
   passwd: password updated successfully
   add user sqdn4s
   unpacking sqd_env.tar.bz2
   Enter new UNIX password:
   Retype new UNIX password:
   passwd: password updated successfully
   unpacking /media/cdrom0/server/TAR/x86_64/SAPDB_I.tar.bz2
   unpacking /media/cdrom0/server/TAR/x86_64/SAPDB_II.tar.bz2
   unpacking /media/cdrom0/server/TAR/x86_64/SAPDB_III.tar.bz2
   unpacking /media/cdrom0/server/TAR/x86_64/SAPN4S.tar.bz2
   Update the necessary information in sysctl.conf:
   kernel.shmmax = 23136829430
   kernel.shmall = 5242880
   kernel.msgmni = 1024
   fs.file-max = 32768
   kernel.sem = 1250 256000 100 1024
   find: ./proc/10260: No such file or directory
   Device eth0:0
   inet used for hostname n4shost
   Hostname n4shost already configured.
   Ok
   root@ubuntu:/home/sap #





Now Finish the install as per the instructions. When it comes to installing the license, you will have to do this manually. Make sure that you have at least started the DB instance before you attempt this ("startsap n4shost db" as user n4sadm) Request the license key as normal, and once you have received the confirmation email execute as user n4sadm:


/usr/sap/N4S/SYS/exe/run/saplicense -install

Enter the requested data as supplied in the email.




Your shiny new NW2004S system should now be ready to go:-)

17 Comments