Installation SAP R3 46C AS400 DB2
Installation SAP R3 46C AS400 DB2
AS/400
Release 4.6C
®
SAP AG • Neurottstr. 16 • D-69190 Walldorf
51 009 979
SAP System Installation: IBM AS/400 SAP AG
Copyright
©Copyright 2000 SAP AG. All rights reserved.
No part of this brochure may be reproduced or transmitted in any form or for any purpose without
the express permission of SAP AG. The information contained herein may be changed without
prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software
components of other software vendors.
Microsoft®, WINDOWS®, NT®, EXCEL®, Word® and SQL Server® are registered trademarks of
Microsoft Corporation.
IBM®, DB2®, OS/2®, DB2/6000®, Parallel Sysplex®, MVS/ESA®, RS/6000®, AIX®, S/390®,
AS/400®, OS/390®, and OS/400® are registered trademarks of IBM Corporation.
INFORMIX®-OnLine for SAP and Informix® Dynamic Server are registered trademarks of
Informix Software Incorporated.
UNIX®, X/Open®, OSF/1®, and Motif® are registered trademarks of The Open Group.
HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C®, World Wide
Web Consortium, Laboratory for Computer Science NE43-358, Massachusetts Institute of
Technology, 545 Technology Square, Cambridge, MA 02139.
JAVA® is a registered trademark of Sun Microssystems, Inc. , 901 San Antonio Road, Palo Alto,
CA 94303 USA.
JAVASCRIPT® is a registered trademark of Sun Microsystems, Inc., used under license for
technology invented and implemented by Netscape.
ADABAS® is a registered trademark of Software AG.
SAP, SAP Logo, mySAP.com, mySAP.com Marketplace, mySAP.com Workplace, mySAP.com
Business Scenarios, mySAP.com Application Hosting, WebFlow, R/2, R/3, RIVA, ABAP, SAP
Business Workflow, SAP EarlyWatch, SAP ArchiveLink, BAPI, SAPPHIRE, Management
Cockpit, SEM, SAP DB are trademarks or registered trademarks of SAP AG in Germany and in
several other countries all over the world. All other products mentioned are trademarks or
registered trademarks of their respective companies.
Ordering Information
To order additional copies of this documentation, use the product number 51 009 979.
2 May 2000
SAP AG SAP System Installation: IBM AS/400
Typographic Conventions
Icons
Icon Meaning
Caution
Example
Note
Recommendation
Syntax
Tip
May 2000 3
SAP System Installation: IBM AS/400 SAP AG
Contents
4 May 2000
SAP AG SAP System Installation: IBM AS/400
May 2000 5
SAP System Installation: IBM AS/400 SAP AG
Integration
For information about:
• Support for new OS/400 operating system releases
• Support for SAP Systems with different operating system releases
• Release planning
refer to the SAP on AS/400 release strategy documentation in the SAP Library. To access this
documentation, choose BC - Basis Components → Operating System Platforms (BC-OP) → R/3
on IBM AS/400 → R/3 on AS/400 Release Strategy.
Features
For a standard SAP System installation, SAP provides the R3SETUP tool. This has a graphical
user interface (GUI) called INSTGUI that allows you to watch the progress of the installation and
see all messages issued by R3SETUP. You can call online help from the INSTGUI while you
perform the installation. You can start INSTGUI on a remote computer if you want, since it
functions as a client to the R3SETUP server.
For more information, see The R3SETUP Tool [Page 61] and INSTGUI [Page 63].
Constraints
This documentation only applies if you are installing your SAP System on IBM AS/400.
6 May 2000
SAP AG 1 Installation Planning
1 Installation Planning
Purpose
Before you begin with the practical installation tasks, it is essential to have a planning phase in
which you make a number of fundamental decisions that influence the subsequent installation
procedure. Careful planning is a prerequisite for the successful installation of the system.
Process Flow
When you plan the installation, you have to:
• Decide on the optimal configuration for the system
• Make sure that you can meet the hardware and software requirements specified by SAP
System Configuration
The configuration of the system is generally planned well in advance of the installation together
with the hardware vendor. Configuration planning involves deciding whether a central system or
standalone database system is to be installed, and how many dialog instances and frontends are
required.
The configuration is worked out with the hardware partner on the basis of sizing information that
reflects the system workload. Details such as the set of applications that are to be deployed, how
intensively these are to be used, and the number of users enable the hardware vendor to
recommend a configuration that performs well. SAP provides a Quick Sizer tool that helps to
determine the right combination of resources such as CPU, disk space, and memory making it
easier to plan an appropriate hardware infrastructure.
May 2000 7
1 Installation Planning SAP AG
Space Requirements
The amount of space required for an SAP System on IBM AS/400 is dependent on many
variables, such as:
• Size of the database
• Number of work processes
• Number of users
Sizing recommendations are made by the IBM Competency Center. However, approximately 25
GB DASD are required to start an SAP System. We recommend that ASP (auxiliary storage pool)
usage in SAP production systems should not exceed 70%.
Frontend Requirements
R/3 on AS/400 supports the following frontend products:
• Windows 95
• Windows 98
• Windows NT
• IBM Network Station with WinCenter
• OS/2 Warp
To connect frontends, you require a Token Ring or Ethernet LAN adapter.
For details of frontend hardware and software requirements, see Check List - Installation
requirements: Frontends.
For information about which OS/400 versions have been released for R/3 on IBM
AS/400, see SAP Note 156557.
For the latest information on CUM package release levels and OS/400 corrections related to
Release 4.6C of R/3 on IBM AS/400, refer to IBM Information APAR II11832:
To load an APAR onto your AS/400 system via the IBM ECS link, enter the command:
SNDPTFORD PTFID((<Info APAR ID>))
8 May 2000
SAP AG
To load the IBM Info APAR for V4R4, enter SNDPTFORD PTFID((II11832))
SAP Note 83292 gives an overview of releases and PTFs for R/3 on IBM AS/400 and gives the
URL of the IBM website containing the Info APARs.
<hostname> R3<REL>OPT.LIB
sap
sapmnt
trans DW.PGM
trans R3transdb.4.PGM
<SID> <SID>
TPOS4DB4.PGM
run
Disp+work
Key
soft link
R3trans
hard link tp
May 2000 9
SAP AG
10 May 2000
SAP AG 1 Installation Planning
be accessed by users from any other SAP instance. They can be tuned to allow dynamic
allocation to occur on memory pool activity.
• Disks: Separate ASPs for Each SAP System
On AS/400 systems the installed disk capacity can be segmented to provide a separate
auxiliary storage pool (ASP) for each SAP System. You can then allocate specific disk drives
to each user ASP created. This helps to minimize the impact of disk activity of one SAP
environment on other SAP environments.
• Processors: Long-Running Tasks Can Slow Down the Production Environment
Regardless of the number of processors involved, the AS/400 system manages them all as a
single entity. It dispatches tasks to its processors and ensures that usage is balanced. A
long-running program or other task encountered during development or testing can have an
impact on production activity if these SAP Systems are running on the same machine. You
can minimize the potential impact of this by running development and test systems at a lower
priority than the production system.
May 2000 11
1 Installation Planning SAP AG
Installation Preparations
Activity
Update code page-specific entries (see note 15023).
Check that the hardware and software requirements [Page 8] have been met.
Obtain the notes: 300097 (4.6C Installation Note), 83292 (Information on PTFs and Info
APARs)
Read the Notes carefully.
Check that you have all the necessary documentation listed in Obtaining the Necessary
Documentation [Page 26].
Check that all necessary PTFs have been installed (see note 83292).
Check and adjust AS/400 system values. [Page 16]
Check that a user ASP has been installed.
Add a user ASP [Page 22] if this has not already been done.
Check the device description for the optical device.
Enter AS/400 command WRKDEVD and check OPT01.
Configure TCP/IP [Page 24].
Check that TCP/IP has been configured correctly and is active.
Check the status of TCP/IP with AS/400 command WRKACTJOB, subsystem QSYSWRK,
job QTCPIP.
Start TCP/IP with AS/400 command STRTCP.
Start subsystem QSERVER and subsystem job QPWFSERVSD on each AS/400 system.
Use ping to database server and the reverse. Start subsystem QSERVER with AS/400
command STRSBS QSERVER.
Check that the database monitor is switched off.
12 May 2000
SAP AG 1 Installation Planning
Post-Installation Activities
Activity
Fax the form “Request Fax License Key/Installation Report” to SAP
Install the permanent SAP license
R3SETUP option 3 (Work with SAP license information)
Install optional components
R3SETUP option 5 (Load RFC SDK library) or option 6 (Load CPI-C SDK library).
Change the password for supplied profile <SID>OFR with AS/400 commands CHGPWD
(to change your own password) or CHGUSRPRF (to change someone else’s password).
Make sure you do this on all AS/400 systems. Passwords must be identical on all
systems.
Ensure that there are no active jobs with:
WRKACTJOB SBS(R3_<instance_number>)
May 2000 13
1 Installation Planning SAP AG
14 May 2000
SAP AG 1 Installation Planning
Procedure
1. Install the Qshell Utilities for AS/400 (product 5799-XEH).
2. Install option 30 of the Qshell Interpreter (product 5769SS1).
For more information on Qshell and installing the Qshell Utilities for AS/400 and the Qshell
Interpreter, see the following Internet URL:
http://www.ibm.com/as400/developer/qshell
May 2000 15
2 Installation Preparations SAP AG
2 Installation Preparations
Purpose
Before you start the installation, you must prepare the operating system and the SAP System.
Prerequisites
You have completed the planning phase.
Process Flow
1. Check and adjust AS/400 system values [Page 16]
2. Adjust startup program QSTRUP [Page 20]
3. Add a user ASP [Page 22] (if necessary)
4. Configure TCP/IP [Page 24]
5. Obtain the necessary documentation [Page 26]
Result
You can now start the SAP SYSTEM installation.
16 May 2000
SAP AG 2 Installation Preparations
Prerequisites
• You have entered the following command to switch on work control block compression:
CHGIPLA CPRJOBTBL(*ALL)
This allows work control block space to be reused.
• The recommendations given below for system values QACTJOB, QTOTJOB, QADLACTJ, and
QADLTOTJ assume that only the SAP System is running on the AS/400. If you are also
running other applications, you might need to preallocate more jobs. The values QACTJOB
and QTOTJOB are used for initial space allocation at IPL (initial program load) time for the
number of active jobs and the total number of jobs that will be in the system at any one time.
If or when the allocated number of either type is reached, the system values QADLACTJ and
QADLTOTJ determine how many additional jobs of that type are to have space allocated.
Procedure
• To display all system values, enter:
WRKSYSVAL SYSVAL(*ALL) OUTPUT(*PRINT)
• To display or change individual system values, enter:
WRKSYSVAL SYSVAL(<system_value_name>)
and choose option 5 (Display) or option 2 (Change).
After changing a system value, select option 5 (Display) to check your changes.
To avoid having to run an IPL (initial program load) several times, we recommend
that you delay the IPL until you have made all the necessary changes to the
system values (and added a user ASP, if necessary).
May 2000 17
2 Installation Preparations SAP AG
18 May 2000
SAP AG 2 Installation Preparations
May 2000 19
SAP AG
After changing all the system values, perform an IPL to activate all your changes. You have to do
this before starting the SAP System. (If you need to add a user ASP (auxiliary storage pool), wait
until you have done this before performing the IPL.)
Result
You have made the necessary adjustments to AS/400 system values to enable the SAP System
to run correctly on AS/400.
If you have other SAP Systems with earlier R/3 releases, you also require the job
QXDAEDRSQL in your startup program QSTRUP. The procedure for including
QXDAEDRSQL in your startup program is described in the installation guides for
releases prior to 46B.
To cause the job QXDAEDRSQL to be started automatically after each IPL, enter the following
code into program QSTRUP:
STRTCPSVR SERVER(*EDRSQL)
MONMSG MSGID(CPF0000)
20 May 2000
SAP AG 2 Installation Preparations
Prerequisites
To edit startup program QSTRUP, you require either system editor SEU or command EDTF.
Procedure
1. As no source statements are provided for startup program QSTRUP, you have to retrieve the
CL (control language) source statements from CL program QSTRUP. (This is possible if
parameter RTVCLSRC (*YES) was specified when the program was created.) To retrieve
the CL source statements, enter:
RTVCLSRC PGM(QSYS/QSTRUP) SRCFILE(QGPL/QCLSRC) SRCMBR(QSTRUP)
If the source statements are retrieved successfully, this message is displayed:
CL source retrieved for program QSTRUP in QSYS.
2. If you are editing the program with SEU, enter:
STRSEU SRCFILE(QGPL/QCLSRC) SRCMBR(QSTRUP)
3. To start TCP/IP automatically, enter the command:
STRTCP
Start TCP/IP before you start subsystem QSERVER. The parameter DLYJOB
DLY(30) gives TCP/IP time to start before the subsystem is started.
If you decide not to or are unable to edit program QSTRUP, you can start TCP/IP
manually. At this point, QSERVER is normally already running. Before starting
TCP/IP, shut down the subsystem with command ENDSBS.
4. To start the job QXDAEDRSQL automatically, enter the following into program QSTRUP:
STRTCPSVR SERVER(*EDRSQL)
MONMSG MSGID(CPF0000)
5. For users with OfficeVision/400: To start subsystem QSNADS, enter:
STRSBS SBSD(QSNADS)
May 2000 21
SAP AG
Do not change the original QSTRUP program supplied by IBM. Instead, create a
modified version of QSTRUP in library QGPL. If you do this, the program will not be
overwritten when an IBM system upgrade is performed.
To do so, enter:
CRTCLPGM PGM(QGPL/QSTRUP) SRCFILE(QGPL/QCLSRC) SRCMBR(QSTRUP)
If the program is created successfully, you receive this message:
Program QSTRUP created in library QGPL.
8. To make sure that your adjusted startup program (and not the default startup program) is
started after an IPL, adjust system value QSTRUPPGM. See Checking and Adjusting AS/400
System Values [Page 16].
Result
The programs and jobs you have included in your startup program are started automatically
when you perform an IPL (initial program load) of your AS/400 system. To check if TCP/IP is
running, enter WRKACTJOB. Look for subsystem QSYSWRK, job QTCPIP. If the job is running, the
entry in the status column is normally DEQW.
22 May 2000
SAP AG 2 Installation Preparations
5. Select option 2 (Display disk configuration capacity). You can see whether a user ASP exists
and, if so, make sure that it still contains enough space (see the recommended values given
above).
You will encounter problems during installation if you have an existing user ASP
that contains journal receivers or save files belonging to libraries that are located
in another ASP. In this case, you will not be able to create additional libraries in
this user ASP and the installation will fail.
If you have sufficient disk space, we recommend that you work around this
problem by adding a second user ASP (for example, ASP 3). The alternative
would be to leave the journal receivers in the system ASP. However, we do not
recommend this for security and performance reasons.
For detailed information, see the IBM documentation OS/400 Backup and
Recovery Version 4 (SC41-5304).
Adding a User ASP
1. Perform a manual IPL (Initial Program Load) of your AS/400.
− Set the mode to “manual” on the control panel
− Enter the AS/400 command:
PWRDWNSYS *IMMED RESTART(*YES)
2. Select option 3 (Use Dedicated Service Tools (DST)) from the menu that appears.
3. Sign on by entering your DST user and password.
4. Select option 4 (Work with disk units)
5. Select option 1 (Work with disk configuration).
6. Select option 3 (Work with ASP configuration).
7. Select option 6 (Move units from one ASP to another).
8. Specify the ASP to which you wish to move specific units by entering the number of the ASP
next to the relevant unit in the column New ASP.
9. Choose ENTER.
10. In the next screen, choose ENTER to confirm that you wish to continue.
11. The Confirm Move of Units display appears. To confirm your choices, choose ENTER. Moving
units will take several minutes.
12. Continue the procedure and complete the IPL.
13. Switch back to normal mode.
May 2000 23
2 Installation Preparations SAP AG
Prerequisites
Before configuring TCP/IP, do the following:
• Make sure you have the following information:
− The protocol of the Local Area Network to which your AS/400 machine is attached (that
is, whether it is Token Ring or Ethernet)
− The IP addresses of your AS/400, subnet mask, and router or gateway
− The local domain name
− The AS/400 host name
• Decide on your AS/400 host name. The host name cannot be longer than 8 characters. If you
have already specified a name longer than this, change the name to one that does not
exceed eight characters.
The TCP/IP configuration on AS/400 is case sensitive. Do not enter your host
name once in uppercase and then in lowercase. It is important that you enclose
your host name entry in single quotation marks. Otherwise the AS/400 will read
the characters as upper case characters.
Procedure
24 May 2000
SAP AG 2 Installation Preparations
You need two entries: one for the loopback entry and one for the IP address of your AS/400
system.
The loopback address always has the IP address 127.0.0.1, subnet mask 255.0.0.0
and line description *LOOPBACK.
To add an entry, type option 1 (ADD) and choose ENTER.
Add entries for the first three fields and accept the default values for the other fields.
3. If the route to the remote host, in this case the PC workstation, is through a gateway, or the
remote host resides in a different network or subnetwork to the local host, it will be necessary
to configure a route.
Choose option 2 from the Configure TCP/IP menu to work with TCP/IP routes and add an
entry containing your router’s IP address.
4. The local host table on the AS/400 system contains a list of the Internet addresses and
associated host names for this network. If you are not using a name server, you will have to
add an entry here for the local system and each remote system (PC).
You will need to create a loopback entry and add an additional host name underneath called
LOCALHOST.
5. Select option 12 (Change local domain and host names):
6. Check that you have entries under “Local Domain Name” and “Local Host Name”.
7. To check your local host name, choose option 10 “Work with TCP/IP host table entries”. Your
host name must take the form:
‘<host_name>.<domain_name>’
that is, it combines the two entries found under option 12.
May 2000 25
2 Installation Preparations SAP AG
It is important that you enclose your host name entry in single quotation marks. If
you do not, the AS/400 will read the characters as uppercase characters.
8. Select option 13 “Change remote name server”:
If you have a remote name server or remote name servers, you will need to define the IP
address here.
Result
The AS/400 machine is integrated into your TCP/IP network.
In this example it is assumed that the host name is “as0008” and the domain
name “wdf.sap-ag.de”. In this case, your entries would be as follows:
ping ‘as0008’
ping ‘as0008.wdf.sap-ag.de’
After installing the SAP System kernel, check the TCP/IP connection again with the command:
WRKLNK ‘/QFileSvr.400/<host_name>’
Your host name should be displayed under Object link, for example, as0008 for the host in the
example given above.
For more information about TCP/IP configuration, see the IBM documentation TCP/IP
Configuration and Reference.
26 May 2000
SAP AG 2 Installation Preparations
To make sure that you have the most recent versions, obtain the notes
immediately before you start to install.
• Check list - Installation requirements: Frontends
This check list gives the minimum requirements for installing an SAP frontend.
• Installing SAP Frontend Software for PCs
This documentation describes the installation of presentation servers.
• SAP-Supported Network Products
• SAP Language Transport
(if required)
May 2000 27
2 Installation Preparations SAP AG
Printed Guides
Some of these printed guides are included as part of the delivery. You can order additional
copies from SAP.
Title Material Number
Installing Frontend Software for PCs, 51009695
Release 4.6B
SAP Language Transport, Release 4.6B 51009452
R/3 Homogeneous System Copy, Release 51009474
4.6B
28 May 2000
SAP AG 2 Installation Preparations
May 2000 29
SAP AG
Process Flow
1. You install the central instance and database in one of the following ways:
− On a single host as a central system
− On two different hosts as a standalone database system
2. If required, you install one or more dialog instances on additional hosts in the system.
3. You install the SAP frontends.
See the documentation Installation of the SAP Frontend Software for PCs. This is included in
the installation package.
4. If required, you install a standalone gateway instance.
30 May 2000
SAP AG 3 The SAP System Installation
Prerequisites
Your PC is connected to the TCP/IP network.
Procedure
1. Insert the AS/400 Kernel CD into your PC CD-ROM drive.
2. Create an installation directory <INSTGUIDIR> on your PC. It should be possible for any
user to access this directory. To do so, enter:
MKDIR <INSTGUIDIR>
3. Change to directory <INSTGUIDIR>:
CD <INSTGUIDIR>
4. Copy the program INSTGUI.EXE from the AS/400 kernel CD to directory <INSTGUIDIR>.
(Make sure that you copy the correct INSTGUI for your hardware platform.):
copy <CD_drive>:\NT\<processor_type>\INSTGUI*.*
5. To unpack the R3SETUP online help on your PC (making sure that you use the CAR
appropriate for your hardware platform), enter:
<CD_drive>:\NT\<processor_type>\SAPCAR -xgvf <CD_drive>:\Docu\R3s_doc.scar
Result
The program INSTGUI.EXE is copied to your directory <INSTGUIDIR>.
A subdirectory doc is created on your PC. The R3SETUP online help files are copied into this
directory.
Procedure
1. Start your Windows NT 4.0 or Windows 95 Explorer.
2. Enter <INSTGUIDIR>\INSTGUI
May 2000 31
SAP AG
If you have stored the R3SETUP online help files in a directory other than
<instguidir>\doc, start INSTGUI with the option -docupath <path>.
To start INSTGUI if you have configured your AS/400 as an HTTP server (see Configuring
Your AS/400 as an HTTP Server), enter:
<INSTGUIDIR>\INSTGUI -docupath http://<your_AS400>/r3setup
Result
INSTGUI is started. You can now start R3SETUP.
Procedure
To load the objects required for installation and configuration from the CD:
1. Execute the LODRUN (Load and Run) command by entering:
LODRUN *OPT DIR(‘/OS400/AS400/INSTALL’) or LODRUN
<CD_device_description_name> DIR(‘/OS400/AS400/INSTALL’)
2. Enter /QOPT at the CD path prompt.
Result
The R3SETUP library is created on your AS/400. The R3SETUP main menu appears.
32 May 2000
SAP AG 3 The SAP System Installation
Prerequisites
The user profile for the user performing the installation has special authority *ALLOBJ and/or the
user class is *SECOFR.
Procedure
1. Add the R3SETUP library to your library list:
ADDLIBLE R3SETUP
2. Enter Go R3SETUP.
3. Select option 1 (Copy Installation Files from CD).
4. Enter the SAP system ID, for example “C11”.
Result
The following template files are copied to the installation directory /tmp/<SID>:
CENTRDB.R3S
CENTRAL.R3S
DATABASE.R3S
DIALOG.R3S
GATEWAY.R3S
DBR3CP.R3S
DBEXPORT.R3S
May 2000 33
3 The SAP System Installation SAP AG
Procedure
To start R3SETUP, enter the command:
CD <INSTDIR>
ADDLIBLE R3SETUP
R3SETUP ‘-f <command file>’
The name of the command file is <SERVICE>.R3S. For example, the name of the command file
for the installation of a central instance is CENTRAL.R3S.
When you call R3SETUP, you specify the service you wish to install. For example, to install a
dialog instance, you enter R3SETUP ‘-f dialog.r3s’.
Result
After it has been started, R3SETUP performs all installation steps that are defined in the
command file. It writes error messages, warnings and other information to the log file
<INSTDIR>/<SERVICE>.log. Important messages are also written to the console or INSTGUI.
When the last installation step is completed, R3SETUP sends the message “R3SETUP finished.”
If R3SETUP encounters a problem that it cannot handle, it stops with an error message.
34 May 2000
SAP AG 3 The SAP System Installation
Which of these two approaches is best for your environment depends on various
factors such as the type of applications you intend to deploy, the size of the
anticipated workload, and the number of concurrent users expected. The most
commonly implemented configuration for an average-size system is a central
system. A standalone database system is usually implemented for larger systems
with a high throughput.
Prerequisites
In a sizing phase, well in advance of the actual installation procedure, you have to decide
whether a central system or standalone database system best meets your business
requirements. The SAP hardware partners provide support for this task. On the basis of
information about your present and future business requirements and with the help of the SAP
Quick Sizer tool, the partners can recommend a technical infrastructure that is suitable for your
workload. They assess the right combination of resources such as CPU, disk space, and memory
and propose an appropriate configuration.
Process Flow
1. Before creating your SAP System and instances, decide whether you want to change the
location of your /usr/sap/trans directory. If you decide to use the local directory, the
default entry for the directory is correct. However, you may choose to share the directory
across AS/400 systems, since using a shared /usr/sap/trans directory makes it easier to
maintain your SAP System and instance configuration data.
To change the location of the /usr/sap/trans directory:
a. Select option 4 (Change the location of the /usr/sap/trans directory) in the R3SETUP
main menu.
b. For New host system name, enter the name of the AS/400 system containing the
/sapmnt/trans directory you want to link to.
2. When installing a 3-tier system, that is a system where the central instance and database
instance are on different hosts, you must install the central instance before installing the
database instance.
a. Installing the Central Instance
You run R3SETUP on the central instance host using template CENTRAL.R3S. You must
take care to make the correct entries for the database instance host and central instance
host. You should use the same library name for the kernel on both the central instance
host and the database host.
Running the CENTRAL.R3S template is a prerequisite for completing the installation on
the database host. At this point, it is not possible to start the SAP System, as installation
is not yet complete. You start job QXDAEDRSQL on the central instance host as described
in Accessing a Remote Database [Page 55].
b. Installing the Database Instance
You run R3SETUP on the database host using template DATABASE.R3S. Once again,
you must take care to specify the central instance host name and database host name
correctly. You must specify the same instance number as you specified during the
May 2000 35
SAP AG
installation of the central instance. Take into account that during installation the library
name of the kernels on both instances must be the same.
When you run R3SETUP using the template DATABASE.R3S, the following happens:
After loading the database, the installation tries to create the central instance remotely by
running command CRTR3INST. This creates all the profiles and objects needed for the
central instance on the central instance host.
The SAP System is started and some database-specific installation steps are starting via
RFC by running program RADDBDIF. The first time a connection is made between the
database and central instance, this is done using TCP/IP. If you wish to activate
communications using Opticonnect, you will need to change the instance profile
accordingly.
Result
After you have completed the installation, you have to decide where your transport directory is to
reside. We recommend that you locate your transport directory on the database host, since you
can save it together with the database system using the SAVR3SYS command. To change the
location of your /usr/sap/trans directory, use command CHGR3SHLOC.
If you decide to share the /usr/sap/trans directory with the R/3 command CHGR3SHLOC,
make sure that the user profiles of <SID>OFR or QSECOFR who run this command also exist on
the specified host with the same passwords. This is a requirement of QfileSvr.400.
Procedure
1. Start R3SETUP with the specify command file option, specifying the command file for
installing a dialog instance:
R3SETUP ‘-f centrdb.r3s’
2. Alternatively, if you started INSTGUI as described in Starting INSTGUI, enter:
R3SETUP ‘-f centrdb.r3s -g <instgui_hostname>:port’
36 May 2000
SAP AG 3 The SAP System Installation
Do not use instance numbers 98 and 99. These instance numbers are reserved
for internal purposes.
Make sure that you specify an instance number (SAPSYSNR) that does not
already exist on this host.
− The name of the central instance host, for example as0070.
− The name of the database server, for example as0070.
− The name of the SAP kernel library, for example R346BOPT.
R3SETUP does not currently support the use of an existing kernel. To apply an
existing kernel after installation, use the APYR3KRN command.
− The OS/400 release on which the kernel was compiled, for example V4R4.
This OS/400 release might not be the same as the OS/400 release of your
AS/400 system!
− The number of the ASP (auxiliary storage pool) for the database. The default value is 1.
− The number of the ASP for the journal receivers. The default value is the number of
ASPs on your AS/400.
4. Enter the directory path where the SAP kernel CD can be accessed.
Example: /QOPT/CD12345678
5. Enter the directory path where the database export CD 1 can be accessed.
Example: /QOPT/CD12345678
6. Enter the directory to which you want the contents of database export CD 1 to be copied.
Example: /tmp/C11/db1
7. Enter the directory path where the database export CD 2 can be accessed.
Example: /QOPT/CD12345678
8. Enter the directory to which you want the contents of database export CD 2 to be copied.
May 2000 37
3 The SAP System Installation SAP AG
Example: /tmp/C11/db2
9. Enter the directory path where the database export CD 3 can be accessed.
Example: /QOPT/CD12345678
10. Enter the number of parallel R3load processes you require.
Example: 15
11. Enter or confirm the platform for the loads to be imported. Accept the default value AS4.
R3SETUP prompts you to insert the installation CDs as required. At this time, the CDs must be
inserted. The CDs are required in the following order:
1. Database export CD 1
2. Database export CD 2
3. SAP kernel CD
4. Database export CD3
After the CDs have been inserted, R3SETUP stops at the step EXITMNLS_IND_IND and
prompts you to make code page-specific entries for your SAP System. Refer to Note 15023.
R3SETUP now runs through the following remaining installation steps without requiring further
user entries:
38 May 2000
SAP AG 3 The SAP System Installation
Result
R3SETUP ends with the message R3SETUP finished. If problems occur, a dialog box appears
with the message Your system is not installed correctly.
The table below shows the runtime of the most important installation steps expressed as a
percentage of the runtime of all the installation steps.
The values given in the table do not correspond to the values displayed by
INSTGUI during the installation. (The INSTGUI values indicate the proportion of
installation steps processed and do not give any information about the proportion
of the total runtime completed.)
May 2000 39
SAP AG
Prerequisites
• You are signed on as user QSECOFR.
• You have loaded the objects required for installation.
• You have copied the command files from CD.
• Your current directory is the installation directory (for example, /TMP/<SID>).
• You have switched off the database monitor.
• INSTGUI has been started if you are using it.
Procedure
1. Start R3SETUP with the specify command file option, specifying the command file for
installing a dialog instance:
R3SETUP ‘-f database.r3s’
40 May 2000
SAP AG 3 The SAP System Installation
Do not use instance numbers 98 and 99. These instance numbers are reserved
for internal purposes.
Make sure that you specify an instance number (SAPSYSNR) that does not
already exist on this host.
− The name of the central instance host, for example as0070.
− The name of the database server, for example as0071.
− The name of the SAP kernel library, for example R346BOPT.
This OS/400 release might not be the same as the OS/400 release of your
AS/400 system!
− The number of the ASP (auxiliary storage pool) for the database. The default value is 1.
− The number of the ASP for the journal receivers. The default value is 2.
3. Enter the directory path where the SAP kernel CD can be accessed.
Example: /QOPT/CD12345678
4. Enter the directory path where the database export CD 1 can be accessed.
Example: /QOPT/CD12345678
5. Enter the directory to which you want the contents of database export CD 1 to be copied.
Example: /tmp/C11/db1
6. Enter the directory path where the database export CD 2 can be accessed.
Example: /QOPT/CD12345678
7. Enter the directory to which you want the contents of database export CD 2 to be copied.
Example: /tmp/C11/db2
8. Enter the directory path where the database export CD 3 can be accessed.
Example: /QOPT/CD12345678
May 2000 41
3 The SAP System Installation SAP AG
42 May 2000
SAP AG 3 The SAP System Installation
Result
When the installation has finished, R3SETUP ends with the message R3SETUP finished. If
problems occur, a dialog box appears with the message Your system is not installed correctly.
May 2000 43
3 The SAP System Installation SAP AG
Procedure
1. Start R3SETUP with the desired command file option, specifying one of the command files
for installing a central, dialog, or gateway instance:
R3SETUP ‘-f central.r3s’
R3SETUP ‘-f dialog.r3s’
R3SETUP ‘-f gateway.r3s’
Alternatively, if you started INSTGUI as described in Starting INSTGUI, enter one of the
following:
R3SETUP ‘-f central.r3s -g <instgui_hostname>:port’
R3SETUP ‘-f dialog.r3s -g <instgui_hostname>:port’
44 May 2000
SAP AG 3 The SAP System Installation
Do not use instance numbers 98 and 99. These instance numbers are reserved
for internal purposes.
Make sure that you specify an instance number (SAPSYSNR) that does not
already exist on this host.
− The name of the central instance host, for example as0070.
− The name of the database host, for example as0071.
− The name of the SAP kernel library, for example R346BOPT.
− Your OS/400 release.
3. Insert the SAP kernel CD.
4. You are prompted to enter or confirm the path to the SAP kernel CD, for example
/QOPT/<CD_label_name> (You are asked to make this entry twice.)
R3SETUP now runs through the following remaining installation steps without requiring further
user entries:
May 2000 45
SAP AG
The last two steps apply only to dialog and gateway instances.
Result
When the installation has finished, R3SETUP ends with the message R3SETUP finished. If
problems occur, a dialog box appears with the message Your system is not installed correctly.
Procedure
To install the frontend software, follow the procedure described in Installing SAP Frontend
Software for PCs (or, in the case of the IBM Network Station) in SAP R/3 Implementation on
AS/400.
46 May 2000
SAP AG 4 Post-Installation Activities
4 Post-Installation Activities
Purpose
This section describes how you complete and check the installation of the SAP System.
Many of the steps in this process are documented in detail in the System
Administration Assistant. You can use this Assistant to execute the step and call
up the documentation.
Prerequisites
You have completed the SAP System installation on all the hosts of your SAP System, including
setting up at least one frontend (for example, on the central instance host).
You install the frontend software on at least one host machine in your system environment. To
simplify administration of your SAP System, we recommend that you do this on the central
instance host.
For more information on installing the frontend software, see the separate documentation:
• Installing SAP Frontend Software for PCs (English version)
• SAP-Frontend-Software für PCs installieren (German version)
Process Flow
1. If you have a preloaded SAP System, you perform any actions necessary for preloaded
systems [Page 48].
2. You update your code page-specific entries.
Proceed as described in Note 15023.
3. You grant authorizations for the operating system [Page 49].
4. You install the permanent SAP license key [Page 50].
5. You check that you can start and stop the SAP System [Page 51].
6. You check that you can log on to the SAP System [Page 52] with the SAP frontend.
7. You change the passwords for the user profiles [Page 53].
8. You delete the R3SETUP library and installation directory [Page 54].
9. You configure SAProuter and the SAPNet − R/3 Frontend [Page 56].
10. You import any additional languages your require. For instructions, refer to the separate
documentation SAP Language Transport. For information about how to import non-Latin-1
languages, see Note 99792 and Code Page Tables [Page 82].
11. If you are planning to use SAP Retail, see Note 138360.
12. You set up a printer. For instructions, see BC Printing Guide. To access this documentation,
choose Help → SAP Library → BC Basis Components → Computing Center Management
System (BC-CCM) → BC Printing Guide.
13. You perform a full backup [Page 59].
May 2000 47
4 Post-Installation Activities SAP AG
Result
You have completed and checked the SAP System installation.
You now need to prepare the SAP System for using business applications. This process includes
customizing the Basis System and the various business components. The procedure for
implementing the business processes and organizational structure of your SAP System is not
described in this documentation.
48 May 2000
SAP AG 4 Post-Installation Activities
Prerequisites
You have a preloaded SAP System on your AS/400.
Process Flow
You have to perform the following actions:
• Install and test SAP GUI on your PCs.
• Set up and log on to the SAPNet – R/3 Frontend.
• Configure SAP users, printers, and the central system log.
• Make client copies (if required).
• Transport a further language (if required).
• Request programmer license keys (using the SAPNet – R/3 Frontend).
Result
Your preloaded SAP System is ready for use. If you have any questions related to the SAP
Preload, contact your SAP R/3 on AS/400 IBM Country Focal Point.
Procedure
Enter the commands:
GRTOBJAUT OBJ(QSYS/QPMLPFRD) OBJTYPE(*PGM) USER(<SID>OWNER) AUT(*USE)
GRTOBJAUT OBJ(QSYS/QPMWKCOL) OBJTYPE(*PGM) USER(<SID>OWNER) AUT(*USE)
May 2000 49
4 Post-Installation Activities SAP AG
Prerequisites
You need to install a new permanent license if you are:
• Performing a new SAP System installation
• Renaming your SAP system ID (that is, <SID>)
• Changing the message server host (that is, the central instance)
• Changing an existing hardware configuration
To see online help for the license installation, enter the following command:
saplicense '-help'
For more information about the license, see the SAP online documentation (BC Basis → Kernel
Components → BC SAP License).
Procedure
1. To find the hardware key (that is, the customer key) needed for the license request, enter the
following command on the host where the message server is running:
saplicense '-get'
The system displays an 11-character hardware key, for example, D1903055560.
2. Using the fax form in the installation package, send a fax with the following information to
SAP:
− Hardware key from previous step
− Name of the installed R/3 System (that is, the value of <SID>)
− The date when you installed the database
3. After you have received your license key from SAP, install it as follows, making sure you
enter the license key exactly as shown in the SAP reply to your fax:
saplicense '-install'
− If the license installation is successful, you see the following message:
license successfully installed
You now have a permanent license for your SAP System
− If the license installation is not successful, you see the following message:
check failed, no license installed
50 May 2000
SAP AG
4. For more information, see SAP online documentation (BC Basis → Kernel Components →
BC SAP License).
Prerequisites
• You have performed an IPL (initial program load) of your AS/400 system.
• You have checked that there are no active jobs for the instance that you have just installed.
To do so, enter:
WRKACTJOB SBS(R3_<instance_number>)
If a job is displayed, stop it with the command:
ENDSBS SBS(R3_<instance_number>)
Make sure that default option *IMMED is set.
Procedure
Starting the SAP System
1. Log on to your AS/400 system as <SID>OPR or <SID>OFR.
2. Enter STARTSAP and choose F4 to prompt for parameters.
3. Enter the SAP System ID (for example, “C11”) and instance number (for example “90”). We
recommend that you retain the default value *ENV for both SAP System ID and the instance
number. *ENV will be replaced by the correct value for the SAP system ID. In the case of the
instance number, the value *ENV represents the central instance number. A subsystem
R3_nn will be started (where “nn” is the instance number), along with all the associated SAP
services (such as dispatcher, work processes, spool). Specify WAIT(*YES) to make sure
that the system is up and running on termination of STARTSAP.
4. To check whether your SAP System started successfully, enter:
WRKACTJOB SBS(R3_nn)
5. On the next screen, check the entry in the first line of the Status column on the right of the
screen. If your SAP System started correctly, this field should contain the value RUN
(running), SELW (select wait) or DEQW (waiting for the completion of a dequeue operation). It
may take several minutes for the file system to reach this state.
May 2000 51
SAP AG
52 May 2000
SAP AG 4 Post-Installation Activities
For security reasons you are strongly recommended to change these SAP
System passwords as soon as possible. See Changing the Initial Passwords.
Procedure
Log on as user SAP* (password: 06071992) and test the following:
1. Enter a new password and confirm it in the text boxes.
2. Call transaction SM50.
The services available for the instance should now be displayed, that is, dialog, update,
enqueue, background, and spool.
If the display is empty, check whether the message server is running using AS/400 command
WRKACTJOB (Work with Active Jobs). The process name is MSG_SERVER. If the process is
not running, /usr/sap/<SID>/DVEBMGS<no.>/work/dev_ms contains more information.
3. Check the system log using transaction SM21.
May 2000 53
4 Post-Installation Activities SAP AG
In 3-tier systems, these three users and the AS/400 superuser QSECOFR must
have the same password on all AS/400 systems.
Procedure
To change passwords at OS/400 level, use the command CHGPWD or CHGUSRPRF.
Prerequisites
• You have completed SAP System installation.
• The SAP System is up and running.
Procedure
Do not delete the log files unless you are sure that you will not need them again.
Do not delete log files other than those in the paths given here.
1. Delete library R3SETUP.
2. Delete directory /tmp/<SID> recursively with the command:
rrm '/tmp/<SID>'
54 May 2000
SAP AG 4 Post-Installation Activities
Procedure
Configuring the AS/400 System for OptiConnect
By default, the SAP System installation will use OptiConnect to access a remote database. To
use TCP/IP instead, you have to change the instance profile of each SAP instance and the
TPPARAM file as follows:
1. To edit the instance profile, enter the command:
EDTF ‘/usr/sap/<SID>/SYS/profile/<SID>_<ROLE>nn’
and insert the line:
dbs/db4/opticonnect = 0
2. To edit the TPPARAM file, enter the command:
EDTF ‘/usr/sap/trans/bin/TPPARAM’
and insert the line:
<SID>/opticonnect = 0
To switch back to OptiConnect, remove these lines.
For information about how to set up and start OptiConnect, refer to the IBM manual OptiConnect
for OS/400.
If you have both an SAP System with Release 4.6C and SAP Systems with lower
releases than 4.6A running on a single AS/400 system, you should note the
following:
In R/3 Release 4.6C the command STARTSAP *DB does not start the database
server job R3RMTDB, which is required for releases prior to 4.6A. To start these
SAP Systems, you should continue to use the command STARTSAP *DB from
the older R/3 release.
QXDAEDRSQL, the job necessary for accessing a remote database, is normally started
automatically. It runs in subsystem QSYSWRK. If it is not running, you can start it with the AS/400
command STARTSAP *DB.
When a work process connects to the QXDAEDRSQL job, the job spawns a second “shadow” job.
This shadow job is switched to run under the user profile running on the local system.
May 2000 55
SAP AG
If <SID>00 connects to the QXDAEDRSQL job, the job will spawn another job
under user profile QUSER. This new job is switched immediately to run under user
profile <SID>00.
Procedure
To get a complete list of SAProuter parameters, enter the following at the command line prompt:
saprouter
For more information see the SAP online documentation. For information on installing SAProuter
as a Windows NT service, see SAP Note 41054.
56 May 2000
SAP AG 4 Post-Installation Activities
3. Define the route your system is to take to connect to the relevant SAP Support Server.
a. In the TCP/IP Configuration Menu take option 2 Work with TCP/IP routes.
b. Choose option 1 = Add.
May 2000 57
4 Post-Installation Activities SAP AG
c. Enter the Route destination (that is, the Internet address of the SAP Support Server) and
the Next hop (the router via which your system reaches its destination).
In this example, this is an X.25 server in Walldorf (for Foster City (sapserv4) the address
would be 204.79.199.2, for Sydney (sapserv6) 147.204.96.8).
58 May 2000
SAP AG 4 Post-Installation Activities
Procedure
1. Log on to the AS/400 system from the console as user QSECOFR or as a user with *SAVSYS
rights and authorization to start and end subsystems.
To find the name of the console, look at system value QCONSOLE. To display this system
value, enter DSPSYSVAL QCONSOLE.
2. To shut down the AS/400 system, enter:
ENDSBS SBS(*ALL) OPTION(*IMMED) or ENDSYS.
3. Wait for the AS/400 system to go into restricted state. This could take a few minutes. To find
out whether the system has entered this state, enter:
DSPMSG QSYSOPR
4. Execute the SAVSYS (Save System) command. This command saves a copy of the Licensed
Internal Code and the QSYS library.
5. Enter the SAVLIB (Save Library) command specifying parameter *NONSYS. This command
saves all user-created libraries, the QPGL and QUSRSYS libraries, and IBM libraries.
6. Enter the SAVDLO (Save Document Library Object) command.
7. Using SAV commands, save the remaining objects. For an overview of the SAP directories
relevant for backups, see “R/3 Directories Relevant for Saving” in the documentation BC -
R/3 Database Guide: DB2/400.
Enter:
Name ‘/’
Include or omit *INCLUDE
Directory subtree *ALL
For detailed information, see the IBM backup and recovery documentation.
8. To start the controlling subsystem, enter the command STRSBS (Start Subsystem). To find
the name of the controlling subsystem, check system value QCTLSBSD. You can do this with
command DSPSYSVAL QCTLSBSD.
May 2000 59
4 Post-Installation Activities SAP AG
User Profiles
SAVSECDTA
Private Authorities
SAVLIB
IBM Libraries With User Data
(*ALLUSR)
SAVOBJ
User Libraries
SAVCHGOBJ
Result
See also: Restoring a Backup [Page 86]
60 May 2000
SAP AG 5 The R3SETUP Tool
Integration
You can use INSTGUI, the graphical user interface for R3SETUP, to monitor the progress of the
installation.
Prerequisites
R3SETUP does not support the following steps, which you must do before installation:
• UNIX
− Setup of file systems and raw devices
− Configuration of UNIX kernel parameters and swap space
• NT
− Installation of the Microsoft Management Console (MMC)
− Adjustment of virtual memory and file cache
• AS/400
− Configuration of AS/400 system values
− Addition of user auxiliary storage pools (ASPs)
− Configuration of TCP/IP
− Checking and adjusting memory pools
• OS/390
− Configuration of OS/390 UNIX System Services
− Setup of file systems
− Creation of OS/390 groups and users
Features
The R3SETUP tool supports the installation of:
• The central instance
• The database
• A dialog instance
• The SAP software development kits (UNIX)
• A standalone gateway
R3SETUP does this by:
• Creating operating system users and groups (UNIX and NT)
May 2000 61
5 The R3SETUP Tool SAP AG
Create a new installation directory every time you start R3SETUP with another
service (that is, with another command file identified by the ending .R3S).
Otherwise, old log and command files are overwritten.
When you start R3SETUP, the following options are available:
Option Meaning
-f <command file> Specify the service you want to install
(required)
-l <log file> Specify log file, default: <service>.log
-t trace Include detailed trace messages in log file
-g <gui_host>:<gui_port> Specify host and port for INSTGUI
-m Create file with messages for INSTGUI
-h List R3SETUP options
After it is started, R3SETUP shows the following properties:
• It performs all installation steps that are defined in the command file
• It writes error messages, warnings and other information to the log file
• Important messages are also written to the console.
• When the last installation step is completed, R3SETUP finishes with the message R3SETUP
finished.
• If R3SETUP encounters a problem that it cannot handle, it stops with an error message.
Activities
You can:
• Run R3SETUP unattended
You determine how R3SETUP performs the installation by making entries in a command file
during the input phase. This allows you to provide all the necessary information before the
actual installation starts. R3SETUP then goes into the processing phase to automatically
perform the installation in unattended mode, without prompting you for any further
information.
If necessary you can re-use the command file to perform another identical installation or to
restart the installation in the event of failure.
62 May 2000
SAP AG 5 The R3SETUP Tool
• Restart R3SETUP
The installation consists of a number of independent installation steps. If a step fails,
R3SETUP stops. When the problem has been solved, you can restart R3SETUP. Since
R3SETUP records the installation progress in the command file, it can continue the
installation from the failed step, without repeating previous steps.
May 2000 63
5 The R3SETUP Tool SAP AG
5.1 INSTGUI
Use
You use INSTGUI, the graphical user interface (GUI) for R3SETUP, during the:
• Input phase to enter information for later use by R3SETUP
• Processing phase to:
− Monitor progress of the installation steps
− View log messages
You can also use INSTGUI to get online help on R3SETUP.
Integration
Depending on your operating system platform, you start INSTGUI:
• Independently of R3SETUP as a separate process, on non-Windows platforms
• Simultaneously with R3SETUP, on Windows platforms
For a remote installation on Windows platforms, you also have to start INSTGUI as a separate
process on the host from which you supervise the installation.
If you use INSTGUI, it is closely integrated with R3SETUP to exchange information about the
progress of the installation.
Prerequisites
INSTGUI is available for X Windows (on UNIX operating systems) and for Windows NT 4.0 and
Windows 95 or 98.
Features
You can start INSTGUI with these options:
Options Meaning
-port <number> Port for communication with R3SETUP,
default: 59595
-docupath <path> Path to the R3SETUP online help files,
default: ./doc
-fontsize <size> Font size for INSTGUI (8 to 14), default: 8
-help List INSTGUI options
Activities
When using INSTGUI, you can switch between the following views:
• Step View
When you start R3SETUP, it goes into step view. You can:
− See which installation step is currently being performed and what it does
64 May 2000
SAP AG
− Get online help on the installation step that is currently being performed
− Switch to the log view
• Log View
This shows all R3SETUP messages as they are recorded in the log file. You can:
− Display the next or previous information, warning, or error message
− Get online help on the installation step that created a message
− Switch back to the step view
Use
During the input phase of the installation, you enter information into the R3SETUP command file,
which is then used by the R3SETUP program during the unattended processing phase of the
installation.
An installation step can run in one of two different modes, SKIP or DO. The default mode before
the installation is DO. After the step has run successfully, the default mode is SKIP. This means
the step is skipped if you restart R3SETUP.
You can force a step to run even if installation results already exist by adding the key
ACTION=FORCEDDO to the step's section in the command file. If you want to skip a step although
it has not yet run, add the key ACTION=SKIP.
If you modify the command file, you must save your changes before you start
R3SETUP. Otherwise, your changes have no effect.
May 2000 65
SAP AG
Structure
The command file consists of several sections. The beginning of a section is always indicated by
the section name in brackets. Each section contains a set of keys and their values. There are the
following types of section:
• The [EXE] section
This is the installation roadmap. Steps are listed in numerical order of execution, as shown in
the following example:
[EXE]
10=GATEWAYINSTANCE_IND_IND
20=R3GATEWAYPORT_IND_IND
30=R3GATEWAYSECURITYPORT_IND_IND
40=OSGROUPSAPLOCAL_NT_IND
50=OSUSERSIDADM_NT_ORA
60=R3DIRECTORIES_NT_IND
• Step sections
These describe in detail a step named in the [EXE] section. After execution, step sections
are updated with the status OK or ERROR.
• List section
These contain additional information for the installation, such as a list of directories to be
created. The names of list sections start with[Z…].
Keys enclosed in @ characters, for example @SAPSYSNR@, are variables that are replaced by
suitable values during the installation.
Use
Since the log file can contain up to several hundred messages, we recommend you use the
R3SETUP frontend to navigate through the messages. See Using R3SETUP Online Help [Page
67].
66 May 2000
SAP AG
Structure
Every message in the log file contains:
• Message type (INFO, WARNING, or ERROR)
• Date and time
• Installation step (that is, the name of the section in the command file)
• Message and text
Prerequisites
You need an HTML browser to view the online help for the R3SETUP installation steps:
• UNIX
Netscape Navigator 3.0 or higher
The HTML help files are stored in a SAR archive on the SAP Kernel CD. They are
unpacked and stored in the directory <INSTDIR>/doc by the shell script when INSTGUI is
copied from the CD to the hard disk.
• Windows
Windows NT 4.0 and Windows 95
Netscape Navigator 3.0 or higher (32-bit version), and Microsoft Internet Explorer 3.0 or
higher (32-bit version). Internet Explorer is shipped with the SAP System on the Online
Documentation CD. See the README.TXT file on this CD.
The HTML help files are stored in a SAR archive on the SAP Kernel CD. They are
unpacked and stored in the directory <instguidir>/doc on your PC.
• AS/400
Netscape Navigator 3.0 or higher (32-bit version), and Microsoft Internet Explorer 3.0 or
higher (32-bit version). Internet Explorer is shipped with the SAP System on the Online
Documentation CD. See the README.TXT file on this CD.
The HTML help files are stored in a SAR archive on the SAP Kernel CD. You can do one of
the following:
May 2000 67
5 The R3SETUP Tool SAP AG
− Unpack the HTML files and store them in the directory <instguidir>/doc on your PC.
− Configure your AS/400 as an HTTP server and unpack and store the HTML files on your
AS/400.
Procedure
You can access the R3SETUP online help in the following ways:
• You can display context-sensitive help on installation steps and log messages by choosing
Help in INSTGUI.
• You can browse the help by opening the file <INSTDIR>/doc/_START.HTM (AS/400:
<instguidir>/doc/START.HTM) on your PC with your web browser.
• AS/400: If you configured your AS/400 as an HTTP server, you can also start INSTGUI with
the option instgui -docupath http://<your_AS400>/r3setup/
Procedure
For information about how to proceed, see the IBM documentation HTTP Server for AS/400
Webmaster's Guide (available on the IBM Softcopy Library CD) (document number GC41-5434-
03)
1. Install the product:
5769DG1 IBM HTTP Server for AS/400
2. To start the Administration Server instance, enter:
STRTCPSVR SERVER(*HTTP) HTTPSVR(*ADMIN)
3. Direct a Web browser to the following location:
http://<your.server.name>:2001/
(where <your.server.name> is the name of your AS/400 system)
4. Choose Configuration and Administration → Global server parameters.
5. Set AUTOSTART to *YES.
6. Choose Configuration and Administration → Configurations → Request processing →
Request routing.
7. Select Insert after.
8. For Action, choose Pass.
68 May 2000
SAP AG 5 The R3SETUP Tool
11. To save your entries, choose Apply. Your entry now appears in the table as shown below.
Example of a Pass Entry
Result
Your AS/400 is now configured as an HTTP server. To start INSTGUI, use the following option:
instgui -docupath http://<your.server.name>/r3setup
May 2000 69
5 The R3SETUP Tool SAP AG
Prerequisites
If an installation step fails, R3SETUP stops with an error message.
Procedure
1. Look at the log file [Page 72] to find out exactly what happened.
2. If necessary, see the R3SETUP online help [Page 67].
3. When you have solved the problem, restart R3SETUP.
Since R3SETUP records installation progress in the command file, it can continue the installation
from the point of failure.
70 May 2000
SAP AG 6 Error Handling
6 Error Handling
Errors can occur in a number of different situations. You can check the following:
• To find out which phase failed and which function could not be performed, look at the log file
<service>.log [Page 71] in the installation directory on your AS/400.
• To find out if an AS/400 escape message was sent by the operating system, look at the job
log of the job that was running R3SETUP. Enter:
DSPJOBLOG
• If an error occurs during the database load, refer to Handling Problems During the Database
Load. [Page 72]
• If an error occurs during an RFC step, refer to Correcting Errors in RFC Steps [Page 74].
• To check that the correct user profile is being used, examine the job that is running
R3SETUP. To do so:
a. Enter DSPJOB.
b. Choose option 1 Display job status attributes.
c. Make sure that the user profile entered for Current user profile is the one that started
R3SETUP.
This problem can occur if the user switch from <SID>OFR to QSECOFR or the reverse
could not be performed.
d. If your current user profile is <SID>OFR, log off from your AS/400 session and log on
again as QSECOFR. Then restart R3SETUP.
May 2000 71
6 Error Handling SAP AG
Use
To display the log file, enter:
DSPSTMF '/tmp/<SID>/<SERVICE>.log
To display the log for the installation service Central Instance with Database
Installation, enter:
DSPSTMF '/tmp/C11/CENTRDB.log'
Example
The following is an example of the file <service>.log. In this example, the SAP System being
installed is called C11.
...
INFO 1998-10-20 13:20:37 CDSERVER_IND_DB4 CheckCopyDirectoryForCD:0
The directory to which you want to copy the contents of the CD is
not empty. You cannot copy to a directory that is not empty. If the
directory already contains the CD, this is not an error.
WARNING 1998-10-20 13:20:37 CDSERVER_IND_DB4 CheckCopyDirectoryForCD:0
The CD EXPORT2 has already been copied to /tmp/C11/db2. It cannot
be copied again. Check directory /tmp/C11/db2.
...
The step CDSERVER_IND_DB4 performs the function CheckCopyDirectoryForCD.
This function issues a warning because the directory /tmp/C11/db2 already exists. This
warning can be ignored because the directory had already been created and does not need to be
created again.
72 May 2000
SAP AG 6 Error Handling
Procedure
1. If a section fails, look at the log file for the section in question. To do so, enter:
DSPSTMF ‘/tmp/<SID>/<log_file>.log’
DSPSTMF ‘/tmp/C11/SAPSDIC.log’
The log file contains additional information about the status of the job and the corresponding
AS/400 job.
2. Scroll to the bottom of this file and check the error message.
The start of each import attempt is logged to this file and looks like this:
#START OF LOG: 19981019164134
# R3load version @(#)R3load.c 20.78.17.1 SAP 98/10/08
# Jobno/Jobuser/Jobname: "102345/QSECOFR/SAPSDIC"
# R3C1145A/R3LOADDB4 -i SAPSDIC.cmd -p SAPSDIC.log -o J -C
...
3. Using this information, you can check the AS/400 job by issuing:
WRKJOB <job_no.>/<job_user>/<job_name>
May 2000 73
SAP AG
4. To check the spool file of this job, choose option 4 (Work with spooled files).
5. Examine the spool files to find out if any escape messages were sent during the database
operations.
You can ignore this message. Journaling is switched on in step STARTJOURNAL_IND_DB4. This
step is executed when all sections of the load have been imported successfully into the
database.
RFC steps have step names starting with "RFC", for example,
RFCADDBDIF_IND_DB4.
RFC steps can fail for several reasons:
• The SAP System has not been started up correctly.
• The DDIC user has the wrong password.
• The jobs started by user DDIC cannot be executed.
• The SAP job cannot be started or executed in the SAP System.
Procedure
Errors in RFC Steps and Required User Actions
74 May 2000
SAP AG
The DDIC user has the Check whether you can log on to the SAP System as user
wrong password DDIC.
Check whether the password for DDIC is the default password
(19920706).
The jobs started by user To monitor the jobs started by user DDIC (paying particular
DDIC cannot be executed attention to the job RADDBDIF), use transaction SM37.
To look at the system log for detailed information, use
transaction SM21.
The SAP job cannot be Check whether user <SID><nn> has write permissions for
started or executed in the directories /usr/sap/trans and /usr/sap/trans/tmp.
SAP System.
If directory /usr/sap/trans is located on another AS/400 and
is shared via QFileSvr.400, make sure that users <SID><nn>
and <SID>OFR exist on the remote system and have the same
passwords on both systems.
May 2000 75
6 Error Handling SAP AG
Fax Form
Type of installation (check relevant box)
Installation Type
New installation of a central instance from SAP CD
New installation of a dialog instance from SAP CD
New installation of SAP GUI from SAP CD
New installation of IDES
Database copy, homogeneous migration
Heterogeneous migration
CD information
________________________________________
Enter here the line of information given in the file LABEL.EBC in directory /qopt/<volid>. The line
has the format: “SAP:<rel>:<CD_type>(1/2):<text>:<volid>”.
“<rel>” stands for the R/3 Release, “CD type” for “EXPORT” or “KERNEL”.
76 May 2000
SAP AG 6 Error Handling
Documentation
Which documentation are you using ?
Title: _________________________________________ R/3 Release: ____
SAP Notes
___ We do not have the current installation Notes.
___ The current installation Notes do not help me to solve my problem.
___ This installation Note contains information about the problem: __________
Problem Analysis
During which installation step/procedure did the problem arise?: __________________
List the error messages given in the log files/job log:
_______________________________________________________________________
Have you tried to solve the problem? List any steps you have taken:
_______________________________________________________________________
_______________________________________________________________________
What is the current status of the installation ?
______________________________________________________________________
For problem analysis we also require the installation log files located in these paths:
/usr/sap/kernel/<REL>/<SID>/log/kernel.log
/usr/sap/xload/<REL>/<SID>/log
/usr/sap/trans/log/<SID>
If the logs are very long, you can send us an excerpt. This should include all the error messages,
a few lines before and after each error message, and the last 10 to 30 lines.
May 2000 77
7 Additional Information SAP AG
7 Additional Information
This section contains general information on R/3 on IBM AS/400.
• AS/400 Library Structure [Page 78]
• OS/400 Integrated File System [Page 79]
• Code Page Tables [Page 81]
• Restoring a Backup [Page 86]
• Editing Stream Files [Page 87]
78 May 2000
SAP AG 7 Additional Information
<SID> is the SAP system ID (for example “C11”); <REL> is the R/3 Release (for
example, “4.6B”), “nn” is the instance number.
• Product libraries, for example, library QPDA which contains objects associated with the
AS/400 Programming Development Manager (PDM).
Some of the SAP library names may vary if you assign your own library names.
However, we do not recommend that you change the default library names
without good reason.
Types of objects stored in libraries include, for example, files and programs.
Files do not contain the actual data. The data is stored in members within each file. In SQL
systems, such as SAP, each file contains exactly one member.
May 2000 79
7 Additional Information SAP AG
Use
The integrated file system supports the use of stream files for storing and operating on data.
Stream files are files containing a continuous stream of data. This data might take the form of text
files or images, for example. Stream files are system objects with object type *STMF.
For information about displaying or editing stream files, see Editing Stream Files.
Structure
The OS/400 integrated file system has a hierarchy comparable to that used by UNIX. The
integrated file system treats the different types of support for accessing the various object types
as separate file systems. These file systems are:
• “/”: This file system corresponds to the UNIX “root” directory. This PC-style file system is not
case-sensitive.
• QOpenSys: The open systems file system. This UNIX-style file system is case-sensitive.
• QSYS.LIB: The library file system allowing the user to access objects residing in native
AS/400 libraries using IFS commands.
• QDLS: The document library services file system (not used by the SAP System)
• QLANSrv: The LAN Server/400 file system (not used by the SAP System)
• QOPT: The optical file system; this file system is mainly used during installation
• QFileSvr.400: This file system provides access to other file systems on remote AS/400
systems. It is used by several SAP functions, for example correction and transport, to access
remote stream files.
Take care with upper- and lowercase notation. The “/” file system is not case-
sensitive, but QOpenSys and the contents of SAP profiles are.
Integration
The integrated file system distinguishes between two different types of link: hard links and soft
links. A link is a named connection between a directory and an object.
80 May 2000
SAP AG
To see the contents of a symbolic link, use WRKLNK with Detail option
*EXTENDED. (This command corresponds to the UNIX command ls -l.) Select
option 12 Work with links.
May 2000 81
7 Additional Information SAP AG
82 May 2000
SAP AG 7 Additional Information
May 2000 83
7 Additional Information SAP AG
84 May 2000
SAP AG 7 Additional Information
May 2000 85
SAP AG
Prerequisites
You have a full backup.
Procedure
1. Control the panel function.
2. Perform an IPL (initial program load) or Install System Menu.
3. To restore a user profile or profiles saved with AS/400 command SAVSYS (Save System) or
SAVSECDTA (Save Security Data), enter AS/400 command RSTUSRPRF (Restore User
Profile).
86 May 2000
SAP AG 7 Additional Information
4. To restore to the system a configuration object saved with the SAVSYS (Save System) or
SAVCFG (Save Configuration) command, enter AS/400 command RSTCFG (Restore
Configuration).
5. To restore libraries saved with the SAVLIB command with LIB(*NONSYS) specified, enter
AS/400 command RSTLIB (*NONSYS) (Restore Library).
6. To restore documents, folders, and distribution objects, enter AS/400 command RSTDLO
(Restore Document Library Object).
7. To restore a copy of an object or objects that can be used in the Integrated File System,
enter AS/400 command RST (Restore Object).
8. To restore saved changes in libraries, documents, and directories, enter AS/400 commands
RSTLIB, RSTOBJ, RSTDLO, RST.
9. To apply journaled changes (for a particular database file member) to recover the file, enter
the AS/400 command APYJRNCHG (Apply Journaled Changes).
10. To restore private authorities to user profiles, enter the AS/400 command RSTAUT (Restore
Authority).
May 2000 87
7 Additional Information SAP AG
Procedure
You can access AS/400 stream files in a number of different ways.
• Using SAP tool EDTF
EDTF is an editor similar to SEU (Source Entry Utility). The prefix area of each record will
accept edit commands. To display the edit commands available, choose PF1.
• Using Client Access
If you have Client Access, you can also access stream files using this product. Using
CA/400’s Network Drive feature and the capability of CA/400 to perform a character-by-
character conversion from ASCII to EBCDIC and vice-versa, you can work on the AS/400
IFS in the same way as on the PC file system. That is, you can create, edit, and delete files
and directories with all the restrictions that apply to CA/400.
88 May 2000