Saturday, June 1, 2013

SAP GUI installation on Mac OS

SAP GUI for Java Installation

System Requirements

Make sure you have installed a supported Java Virtual Machine (JVM) and the necessary run time libraries.

Installation

PlatinGUI730MacOSX_2-20008876.JAR
The complete installation program is contained in the SAP GUI for Java package PlatinGUI-<Platform>-<Version>S.jar.
The package is signed and versioned. You can verify the integrity of the package with the jarsigner program included with your Java Virtual Machine to make sure the code is authentic and the package is not damaged.
jarsigner -verify -verbose PlatinGUI-<Platform>-<Version>S.jar

To verify the version and build details of the package you can ask for the version information:
java -jar PlatinGUI-<Platform>-<Version>S.jar version
To start the installation procedure just double click the installation package or if your environment does not provide direct support for starting jar packages invoke the installer from a command line interpreter.
java -jar PlatinGUI-<Platform>-<Version>S.jar [command] [options]
The installer knows three different commands install, uninstall and version.
The most important command is the install command, which is also the default if no command is specified.

The install command

java -jar PlatinGUI-<Platform>-<Version>S.jar install [options]
or equivalent
java -jar PlatinGUI-<Platform>-<Version>S.jar [options]
The install command can take several options.
General option syntax states that long option names start with two dashes and that boolean options are positive and denoted in lower case. Boolean options can be negated and the negative short option is denoted with an uppercase letter the long option name changes to --no<option>. Short options can not be clustered (so -fG is not correct but would be interpreted as a non existent option -f taking one parameter G). The space between an option and its parameter is not really required but recommended.
--help, -?
Print all installation options.
--force, -f, negated: --noforce, -F
Normally the installer will do nothing if it detects that this version of the SAP GUI for Java is already installed, -f forces a reinstallation.
--installdir <path>, -d <path>
Absolute path to installation directory if this option is omitted a reasonable platform dependent default location is used.
--verbose, -v, negated: --noverbose, -V
Provide verbose installation output on the console.
--standard, -s, negated: --nostandard, -S
Use standard options and install without user interaction. This is not a silent installation since progress indication and installation summary and all error dialogs are still displayed.This is well suited for automatic graphical installations.
--desktopicons, -m, negated: --nodesktopicons, -M
Install desktop menu and shortcuts. Per default this option is true so usually it is used as negated option -M, --nodesktopicons to prevent icons and menu entries to be created.
--gui, -g, negated: --nogui, -G
Use the graphical user interface for the installation. Per default this option is true so to turn off the graphical user interface use the negated form of the option -G, --nogui.If you turn off the graphical user interface you will get error messages and a short installation summary on the console.
--register, -r, negated: --noregister, -R
Centrally register the executable application as application path on Windows, as link into /usr/bin on Unix.
--inputfile <path>, -i <path>
Provide an installation response file to define installation parameters.
--logfile <path>, -l <path>
Write the installation log to the path.
--trace <tracekey1:tracekey2>, -t <tracekey1:tracekey>
Activate tracekey1 and tracekey2 during installation. Traces are always written to standard error.

The uninstall command

java -jar PlatinGUI-<Platform>-<Version>S.jar uninstall
The uninstall command removes an installed version of the SAP GUI for Java.

The version command

java -jar PlatinGUI-<Platform>-<Version>S.jar version
The version command just lists version information for the installation package.

Build date           : 2012-08-16 06:01:11 +0200
Build Info           : ldm046, 730_REL, 1353310
Product type         : 1
Numeric Version      : A073000020200
Short Version Number : 7.30beta2
Long Version Number  : 7.30 beta 2
Short Version        : SAPGUI7.30beta2
Long Version         : SAP GUI 7.30 beta 2
Full Version         : SAP GUI for Java 7.30 beta 2
Official Version     : SAP GUI for the Java Environment 7.30 beta 2

Installation Response File

