SAP Java Component Deployment – Offline

During SAP Dual Stack (ABAP & Java) maintenance, sometime it is necessary to update one of Java component. If you are unlucky then you could stuck in the middle of update. This can be serious problem if you dont know what the process is. I recommend you to always backup your directory instead of the DB because in SAP Web AS Java the Java program will reside in the filesystem. Below are one of the command to update Java component offline (this is needed if you stuck on upgrading the component)

GO to /usr/sap/<SID>/DVEBMGS00/j2ee/cluster/bootstrap/scripts

as sidadm 99> ./batchdeployer.csh -sdu /usr/sap/trans/EPS/in/ENGINEAPI10_0-20002603.SCA
ENGINEAPI and SERVERCORE must be in the same level (queue) to deploy

Note : Please be careful if you want to run this command.

One of Oracle Listener issue

Sometimes it just needs a few commands to solve a big issue but the process to find the solution is the art that you should experience.
ERROR

xidev:oradxi 51> lsnrctl start

LSNRCTL for Linux: Version 11.2.0.3.0 – Production on 25-JAN-2013 19:16:10
Copyright (c) 1991, 2011, Oracle.  All rights reserved.
Starting /oracle/DXI/112_64/bin/tnslsnr: please wait…
TNSLSNR for Linux: Version 11.2.0.3.0 – Production
System parameter file is /oracle/DXI/112_64/network/admin/listener.ora
Log messages written to /oracle/diag/tnslsnr/xidev/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=DXI.WORLD)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=DXI)))
TNS-01150: The address of the specified listener name is incorrect
 TNS-01153: Failed to process string: (ADDRESS=(COMMUNITY=SAP.WORLD)(PROTOCOL=TCP)(HOST=xidev)(PORT=1527))
Listener failed to start. See the error message(s) above…
TROUBLESHOOT
xidev:oradxi 54> adapters

Installed Oracle Net transport protocols are:
    IPC
    BEQ
   Error!!! TCP/IP is not completely installed!
   Present in libntcp11, but missing from ntcontab.o…
   Error!!! SSL is not completely installed!
   Present in libntcps11, but missing from ntcontab.o…
    RAW
   Error!!! SDP/IB is not completely installed!
   Present in libntcp11, but missing from ntcontab.o…
Installed Oracle Net naming methods are:
    Local Naming (tnsnames.ora)
    Oracle Directory Naming
    Oracle Host Naming
   Error!!!   Oracle Names Server Naming is not completely installed!
SOLUTION 
Login using oradxi
execute $ORACLE_HOME/bin/relink

How can versions be transported?

Issue : You want to copy the versions of the repository objects from one R/3 system into another, for example because you are planning to copy your production system to your development system. Such a procedure does not correspond to the strategy recommended by SAP, to always retain the development system.
When you delete the development system, important information is lost, among other things the complete version history of all repository objects. Since the version history of the changed SAP objects is particularly important for later upgrades, a workaround is described here with which the complete version database of the development system can be exported and imported again after the system copy.
Note that no change request data is copied in this case. References from the version database to change requests will only remain intact if the corresponding change requests were previously included in the copied production system.
Furthermore you should note that the versions from the copied system are lost completely with this procedure.
When you copy between non-Unicode systems and Unicode systems, you must read Notes 80727 and 638357.
You must only copy versions between systems that run on the same release of the software component SAP_BASIS.  The SAP_BASIS Support Package level of the system into which the version database is imported must be higher than or equal to the SAP_BASIS Support Package level of the system from which the version database was exported.
Otherwise, runtime errors may occur when the versions are read

Solution :

Caution: You can only transport ALL versions. All existing versions in the import system are deleted.
The import and export can only be carried out using R3trans or database resources. Importing and exporting using R3trans is described in this note.

I) Before the system copy: Export the version database

1) Create a control file for the export with the following contents
export
file = ‘…’ # Name of data file
delete from vrsd
select * from vrsd
delete from vrsx
select * from vrsx
delete from vrsx2
select * from vrsx2
delete from vrsmodisrc    # table required as of Release 4.5A
select * from vrsmodisrc  # table required as of Release 4.5A
delete from vrsx3      # table required as of Release 4.6A
select * from vrsx3    # table required as of Release 4.6A
delete from vrsx4      # table required as of Release 6.40
select * from vrsx4    # table required as of Release 6.40
delete from vrsx5      # table required as of Release 7.02
select * from vrsx5     # table required as of Release 7.02
Comment: The lines with “delete” are no SQL commands and therefore, they do NOT affect the data in the export system. These “delete” lines are necessary to delete the old contents from the target system before you import the new table entries.

