Sie sind auf Seite 1von 17

1 SAP Transactions..........................................................................

3
1.1 Most Frequently used Transactions.............................................................. 4
1.2 Transactions for BW..................................................................................... 5
1.3 Transactions for CRM................................................................................... 6
1.4 Commands in SAP Menu ............................................................................. 6
1.4.1 Some Additional Commands: ................................................................ 6
1.5 Using lcons with Messages within SAP........................................................ 6
1.6 Using External Operating System Commands, ............................................ 7
1.7 Execute OS commands from SAPGUl ......................................................... 7
1.8 File Transfer Programs................................................................................. 7
1.9 Session Manager Menu Tree Display........................................................... 8
2 Unix Commands Reference ......................................................... 13
2.1 Verifications Environement ......................................................................... 13
2.1.1 VG....................................................................................................... 13
2.1.2 FileSystem........................................................................................... 13
2.1.3 Tablespaces........................................................................................ 13
2.1.4 SWAP space ....................................................................................... 13
2.1.5 Memory ............................................................................................... 13
2.1.6 DB parameters .................................................................................... 13
2.1.7 OS system name................................................................................. 13
2.1.8 lnstalled packages & programs ........................................................... 13
2.1.9 All physical storage devices ................................................................ 13
2.1.10 To list the processes of an uid............................................................. 13
2.1.11 System logs to be checked ;............................................................... 14
2.1.12 check the system source..................................................................... 14
2.2 Aliases........................................................................................................ 15
2.2.1 To go to /usr/sap//SYS/profi|e.............................................................. 15
2.2.2 To go to /usr/sap//SYS/exe/run ........................................................... 15
2.3 Queries....................................................................................................... 15
2.3.1 To display top 10 disk usage directories.............................................. 15
2.3.2 To sorts top size of filesystems.......................................................... 15
2.4 Find, Sort, Grep etc.................................................................................. 15
2.5 To give new store area in the ESS............................................................. 16
2.6 working in loop,........................................................................................... 16
2.7 Using car/sar files in a single shot .............................................................. 17


































1 SAP Transactions

You can access all the transaction codes by using the
t-code code SDMO
Or SM01
- TSTC table will contain all the Tcodes and
- TSTCT table will contain all the Tcodes with Texts.

Default Passwords for Standard Users
User Description Clients Default
Password
SAP* SAP System super user 000, 001, 066
All new clients
06071992
PASS
DDIC ABAP Dictionary and
software logistics super user
000, 001 19920706
SAPCPIC CPI-C user for SAP
Systems
000, 001 admin
EARLYWATCH Dialog user for the Early
Watch service in client 066
066 support






















1.1 Most Frequently used Transactions
Access all transaction by search word
t-code SDMO
Database Management
DB02 Database Monitoring
DB12 Database Volume Check
DB13 Database Statistic Check
DB24 DB Logs for all operations
DB6COCPIT Database Log Check
ST04 Database Snapshot
SM66 SystemWide Work Process Overview
SM50 Process Overview
SM56 User Buffer Check for Authorisations
ST06 OS Monitoring
SE11 ABAP Dictionary - Table Attributes
SE13 Dictionary Technical Settings
SE15 Search Table and table description
FILE Cross-client File Names/Paths
System Management
SM51 List of SAP Systems
SM21 System Log Check
RZ20 System Monitoring
RZ10 Change SAP Profile
RZ04 Operation Mode
SESS Session Manager Menu Tree Display
STAD
STAT
STZAC System time settings ( create & display )
STZAD System time zone change ( change flag set & modify )
ST01 System Trace*
ST02 Tune Summary
ST03 Workload
ST03N Workload analyses for transactions, memory, hitratio, user, response time
ST05 Trace Start / Stop / logs
ST06 Monitoring File System
ST07 Application Monitor
ST08 Network Collector
ST10 Table Call Statistics
ST11 Error Log Files
ST22 ABAP Shortdump Check
SAINT Install SAP Plug-in
SPAM Install SPAM updates
SU50 Own data
SAPAPO/CQ
LC10 Live Cache
SE16 Data Browser
SE80 Object Navigator
SE93 Maintain Transaction Codes
SESS Session Manager Menu Tree Display
USMM Customer Measurement
Client Management
SCC8 Client Export
BD87 Reprocess Idocs
BDLS Convert logical name of the system


Compare programs with other remote systems
t-code SE39

1.2 Transactions for BW
Transaction code Description
DB02 Table and Indexes Monitor
DB04 DB Performance Monitor
DB12 Backup logs
DB13 DBA Oracle Planning Calendar
DB16 Overview of Database Check Messages
LISTSCHEMA List Schemas
PFCG Authorisation
RRMX Business Analyser Loader
RS12 Overview of master data locks
RSA1 Administrators Workbench
RSA5 Transfer Business Content DataSources
RSBBS Query Jump Targets
RSPC Process Chain Maintenance Planning View
RSO2 Generic Data Extraction Tools
RSQ02 Maintain Infosets transactions
RSQ10 Roles for Infoset query
RSRV Analysis and repair of BW Objects
RSSM Reporting Authorisation Objects
RSZC Copy Queries between cubes
RSZDELETE Delete queries and workbooks
RSZV Maintaining variables
RZ10 Maintain profile parameters
RZ20 CCMS monitoring
SALE IMG for ALE
SBIW Implementation Guide
SBIW Data sources Control Centre
SCC4 Display/Add Client
SCCL Copy Client
SGEN
SAP Load Generator
SPAD Spool Administration
ST02 Database Tune Summary
ST03 Workload Monitor
ST04 DB Performance Monitor
STMS Transport Manager
SU01 Create new user


