|
Contents 1 SAP R/3................................................................................................................................................................... 2 1.1 Tables........................................................................................................................................................... 2 1.2 Transactions........................................................................................................................................... 2 1.2.1 Daily maintenance............................................................................................................................... 2 1.2.2 ABAP-related......................................................................................................................................... 2 1.2.3 Backgroundjob-related....................................................................................................................... 2 1.2.4 Generally useful.................................................................................................................................... 2 1.2.5 Functional transactions...................................................................................................................... 2 1.3 Commands.................................................................................................................................................. 3 1.4 ABAP reports............................................................................................................................................ 3 1.5 Profileparameters............................................................................................................................... 3 1.6 Userids.......................................................................................................................................................... 3 1.6.1 Userids on SAP R/3 level..................................................................................................................... 3 1.6.2 Userids on databaselevel.................................................................................................................... 3 1.6.3 Userids on OS-level.............................................................................................................................. 3 1.6.4 Userid for Supportpackages............................................................................................................... 3 1.6.5 Userid for STMS.................................................................................................................................... 3 1.7 Logfiles........................................................................................................................................................ 3 2 Database............................................................................................................................................................. 4 2.1 General databaseknowledge...................................................................................................... 4 2.1.1 Database-commands............................................................................................................................ 4 2.1.1.1 SQL Select-statements......................................................................................................................... 4 2.1.1.2 SQL Alter-statements.......................................................................................................................... 4 2.1.1.3 SQL Other statements.......................................................................................................................... 4 2.2 Oracle........................................................................................................................................................... 4 2.2.1 important files....................................................................................................................................... 4 2.2.2 OSlevel-commands............................................................................................................................... 4 2.2.3 Brbackup/brrestore.............................................................................................................................. 4 2.3 MS SQL............................................................................................................................................................ 4 2.3.1 Stored procedures................................................................................................................................ 5 2.4 DB 2/400........................................................................................................................................................... 5 3 Operating system......................................................................................................................................... 6 3.1 General........................................................................................................................................................ 6 3.1.1 ftp............................................................................................................................................................. 6 3.1.2 General commands............................................................................................................................... 6 3.2 UNIX................................................................................................................................................................. 6 3.2.1 Simple commands................................................................................................................................. 6 3.2.2 A little more complex commands....................................................................................................... 6 3.3 NT..................................................................................................................................................................... 6 4 General issues................................................................................................................................................. 8 4.1 SAP Tools..................................................................................................................................................... 8 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.6 sapdba, to be run as ora<SID>......................................................................................................... 8 4.1.7 saplicense, to be run from the ..\exe\run directory......................................................................... 8 4.1.8 saprouter................................................................................................................................................ 8 4.1.9 tp, to be run from the usr\sap\trans\bin............................................................................................ 8 1 SAP R/3This 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
1.2 TransactionsGood 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. 1.2.1 Daily maintenance
1.2.2 ABAP-related
1.2.3 Backgroundjob-related
1.2.4 Generally useful
1.2.5 Functional transactions
1.3 Commands
1.4 ABAP reports
1.5 Profileparameters
1.6 Userids1.6.1 Userids on SAP R/3 levelSAP* Sapsuperuser, has all authorizations. Its default password is available in the OSS. DDIC Its default password is available in the OSS. CPIC eh 1.6.2 Userids on databaselevelSAPR3 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 1.6.3 Userids on OS-level<SID>adm os-administrator for unix-activities as creating logical volumes, filegroups, smit, smitty, etc ora<SID> Oracle only: R/3-database administrator for SAPDBA-activities as brarchive, sapdba-analyze, brrestore, etc. SAPService<SID> NT-only: OS-user used for running the service SAPOSCOL 1.6.4 Userid for applying SupportpackagesDuring applying supportpackages (aka. hotpackages) you need to be logged on to client 000 with a userid other then SAP*, but with the same authorizations. 1.6.5 Userid for configuring and maintaining STMSDuring changing the Transport Management System using STMS you need to be logged on as TMSADM in client 000 on the transportdomaincontroller. 1.7 LogfilesSAP logs almost any action and has a lot of trace-options. Here is a short listing for them: · systemlog, viewed via transaction SM21, file stored in /work · developertraces, viewed via ST11 or SM50 and doubleclick the process (as of 4.x), stored in /work · startuplog, viewed via ST11 · stderrx, viewed via ST11, 3 or 4 files, hold more errorstatements · trans.log, viewed via AL11, DIR_TRANS, transportlogfile 1.8 TracesTracefiles are very useful when analysing a problem. · 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 Database2.1 General databaseknowledgeLogging on to the database is done via: · Log on as ora<SID> · UNIX: svrmgrl (in Oracle 7.* this used to be ‘sqlplus’) · NT: sqldba72 (or svrmgr23, svrmgr30) · connect internal 2.1.1 Database-commands2.1.1.1 SQL Select-statements
2.1.1.2 SQL Alter-statements alter database open; ?alter database rename file '<device>:\<old path>\<old filename>' to '<device>:\<new path>\<new filename>'; alter system switch logfile; (4 times to perform four logswitches) alter tablespace <tablespacename> end backup; the tablespace will end its status of being backed up. 2.1.1.3 SQL Other statementsanalyze table <tablename> validate structure cascade; drop tablename from ??; deletes the table from the database. exit; logging out grant user1 to user2; copies the rights of user1 to user2 saposcol –v show the version of saposcol 2.2 Oracle2.2.1 important filesinit<SID>.ora init<SID>.sap init<SID>.dba 2.2.2 OSlevel-commandsexit logging out lsnrctl start start the oracle listener lsnrctl status shows the status of the listener tnsping <SID> tests the TNS-connection to the database smit (or smitty) characterbased menu for handling of filesystems, logical volumes, drives etc. 2.2.3 Brbackup/brrestore | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||