Professional Documents
Culture Documents
Contents
1.1 TABLES........................................................................................................................................................... 2
1.2 TRANSACTIONS........................................................................................................................................... 2
1.2.2 ABAP-related......................................................................................................................................... 2
1.2.3 Backgroundjob-related....................................................................................................................... 2
1.3 COMMANDS.................................................................................................................................................. 3
1.5 PROFILEPARAMETERS............................................................................................................................... 3
1.6 USERIDS.......................................................................................................................................................... 3
1.7 LOGFILES........................................................................................................................................................ 3
2 Database............................................................................................................................................................. 4
2.1.1 Database-commands............................................................................................................................ 4
2.2 ORACLE........................................................................................................................................................... 4
2.2.2 OSlevel-commands............................................................................................................................... 4
2.2.3 Brbackup/brrestore.............................................................................................................................. 4
2.3 MS SQL............................................................................................................................................................ 4
2.4 DB 2/400........................................................................................................................................................... 5
3.1 GENERAL........................................................................................................................................................ 6
3.1.1 ftp............................................................................................................................................................. 6
3.2 UNIX................................................................................................................................................................. 6
3.2.1 Simple commands................................................................................................................................. 6
3.3 NT..................................................................................................................................................................... 6
4.1.1 dbmon..................................................................................................................................................... 8
4.1.2 gwmon..................................................................................................................................................... 8
4.1.3 R3load.................................................................................................................................................... 8
4.1.4 R3setup................................................................................................................................................... 8
4.1.5 R3trans................................................................................................................................................... 8
4.1.8 saprouter................................................................................................................................................ 8
This document is created to get a comprehensive list of all actions that I have taken during the maintenance
of the SAP. This to make sure that I forget as little as possible.
This document can be a good handle for basis consultants who are starting on the job.
1.1 Tables
Good advise: don’t learn the transactioncodes by heart at first, but use the menu-paths. This way you will
sooner get an overview of the systems possibilities.
SM21 Systemlog
SM37 Check the batchjobs
SM50/51 Show all processes on one server / all servers
SM66 Show all active process on the system
ST11 Display developer-traces
ST22 ABAP-dumps
1.2.2 ABAP-related
1.2.3 Backgroundjob-related
1.3 Commands
rdisp/* gui-parameters
rdisp/ maximum time of no response (in 3.x: rdisp/
gui_max_wait gui_auto_logout)
1.6 Userids
SAP* Sapsuperuser, has all authorizations. Its default password is available in the OSS.
CPIC eh
SAPR3 User that connect SAP R/3 to the Oracle (or SQL or ..) database
OPS$ Oracle-only. Used to change passwords of OS-level userid’s. see OSS-note 50088
During applying supportpackages (aka. hotpackages) you need to be logged on to client 000 with a userid
other then SAP*, but with the same authorizations.
During changing the Transport Management System using STMS you need to be logged on as TMSADM in
client 000 on the transportdomaincontroller.
1.7 Logfiles
SAP logs almost any action and has a lot of trace-options. Here is a short listing for them:
· developertraces, viewed via ST11 or SM50 and doubleclick the process (as of 4.x), stored in /work
dev_wX log for workproces number X
dev_ms log for workproces for the messageservice
dev_gw log for workproces for the gateway
dev_disp log for workproces for the dispatcher
dev_tp log for workproces for the transports
1.8 Traces
· ST05 (System, Utilities, Performance trace) allows you to set a trace per user, transaction, program
or process-id.
· SM50. Here you see the processes. Per proces you can see it’s corresponding tracefile via button
‘Show file’. The default trace-level is 1. You can change the tracelevel via Process, Trace, Dispatcher,
Change tracelevel (of all processes, not per process).
2 Database
2.1.1 Database-commands
The V$-files contain the dynamic performance tables which hold the runtime information of R/3. To see all V
$-files listed, go to ST04, detailed analysis, button display V$ values.
?alter database rename file '<device>:\<old path>\<old filename>' to '<device>:\<new path>\<new filename>';
drop tablename from ??; deletes the table from the database.
2.2 Oracle
init<SID>.ora
init<SID>.sap
init<SID>.dba
2.2.2 OSlevel-commands
smit (or smitty) characterbased menu for handling of filesystems, logical volumes, drives etc.
2.2.3 Brbackup/brrestore
BRRESTORE –m file01/dir01 .. filen/dirn restore the backup and places the files in the given directories
instead of the original directories
2.3 MS SQL
2.3.1 Services
· SAP<SID>_<Instance-number>
· SAPoscol
2.4 DB 2/400
3.1 General
3.1.1 ftp
3.2 UNIX
chgrp grp Change the group that the file(s) belong to.
filelist
chmod 777 Change the rights of the file(s). 777: owner-world-
filelist user. 7: read-write-delete (=111)
chown user Change the owner of the file(s)
filelist
cp file1 file2 Copy file1 to file2
cp /dev/null Clear all contents of file
file
errpt Hardware error-report (IBM-unix)
ls –ltr <dir> Show filelist, –parameters: l: show fileattributes , t:
sort by time, r: reverse sortorder
more <dir>
mv file1 Move command
file2
ps –ef Show all running processes, -e, -f
vi The famous vi-editor
To schedule tasks you have to edit file crontab. Every line starts with five numbers and then a command. The
numbers stand for minute, hour, day-of-month, month-of-year, day of week (0 for sunday).
Detailed UNIX-commandlist
To get detailed information about every UNIX-command available and lots of articles, see site
AIX: www.rs6000.ibm.com/cgi-bin/ds_rslt
3.3 NT
at Schedule anything.
hostname Shows the hostname
ipconfig /all Show all ip-addresses of the system
ipcs –m Show all IPC-processes
ipcrm –m Kill ipc-process <process>
<process>
regedit / Edit the registry. (for instance HKLM, software,
regedt32 SAP)
sapntchk Checks the system, its ip-adresses, running
processes etc.
ntenv2reg Copy the environmentsettings to the registry to
secure them
ntreg2env Copy the registry to the environmentsettings
4.1.1 dpmon
This tool allows you to check SAP’s processes and to find out which one is killing the performance. Especially
useful when it is not possible anymore to log on to your system.
4.1.2 gwmon
This tool allows you to check if the gateway is running. It is an addition to transaction SMGW.
4.1.3 R3load
4.1.4 R3setup
4.1.5 R3trans
Sapdba is run to collect the data for the optimizer. This is done in two steps: First ‘SAPDBA –checkopt PSAP%’
checks which optimizerdata needs to be updated, then ‘SAPDBA –analyze DBSTATCO’ gathers the data of the
objects to be updated.
Request the license for the system by sending the fax included in the installation-kit to SAP.
4.1.8 saprouter
As of version 4.0 there is no more need for us to go down to the os-level. Everything can be done with
transaction STMS. Nevertheless the tp-commands are still be useful and needed in some cases (yet). for
detailed information on tp-command, see OSS-note 309711.
4 Warning
8 Error.
>1000 Returncode with extra information, but only the last three digits are relevant
The file TP_<DOMAIN>.PFL (used to be TPPARAM) in this directory holds the tp-parameter-settings