1.3 Transactions for CRM

SMWP
SMQ1
SMQ2

SMQS








1.4 Commands in SAP Menu

/nxxxx - Terminates current transaction and starts transaction "xxxx"
/n - Terminates current transaction /nend Terminates all separate sessions and logs off
/nex - Terminates all separate sessions and logs off immediately
/oxxxx - Opens a new sessions and starts transaction "xxxx" inn new session
/o - Lists existing sessions and allows deletion or opening of a new session
/h - Switches into debugging mode
/hs - Switches into debugging mode and activates the debugging of system functions
/$SYNC - Buffer Command: Resets all buffers in the system
/$CUA - Buffer Command: Resets the CUA buffer of the application server
/$TAB - Buffer Command: Resets the table buffer of the application server
/$NAM - Buffer Command: Resets the nametab buffer of the application server
/$DYNP - Buffer Command: Resets the screen buffer if the application server
/bdel - Deletes the current batch input transaction
/bend - Terminates batch input processing and sets the sessions to "Failed"

1.4.1 Some Additional Commands:

%sc - FIND if find is not an option in an SAP screen
%pc - SAVE it to a file on your pc
%pri/%prin - Will print the current screen
%bc1 - Takes you back one screen (Green Arrow)
%bc2 - Cancel (Red X)
%bck - Yellow Arrow



1.5 Using Icons with Messages within SAP

t-code BIBS
go to Elements > ICON overview

Here you can actually put icons in your messages that you send out.
This is a really a good way to make the user take notice of the message.
To insert an icon, just find the code to the right from BIBS, ex. AH.
Then within your message text, insert the icon with @AH@.
(This is the warning sign).

1.6 Using External Operating System Commands,

Open transaction SM69
Create new command with the name beginning with Z or Y
Put necessary parameters,
Execute command with transaction SM49






1.7 Execute OS commands from SAPGUI

t-code SA38 / SE38
report RSBDCOS0


1.8 File Transfer Programs

RPClFU01 Display File
RPClFU03 Download Unix File to PC
RPClFU04 Upload PC File to Unix File







1.9 Session Manager Menu Tree Display





















2 Unix Commands Reference

2.1 Verifications Environement

2.1.1 VG
>lsvg
>lsvg rootvg

eg:
# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 799 260 16..00..00..84..160
hdisk2 active 799 453 115..00..18..160..160

2.1.2 FileSystem
>df k

2.1.3 Tablespaces
>

2.1.4 SWAP space
>lsps -a

2.1.5 Memory
>bootinfo -r

2.1.6 DB parameters


2.1.7 OS system name
>uname a
## SunOS fep-sym-prd04 5.9 Generic_118558-28 sun4u sparc
SUNW,Sun-Fire-V210

2.1.8 Installed packages & programs
>instfix -ik |grep AIX

2.1.9 All physical storage devices
>lsdev Cc disk

2.1.10 To list the processes of an uid
>ps -fu <sidadm>
eg :
UID PID PPID C STIME TTY TIME CMD
yw2adm 356480 979048 0 01:36:03 - 0:00 dw.sapYW2_DVEBMGS20
pf=/usr/sap/YW2/SYS/profile/YW2_DVEBMGS20_pcyy112p6
yw2adm 557182 1 012:06:37 - 0:02 aioserver
yw2adm 565484 979048 0 12:09:58 - 0:03 dw.sapYW2_DVEBMGS20
pf=/usr/sap/YW2/SYS/profile/YW2_DVEBMGS20_pcyy112p6




2.1.11 System logs to be checked ;

/home/root/smit.log
/home/db2inst1/sqllib/db2dump/db2diag.log
/tmp/db2setup.log
/tmp/trace.log
/smit.log
/var/adm/sulog
tail f db2diag.log
diff x.log y.log
To monitor the same info of SM50 on Unix
Connect as <sid>adm
dpmon pf=/usr/sap/DR2/SYS/profile/DR2_DVEBMGS09_qs75255
and choose ( m ) to access the menu

2.1.12 check the system source

