update for rename of docs/user/DebugKernelCrashDumps.mdwn to docs/user/list/DebugKern...
[ikiwiki.git] / docs / handbook / handbook-sapr3.mdwn
1 \r
2 \r
3 ## 22.7 Installing SAP® R/3® \r
4 \r
5 ***Contributed by Holger Kipp. ******Original version converted to SGML by Valentino Vaschetto. ***\r
6 \r
7 Installations of  **SAP®**  Systems using DragonFly will not be supported by the SAP support team -- they only offer support for certified platforms.\r
8 \r
9  **Warning:** This description applies to FreeBSD, for which it was originally written. This may or may not apply to DragonFly at this point; while FreeBSD 4.x features usually translate over to DragonFly well, your mileage may vary.\r
10 \r
11 ### 22.7.1 Preface \r
12 \r
13 This document describes a possible way of installing a ***'SAP R/3® System ** with** Oracle® Database***' for Linux onto a DragonFly machine, including the installation of DragonFly and  **Oracle** . Two different configurations will be described:\r
14 \r
15
16 * ***'SAP R/3 4.6B (IDES) ** with** Oracle 8.0.5***' on FreeBSD 4.3-STABLE\r
17
18 * ***'SAP R/3 4.6C ** with** Oracle 8.1.7***' on FreeBSD 4.5-STABLE\r
19 \r
20 Even though this document tries to describe all important steps in a greater detail, it is not intended as a replacement for the  **Oracle**  and ***'SAP R/3***' installation guides.\r
21 \r
22 Please see the documentation that comes with the ***'SAP R/3 ** Linux edition for** SAP ** and** Oracle***' specific questions, as well as resources from  **Oracle**  and  **SAP OSS** .\r
23 \r
24 ### 22.7.2 Software \r
25 \r
26 The following CD-ROMs have been used for  **SAP**  installations:\r
27 \r
28 #### 22.7.2.1 SAP R/3 4.6B, Oracle® 8.0.5 \r
29 \r
30 [[!table  data="""
31 | Name | Number | Description 
32  KERNEL | 51009113 | SAP Kernel Oracle / Installation / AIX, Linux, Solaris 
33  RDBMS | 51007558 | Oracle / RDBMS 8.0.5.X / Linux 
34  EXPORT1 | 51010208 | IDES / DB-Export / Disc 1 of 6 
35  EXPORT2 | 51010209 | IDES / DB-Export / Disc 2 of 6 
36  EXPORT3 | 51010210 | IDES / DB-Export / Disc 3 of 6 
37  EXPORT4 | 51010211 | IDES / DB-Export / Disc 4 of 6 
38  EXPORT5 | 51010212 | IDES / DB-Export / Disc 5 of 6 
39  EXPORT6 | 51010213 | IDES / DB-Export / Disc 6 of 6 |\r
40 """]]\r
41 Additionally, we used the  **Oracle 8 Server**  (Pre-production version 8.0.5 for Linux, Kernel Version 2.0.33) CD which is not really necessary, and FreeBSD 4.3-STABLE (it was only a few days past 4.3 RELEASE).\r
42 \r
43 #### 22.7.2.2 SAP R/3 4.6C SR2, Oracle 8.1.7 \r
44 \r
45 [[!table  data="""
46 | Name | Number | Description 
47  KERNEL | 51014004 | SAP Kernel Oracle / SAP Kernel Version 4.6D / DEC, Linux 
48  RDBMS | 51012930 | Oracle 8.1.7/ RDBMS / Linux 
49  EXPORT1 | 51013953 | Release 4.6C SR2 / Export / Disc 1 of 4 
50  EXPORT1 | 51013953 | Release 4.6C SR2 / Export / Disc 2 of 4 
51  EXPORT1 | 51013953 | Release 4.6C SR2 / Export / Disc 3 of 4 
52  EXPORT1 | 51013953 | Release 4.6C SR2 / Export / Disc 4 of 4 
53  LANG1 | 51013954 | Release 4.6C SR2 / Language / DE, EN, FR / Disc 1 of 3 |\r
54 """]]\r
55 Depending on the languages you would like to install, additional language CDs might be necessary. Here we are just using DE and EN, so the first language CD is the only one needed. As a little note, the numbers for all four EXPORT CDs are identical. All three language CDs also have the same number (this is different from the 4.6B IDES release CD numbering). At the time of writing this installation is running on FreeBSD 4.5-STABLE (20.03.2002).\r
56 \r
57 ### 22.7.3 SAP Notes \r
58 \r
59 The following notes should be read before installing ***'SAP R/3***' and proved to be useful during installation:\r
60 \r
61 #### 22.7.3.1 SAP R/3 4.6B, Oracle 8.0.5 \r
62 \r
63 [[!table  data="""
64 | Number | Title 
65  0171356 | SAP Software on Linux: Essential Comments 
66  0201147 | INST: 4.6C R/3 Inst. on UNIX - Oracle 
67  0373203 | Update / Migration Oracle 8.0.5 --> 8.0.6/8.1.6 LINUX 
68  0072984 | Release of Digital UNIX 4.0B for Oracle 
69  0130581 | R3SETUP step DIPGNTAB terminates 
70  0144978 | Your system has not been installed correctly 
71  0162266 | Questions and tips for R3SETUP on Windows NT / W2K |\r
72 """]]\r
73 #### 22.7.3.2 SAP R/3 4.6C, Oracle 8.1.7 \r
74 \r
75 [[!table  data="""
76 | Number | Title 
77  0015023 | Initializing table TCPDB (RSXP0004) (EBCDIC) 
78  0045619 | R/3 with several languages or typefaces 
79  0171356 | SAP Software on Linux: Essential Comments 
80  0195603 | RedHat 6.1 Enterprise version: Known problems 
81  0212876 | The new archiving tool SAPCAR 
82  0300900 | Linux: Released DELL Hardware 
83  0377187 | RedHat 6.2: important remarks 
84  0387074 | INST: R/3 4.6C SR2 Installation on UNIX 
85  0387077 | INST: R/3 4.6C SR2 Inst. on UNIX - Oracle 
86  0387078 | SAP Software on UNIX: OS Dependencies 4.6C SR2 |\r
87 """]]\r
88 ### 22.7.4 Hardware Requirements \r
89 \r
90 The following equipment is sufficient for the installation of a ***'SAP R/3 System***'. For production use, a more exact sizing is of course needed:\r
91 \r
92 [[!table  data="""
93 | Component | 4.6B | 4.6C 
94  Processor | 2 x 800MHz Pentium® III | 2 x 800MHz Pentium III 
95  Memory | 1GB ECC | 2GB ECC 
96  Hard Disk Space | 50-60GB (IDES) | 50-60GB (IDES) |\r
97 """]]\r
98 For use in production, Xeon™ Processors with large cache, high-speed disk access (SCSI, RAID hardware controller), USV and ECC-RAM is recommended. The large amount of hard disk space is due to the preconfigured IDES System, which creates 27 GB of database files during installation. This space is also sufficient for initial production systems and application data.\r
99 \r
100 #### 22.7.4.1 SAP R/3 4.6B, Oracle 8.0.5 \r
101 \r
102 The following off-the-shelf hardware was used: a dual processor board with two 800 MHz Pentium III processors, Adaptec® 29160 Ultra160 SCSI adapter (for accessing a 40/80 GB DLT tape drive and CDROM), Mylex® AcceleRAID™ (2 channels, firmware 6.00-1-00 with 32 MB RAM). To the Mylex RAID controller are attached two 17 GB hard disks (mirrored) and four 36 GB hard disks (RAID level 5).\r
103 \r
104 #### 22.7.4.2 SAP R/3 4.6C, Oracle 8.1.7 \r
105 \r
106 For this installation a Dell™ PowerEdge™ 2500 was used: a dual processor board with two 1000 MHz Pentium III processors (256 kB Cache), 2 GB PC133 ECC SDRAM, PERC/3 DC PCI RAID Controller with 128 MB, and an EIDE DVD-ROM drive. To the RAID controller are attached two 18 GB hard disks (mirrored) and four 36 GB hard disks (RAID level 5).\r
107 \r
108 ### 22.7.5 Installation of FreeBSD \r
109 \r
110 First you have to install FreeBSD.\r
111 \r
112 #### 22.7.5.1 Disk Layout \r
113 \r
114 To keep it simple, the same disk layout both for the ***'SAP R/3 46B ** and** SAP R/3 46C SR2***' installation was used. Only the device names changed, as the installations were on different hardware (`/dev/da` and `/dev/amr` respectively, so if using an AMI MegaRAID®, one will see `/dev/amr0s1a` instead of `/dev/da0s1a`):\r
115 \r
116 [[!table  data="""
117 | File system | Size (1k-blocks) | Size (GB) | Mounted on 
118  `/dev/da0s1a` | 1.016.303 | 1 | `/` 
119  `/dev/da0s1b` |  | 6 | swap 
120  `/dev/da0s1e` | 2.032.623 | 2 | `/var` 
121  `/dev/da0s1f` | 8.205.339 | 8 | `/usr` 
122  `/dev/da1s1e` | 45.734.361 | 45 | `/compat/linux/oracle` 
123  `/dev/da1s1f` | 2.032.623 | 2 | `/compat/linux/sapmnt` 
124  `/dev/da1s1g` | 2.032.623 | 2 | `/compat/linux/usr/sap` |\r
125 """]]\r
126 Configure and initialize the two logical drives with the Mylex or PERC/3 RAID software beforehand. The software can be started during the BIOS boot phase.\r
127 \r
128 Please note that this disk layout differs slightly from the SAP recommendations, as SAP suggests mounting the  **Oracle**  subdirectories (and some others) separately -- we decided to just create them as real subdirectories for simplicity.\r
129 \r
130 #### 22.7.5.2 `make world` and a New Kernel \r
131 \r
132 Download the latest -STABLE sources. Rebuild world and your custom kernel after configuring your kernel configuration file. Here you should also include the [ kernel parameters](sapr3.html#KERNELTUNING) which are required for both ***'SAP R/3 ** and** Oracle***'.\r
133 \r
134 ### 22.7.6 Installing the Linux Environment \r
135 \r
136 #### 22.7.6.1 Installing the Linux Base System \r
137 \r
138 First the [linuxemu-lbc-install.html#LINUXEMU-SUSE-PKGSRC linux_base] port needs to be installed (as `root`):\r
139 \r
140     \r
141     # cd /usr/ports/emulators/linux_base\r
142     # make install distclean\r
143 \r
144 \r
145 #### 22.7.6.2 Installing Linux Development Environment \r
146 \r
147 The Linux development environment is needed, if you want to install  **Oracle**  on FreeBSD according to the [linuxemu-oracle.html Section 22.6]:\r
148 \r
149     \r
150     # cd /usr/ports/devel/linux_devtools\r
151     # make install distclean\r
152 \r
153 \r
154 The Linux development environment has only been installed for the ***'SAP R/3 46B IDES***' installation. It is not needed, if the  **Oracle DB**  is not relinked on the FreeBSD system. This is the case if you are using the  **Oracle**  tarball from a Linux system.\r
155 \r
156 #### 22.7.6.3 Installing the Necessary RPMs \r
157 \r
158 To start the `R3SETUP` program, PAM support is needed. During the first  **SAP**  Installation on FreeBSD 4.3-STABLE we tried to install PAM with all the required packages and finally forced the installation of the PAM package, which worked. For ***'SAP R/3 4.6C SR2***' we directly forced the installation of the PAM RPM, which also works, so it seems the dependent packages are not needed:\r
159 \r
160     \r
161     # rpm -i --ignoreos --nodeps --root /compat/linux --dbpath /var/lib/rpm \\r
162     pam-0.68-7.i386.rpm\r
163 \r
164 \r
165 For  **Oracle 8.0.5**  to run the intelligent agent, we also had to install the RedHat Tcl package `tcl-8.0.5-30.i386.rpm` (otherwise the relinking during  **Oracle**  installation will not work). There are some other issues regarding relinking of  **Oracle** , but that is a  **Oracle**  Linux issue, not DragonFly specific.\r
166 \r
167 #### 22.7.6.4 Some Additional Hints \r
168 \r
169 It might also be a good idea to add `linprocfs` to `/etc/fstab`, for more informations, see the [linprocfs(5)](http://leaf.dragonflybsd.org/cgi/web-man?command#linprocfs&section5) manual page. Another parameter to set is `kern.fallback_elf_brand=3` which is done in the file `/etc/sysctl.conf`.\r
170 \r
171 ### 22.7.7 Creating the SAP R/3 Environment \r
172 \r
173 #### 22.7.7.1 Creating the Necessary File Systems and Mountpoints \r
174 \r
175 For a simple installation, it is sufficient to create the following file systems:\r
176 \r
177 [[!table  data="""
178 | mount point | size in GB 
179  `/compat/linux/oracle` | 45 GB 
180  `/compat/linux/sapmnt` | 2 GB 
181  `/compat/linux/usr/sap` | 2 GB |\r
182 """]]\r
183 It is also necessary to created some links. Otherwise the  **SAP**  Installer will complain, as it is checking the created links:\r
184 \r
185     \r
186     # ln -s /compat/linux/oracle /oracle\r
187     # ln -s /compat/linux/sapmnt /sapmnt\r
188     # ln -s /compat/linux/usr/sap /usr/sap\r
189 \r
190 \r
191 Possible error message during installation (here with System ***PRD*** and the ***'SAP R/3 4.6C SR2***' installation):\r
192 \r
193     \r
194     INFO 2002-03-19 16:45:36 R3LINKS_IND_IND SyLinkCreate:200\r
195         Checking existence of symbolic link /usr/sap/PRD/SYS/exe/dbg to\r
196         /sapmnt/PRD/exe. Creating if it does not exist...\r
197     \r
198     WARNING 2002-03-19 16:45:36 R3LINKS_IND_IND SyLinkCreate:400\r
199         Link /usr/sap/PRD/SYS/exe/dbg exists but it points to file\r
200         /compat/linux/sapmnt/PRD/exe instead of /sapmnt/PRD/exe. The\r
201         program cannot go on as long as this link exists at this\r
202         location. Move the link to another location.\r
203     \r
204     ERROR 2002-03-19 16:45:36 R3LINKS_IND_IND Ins_SetupLinks:0\r
205         can not setup link '/usr/sap/PRD/SYS/exe/dbg' with content\r
206         '/sapmnt/PRD/exe'\r
207 \r
208 \r
209 #### 22.7.7.2 Creating Users and Directories \r
210 \r
211 ***'SAP R/3 ** needs two users and three groups. The user names depend on the** SAP ** system ID (SID) which consists of three letters. Some of these SIDs are reserved by** SAP ** (for example `SAP` and `NIX`. For a complete list please see the** SAP***' documentation). For the IDES installation we used `IDS`, for the 4.6C SR2 installation `PRD`, as that system is intended for production use. We have therefore the following groups (group IDs might differ, these are just the values we used with our installation):\r
212 \r
213 [[!table  data="""
214 | group ID | group name | description 
215  100 | dba | Data Base Administrator 
216  101 | sapsys | SAP System 
217  102 | oper | Data Base Operator |\r
218 """]]\r
219 For a default  **Oracle**  installation, only group `dba` is used. As `oper` group, one also uses group `dba` (see  **Oracle**  and  **SAP**  documentation for further information).\r
220 \r
221 We also need the following users:\r
222 \r
223 [[!table  data="""
224 | user ID | user name | generic name | group | additional groups | description 
225  1000 | idsadm/prdadm | `***sid***`adm | sapsys | oper | SAP Administrator 
226  1002 | oraids/oraprd | ora`***sid***` | dba | oper | Oracle Administrator |\r
227 """]]\r
228 Adding the users with [adduser(8)](http://leaf.dragonflybsd.org/cgi/web-man?command#adduser&section8) requires the following (please note shell and home directory) entries for ***SAP Administrator***:\r
229 \r
230     \r
231     Name: `***sid***`adm\r
232     Password: ******\r
233     Fullname: SAP Administrator `***SID***`\r
234     Uid: 1000\r
235     Gid: 101 (sapsys)\r
236     Class:\r
237     Groups: sapsys dba\r
238     HOME: /home/`***sid***`adm\r
239     Shell: bash  (/compat/linux/bin/bash)\r
240 \r
241 \r
242 and for ***Oracle Administrator***:\r
243 \r
244     \r
245     Name: ora`***sid***`\r
246     Password: ******\r
247     Fullname: Oracle Administrator `***SID***`\r
248     Uid: 1002\r
249     Gid: 100 (dba)\r
250     Class:\r
251     Groups: dba\r
252     HOME: /oracle/`***sid***`\r
253     Shell: bash  (/compat/linux/bin/bash)\r
254 \r
255 \r
256 This should also include group `oper` in case you are using both groups `dba` and `oper`.\r
257 \r
258 #### 22.7.7.3 Creating Directories \r
259 \r
260 These directories are usually created as separate file systems. This depends entirely on your requirements. We choose to create them as simple directories, as they are all located on the same RAID 5 anyway:\r
261 \r
262 First we will set owners and rights of some directories (as user `root`):\r
263 \r
264     \r
265     # chmod 775 /oracle\r
266     # chmod 777 /sapmnt\r
267     # chown root:dba /oracle\r
268     # chown `***sid***`adm:sapsys /compat/linux/usr/sap\r
269     # chmod 775 /compat/linux/usr/sap\r
270 \r
271 \r
272 Second we will create directories as user `ora`***sid******. These will all be subdirectories of `/oracle/`***SID******:\r
273 \r
274     \r
275     # su - ora`***sid***`\r
276     # cd /oracle/`***SID***`\r
277     # mkdir mirrlogA mirrlogB origlogA origlogB\r
278     # mkdir sapdata1 sapdata2 sapdata3 sapdata4 sapdata5 sapdata6\r
279     # mkdir saparch sapreorg\r
280     # exit\r
281 \r
282 \r
283 For the  **Oracle 8.1.7**  installation some additional directories are needed:\r
284 \r
285     \r
286     # su - ora`***sid***`\r
287     # cd /oracle\r
288     # mkdir 805_32\r
289     # mkdir client stage\r
290     # mkdir client/80x_32\r
291     # mkdir stage/817_32\r
292     # cd /oracle/`***SID***`\r
293     # mkdir 817_32\r
294 \r
295 \r
296  **Note:** The directory `client/80x_32` is used with exactly this name. Do not replace the ***x*** with some number or anything.\r
297 \r
298 In the third step we create directories as user ******sid***`adm`:\r
299 \r
300     \r
301     # su - `***sid***`adm\r
302     # cd /usr/sap\r
303     # mkdir `***SID***`\r
304     # mkdir trans\r
305     # exit\r
306 \r
307 \r
308 #### 22.7.7.4 Entries in `/etc/services` \r
309 \r
310 ***'SAP R/3***' requires some entries in file `/etc/services`, which will not be set correctly during installation under FreeBSD. Please add the following entries (you need at least those entries corresponding to the instance number -- in this case, `00`. It will do no harm adding all entries from `00` to `99` for `dp`, `gw`, `sp` and `ms`). If you are going to use a  **SAProuter**  or need to access  **SAP**  OSS, you also need `99`, as port 3299 is usually used for the  **SAProuter**  process on the target system:\r
311 \r
312     \r
313     sapdp00    3200/tcp # SAP Dispatcher.      3200 + Instance-Number\r
314     sapgw00  3300/tcp # SAP Gateway.         3300 + Instance-Number\r
315     sapsp00  3400/tcp #                      3400 + Instance-Number\r
316     sapms00  3500/tcp #                      3500 + Instance-Number\r
317     sapms`***SID***` 3600/tcp # SAP Message Server.  3600 + Instance-Number\r
318     sapgw00s   4800/tcp # SAP Secure Gateway   4800 + Instance-Number\r
319 \r
320 \r
321 #### 22.7.7.5 Necessary Locales \r
322 \r
323  **SAP**  requires at least two locales that are not part of the default RedHat installation. SAP offers the required RPMs as download from their FTP server (which is only accessible if you are a customer with OSS access). See note 0171356 for a list of RPMs you need.\r
324 \r
325 It is also possible to just create appropriate links (for example from ***de_DE*** and ***en_US*** ), but we would not recommend this for a production system (so far it worked with the IDES system without any problems, though). The following locales are needed:\r
326 \r
327     \r
328     de_DE.ISO-8859-1\r
329     en_US.ISO-8859-1\r
330 \r
331 \r
332 Create the links like this:\r
333 \r
334     \r
335     # cd /compat/linux/usr/share/locale\r
336     # ln -s de_DE de_DE.ISO-8859-1\r
337     # ln -s en_US en_US.ISO-8859-1\r
338 \r
339 \r
340 If they are not present, there will be some problems during the installation. If these are then subsequently ignored (by setting the `STATUS` of the offending steps to `OK` in file `CENTRDB.R3S`), it will be impossible to log onto the  **SAP**  system without some additional effort.\r
341 \r
342 #### 22.7.7.6 Kernel Tuning \r
343 \r
344 ***'SAP R/3***' systems need a lot of resources. We therefore added the following parameters to the kernel configuration file:\r
345 \r
346     \r
347     # Set these for memory pigs (SAP and Oracle):\r
348     options MAXDSIZ="(1024*1024*1024)"\r
349     options DFLDSIZ="(1024*1024*1024)"\r
350     # System V options needed.\r
351     options SYSVSHM #SYSV-style shared memory\r
352     options SHMMAXPGS=262144 #max amount of shared mem. pages\r
353     #options SHMMAXPGS=393216 #use this for the 46C inst.parameters\r
354     options SHMMNI=256 #max number of shared memory ident if.\r
355     options SHMSEG=100 #max shared mem.segs per process\r
356     options SYSVMSG #SYSV-style message queues\r
357     options MSGSEG=32767 #max num. of mes.segments in system\r
358     options MSGSSZ=32 #size of msg-seg. MUST be power of 2\r
359     options MSGMNB=65535 #max char. per message queue\r
360     options MSGTQL=2046 #max amount of msgs in system\r
361     options SYSVSEM #SYSV-style semaphores\r
362     options SEMMNU=256 #number of semaphore UNDO structures\r
363     options SEMMNS=1024 #number of semaphores in system\r
364     options SEMMNI=520 #number of semaphore identifiers\r
365     options SEMUME=100       #number of UNDO keys\r
366 \r
367 \r
368 The minimum values are specified in the documentation that comes from SAP. As there is no description for Linux, see the HP-UX section (32-bit) for further information. As the system for the 4.6C SR2 installation has more main memory, the shared segments can be larger both for  **SAP**  and  **Oracle** , therefore choose a larger number of shared memory pages.\r
369 \r
370  **Note:** With the default installation of FreeBSD 4.5 on i386™, leave `MAXDSIZ` and `DFLDSIZ` at 1 GB maximum. Otherwise, strange errors like ***`ORA-27102: out of memory`*** and ***`Linux Error: 12: Cannot allocate memory`*** might happen.\r
371 \r
372 ### 22.7.8 Installing SAP R/3 \r
373 \r
374 #### 22.7.8.1 Preparing SAP CDROMs \r
375 \r
376 There are many CDROMs to mount and unmount during the installation. Assuming you have enough CDROM drives, you can just mount them all. We decided to copy the CDROMs contents to corresponding directories:\r
377 \r
378     \r
379     /oracle/`***SID***`/sapreorg/`***cd-name***`\r
380 \r
381 \r
382 where `***cd-name***` was one of `KERNEL`, `RDBMS`, `EXPORT1`, `EXPORT2`, `EXPORT3`, `EXPORT4`, `EXPORT5` and `EXPORT6` for the 4.6B/IDES installation, and `KERNEL`, `RDBMS`, `DISK1`, `DISK2`, `DISK3`, `DISK4` and `LANG` for the 4.6C SR2 installation. All the filenames on the mounted CDs should be in capital letters, otherwise use the `-g` option for mounting. So use the following commands:\r
383 \r
384     \r
385     # mount_cd9660 -g /dev/cd0a /mnt\r
386     # cp -R /mnt/* /oracle/`***SID***`/sapreorg/`***cd-name***`\r
387     # umount /mnt\r
388 \r
389 \r
390 #### 22.7.8.2 Running the Installation Script \r
391 \r
392 First you have to prepare an `install` directory:\r
393 \r
394     \r
395     # cd /oracle/`***SID***`/sapreorg\r
396     # mkdir install\r
397     # cd install\r
398 \r
399 \r
400 Then the installation script is started, which will copy nearly all the relevant files into the `install` directory:\r
401 \r
402     \r
403     # /oracle/`***SID***`/sapreorg/KERNEL/UNIX/INSTTOOL.SH\r
404 \r
405 \r
406 The IDES installation (4.6B) comes with a fully customized SAP R/3 demonstration system, so there are six instead of just three EXPORT CDs. At this point the installation template `CENTRDB.R3S` is for installing a standard central instance (***'R/3***' and database), not the IDES central instance, so one needs to copy the corresponding `CENTRDB.R3S` from the `EXPORT1` directory, otherwise `R3SETUP` will only ask for three EXPORT CDs.\r
407 \r
408 The newer  **SAP 4.6C SR2**  release comes with four EXPORT CDs. The parameter file that controls the installation steps is `CENTRAL.R3S`. Contrary to earlier releases there are no separate installation templates for a central instance with or without database.  **SAP**  is using a separate template for database installation. To restart the installation later it is however sufficient to restart with the original file.\r
409 \r
410 During and after installation,  **SAP**  requires `hostname` to return the computer name only, not the fully qualified domain name. So either set the hostname accordingly, or set an alias with `alias hostname='hostname -s'` for both `ora`***sid' ** and** 'sid***`adm` (and for `root` at least during installation steps performed as `root`). It is also possible to adjust the installed `.profile` and `.login` files of both users that are installed during  **SAP**  installation.\r
411 \r
412 #### 22.7.8.3 Start `R3SETUP` 4.6B \r
413 \r
414 Make sure `LD_LIBRARY_PATH` is set correctly:\r
415 \r
416     \r
417     # export LD_LIBRARY_PATH=/oracle/IDS/lib:/sapmnt/IDS/exe:/oracle/805_32/lib\r
418 \r
419 \r
420 Start `R3SETUP` as `root` from installation directory:\r
421 \r
422     \r
423     # cd /oracle/IDS/sapreorg/install\r
424     # ./R3SETUP -f CENTRDB.R3S\r
425 \r
426 \r
427 The script then asks some questions (defaults in brackets, followed by actual input):\r
428 \r
429 [[!table  data="""
430 | Question | Default | Input 
431  Enter SAP System ID | [C11] | IDS **Enter**  
432  Enter SAP Instance Number | [00] |  **Enter**  
433  Enter SAPMOUNT Directory | [/sapmnt] |  **Enter**  
434  Enter name of SAP central host | [troubadix.domain.de] |  **Enter**  
435  Enter name of SAP db host | [troubadix] |  **Enter**  
436  Select character set | [1] (WE8DEC) |  **Enter**  
437  Enter Oracle server version (1) Oracle 8.0.5, (2) Oracle 8.0.6, (3) Oracle 8.1.5, (4) Oracle 8.1.6 |  | 1 **Enter**  
438  Extract Oracle Client archive | [1] (Yes, extract) |  **Enter**  
439  Enter path to KERNEL CD | [/sapcd] | /oracle/IDS/sapreorg/KERNEL 
440  Enter path to RDBMS CD | [/sapcd] | /oracle/IDS/sapreorg/RDBMS 
441  Enter path to EXPORT1 CD | [/sapcd] | /oracle/IDS/sapreorg/EXPORT1 
442  Directory to copy EXPORT1 CD | [/oracle/IDS/sapreorg/CD4_DIR] |  **Enter**  
443  Enter path to EXPORT2 CD | [/sapcd] | /oracle/IDS/sapreorg/EXPORT2 
444  Directory to copy EXPORT2 CD | [/oracle/IDS/sapreorg/CD5_DIR] |  **Enter**  
445  Enter path to EXPORT3 CD | [/sapcd] | /oracle/IDS/sapreorg/EXPORT3 
446  Directory to copy EXPORT3 CD | [/oracle/IDS/sapreorg/CD6_DIR] |  **Enter**  
447  Enter path to EXPORT4 CD | [/sapcd] | /oracle/IDS/sapreorg/EXPORT4 
448  Directory to copy EXPORT4 CD | [/oracle/IDS/sapreorg/CD7_DIR] |  **Enter**  
449  Enter path to EXPORT5 CD | [/sapcd] | /oracle/IDS/sapreorg/EXPORT5 
450  Directory to copy EXPORT5 CD | [/oracle/IDS/sapreorg/CD8_DIR] |  **Enter**  
451  Enter path to EXPORT6 CD | [/sapcd] | /oracle/IDS/sapreorg/EXPORT6 
452  Directory to copy EXPORT6 CD | [/oracle/IDS/sapreorg/CD9_DIR] |  **Enter**  
453  Enter amount of RAM for SAP + DB |  | 850 **Enter**  (in Megabytes) 
454  Service Entry Message Server | [3600] |  **Enter**  
455  Enter Group-ID of sapsys | [101] |  **Enter**  
456  Enter Group-ID of oper | [102] |  **Enter**  
457  Enter Group-ID of dba | [100] |  **Enter**  
458  Enter User-ID of `***sid***`adm | [1000] |  **Enter**  
459  Enter User-ID of ora`***sid***` | [1002] |  **Enter**  
460  Number of parallel procs | [2] |  **Enter**  |\r
461 """]]\r
462 If you had not copied the CDs to the different locations, then the  **SAP**  installer cannot find the CD needed (identified by the `LABEL.ASC` file on the CD) and would then ask you to insert and mount the CD and confirm or enter the mount path.\r
463 \r
464 The `CENTRDB.R3S` might not be error free. In our case, it requested EXPORT4 CD again but indicated the correct key (6_LOCATION, then 7_LOCATION etc.), so one can just continue with entering the correct values.\r
465 \r
466 Apart from some problems mentioned below, everything should go straight through up to the point where the Oracle database software needs to be installed.\r
467 \r
468 #### 22.7.8.4 Start `R3SETUP` 4.6C SR2 \r
469 \r
470 Make sure `LD_LIBRARY_PATH` is set correctly. This is a different value from the 4.6B installation with  **Oracle 8.0.5** :\r
471 \r
472     \r
473     # export LD_LIBRARY_PATH=/sapmnt/PRD/exe:/oracle/PRD/817_32/lib\r
474 \r
475 \r
476 Start `R3SETUP` as user `root` from installation directory:\r
477 \r
478     \r
479     # cd /oracle/PRD/sapreorg/install\r
480     # ./R3SETUP -f CENTRAL.R3S\r
481 \r
482 \r
483 The script then asks some questions (defaults in brackets, followed by actual input):\r
484 \r
485 [[!table  data="""
486 | Question | Default | Input 
487  Enter SAP System ID | [C11] | PRD **Enter**  
488  Enter SAP Instance Number | [00] |  **Enter**  
489  Enter SAPMOUNT Directory | [/sapmnt] |  **Enter**  
490  Enter name of SAP central host | [majestix] |  **Enter**  
491  Enter Database System ID | [PRD] | PRD **Enter**  
492  Enter name of SAP db host | [majestix] |  **Enter**  
493  Select character set | [1] (WE8DEC) |  **Enter**  
494  Enter Oracle server version (2) Oracle 8.1.7 |  | 2 **Enter**  
495  Extract Oracle Client archive | [1] (Yes, extract) |  **Enter**  
496  Enter path to KERNEL CD | [/sapcd] | /oracle/PRD/sapreorg/KERNEL 
497  Enter amount of RAM for SAP + DB | 2044 | 1800 **Enter**  (in Megabytes) 
498  Service Entry Message Server | [3600] |  **Enter**  
499  Enter Group-ID of sapsys | [100] |  **Enter**  
500  Enter Group-ID of oper | [101] |  **Enter**  
501  Enter Group-ID of dba | [102] |  **Enter**  
502  Enter User-ID of `oraprd` | [1002] |  **Enter**  
503  Enter User-ID of `prdadm` | [1000] |  **Enter**  
504  LDAP support |  | 3 **Enter**  (no support) 
505  Installation step completed | [1] (continue) |  **Enter**  
506  Choose installation service | [1] (DB inst,file) |  **Enter**  |\r
507 """]]\r
508 So far, creation of users gives an error during installation in phases OSUSERDBSID_IND_ORA (for creating user `ora`***sid' **) and OSUSERSIDADM_IND_ORA (creating user** 'sid***`adm`).\r
509 \r
510 Apart from some problems mentioned below, everything should go straight through up to the point where the Oracle database software needs to be installed.\r
511 \r
512 ### 22.7.9 Installing Oracle 8.0.5 \r
513 \r
514 Please see the corresponding SAP Notes and Oracle `Readme`s regarding Linux and  **Oracle DB**  for possible problems. Most if not all problems stem from incompatible libraries.\r
515 \r
516 For more information on installing  **Oracle** , refer to [linuxemu-oracle.html the Installing Oracle chapter.]\r
517 \r
518 #### 22.7.9.1 Installing the Oracle 8.0.5 with `orainst` \r
519 \r
520 If  **Oracle 8.0.5**  is to be used, some additional libraries are needed for successfully relinking, as  **Oracle 8.0.5**  was linked with an old glibc (RedHat 6.0), but RedHat 6.1 already uses a new glibc. So you have to install the following additional packages to ensure that linking will work:\r
521 \r
522 `compat-libs-5.2-2.i386.rpm`\r
523 \r
524 `compat-glibc-5.2-2.0.7.2.i386.rpm`\r
525 \r
526 `compat-egcs-5.2-1.0.3a.1.i386.rpm`\r
527 \r
528 `compat-egcs-c++-5.2-1.0.3a.1.i386.rpm`\r
529 \r
530 `compat-binutils-5.2-2.9.1.0.23.1.i386.rpm`\r
531 \r
532 See the corresponding SAP Notes or Oracle `Readme`s for further information. If this is no option (at the time of installation we did not have enough time to check this), one could use the original binaries, or use the relinked binaries from an original RedHat system.\r
533 \r
534 For compiling the intelligent agent, the RedHat Tcl package must be installed. If you cannot get `tcl-8.0.3-20.i386.rpm`, a newer one like `tcl-8.0.5-30.i386.rpm` for RedHat 6.1 should also do.\r
535 \r
536 Apart from relinking, the installation is straightforward:\r
537 \r
538     \r
539     # su - oraids\r
540     # export TERM=xterm\r
541     # export ORACLE_TERM=xterm\r
542     # export ORACLE_HOME=/oracle/IDS\r
543     # cd /ORACLE_HOME/orainst_sap\r
544     # ./orainst\r
545 \r
546 \r
547 Confirm all screens with  **Enter**  until the software is installed, except that one has to deselect the ***Oracle On-Line Text Viewer***, as this is not currently available for Linux.  **Oracle**  then wants to relink with `i386-glibc20-linux-gcc` instead of the available `gcc`, `egcs` or `i386-redhat-linux-gcc `.\r
548 \r
549 Due to time constrains we decided to use the binaries from an  **Oracle 8.0.5 PreProduction**  release, after the first attempt at getting the version from the RDBMS CD working, failed, and finding and accessing the correct RPMs was a nightmare at that time.\r
550 \r
551 #### 22.7.9.2 Installing the Oracle 8.0.5 Pre-production Release for Linux (Kernel 2.0.33) \r
552 \r
553 This installation is quite easy. Mount the CD, start the installer. It will then ask for the location of the Oracle home directory, and copy all binaries there. We did not delete the remains of our previous RDBMS installation tries, though.\r
554 \r
555 Afterwards,  **Oracle**  Database could be started with no problems.\r
556 \r
557 ### 22.7.10 Installing the Oracle 8.1.7 Linux Tarball \r
558 \r
559 Take the tarball `oracle81732.tgz` you produced from the installation directory on a Linux system and untar it to `/oracle/`***SID***`/817_32/`.\r
560 \r
561 ### 22.7.11 Continue with SAP R/3 Installation \r
562 \r
563 First check the environment settings of users `idsamd` (`***sid***`adm) and `oraids` (ora`***sid***`). They should now both have the files `.profile`, `.login` and `.cshrc` which are all using `hostname`. In case the system's hostname is the fully qualified name, you need to change `hostname` to `hostname -s` within all three files.\r
564 \r
565 #### 22.7.11.1 Database Load \r
566 \r
567 Afterwards, `R3SETUP` can either be restarted or continued (depending on whether exit was chosen or not). `R3SETUP` then creates the tablespaces and loads the data (for 46B IDES, from EXPORT1 to EXPORT6, for 46C from DISK1 to DISK4) with `R3load` into the database.\r
568 \r
569 When the database load is finished (might take a few hours), some passwords are requested. For test installations, one can use the well known default passwords (use different ones if security is an issue!):\r
570 \r
571 [[!table  data="""
572 | Question | Input 
573  Enter Password for sapr3 | sap **Enter**  
574  Confirum Password for sapr3 | sap **Enter**  
575  Enter Password for sys | change_on_install **Enter**  
576  Confirm Password for sys | change_on_install **Enter**  
577  Enter Password for system | manager **Enter**  
578  Confirm Password for system | manager **Enter**  |\r
579 """]]\r
580 At this point We had a few problems with `dipgntab` during the 4.6B installation.\r
581 \r
582 #### 22.7.11.2 Listener \r
583 \r
584 Start the  **Oracle**  Listener as user `ora`***sid****** as follows:\r
585 \r
586     \r
587     % umask 0; lsnrctl start\r
588 \r
589 \r
590 Otherwise you might get the error ORA-12546 as the sockets will not have the correct permissions. See SAP Note 072984.\r
591 \r
592 #### 22.7.11.3 Updating MNLS Tables \r
593 \r
594 If you plan to import non-Latin-1 languages into the  **SAP**  system, you have to update the Multi National Language Support tables. This is described in the SAP OSS Notes 15023 and 45619. Otherwise, you can skip this question during  **SAP**  installation.\r
595 \r
596  **Note:** If you do not need MNLS, it is still necessary to check the table TCPDB and initializing it if this has not been done. See SAP note 0015023 and 0045619 for further information.\r
597 \r
598 ### 22.7.12 Post-installation Steps \r
599 \r
600 #### 22.7.12.1 Request SAP R/3 License Key \r
601 \r
602 You have to request your ***'SAP R/3***' License Key. This is needed, as the temporary license that was installed during installation is only valid for four weeks. First get the hardware key. Log on as user `idsadm` and call `saplicense`:\r
603 \r
604     \r
605     # /sapmnt/IDS/exe/saplicense -get\r
606 \r
607 \r
608 Calling `saplicense` without parameters gives a list of options. Upon receiving the license key, it can be installed using:\r
609 \r
610     \r
611     # /sapmnt/IDS/exe/saplicense -install\r
612 \r
613 \r
614 You are then required to enter the following values:\r
615 \r
616     \r
617     SAP SYSTEM ID   = `***SID, 3 chars***`\r
618     CUSTOMER KEY    = `***hardware key, 11 chars***`\r
619     INSTALLATION NO = `***installation, 10 digits***`\r
620     EXPIRATION DATE = `***yyyymmdd, usually "99991231"***`\r
621     LICENSE KEY     = `***license key, 24 chars***`\r
622 \r
623 \r
624 #### 22.7.12.2 Creating Users \r
625 \r
626 Create a user within client 000 (for some tasks required to be done within client 000, but with a user different from users `sap*` and `ddic`). As a user name, We usually choose `wartung` (or `service` in English). Profiles required are `sap_new` and `sap_all`. For additional safety the passwords of default users within all clients should be changed (this includes users `sap*` and `ddic`).\r
627 \r
628 #### 22.7.12.3 Configure Transport System, Profile, Operation Modes, Etc. \r
629 \r
630 Within client 000, user different from `ddic` and `sap*`, do at least the following:\r
631 \r
632 [[!table  data="""
633 | Task | Transaction 
634  Configure Transport System, e.g. as ***Stand-Alone Transport Domain Entity*** | STMS 
635  Create / Edit Profile for System | RZ10 
636  Maintain Operation Modes and Instances | RZ04 |\r
637 """]]\r
638 These and all the other post-installation steps are thoroughly described in  **SAP**  installation guides.\r
639 \r
640 #### 22.7.12.4 Edit `init`***sid***`.sap` (`initIDS.sap`) \r
641 \r
642 The file `/oracle/IDS/dbs/initIDS.sap` contains the  **SAP**  backup profile. Here the size of the tape to be used, type of compression and so on need to be defined. To get this running with `sapdba` / `brbackup`, we changed the following values:\r
643 \r
644     \r
645     compress = hardware\r
646     archive_function = copy_delete_save\r
647     cpio_flags # "-ov --formatnewc --block-size=128 --quiet"\r
648     cpio_in_flags # "-iuv --block-size128 --quiet"\r
649     tape_size = 38000M\r
650     tape_address = /dev/nsa0\r
651     tape_address_rew = /dev/sa0\r
652 \r
653 \r
654 Explanations:\r
655 \r
656 `compress`: The tape we use is a HP DLT1 which does hardware compression.\r
657 \r
658 `archive_function`: This defines the default behavior for saving Oracle archive logs: new logfiles are saved to tape, already saved logfiles are saved again and are then deleted. This prevents lots of trouble if you need to recover the database, and one of the archive-tapes has gone bad.\r
659 \r
660 `cpio_flags`: Default is to use `-B` which sets block size to 5120 Bytes. For DLT Tapes, HP recommends at least 32 K block size, so we used `--block-size#128` for 64 K. `--formatnewc` is needed because we have inode numbers greater than 65535. The last option `--quiet` is needed as otherwise `brbackup` complains as soon as `cpio` outputs the numbers of blocks saved.\r
661 \r
662 `cpio_in_flags`: Flags needed for loading data back from tape. Format is recognized automatically.\r
663 \r
664 `tape_size`: This usually gives the raw storage capability of the tape. For security reason (we use hardware compression), the value is slightly lower than the actual value.\r
665 \r
666 `tape_address`: The non-rewindable device to be used with `cpio`.\r
667 \r
668 `tape_address_rew`: The rewindable device to be used with `cpio`.\r
669 \r
670 #### 22.7.12.5 Configuration Issues after Installation \r
671 \r
672 The following  **SAP**  parameters should be tuned after installation (examples for IDES 46B, 1 GB memory):\r
673 \r
674 [[!table  data="""
675 | Name | Value 
676  ztta/roll_extension | 250000000 
677  abap/heap_area_dia | 300000000 
678  abap/heap_area_nondia | 400000000 
679  em/initial_size_MB | 256 
680  em/blocksize_kB | 1024 
681  ipc/shm_psize_40 | 70000000 |\r
682 """]]\r
683 SAP Note 0013026:\r
684 \r
685 [[!table  data="""
686 | Name | Value 
687  ztta/dynpro_area | 2500000 |\r
688 """]]\r
689 SAP Note 0157246:\r
690 \r
691 [[!table  data="""
692 | Name | Value 
693  rdisp/ROLL_MAXFS | 16000 
694  rdisp/PG_MAXFS | 30000 |\r
695 """]]\r
696  **Note:** With the above parameters, on a system with 1 gigabyte of memory, one may find memory consumption similar to:\r
697 \r
698     \r
699     Mem: 547M Active, 305M Inact, 109M Wired, 40M Cache, 112M Buf, 3492K Free\r
700 \r
701 \r
702 ### 22.7.13 Problems during Installation \r
703 \r
704 #### 22.7.13.1 Restart `R3SETUP` after Fixing a Problem \r
705 \r
706 `R3SETUP` stops if it encounters an error. If you have looked at the corresponding logfiles and fixed the error, you have to start `R3SETUP` again, usually selecting REPEAT as option for the last step `R3SETUP` complained about.\r
707 \r
708 To restart `R3SETUP`, just start it with the corresponding `R3S` file:\r
709 \r
710     \r
711     # ./R3SETUP -f CENTRDB.R3S\r
712 \r
713 \r
714 for 4.6B, or with\r
715 \r
716     \r
717     # ./R3SETUP -f CENTRAL.R3S\r
718 \r
719 \r
720 for 4.6C, no matter whether the error occurred with `CENTRAL.R3S` or `DATABASE.R3S`.\r
721 \r
722  **Note:** At some stages, `R3SETUP` assumes that both database and  **SAP**  processes are up and running (as those were steps it already completed). Should errors occur and for example the database could not be started, you have to start both database and  **SAP**  by hand after you fixed the errors and before starting `R3SETUP` again.\r
723 \r
724 Do not forget to also start the  **Oracle**  listener again (as `ora`***sid****** with `umask 0; lsnrctl start`) if it was also stopped (for example due to a necessary reboot of the system).\r
725 \r
726 #### 22.7.13.2 OSUSERSIDADM_IND_ORA during `R3SETUP` \r
727 \r
728 If `R3SETUP` complains at this stage, edit the template file `R3SETUP` used at that time (`CENTRDB.R3S` (4.6B) or either `CENTRAL.R3S` or `DATABASE.R3S` (4.6C)). Locate `[OSUSERSIDADM_IND_ORA]` or search for the only `STATUS=ERROR` entry and edit the following values:\r
729 \r
730     \r
731     HOME=/home/`***sid***`adm (was empty)\r
732     STATUS=OK (had status ERROR)\r
733     \r
734 \r
735 \r
736 Then you can restart `R3SETUP` again.\r
737 \r
738 #### 22.7.13.3 OSUSERDBSID_IND_ORA during `R3SETUP` \r
739 \r
740 Possibly `R3SETUP` also complains at this stage. The error here is similar to the one in phase OSUSERSIDADM_IND_ORA. Just edit the template file `R3SETUP` used at that time (`CENTRDB.R3S` (4.6B) or either `CENTRAL.R3S` or `DATABASE.R3S` (4.6C)). Locate `[OSUSERDBSID_IND_ORA]` or search for the only `STATUS=ERROR` entry and edit the following value in that section:\r
741 \r
742     \r
743     STATUS=OK\r
744 \r
745 \r
746 Then restart `R3SETUP`.\r
747 \r
748 #### 22.7.13.4 ***`oraview.vrf FILE NOT FOUND`*** during Oracle Installation \r
749 \r
750 You have not deselected ***Oracle On-Line Text Viewer*** before starting the installation. This is marked for installation even though this option is currently not available for Linux. Deselect this product inside the  **Oracle**  installation menu and restart installation.\r
751 \r
752 #### 22.7.13.5 ***`TEXTENV_INVALID`*** during `R3SETUP`, RFC or SAPgui Start \r
753 \r
754 If this error is encountered, the correct locale is missing. SAP Note 0171356 lists the necessary RPMs that need be installed (e.g. `saplocales-1.0-3`, `saposcheck-1.0-1` for RedHat 6.1). In case you ignored all the related errors and set the corresponding `STATUS` from `ERROR` to `OK` (in `CENTRDB.R3S`) every time `R3SETUP` complained and just restarted `R3SETUP`, the  **SAP**  system will not be properly configured and you will then not be able to connect to the system with a  **SAPgui** , even though the system can be started. Trying to connect with the old Linux  **SAPgui**  gave the following messages:\r
755 \r
756     \r
757     Sat May 5 14:23:14 2001\r
758     
759 *** ERROR => no valid userarea given [trgmsgo. 0401]\r
760     Sat May 5 14:23:22 2001\r
761     
762 *** ERROR => ERROR NR 24 occured [trgmsgi. 0410]\r
763     *** ERROR => Error when generating text environment. [trgmsgi. 0435]\r
764
765     *** ERROR => function failed [trgmsgi. 0447]\r
766
767     *** ERROR => no socket operation allowed [trxio.c 3363]\r
768
769     Speicherzugriffsfehler\r
770 \r
771 \r
772 This behavior is due to ***'SAP R/3 ** being unable to correctly assign a locale and also not being properly configured itself (missing entries in some database tables). To be able to connect to** SAP***', add the following entries to file `DEFAULT.PFL` (see Note 0043288):\r
773 \r
774     \r
775     abap/set_etct_env_at_new_mode = 0\r
776     install/collate/active = 0\r
777     rscp/TCP0B = TCP0B\r
778 \r
779 \r
780 Restart the  **SAP**  system. Now you can connect to the system, even though country-specific language settings might not work as expected. After correcting country settings (and providing the correct locales), these entries can be removed from `DEFAULT.PFL` and the  **SAP**  system can be restarted.\r
781 \r
782 #### 22.7.13.6 ORA-00001 \r
783 \r
784 This error only happened with  **Oracle 8.1.7**  on FreeBSD 4.5. The reason was that the  **Oracle**  database could not initialize itself properly and crashed, leaving semaphores and shared memory on the system. The next try to start the database then returned ORA-00001.\r
785 \r
786 Find them with `ipcs -a` and remove them with `ipcrm`.\r
787 \r
788 #### 22.7.13.7 ORA-00445 (Background Process PMON Did Not Start) \r
789 \r
790 This error happened with  **Oracle 8.1.7** . This error is reported if the database is started with the usual `startsap` script (for example `startsap_majestix_00`) as user `prdadm`.\r
791 \r
792 A possible workaround is to start the database as user `oraprd` instead with `svrmgrl`:\r
793 \r
794     \r
795     % svrmgrl\r
796     SVRMGR> connect internal;\r
797     SVRMGR> startup;\r
798     SVRMGR> exit\r
799 \r
800 \r
801 #### 22.7.13.8 ORA-12546 (Start Listener with Correct Permissions) \r
802 \r
803 Start the  **Oracle**  listener as user `oraids` with the following commands:\r
804 \r
805     \r
806     # umask 0; lsnrctl start\r
807 \r
808 \r
809 Otherwise you might get ORA-12546 as the sockets will not have the correct permissions. See SAP Note 0072984.\r
810 \r
811 #### 22.7.13.9 ORA-27102 (Out of Memory) \r
812 \r
813 This error happened whilst trying to use values for `MAXDSIZ` and `DFLDSIZ` greater than 1 GB (1024x1024x1024). Additionally, we got ***`Linux Error 12: Cannot allocate memory`***.\r
814 \r
815 #### 22.7.13.10 [DIPGNTAB_IND_IND] during `R3SETUP` \r
816 \r
817 In general, see SAP Note 0130581 (`R3SETUP` step `DIPGNTAB` terminates). During the IDES-specific installation, for some reasons the installation process was not using the proper  **SAP**  system name ***IDS***, but the empty string `""` instead. This lead to some minor problems with accessing directories, as the paths are generated dynamically using `***SID***` (in this case IDS). So instead of accessing:\r
818 \r
819     \r
820     /usr/sap/IDS/SYS/...\r
821     /usr/sap/IDS/DVMGS00\r
822 \r
823 \r
824 the following paths were used:\r
825 \r
826     \r
827     /usr/sap//SYS/...\r
828     /usr/sap/D00\r
829 \r
830 \r
831 To continue with the installation, we created a link and an additional directory:\r
832 \r
833     \r
834     # pwd\r
835     /compat/linux/usr/sap\r
836     # ls -l\r
837     total 4\r
838     drwxr-xr-x 3  idsadm sapsys 512 May 5 11:20 D00\r
839     drwxr-x--x 5  idsadm sapsys 512 May 5 11:35 IDS\r
840     lrwxr-xr-x 1  root   sapsys 7 May 5 11:35 SYS -> IDS/SYS\r
841     drwxrwxr-x 2  idsadm sapsys 512 May 5 13:00 tmp\r
842     drwxrwxr-x 11 idsadm sapsys 512 May 4 14:20 trans\r
843 \r
844 \r
845 We also found SAP Notes (0029227 and 0008401) describing this behavior. We did not encounter any of these problems with the  **SAP 4.6C**  installation.\r
846 \r
847 #### 22.7.13.11 [RFCRSWBOINI_IND_IND] during `R3SETUP` \r
848 \r
849 During installation of  **SAP 4.6C** , this error was just the result of another error happening earlier during installation. In this case, you have to look through the corresponding logfiles and correct the real problem.\r
850 \r
851 If after looking through the logfiles this error is indeed the correct one (check the SAP Notes), you can set `STATUS` of the offending step from `ERROR` to `OK` (file `CENTRDB.R3S`) and restart `R3SETUP`. After installation, you have to execute the report `RSWBOINS` from transaction SE38. See SAP Note 0162266 for additional information about phase `RFCRSWBOINI` and `RFCRADDBDIF`.\r
852 \r
853 #### 22.7.13.12 [RFCRADDBDIF_IND_IND] during `R3SETUP` \r
854 \r
855 Here the same restrictions apply: make sure by looking through the logfiles, that this error is not caused by some previous problems.\r
856 \r
857 If you can confirm that SAP Note 0162266 applies, just set `STATUS` of the offending step from `ERROR` to `OK` (file `CENTRDB.R3S`) and restart `R3SETUP`. After installation, you have to execute the report `RADDBDIF` from transaction SE38.\r
858 \r
859 #### 22.7.13.13 sigaction sig31: File size limit exceeded \r
860 \r
861 This error occurred during start of  **SAP**  processes ***disp+work***. If starting  **SAP**  with the `startsap` script, subprocesses are then started which detach and do the dirty work of starting all other  **SAP**  processes. As a result, the script itself will not notice if something goes wrong.\r
862 \r
863 To check whether the  **SAP**  processes did start properly, have a look at the process status with `ps ax | grep `***SID******, which will give you a list of all  **Oracle**  and  **SAP**  processes. If it looks like some processes are missing or if you cannot connect to the  **SAP**  system, look at the corresponding logfiles which can be found at `/usr/sap/`***SID***`/DVEBMGS`***nr***`/work/`. The files to look at are `dev_ms` and `dev_disp`.\r
864 \r
865 Signal 31 happens here if the amount of shared memory used by  **Oracle**  and  **SAP**  exceed the one defined within the kernel configuration file and could be resolved by using a larger value:\r
866 \r
867     \r
868     # larger value for 46C production systems:\r
869     options SHMMAXPGS=393216\r
870     # smaller value sufficient for 46B:\r
871     #options SHMMAXPGS=262144\r
872 \r
873 \r
874 #### 22.7.13.14 Start of `saposcol` Failed \r
875 \r
876 There are some problems with the program `saposcol` (version 4.6D). The  **SAP**  system is using `saposcol` to collect data about the system performance. This program is not needed to use the  **SAP**  system, so this problem can be considered a minor one. The older versions (4.6B) does work, but does not collect all the data (many calls will just return 0, for example for CPU usage).\r
877 \r
878 \r
879 \r
880 CategoryHandbook\r
881 CategoryHandbook-linuxcompatibility\r