You can automate the installation process by providing an installation response file using the -i <responsefile> option to the install command.
Available Properties:
installdir=<path> or installpath=<path>
Absolute path to installation directory, the special value default installs into the platform dependent default location (same as -d <path>).
disableui=true
Disables the interactive graphic installation program. All installation parameters have to be supplied using an installation response file or as command line options. All installation messages are written to standard output and standard error (same as -G).
automatic=true
If all necessary parameters are specified only show progress indication and error dialogs (same as -s).
reinstall=true
If this version of the SAP GUI for Java is already installed it is silently reinstalled and the installation proceeds as normal (same as -f).
uninstall=true
Remove the SAP GUI for Java installation if this version is installed, then exit (corresponds to the uninstall command).
logfile=<path>
Absolute path to installation log file including file name (same as -l <path>).
noshortcuts=true
Do not create desktop menus and desktop shortcuts (same as -M).
registerapplication=true
Centrally register executable application as application path on Windows, as link into /usr/bin on Unix (same as -r).
The file format is a list of lines with each one describing a property as a key value pair. Key names are delimited by "=" and ":". These characters can be escaped in key names and in the value text using "\" as escape character. Therefore a literal "\" also has to be escaped.
Complete lines can be commented with "#".
Example of a Typical Response File:
# Example of a typical installation response file
# suppress user interaction
disableui=true
# install to the default path
installidir=default
# reinstall gui if already present
reinstall=true

Web Deployment

Web installation is triggered by the content of a web page that was set up by the system administrator. If there is currently no SAP GUI for the Java Environment installed on the front-end computer, or if the version does not meet the requirements specified on the web page, the automatic installation is triggered. In order for this to work, your web browser security settings must be set to enable download and installation of controls and executable files.
The SAP GUI for the Java Environment applet will be downloaded and started from the website provided.
In order to run the applet with the required privileges, its signature has to be verified. Click 'Grant always' or 'Grant this session' on the certificate verification dialog. This will ensure that the GUI applet code can run as a trusted applet (this dialog only appears if the certificate has not been generally accepted by clicking 'Grant always'). See Background Information: Signed Applets for more information)
If there is no SAP GUI for the Java Environment installed or if the installed version is older than the version requested on the web page, the installation will be started.
When the installation has finished, the SAP GUI for Java is started.

Browser Default Version

Several versions of SAP GUI for the Java Environment can be installed and run on a single front-end computer in parallel. However, only one of the installed versions can be used within the web browser at any one time. This dedicated version is called the "browser default version".
By default, the browser default version is always the most recent version installed.
You can configure the current browser default version by using the 'Version Options' dialog. Start SAP GUI for the Java Environment as a standalone application and choose 'Options/Version' from the logon window menu to open this dialog. Use the 'Default version' drop down list box to choose the default browser version.

Installation Log File

Each installation of SAP GUI for the Java Environment writes a detailed protocol of all installation activities to the 'sapgui.log' log file.  Please consult this file if you encounter any installation problems.The file is located in a place that is platform-specific:
Windows and UNIX platforms:
<home directory>/sapgui.log
Mac OS X:
<home directory>/Library/Logs/sapgui.log

Remove a SAP GUI for Java installation

If the installation user interface detects that this version of the SAP GUI for Java is already installed it allows to remove the installation or to reinstall.
On all platforms you can also use the command line installer to remove a installed version by calling
java -jar PlatinGUI-<Platform>-<Version>S.jar uninstall
On Win32 platforms you can remove a centrally-installed SAP GUI for the Java Environment using the Software control panel. User installations are not centrally-registered under Windows and can just be deleted (for Windows Vista specific information please see "Windows Vista Deinstallation").

PATH and Environment

By default, the GUI start scripts use the Java Runtime Environment found in PATH (see requirements) or the application registration. If you want to use a different Java Runtime Environment, you may specify it using the PLATIN_JAVA environment variable which points to the Java executable to be used for example: /usr/bin/java. You can also use PLATIN_JAVA to provide the Java Runtime Environment with additional options.