2) R3trans call for export:
R3trans -w <log file> < name of the control file Export>

II) After importing the system copy

3) R3trans call for import:
R3trans -w <log file> -i <name of the data file>

If you need additional information on R3trans, refer to Note 1942.

AIX – Logical Volume Manager

When you are using AIX Operating System, you usually maintain Logical Volume Manager using below commands :

Physical Volumes

lspv  is to list the characteristics of a volume group’s physical volume

Usage : lspv [-L] [-P] [-M | -l | -p]  [-n DescriptorPV] [-v VGid] PVname

 

Volume Groups

lsvg is to list the characteristics of a volume group

Usage : lsvg [-o] [[-L] -n PVname]

lsvg [-L] [-i] [-P] [-m] [-M | -l | -p] VGname

 

Mount CDROM on Unix

Oracle product is delivered on more than one CD-ROM. The CD-ROMs are in ISO 9660 format with Rockridge extensions. This appendix describes how to mount and unmount a CD-ROM on each supported platform. It includes information on the following topics:

Mounting CD-ROMs on AIX

To mount a CD-ROM on AIX:

  1. Switch user to root:
    $ su - root
    
    
  2. If necessary, enter the a command similar to following to unmount the currently mounted CD-ROM, then remove it from the drive:
    # umount /cdrom
    
    

    In this example, /cdrom is the mount point directory for the CD-ROM drive.

  3. Insert the appropriate CD-ROM into the CD-ROM drive, then enter a command similar to the following to mount it:
    # /usr/sbin/mount -rv cdrfs /dev/cd0 /cdrom
    
    

    In this example, /dev/cd0 is the device name of the CD-ROM drive and /cdrom is the mount point directory.

  4. If the Installer is displaying the Disk Location dialog box, enter the CD-ROM mount point directory path, for example:
    /cdrom
    
    

Mounting CD-ROMs on HP-UX

To mount a CD-ROM on HP-UX:

  1. Switch user to root:
    $ su - root
    
    
  2. If necessary, enter the following command to unmount the currently mounted CD-ROM, then remove it from the drive:
    # /usr/sbin/umount /SD_CDROM
    
    

    In this example, /SD_CDROM is the mount point directory for the CD-ROM drive.

  3. Insert the appropriate CD-ROM into the CD-ROM drive, then enter a command similar to the following to mount it:
    # /usr/sbin/mount -F cdfs -o rr /dev/dsk/cxtydz /SD_CDROM
    
    
    In this example, /SD_CDROM is the CD-ROM mount point directory and /dev/dsk/cxtydz is the device name for the CD-ROM device, for example /dev/dsk/c0t2d0.
    

    Note:

    To use the this command on the operating system versions listed, the appropriate patches must be installed on the system:For HP-UX 11.00: Install patches PHCO_26449, PHKL_26448, and PHKL_26450

    For HP-UX 11i (11.11): install patches PHCO_25841, PHKL_26269, and PHKL_28025

  4. If the Installer displays the Disk Location dialog box, enter the CD-ROM mount point directory path, for example:
    /SD_CDROM
    
    

Mounting CD-ROMs on Linux

On most Linux systems, the CD-ROM mounts automatically when you insert it into the CD-ROM drive. If the CD-ROM does not mount automatically, follow these steps to mount it manually.

To mount a CD-ROM on Linux:

  1. Switch user to root:
    $ su - root
    
    
  2. If necessary, enter a command similar to one of the following to unmount the currently mounted CD-ROM, then remove it from the drive:
  3. Red Hat:
    # eject /mnt/cdrom
    
    
  4. UnitedLinux:
    # eject /media/cdrom
    
    
  5. In these examples, /mnt/cdrom and /cdrom are the mount point directories for the CD-ROM drive.
  6. Insert the appropriate CD-ROM into the CD-ROM drive.
  7. To verify that the CD-ROM mounted automatically, enter one of the following commands depending on your platform:
    • Red Hat:
      # ls /mnt/cdrom
      
      
    • UnitedLinux:
      # ls /media/cdrom
      
      
  8. If the command in step 4 fails to display the contents of the CD-ROM, enter a command similar to the following to mount it, depending on your platform:
    • Red Hat:
      # mount -t iso9660 /dev/cdrom /mnt/cdrom
      
      
    • UnitedLinux:
      # mount -t iso9660 /dev/cdrom /media/cdrom
      
      

    In these examples, /mnt/cdrom and /media/cdrom are the mount point directories for the CD-ROM drive.

  9. If the Installer displays the Disk Location dialog box, enter the CD-ROM mount point directory path, for example:
    /mnt/cdrom
    
    