lsattr -E -l sys0
tmp/nmon
vmstat 1
iostat
export LINES=35
entstat -d ent0
bootinfo r #for memory
lslpp -l|pg #to check all installed programs
netstat m |pg
netstat a | more
netstat rn
nslookup < IP >
lsdev Cc disk #to check all physical storage devices
lsdev Cc tape
lsdev Cc processor
lsdev Cc adapter
lsdev Cc tape | grep rmt0
lsps a #to check paging space
bootinfo a
instfix -ik |grep AIX
lppchk v
lsvg -p vgsapssa
ps -fu db2n02
varyoffvg <VG_name> #to deactivate the VG
prtdiag v # all hardware info
du | sort -n | tail -10l # To display top 10 disk usage directories (excellent for
finding rogue core files or other large one-offs)
2.2 Aliases
2.2.1 To go to /usr/sap//SYS/profile
>cdpro

2.2.2 To go to /usr/sap//SYS/exe/run
>cdexe

2.3 Queries
2.3.1 To display top 10 disk usage directories
(excellent for finding rogue core files or other large one-offs)
>du | sort -n | tail -10l
(10l for L)
eg:
# cd /oracle/YW2
# du |sort -n |tail -10l
10281000 ./sapdata4
10485784 ./sapdata2/edf_2
14762168 ./sapdata3/edf700_2
15032536 ./sapdata1/undo_1

2.3.2 To sorts top size of filesystems
>df -k |sort -n +3


2.4 Find, Sort, Grep etc
find . name D01K* -print exec compress{}
find . -name "p*.sh" -exec grep
find . -mtime -2 -name "oo*" print
find . -type f -mtime 1 -name "oo*" ls
229 0 -rw-r--r-- 1 d01adm sapsys 0 Feb 24 11:46 ./oomdat
207 4 -rw-r--r-- 1 d01adm sapsys 9 Feb 24 12:39 ./ooff
find . -type f -mtime -1 -name "oo*" ls
229 0 -rw-r--r-- 1 d01adm sapsys 0 Feb 24 11:46 ./oomdat
207 4 -rw-r--r-- 1 d01adm sapsys 9 Feb 24 12:39 ./ooff

find . -type f -mtime +1 -name "oo*" ls
230 4 -rwxrwxrwx 1 d01adm sapsys 184 Feb 22 16:59 ./oocut
67 4 -rwxrwxrwx 1 d01adm sapsys 829 Feb 22 14:27 ./ootpdatld

find . -type f -mtime +7 -ls
( ls of files older then 7 days )

find . -mtime +120 -type f -exec rm f {} \;
( deletes all file older then 120 days in the cureent directory)
Before executing the rm command, be sure about the link of the filesystems
ls ltr

find . -name "PR8.CRE*ERR_LOG" -mtime +7 |awk '{print $0}
./PR8.CRE.P.100206_ERR_LOG
./PR8.CRE.S.100206_ERR_LOG
./PR8.CRE.F.100206_ERR_LOG
find . -name "PR8.CRE*ERR_LOG" -mtime +7 |awk '{print substr ($1,3,26)}'
PR8.CRE.P.100206_ERR_LOG
PR8.CRE.S.100206_ERR_LOG
PR8.CRE.F.100206_ERR_LOG

ls -l | grep -v Z | sort +5 -b -n | tail -20 | awk '{print $9}' | xargs compress
compress the 20 biggest files (except .Z files)
ls l | sort b n +4 | tail 50 to show the 50 biggest log files.
ls l | sort b n +4 | tail 50 | awk {print $9} | xargs compress
to compress all of them in compressed files
ls -l|awk '{ if ( $6=="May" && $7 ==23) print $0}'
ls -l oo* |awk '{if ($7=="23" ) print$9}'
du sk *
df -k |grep "/tmp/install" |awk '{print ($3)}'
df -k |sort -n +3 ( sorts top size of filesystems )
ls latr
ls -la | awk '{print $9, "\t", $5}' #verify with hiden systems files.
. 4096
.. 1024
08042008 1024
ACOM0000000008.txt.OK 10890566
Archive_silo_sortie.log 32181

:1 ,$ s/<string>/<newstring>/g
(in vi editor starting from the first line to the end, search for the <string>,
changes it to <new string> in all lines and each time found)

split l 1000 <filename> ( split file in l lines )
- b n (Bytes) dcoupage par blocs de n octets
ou
- l n (Lignes) dcoupage par blocs de n lignes



2.5 To give new store area in the ESS
Check fcs0 card number by
Lscfg v |more
Look for /fcs0
Write the network address of card.





2.6 working in loop,
>echo $SHELL
for i in MONI PAHI OSMON DBSNP SDBAH
do
db2 delete from SAPR3."$i"
done

2.7 Using car/sar files in a single shot
>for i in *.SAR; do SAPCAR -xvf $i; done


Indirection and pipes should be second nature to you by now:
> f: Writes standard output to the file f.
>> f: Appends standard output to the file f.
< f: Takes standard input from the file f.
2> f: Writes standard error to the file f.
2>&1: Writes standard error to wherever standard out is going when it reaches this
statement.
>&2: Writes standard output to wherever standard error is going when it reaches this
statement.
There are a few special environment variables:
$# is the number of command line arguments.
$$ is the process id of the shell script.
$* is a string containing all of the command line arguments
$! is the process id of the last process that the shell script has executed in the
background.

Das könnte Ihnen auch gefallen