You can add the bin directory of the SAP GUI installation to your PATH in order to allow the invocation of the SAP GUI for Java from everywhere.


Wednesday, April 3, 2013

ora-27101 shared memory realm does not exist linux No such file exists. R3trans -d error 0012

One of the silly error after installation of SAP with Oracle 9i,10g on both RHEL 4 and RHEL 5.This error wasted our one week.But at last now we'are able to find solution.

Description of error:

ORA-01034: ORACLE not  available

ORA-27101: shared memory realm does not exist

After Installation of SAP ECC 5.0 ,on successful startup of Database.

Error : R3trans -d command failed with error 0012 .No connection possible

Here's the Solution:


Oracle docs note this about ORA-27101:
ORA-27101: shared memory realm does not exist
Cause: Unable to locate shared memory realm
Action: Verify that the realm is accessible
MOSC offers valuable information regarding ORA-27101. ORA-27101 is often thrown along with ORA-01034 during database installation.  ORA-27101 is also seen after installation is complete, when attempting to use SQL*Plus.
To resolve this issue with ORA-27101, you should be sure that ORACLE_HOME andORACLE_SID are correct, and ORACLE_HOME should not have trailing slash. 

For checking on trailing trash:

su - orasid
$ echo $ORACLE_HOME
$ /oracle/SID/102_32/ << Incorrect

$ echo $ORACLE_HOME
$ /oracle/SID/102_32 << Correct
For ORACLE_SID:
$ echo $ORACLE_SID
SID
These steps deadly resolve your this issue.

Also refer two SAP NOTES :

Note 491174 - Composite SAP note for ORA-01034

Note 583861 - UNIX: Errors due to Oracle executable

Thanks,

Gaurav

Tuesday, January 29, 2013

MOS-01022 sap error

While SAP ECC 5.0 Installation at DB Instance Phase on database extraction getting error MOS-01022.

Solution: Check only your RAM ...RAM ...RAM only RAM issue.

Tuesday, July 10, 2012

SAP BASIS ERROR during unicode conversion:error during conversion of cluster item


(DB) INFO: REGUC created #20120710113304

myCluster (55.23.Imp): 1596: inconsistent field count detected.
myCluster (55.23.Imp): 1599: nametab says field count (TDESCR) is 179.
myCluster (55.23.Imp): 1602: alternate nametab says field count (TDESCR) is 181.
myCluster (55.23.Imp): 1270: unable to retrieve nametab info for logic table REGUP     .
myCluster (55.23.Imp): 8166: unable to retrieve nametab info for logic table REGUP     .
myCluster (55.23.Imp): 2687: failed to convert cluster data of cluster item.
myCluster: REGUC      **700****20060206****00001O**** ****1000****0000310014****          ****                ****0100000002**
myCluster (55.23.Imp): 324: error during conversion of cluster item.
myCluster (55.23.Imp): 327: affected physical table is REGUC.
(CNV) ERROR: data conversion failed.  rc = 2
(DB) INFO: disconnected from DB

/sapmnt/PRD/exe/R3load: job finished with 1 error(s)
/sapmnt/PRD/exe/R3load: END OF LOG: 20120710113310


Solution : 

1. Incorrect data should be removed from source system before export of ABAP Database System.

2. At target System stop the current database import phase and perform under 

/tmp/sapinst_instdir/ECC50/COPY/IMPORT/SYSTEM/ABAP/ORA/UC/DB

and 

  •  Modify DDL<dbs>.TPL (<dbs> = ADA, DB2, DB4, DB6, IND, MSS, ORA) before the R3load TSK files are generated; search for the keyword "negdat:" and add "REGUC" and "VER_CLUSTR" to this line.
  •  Modify the TSK file (most probably SAPCLUST.TSK) before the R3load import is (re-)started; search for the lines starting with "D REGUC I" and "D VER_CLUSTR I" and change the status (i.e. "err" or "xeq") to "ign" or remove the lines.