Mounting CD-ROMs on Solaris

On most Solaris systems, the CD-ROM mounts automatically when you insert it into the CD-ROM drive. If the CD-ROM does not mount automatically, follow these steps to mount it:

  1. Switch user to root:
    $ su - root
    
    
  2. If necessary, enter the following command to eject the currently mounted CD-ROM, then remove it from the drive:
    # eject
    
    
  3. Insert the first CD-ROM (CD 1) into the CD-ROM drive.
  4. To verify that the CD-ROM mounted automatically, enter the following command:
    # ls /cdrom/cdrom0
    
    
  5. If the previous command fails to display the contents of the CD-ROM, enter a command similar to the following to mount the CD-ROM:
    # /usr/sbin/mount -r -F hsfs /dev/dsk/cxtydzs2 /cdrom
    
    
    In this example, /cdrom is the CD-ROM mount point directory and /dev/dsk/cxtydzs2 is the device name for the CD-ROM device, for example /dev/dsk/c0t2d0s2.
    
  6. If the Installer displays the Disk Location dialog box, enter the CD-ROM mount point directory path, for example:
    • CD-ROM mounted automatically:
      /cdrom/cdrom0
      
      
    • CD-ROM mounted manually:
      /cdrom
      
      

Mounting CD-ROMs on Tru64 UNIX

To mount a CD-ROM, follow these steps:

  1. Switch user to root:
    $ su - root
    
    
  2. If necessary, enter a command similar to the following to unmount the currently mounted CD-ROM, then remove it from the drive:
    # /usr/sbin/umount /cdrom
    
    

    In this example, /cdrom is the mount point directory for the CD-ROM drive.

  3. Insert the appropriate CD-ROM into the CD-ROM drive, then enter a command similar to the following to mount it:
    # /usr/sbin/mount -t cdfs -o nodefperm,noversion /dev/disk/cdrom0c /cdrom
    
    

    In this example, /cdrom is the CD-ROM mount point directory, which must exist, and /dev/disk/cdrom0c is the CD-ROM device name.

  4. If the Installer is displaying the Disk Location dialog box, enter the CD-ROM mount point directory path, for example:
    /cdrom
    

SAP Senior Basis Consultant Vacancy

My friend asked me to post this vacancy,

SAP Senior Basis consultant urgently needed.
Requirements :
– 2 to 3 full life cycle projects
– Have a good experience on new dimension system like BW, CRM, SRM, Portal, XI/PI, Solution Manager.
– Attractive Salary and other Benefits
– Good Communication skills
– Graduate from reputable university
– More than 3 years of working experience in related field.
– Permanent Position
– Location : Kuala Lumpur, Malaysia

MM, SD, WM, BW, HR Senior Consultant are also welcome.
If you are interested, please send your current salary, expected salary and resume to basis.mysap@gmail.com
Only short list candidate will be contacted

Niping Syntax

Question : what is the syntax of niping command?

Answer : to get an idea of using niping command you can type niping without parameter.

Niping

This article is to answer guest question about using niping. Thanks to vinvk for the question.
Niping is a testing program developed by SAP to enhance TCP/IP and UDP layer function. Network Interface (NI) is used by SAPRouter and all SAP programs to provide independency of various communication. The enhanced TCP/IP and UDP Protocol is called SAP Protocol which provide one field length more and error information. This program simply send request to the server, then read the reply from server. Niping mostly uses to test connection to SAP server with or without SAP Router. Niping also provides enhancement communication through the firewall or proxy server.

Niping syntax

Example niping command (with or without SAProuter),
host1 : saprouter -r //start saprouter in host1
host2 : niping -s //this will emulate a test server
host3 : niping -c -H host2 //this will test connection to host2 without SAProuter
host3 : niping -c -H /H/host1/H/host2 //this will test connection to host2 with SAProuter

niping -t //this is for self test which will display a result *** SELFTEST O.K. *** if connection OK

Follow

Get every new post delivered to your Inbox.

Join 31 other followers