Also Refer SAP Note Number : 967124

3. Restart the database import phase .



Wednesday, July 4, 2012

CJS-00030 SAP Installation error.


First you will have to reset your installation and delete installation log directory.

1- Be sure that on the root session you are using to launch sapinst for DBInstance there is no ORACLE_HOME environment variable set.

2- Check your oraInst.loc file (see SAP note 350251), adapt it so that
inventory_loc=/oracle/oraInventory
and create directory if necessary. This avoid problems on unix with previous installations of oracle.


 ######################################################

Also

ORACLE_HOME=/opt/oracle/product/102_32 is not a valid path. 
it should be like 
/oracle/[SID]/102_32






#################################################################



Also comment out environment variable under file 

vim /root/.bash_profile


#ORACLE_HOME=/oracle/SID/102_32



Monday, July 2, 2012

ORA-00904 error Solution at the time of SAP Installation


ORA-00904: "SYS"."DBMS_EXPORT_EXTENSION"."FUNC_INDEX_DEFAULT": invalid identifier
[Problem]

Export: Release 9.2.0.8.0 - Production on Wed Jul 25 10:47:29 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Connected to: Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses UTF8 character set (possible charset conversion)
About to export specified tables via Direct Path ...
Current user changed to DBAPL
. . exporting table RPT_LOCAL__01 1012208 rows exported
EXP-00056: ORACLE error 904 encountered
ORA-00904: "SYS"."DBMS_EXPORT_EXTENSION"."FUNC_INDEX_DEFAULT": invalid identifier
Export terminated successfully with warnings.
[Root Cause]

It caused by different DB version in the server , as below two version is installed:
DB1 V9.2.0.8 , while DB2 is 9.2.0.5
In operator id 's env , the ORACLE_HOME is point to 9.2.0.8, caused using higher version exp to exp data from lower version db.
[solution]
in the script , explicitly specify the path of exp , i.e:
/software/oradb1/product/9.2.0/bin/exp $RPT_CONNECT@$RPT_DB file=$expfile log=$LOGFILE direct=y recordlength=65535 buffer=10240000 compress=N tables=${tab_name} statistics=none

Today 21-Jan-2009, hit another similar case. get new findings from metalink
358508.1
.
Applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 10.2.0.1
This problem can occur on any platform.
Symptoms
Export fails with:
EXP-00056: ORACLE error 904 encountered
ORA-00904: "SYS"."DBMS_EXPORT_EXTENSION"."FUNC_INDEX_DEFAULT": invalid identifier

Changes
A patchset was recently installed against the database.
Cause
After the patchset installation, the data dictionary components have not been upgraded to the patchset release (e.g. 10.1.0.4)

A patchset (e.g. 10.1.0.4) was applied to an existing ORACLE_HOME install but one or more of the patchset steps were not performed per the patchset readme to bring the database components up to the same version as the patched software as shown in DBA_REGISTRY.

If the database components versions do not match the software and the running instance, then the exp utility fails as it finds an earlier version of the exp packages in the database.
Solution
Follow the Post-Installation Tasks section of the Oracle Database Server Patch Set Notes to run the catpatch.sql script with the database started in migrate mode and then retry the export.

Connect to the database as SYSDBA and run:
SQL> STARTUP MIGRATE
SQL> SPOOL patch.log
SQL> @?/rdbms/admin/catpatch.sql
SQL> SPOOL OFF
SQL> SHUTDOWN
SQL> STARTUP



1. Login as root
2. Make new backup directory
cd /
mkdir
09062010                         (Date based)
3. Create latest kernel backup
cp -pr /sapmnt/SID/exe/* /
09062010
4. Compare the original kernel and the backup
du -sk /sapmnt/SID/exe/  840413 /sapmnt/SID/exe
#
du -sk /SIDkernel_10102007  841992 /SIDkernel_10102007
#
5. Make new shadow kernel directory
cd /
mkdir kernel
6. Copy the new downloaded kernel files into /kernel
7. Unpack the new downloaded kernel in folder /kernel
SAPCAR -xvf SAPEXE_175-20000221.SAR
     
SAPCAR -xvf SAPEXEDB_175-20000223.SAR
8. Login as sidadm
9. Stop the SAP System
stopsap
10. Stop saposcol
saposcol -k
11. Login as root
12. Go to the current kernel directory
cd /
usr/sap/SID/SYS/exe/run
13. Copy all extracted support packages into this folder
cp -pr /
kernel/* /usr/sap/SID/SYS/exe/run
14. Copy back the original file saproot.sh into this folder.
cp -p /
09062010/saproot.sh  /usr/sap/SID/SYS/exe/run
15. Go to the current kernel directory
cd /sapmnt/SID/exe
Then run:
./saproot.sh SID
16. Login as sidadm
17. Start the saposcol service
saposcol
18. Start the SAP system
startsap

Download only two .SAR files e.g
SAPEXE_175-20000221.SAR     
SAPEXEDB_175-20000223.SAR
#Database independent
#Oracle


Rebuilding of Index in SAP

1      In transaction SE14, enter the name of your table and select Edit
2) On the resulting screen, select Indexes.
3) Select the Index you wish to rebuild
4) Select the appropriate Execute Database Operation
5) Go back (using the green arrow) to the Table definition
Repeat steps 2 --> 5 till all indexes have been rebuilt

2     Check statistics in transaction DB20

VB Script to convert Excel sheet into .csv format
Open Notepad, create a file called XlsToCsv.vbs and paste this in:
if WScript.Arguments.Count < 2 Then
    WScript.Echo "Error! Please specify the source path and the destination. Usage: XlsToCsv SourcePath.xls Destination.csv"
    Wscript.Quit
End If
Dim oExcel
Set oExcel = CreateObject("Excel.Application")
Dim oBook
Set oBook = oExcel.Workbooks.Open(Wscript.Arguments.Item(0))
oBook.SaveAs WScript.Arguments.Item(1), 6
oBook.Close False
oExcel.Quit
WScript.Echo "Done"
Then from a command line, go to the folder you saved the .vbs file in and run:
XlsToCsv.vbs [sourcexlsFile].xls [destinationcsvfile].csv
This requires Excel to be installed on the machine you are on though.

VMware Tools for Linux Guests
On a Linux guest, you can install VMware Tools within X or from the command line
Installing VMware Tools within X
You can install VMware Tools within X using the .tar installer in a terminal window. See Installing VMware Tools from the Command Line with the Tar Installer.
To install VMware Tools from X with the RPM installer:
1. Choose VM > Install VMware Tools.
The guest operating system mounts the VMware Tools installation virtual CD.
2. Double-click the VMware Tools CD icon on the desktop.
Note: In some Linux distributions, the VMware Tools CD icon may fail to appear when you install VMware Tools within an X windows session on a guest. In this case, you should continue installing VMware Tools as described in Installing VMware Tools from the Command Line with the Tar Installer, beginning with step 3.
3. Double-click the RPM installer in the root of the CD-ROM.
4. Enter the root password.
5. Click Continue.
The installer prepares the packages.
6. Click Continue when the installer presents a dialog box saying Completed System Preparation.
A dialog appears for Updating system, with a progress bar. When the installer is done, VMware Tools are installed. There is no confirmation or finish button.
7. In an X terminal, as root (su -), configure VMware Tools.
vmware-config-tools.pl
Respond to the questions the installer displays on the screen. Press Enter to accept the default value.
Note: Be sure to respond yes when the installer offers to run the configuration program.
8. Launch the VMware Tools background application:
vmware-toolbox &
Note: Some guest operating systems require a reboot for full functionality.
Installing VMware Tools from the Command Line with the Tar Installer
The first steps are performed on the host, within Workstation menus:
1. Power on the virtual machine.
2. After the guest operating system has started, prepare your virtual machine to install VMware Tools.
Choose VM > Install VMware Tools.
The remaining steps take place inside the virtual machine.
3. As root (su -), mount the VMware Tools virtual CD-ROM image, change to a working directory (for example, /tmp), uncompress the installer, then unmount the CD-ROM image.
Note: Some Linux distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.
Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, you must modify the following commands to reflect the conventions used by your distribution.
mount /dev/cdrom /mnt/cdrom
cd /tmp
Note: If you have a previous installation, delete the previous vmware-distrib directory before installing. The default location of this directory is
/tmp/vmware-tools-distrib.
4. Untar the VMware Tools tar file:
tar zxf /mnt/cdrom/VMwareTools-5.0.0-<xxxx>.tar.gz
umount /dev/cdrom
Where <xxxx> is the build/revision number of the VMware Workstation release.
Note: If you attempt to install a tar installation over an rpm installation — or the reverse — the installer detects the previous installation and must convert the installer database format before continuing.
5. Run the .tar VMware Tools installer:
cd vmware-tools-distrib
./vmware-install.pl
Respond to the configuration questions on the screen. Press Enter to accept the default value.
6. Log off of the root account.
exit
7. Start X and your graphical environment.
8. In an X terminal, launch the VMware Tools background application.
vmware-toolbox &
Note: You may run VMware Tools as root or as a normal user. To shrink virtual disks, you must run VMware Tools as root (su -).
Installing VMware Tools from the Command Line with the RPM Installer
The first steps are performed on the host, within Workstation menus:
1. Power on the virtual machine.
2. After the guest operating system has started, prepare your virtual machine to install VMware Tools.
Choose VM > Install VMware Tools.
The remaining steps take place inside the virtual machine.
3. As root (su -), mount the VMware Tools virtual CD-ROM image, change to a working directory (for example, /tmp), uncompress the installer, then unmount the CD-ROM image.
Note: Some Linux distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.
Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, you must modify the following commands to reflect the conventions used by your distribution.
mount /dev/cdrom /mnt/cdrom
cd /tmp
Note: If you have a previous installation, delete the previous vmware-distrib directory before installing. The default location of this directory is
/tmp/vmware-tools-distrib.
4. At the command prompt, enter:
rpm -Uhv /mnt/cdrom/VMwareTools-5.0.0-<xxxx>.i386.rpm
umount /dev/cdrom
Where <xxxx> is the build/revision number of the VMware Workstation release.
Note: If you attempt to install an rpm installation over a tar installation — or the reverse — the installer detects the previous installation and must convert the installer database format before continuing.
5. Configure VMware Tools:
vmware-config-tools.pl
Respond to the questions the installer displays on the screen. Press Enter to accept the default value.
6. Log off of the root account.
exit
7. Start X and your graphical environment.
8. In an X terminal, launch the VMware Tools background application.
vmware-toolbox &
Note: You may run VMware Tools as root or as a normal user. To shrink virtual disks, you must run VMware Tools as root (su -).
Starting VMware Tools Automatically
You may find it helpful to configure your guest operating system so VMware Tools starts when you start your X server. The steps for doing so vary depending on your Linux distribution and your desktop environment. Check your operating system documentation for the appropriate steps to take.
For example, in a Red Hat Linux 7.1 guest using GNOME, follow these steps.
1. Open the Startup Programs panel in the GNOME Control Center.
Main Menu (click the foot icon in the lower left corner of the screen) > Programs > Settings > Session > Startup Programs
2. Click Add.
3. In the Startup Command field, enter vmware-toolbox.
4. Click OK, click OK again, then close the GNOME Control Center.
The next time you start X, VMware Tools starts automatically.
Uninstalling VMware Tools
To remove VMware Tools from your Linux guest operating system, log on as root (su -) and enter the following command:
·  From a tar install
vmware-uninstall-tools.pl
·  From an RPM install
rpm -e VMwareTools