Sap Basis Book
Sap Basis Book
SAP BASIS
Work process
A. All the process which handles by the use task based on the type of the user
request.
B. Types of work process
1) Dialog work process
2) Background work process
3) Update work process
4) Message server
5) Enqueue server
6) Gateway
7) Spool
C. What are the different types of work process in R/3?
Dialog (D), Update (V), Enqueue (E), Background (B) and Spool(S)
Q. If you have a long running job, how to you analysis? (Or) How to analyze long
running job?
Using the transaction code is – SE30
R. Standard background jobs (or) Housekeeping jobs are sap_reorg*
1) Sap_reorg_abapdumps:
Program: RSSNAPDL
2) Sap_reorg_batchinput: This job is used for delete batch input files
Program: RSBDCREO
3) Sap_reorg_jobs: This job is used for delete old background jobs
Program: RSBTCDEL
4) Sap_reorg_statististics: This job is used for run the statistics of sap tables
Program: RSBPSTDE
5) Sap_reorg_spool: This job is used for delete the old print request.
Program: RSPO0041
6) Sap_reorg_updaterecords: this job is used for delete the old update
records
Program: RSM13002
S. Background job issues (or) Why background job is cancelled?
1) File system is not accessible.
2) User id & password may be expired.
3) Dependent job is may be failed.
4) RFC connection is failed.
5) Incorrect in puts.
6) May be files corrupted at O.S level.
7) Space issues in database level.
8) Memory issues.
9) Ora-arch director is may be full.
10)Invalid file formats.
A. It is used to update the database by reading from the temporary tables. It can’t
communicate with user directly
B. There are 2 types of update work process. They are v1 and v2
V1 update is used for critical jobs and V2 update is used for non critical jobs
C. We need at least one update work process per sap system and we have more than
per dispatcher
D. The update profile parameter name is rdisp\wp_no_vb, rdisp\wp_no_vb2
E. Update monitoring is – SM13
Here we can check critical and non critical updates. We can specify date and time
F. Update program administration – SM14
This transaction code is used for active to deactivate & deactivates to activate
update request and you configure the update servers, update groups and display &
monitoring update parameters.
G. Update temporary table is VB*
1) Vbmod – update function module
2) Vbdata – update data
3) Vberror – update error information
4) Vbhdr – update header
5) Vbwrk – work list for mass processing at a time have update
H. Update status are
1) Init – the status will be initial.
2) Run – update is started in main database.
3) Error – update is thrown into error.
4) Auto – update is thrown into error due to problem in database space.
I. Update tables are stored in TBLOD
J. SAPMV45A: which update work process is going on?
M. Update parameters
1) rdisp\vb_stop_acive: Set to “0” so that update can be deactivated. If the
value is set to be “1” update can be activated.
2) rdisp\vbdelete: This parameter is used to delete the old update requests
based on the no. of days. It will delete default 50 days.
3) rdisp\vbmail: It is used to send an email. It update thrown an error which
can be viewed in “SBWP” (“sap business workplace”) based on your user
(set to “0” or “1”).
4) rdisp\vbname : Name of the server running where update are processed
5) rdisp\vbreorg: It is used to delete the incomplete update request.
1=delete, 0=no, we can also schedule a background job “RSM13002” but it
will delete the update request which are in completed it will be deleted after
restarting.
6) rdisp\vb_delete_after_execution: It is used to delete the update request
soon after the execute of the update. Set it to”1” to delete the record (or)
“2” to the record will not be deleted. If it is set to “1” the background job
“RSM13002” is not required. If not schedule periodically daily during off
peak hours.
A. Message servers handle by the load balancing. It distributes the dispatcher where
the load balance is less.
B. Message server log files are stored in O.S level DEV_MS
Path is – usr\sap\<Sid><instance (number)>\work\dev_ms
C. In O.S level message server monitoring is – msmon ->cmd
D. Message server port number is – 36<instance number>
E. Internal port number is – 39<instance number>
F. NOTE: sap server has only one message server and enqueue server.
G. NOTE: application server or dialog instance are same. And central instance is
different
Spool (S)
Sap Basis Page 10
Venkat
A. RFC is using connect to the one sap system to another sap system.
B. Sap gate way is using of RFC
C. RFC connections are 4 types
1) Asynchronous RFC: User doesn’t get the any acknowledgement. Whenever
using the asynchronous Rfc between the two sap systems
2) Synchronous RFC: User gets the acknowledgement. Whenever using the
asynchronous Rfc between the two sap systems
3) Transactional RFC: User doesn’t get the any acknowledgement .Each
request send to the transactional ID, but there is no order delivered
It is asynchronous RFC extended to the transactional RFC
4) Queued RFC: User gets the acknowledgement. Each request sends to the
user request one by one order. Send to the form of logical unit of work
D. Transaction RFC T_Code – SM58
E. Configuration of RFC Connection is – SM59
F. RFC Connection Type Connection
Abap connection 3 Abap to Abap connection
HTTP connection to external system G web browser to non sap system
HTTP connection to Abap system H web browser to any Abap system
Internal connection I within the system
TCP/IP connection T Abap to java connection
G. SMQ1 is monitor for the outbound queue. Outbound queue means sending the
request.
H. SMQ2 is monitor for the inbound queue. Inbound queue means sending the
request.
I. Default communication user TMSADM
J. Default the Rfc connection is – TMSADM@<SID>.DOMAIN_<SID>
1) Target system to source system does not match like version, production and
component.
2) May be target system is down.
3) May be authorization problems.
4) May be incorrect credential of the target system
Operation mode
Profile
[Command] [SAP]
Stop sap -------------------------> R3 & DB [Here system is down]
S. How to start only sap, when DB is up?
Startsapr3 –---------------------> to start only R/3 system
Stopsapr3 –----------------------> to stop only R/3 system
T. Dispatcher port number is – 32<instance number>
U. Gate way port number is – 33<instance number>
V. Message server port number is – 36<instance number>
W. Named pipe: named pipe is used to connect between the MMC and SAP.
X. Default profile parameters:
Login\system_client = 001 – the number of the client to display by default
for all the users.
Zcca\system_language = – to specify the language during logon
Login\no_automatic_user_sapstar = 1 – by default this parameter value is 0
then we can change the parameter value is 1 because if any user (or) client
you can login with parameter
Y. The background process is running when MMC connect to the SAP
MMC
strcpe.exe
strdbs.cmd
msgserver.exe
Disp+work.exe
igswd.exe ---------> IGS means internet graphical service
Z. DB
Start C.I stop
D.I
Export Import
Version of SAP
What is the difference between Net weaver and ECC (or) ERP?
Clients
To disable multiple users login within the same client implementation this
parameter in the instance profile login\disable\_multi_gui_login = 1
28. Exception login?
In case you are wondering how to allow multiple login for certain key users you
can implement parameter login\multi_login_users =
29. Login\system_client – it is used for when the open the screen we will get this
client number whatever we set in the default profile parameter
30. How to delete the client deletion?
1) Login in the client which you want to delete
2) Using the transaction code SCC5
3) Check delete entry from T000 option & click delete in background job
button
4) Double click on server name
5) Check immediately option & click on schedule job button click on continue
button
6) Go to the transaction code SCC3 to see log analysis
7) After taking some time status become success fully completed
31. Tell the steps for a local client copy?
1) Login with sap* & password pass in newly create client
2) Using the transaction code is SCCL
3) Target is displayed
4) Select the profile which you want to you copy
5) Selected source client
6) Select on start immediately button (or) schedule as background job
7) Click on continue button – to continue the client copy
32. Tell the steps for remote client copy?
1) Using the transaction code in target client
2) Target client is displayed
3) Select the profile which you want to you copy
Support packages
A. Patches: To fix the bugs, to get the functional enhancement and To upgrade the
system to next level
B. SNOTE: SNOTE is the single object correction. They are 2 types
1. Manual note: the note is provided the runtime issues.
2. Corrective note: The note is providing the functional enhancement and
fixes the bugs.
C. The process of applying NOTE got to the transaction is SNOTE
D. What is the process for applying SAP NOTES to sap system?
Go to transaction code SNOTE ---> go to menu ---> download sap note ---> give
the NOTE number ---> after downloading check the status. If it shows that it can
be implemented then select the NOTE go to menu SAPNOTE ---> implement note
E. How to install the Add-ons?
Using the transaction code – SAINT\
F. Support packages: support packages are multiple of object corrections
Support packages contain the set of patches. Support packages we should apply on
sequence manner.
G. The support packages status are stored in “PAT01” table and “PAT03”
H. How do you get latest kernel, support packages & Add-ons?
Service market place [www.service.sap.com]
I. While applying support packages. If users accurse in SPAU & SPDD phases then
what will you do?
SPAU in problems accurse I can skip the problem. If it is SPDD in problems
accurse I can execute technical people.
J. SPDD & SPAU ---> please inform the customer to take care. If locked objects
found can be Release using the transaction code is SE03
K. What is naming convention for support packs?
Kb46c005
L. What is the difference between sap note & support packages?
SNOTE – single object correction
Support package – multiple object correction
M. With solution manager can I apply support packages in C.I & D.I?
Yes, I can
How?
We can install the C.I & D.I on the host and on the same <Sid> can apply support
packages.
N. Usr\sap\trans\eps\in:
This directory stores uncar patches which are download from the service market
place
O. Table “TPFET” is used for store the parameter values along with patches
P. Kernel patch latest number: 156/291
Q. Support package highest level: 26
R. Patch: Group of NOTES is called patches
S. Packages: Group of patches is called packages
T. Stacks: Group of packages is called stacks
U. How to uncar .car/.sar files in UNIX single shot?
# $for I in *, SAR: do SAPCAR –XVF $I: done
V. We can’t able to see uncar files in EPS directory then what will you do?
1. May be file corrupted
2. Sap car may old version
W. Can you apply the support packages in Java system?
Yes, through SDM and JSPM
X. Why we required 2 background work process in support packages?
Support package is the time taking process in this process due to some problems.
If one job is failed another one job is take the backup.
The Support Package Manager runs through a series of phases when it imports
Support Packages. If you want to know which phases were performed for which
scenario (test scenario or standard scenario), execute program RSSPAM10.
The following list provides an overview of all the modules and phases and list
them in the order in which they are executed by the Support Package Manager:
Module: Preparation
1. PROLOGUE
This phase checks if you are authorized to import Support Packages.
2. CHECK_REQUIREMENTS
This phase checks various prerequisites for importing Support Packages such as
the tp logon to your system.
3. DISASSEMBLE
This phase disassembles, or unpacks, the data files from the relevant EPS parcels
and copies them to the transport directory.
4. ADD_TO_BUFFER
This phase copies the queue to the transport buffer of your system.
5. MODIFY_BUFFER
In this phase, the transport buffer is prepared for correct processing of the
following import phases.
6. IMPORT_OBJECT_LIST
This phase imports the object lists of the Support Packages in the queue into the
system.
7. TEST_IMPORT
This phase performs a test import for the current queue using tp. It checks if there
are objects that are in open repairs and will be overwritten during the import, or if
any other circumstances are preventing an object from being imported
successfully.
8. OBJECTS_LOCKED_?
This phase checks if there are objects that will be overwritten by the Support
Package, and that are still in requests that have not yet been released.
9. ADDON_CONFLICTS_?
This phase checks if there are conflicts between the objects in the queue and the
installed add-ons.
10. SCHEDULE_RDDIMPDP
This phase schedules the transport daemon (program RDDIMPDP).
Module Import 1
11. CREATE_VERS_BEFORE
This phase generates versions of the objects in the Support Packages that are in the
queue.
12. SPDD_SPAU_CHECK
This phase checks if a modification adjustment is necessary (Transactions
SPDD/SPAU).
13. DDIC_IMPORT
This phase imports all ABAP Dictionary objects in the queue.
14. AUTO_MOD_SPDD
This phase checks if modifications to ABAP Dictionary objects can be adjusted
automatically.
15. RUN_SPDD_?
This phase prompts you to adjust your modifications to ABAP Dictionary objects
with Transaction SPDD.
16. LOCK_EU (For Import Mode Downtime-Minimized Only)
This phase locks the development environment.
17. INACTIVE_IMPORT (For Import Mode Downtime-Minimized Only)
This phase imports program code and program texts in an inactive state.
18. DDIC_ACTIVATION
This phase activates the imported Data Dictionary objects.
19. IMPORT_PROPER
This phase imports all Repository objects and table entries, provided they have not
already been imported during the phase INACTIVE_IMPORT. This is preceded
by actions such as table conversion and activation of the name tabs.
20. PREPARE_XPRA
This phase prepares the XPRAs and after-import methods to be executed.
21. UNLOCK_EU (For Import Mode Downtime-Minimized Only)
This phase unlocks the development environment.
22. AUTO_MOD_SPAU
This phase checks whether modifications can be adjusted automatically.
23. XPRA_EXECUTION
This step executes the XPRAs and the post-import methods.
24. ABAP_GENERATION
This phase generates runtime objects for the imported Repository objects (ABAP
source texts and screens).
25. RUN_SPAU_?
This phase prompts you to adjust your modifications to Repository objects with
transaction SPAU.
26. CLEAR_OLD_REPORTS (For Import Mode Downtime-Minimized Only)
This phase deletes obsolete versions of the program code and program texts in the
database.
27. EPILOGUE
This phase completes the import of the Support Package. It also checks if the
queue was processed completely.
Go to cmd prompt -----> disp+work (it will show the upgrade kernel
version)
D. How to get the sap kernel files?
Logon market place ---> s/w downloads ---> entry by application group --->
additional component ---> click0n sap kernel (32 bit uc, 64 bit uc, 32 bit nuc, 64
bit nuc.)
Once database independent is completed after that Database dependent completed
E. usr\sap\<Sid>\sys\exe\uc\nti386\run
Run directory is called as a kernel directory
This stores all the executables through which sap runs
F. Kernel is provided the communication between SAP, DB & O.S
A. More than one instance we can configured the in that time we can use logon load
balancing
B. Decreasing the load balancing on the C.I
C. Effective utilization of buffers
D. We can create and delete groups entire system
E. If the one instance is failed then the request goes to another instance failover
F. How to create the logon load balancing?
Using the transaction code – SMLG ---> click on the create button ---> here we
have to give the logon group and instance ---> copy ---> after open the GUI pad ---
> click the NEW ITEM ---> next ---> here we have to give the connection type
(group server selection) ---> we have to the description, application server, system
number, system ID ---> next ---> finish
Performance
6. ST06 – OS monitoring
It is used for CPU utilization, number of CPU’S physical memory available
and utilized
It is used to start & stop the sap OS Col services. Click on detailed analysis
menu to display the top CPU users
If fetches the data using service saposcol and it displays
Memory utilization
Disk response time
CPU idle time not less than 30% [for portal up to 80 to 85%]
This transaction code is also used start & stop the sap operating system
collector
Click on LANCHECK by ping to check the number of presentation server.
You can ping to the servers (or) to a specific IP address
NOTE: OScol brings the OS information into ST06. If OS call not stared
ST06 will be blank
We can check top CPU utilization for the current last 24 hours
7. ST07 – application monitoring
Here we can see how many users are log, number of servers, clients & work
process
it is used to identify whether the system is optimally designed or not, this is
also used to identify the buffer utilization & response TIME
8. ST11 – it is used to display the developer traces of work directory \usr\sap\<Sid>\
sys\work
9. How to delete the statistics of file R/3?
1) Sometimes deleted manually
2) Using ST03 or ST03N
3) OS level: DVEBMGS/data file
NET WEAVER
EP (Enterprise Portal)
3. System administration
By using this we can configure the SSO and key store administration &
UWL [universal work list configuration]
J. How to start the java system?
Start
DB, SCS, C.I, D.I
Stop
K. Work process overview – JCMON
Config tool
A. To logon the config tool database should be up but their java is not mandatory
B. Without user ID & password we can log in the config tool
C. If you change this config tool then we can restart the sap system
D. Config tool path is – usr\sap\<Sid>\<instance number>\j2ee\config tool\
config.bat ---> windows OS (config.sh ---> UNIX)
E. Options:
1. Cluster data
2. Secure store
3. UME LDAP Data
1. Cluster data:
1) Global dispatcher configuration
2) Global server configuration
3) Instance – id 60466 ---> for a specific instance changes of parameters
If we change in the global that effect to instance
If we change in the instance that effect to that instance only
JVM settings
Secure store area
Default logon tickets
If we want to add one more server node (or) server process click on
instance ---> click on add server button using config tool we can change the
JVM settings
2. Secure store area:
1) We can change the parameter in security in config tool
2) Secure store we can change the password (administration user password)
3) We can maintain the administration and java schema user & password in
secure store area using config tool
4) Whenever we want to change the password we have to restart the sap
system
Com.sap.security.core.ume.service
1. Ume.saperadmin.active
Ume.superadmin.password
2. Ume.logon.logon_help
Key store --->default log on tickets)
1) In the config tool we can updated the LDAP Data server information if we
are using active directory for the user connection
LDAP ---> LIGHT WEIHT DATA ACCESS PROTOCOL
2) To fetched the data from active servers using LDAP Data
3) Services:
1. Licensing service
2. Locking service
3. Log viewer service
4. Log configure service
5. JCO RFC service
6. Security service
7. SLD service
8. SSL service
4) Manager:
1. Configuration manager: it process the configuration data from
relationship of database
2. Cluster manager: it manage the communication b/w J2EE engine
cluster elements
3. Service manager: it provides runtime elements of the J2EE engine
4. Thread manager:
5. Port manager: it manages the process of pooling java object.
6. Long manager: it manages process of logging system
User ID –
Password –
Log viewer – here we can see all the logs
I. All the runtime errors we can check in the file Default. Trace file
Usr\sap\<Sid>\<instance number>\J2EE\cluster\security\log
J. Monitoring services:
These used for monitoring the java system
1. Application
2. Kernel
3. Performance
4. Services
5. System
K. Key store services: these are the services we can to create the sap logon tickets.
These log on tickets used for authorization and security for java system.
3. In the Content tab, choose the right certificate download the verify.der file
on your PC
4. The following profile parameters should be defined for all parameter files
in backend system
login/create_sso2_ticket 2
login/accept_sso2_ticket 1
SAPSECULIB/sapmnt/<SID>/exe/libsapsecu.sl
IV.Import Portal Certificate
1. Login to target SAP system and run transaction STRUSTSSO2.
2. In the left navigation tree, under the System PSE node, double click on the
system PSE.
3. In the right panel, click on Import Certificate button .
4. In the Import Certificate screen, browse to the Portal certificate file (the one
saved and extracted in step #4 named verify.der) and click Open.
5. Make sure that “Binary” is selected as the File format. Click on green check
mark.
6. Click on Add to Certificate List button, Notice that the Portal Certificate is
now added to the list of certificates.
7. Click on Add to ACL button. When prompted, fill in the WPS System with
the SID of Portal and WPS Client to 002.
Login to portal click on system administrator ---> system configuration ---
>portal content->ERP folder-> System right click on connection test
DATABASE
Sap Basis Page 60
Venkat
This is also called read in consistency error. This is called “snapshot too old “create some
more roll back segments to avoid this error.
Error codes:
DB calendar (DB14)
Login as <Sid>adm
#r3trance –d
Should returns you 0000 return codes if it is 0012, then look for trans/log file for detail
error.
BRTOOLS
BRCONNECT:
It is used to connect the database and perform the various administrative tasks
# Brconnect –f check: to check the database and writes the logs into sap check directory
# brconnect –f stats: it is used to run the database statistics. It identifies the tables whose
statistics are out based and update them.
# Brconnect –f cleanup: it is used to clean the old log files from sap trace & sap check
directory
Db optimizer: all the tables & indexes will be stored known as a DB optimizer
Br – backup: it is used to take the take the backup of the database. These are 2 types
Offline backup: the database is down during backup & no transaction is allowed
Online backup: the database is up & running without effecting the user transaction
Complete backup: take the full backup of system without catalog information
Incremental: for incremental backup, first take the full backup system [Ex: 1 2 3 4,
add the 5 6 then incremental]
Parameters:
Backup_mode = all
Br archive: it is used to backup the offline redo log file to tape (or) disk from ora arch
directory to tape (or) disk
---> when online redo logs are full then ora arch writes contents to ora arch (offline redo
logs) the content of ora arch is reference of off line redo logs
There is a mediator is called DB client with the help of DB client. It becomes as database
independent
Database client is used to convert the open SQL statement into native SQL statement and
vice versa
LISTNER will provide the connectivity between the sap system and database during
startup of sap system
During the starting of sap system LISTNER will create shadow process in the ratio of 1:1
to connect to database
LISTNER: create the shadow process which are going to connect the database table
“SAPUSER” by using ops$ mechanism
Ops$ mechanism contain the one table in database, that table is “SAPUSER” this table
contains schema owner name & password. Shadow work process get the scheme owner
name & pass word, disconnect (choose connection database) the database.
Shadow process again connects to database by using schema owner name & password.
The user who is authorized at o.s level is automatically authenticared at Database level.
That means no user ID & password is required to login to Database
OS_authent_prefix = ops$
Remote_OS_authent = true
Which performing the client copy PSAPUNDO table space will be increase
NOTE: If there is no space in space in PSAPUNDO table space SNAPSHOT too old
dump is thrown into ST22 then we need to lock after the “PSAPUNDO” table space
DATABASE:
What is database?
Advantages:
Consistency
Availability
Reliability
Uniqueness
Redundancy
Indexing
BRBACKUP: Backup of data files, control files and online redo log files
BRRESTORE: Restore the data files, control files, online redo log files & offline redo
log files
Symbol:
- : control choice list – you can choose (or) execute this now
No: not used – skips the following actions to narmal program steps;it is recorded is
IR06761 in the detaillog
=: conrol choose list – this is the initial default choice with yellow background
#: control I/P – you can’t 1. Execute this action 2. Change this parameter
Option 4 choice
If Lot of achieve Logs are getting generated in minutes then what will do?
Re org jobs: table contains the information of the standard background jobs
Oracle listener: it is used to connecting the R/3 work process and shadow process
Tnsnames.ora
SQLnet.ora
Listener.ora
Restore from the database backup recover from the redo log files, alter database backup
from control file to trace
Brconnect –f check
Brconnect –f status
Brconnect –f next
Brconnect –f cleanup
# SQL :> delete from sapar3.usr02 where bname = sap* and mandt = client number
Roll in: the process of copying the user related information in to work process handler
The work process continues to process the user request and response back to the user
Roll out: the process of copying the user related information into user context
SAP USER: sap user is the table which contains database scheme user ID & password
The user complaints that he could not log into the system in our glass mode?
Archive struck
The user could not update any record and result in our glass mode
For every 100 request the 2 request goes to database and remaining shoud be form the
buffers
R/3 buffers: [memory accessible for all users] – programs, table and field definition,
customizing tables.
User context: [memory attached individual users] – variables, lists, internal tables,
administration data (authorizations)
Local memory: local memory is associated with individual work process; local memory
is executables, data, stack, buffer for data transfer, local roll area, and local paging area.
Shared memory: shared memory is associated with all the process of one instance R/3
buffer contains global objects for all users and work process such as programs and
customizing tables.
Heap memory: it contains user context, when extended memory is full. It is called and
released on demand.
Buffers, extended memory, heap memory, roll memory, R/3 paging memory, local work
process memory.
Roll area: user context data is store of that is authorizations, set/get parametes, internal
tables and report lists.
Paging area: which stores application program data that corresponding to specific Abap
commands?
Parameters:
Ztta/roll_first – define first port of the roll area set to 1.17kb to 4.6
Abap/heap_area_dia – limit for the amount of local memory allocated to dialog work
process
Abap/heaplimits – maximum heap limit – if it is reached the work process is flogged for
restart
Heap memory is released after use. After ending the transaction the heap memory is
automatically released and the work process restarted to release the swap memory.
Oracle startup options: startup no mounts: oracle is not operational and oracle
background process is not started. It will used to create the control file.
Startup mount: oracle is not open and not operational. Oracle background process is
started. SGA is created [SGA means shared global area]
Abort
Immediate
Transactional
Normal
Abort: here we forcefully shutdown the database without intimating any users. The total
cache information in the lost and SMON can recover the information from online redo
log files whenever system is restarts
Immediate: the committed transactions are updated in to the database. the database open
transactions are rolled back
Normal: no connections are allowed exist user can perform transaction till complete the
task
Oracle – sid sap trace – background trace – alter_<Sid>.trace [it contain all profile in
formation about oracle]
Oracle – sid – orig log A [online redo log files & control files]
Oracle – sid – orig log B [online redo log files & control files]
Control file: it contains the oracle structure. It is a binary file. It can be updated only
oracle. We can’t edit manually.
Sap Basis Page 71
Venkat
If lot of achieve logs are getting generated in minutes then what do we do?
Table space utilization, space critical objects and table space growth
Go to DB02, click on space critical objects, then note down the objects, go to SAPDBA,
go to reorganization (option d), then use option b ---> show extent ---> resize the extent
(take the recommended value)
Go to oracle/<Sid>/sap backup
# Tail back<Sid>.log
DB calendar (DB13)
Init<Sid>.sap
We do daily on line backup on all servers and weekly offline backup on DEV and Quality
system
Why mapping?
The user ID’s are particular system & back end system are different then we need to
perform the user mapping
DB02: this transaction is used for checking the database table space
Psapsr3700
Paspsr3usr
Psaptemp
Psapsr3db
Data base log & BRTOOLS logs transaction code is – DB14 & DB24
Init<Sid>.ora
Init<Sid>.sap
P file is the static file, it is a test file and we can edit manually by using notepad.
Sp file is server parameter file. It is a binary file and we can’t edit the manually. It can
modified with the ALTER SYSTEM SET command
Log_archive_start = true ---> indicates to automatically start the archive process when the
database is start
Shared_pool_size ---> specifies in bytes the amount of space that SGA reserved to cashed
& SQL start
To test the object or changes which are made to system like production environment. We
need to restore the production data to QAS data.
What are homogeneous system copy & heterogeneous system copy and how you will do
that?
A system copy without a change in the database type and the OS is called a homogeneous
system copy.
A system copy with a change in the database type and the operating system is called a
heterogeneous system copy
What is db refresh?
It is the process of refreshing the data of one system by another system [OS, DB & R3]
remains the same but only database is refreshed
Create the transport of copies by using SE01 and specify the following tables are USR01,
USR02, RFCDES and TBDLS. Then we need to release the transport of copies.
Take the screen shots of SM59, BD54, DB13, SM37, AL11, SMLG, RZ12, RZ04, SCC4
& SPAM
And then we need to delete all the datafiles related to QAS system. Data1, Data2 ---- ext
first we need to stop the oracle services, the structure should remain same
Mirrorloga
Mirror log b
Orig log a
Orig log b
Copy the sap back up folder from PRD, along with the control.sql file pasted on the desk
top to QAS (\oracle\QAS\sap backup)
Open the .afd/.and backup file (ex: bdjvujux.afd) present in sap directory. Replace the
PRD with the QAS and save it
Start ---> run ---> cmd goes to the location \oracle\QAS\sap backup and type
Check the present of the paths for the creation of the control file oracle
\Oracle\Qas\sapdata1\cntrl
Oracle<Qas102>SQL* plus
Oracle<Qas102>TNSLISTNER
Login to SQL from the location where the control SQL file is located.
Click start ---> run ---> type ---> BRTOOLS and click ok
1. instance management
2. space management
Segment management
Database statistics
Additional functions
Exit program
Database backup
Database copy
The above window denotes that the backup has stored and being saved in the location
D:\oracle\PRD\sap back up
If shows down the database instance as we are taking on offline backup (then backup has
been completed success fully)
Exit from the BRTOOLS by selecting option S and then select the option y
Click start ---> run ---> type ---> sqlplus “as sysdba” and click ok
SQL: > alter database backup control file to trace; [then database alerted]
You can find the trace file in the following location “d:\oracle\<Sid> (PRD)\sap trace\
user trace” [then check the latest file that is generated]
Copy that file and paste it onto the desktop and rename it with control.sql
Remove the lines present above “startupnomount” and below “charactersetutfs” and save
the file
STATUS
MOUNTED
STATUS
OPEN
USER NAME
You can view the PRD op$ users in the above screen
USERNAME:
User dropped
User dropped
Below screen displays the list of users available after dropping PRD users
USERNAME:
Provide permissions to the following QAS users as mentioned in the bellow screen
STATUS
OPEN
Install the license for QAS system and remove the PRD system license
Saplicence –show (display the license of both QAS and PRD system)
SICK
SEO6 and select “database copy or database migration” option click perform post
installation action ---> yes ---> accept the source system ---> yes accept --->\yes ---> yes
---> yes
Note: here we are considering the system as (NAG) domain controller. If it is a child
system, including that system in to the domain controller as per bellow screen that system
in to domain controller as bellow per screen
Profile ---> delete ---> all versions ---> of a profile ---> click yes ---> no ---> click on
continue ---> similarly delete start profile & delete profile as shown screen
After deleting all profile of the PRD system then import profile of NAG system by using
bellow path go to utilities ---> import profile ---> of active servers
Standard installation
In one client all the users are locked. How you can login the particular client?
Listener path:
Oracle\<Sid>\instance number>\<NETWORK\ADMIN\listner.ora
startup pf = d:\oracle\dev\102\database\initdev.ora
Using the SQL: > create sp file from p file; [then file is created]
Using the SQL: > create p file from sp file; [then file is created]
In BRTOOLS
Go to BRTOOLS --> option 2 --> option 1 --> option 3 --> PASPSR3 --> c --> c
DBREFRESH:
Intermediate buffers: Frequently accessed content to reduce the load on the data base
server
Where you have to check the java software status and java version?
# Java c
# Java –version
Interview question
400 users
Four Servers
Instance where message server and enqueue server is present that is called central
instance
Which doesn’t contain message server and enqueue server that is called dialog instance
SAPJSF
DIAG Protocol
Windows 2003
These 3 are used to administrative users massively [deletion, modification and creation
whatever]
Using PFGH transaction code ---> enter a role ---> change ---> go to user tab ---> past
the users ---> click on comparison ---> complete comparison ---> save the role.
Sap*: sap* does not contain any user master records. It will be adjusted at kernel level. If
you delete sap* then it will be automatically with password PASS
DDIC: DDIC is the data dictionary incharge it will contains the all authorization &
profiles
The system logs of SAP application at OS level can be checked at sap MMC ---> sap
system ---> <Sid> ---> sys log
ST22 SM21
Illegal time
<Project name>ECCSAPC.I
Unicode means it will support for all the languages and code pages
Non Unicode – it will not supported the all the language except English & germen
Typical: typical is nothing but the system will take automatically the installation drivers
Custom: Custom is nothing but it will ask for the installation drovers
we don’t install ECC system and net weaver is one system. If any problems accures
we have to restart the system. At that time along net weaver system and ECC system will
also turn of then business will lose
Software component is which including the all applications is called software component
---> before going to the sap installation, first insatall operatin system and database
---> hard ware sizing based on the end users using “QUICK SIZE TOOL”
What is sizing?
The sap basis consultant should decided the hard ware capacity on the end users this
concept is Known as Sizing. It will done by “quick size tool”
Single GUI to access all the sap application [ERP, CRM, SCM, XI, PI, BI & SRM]
Instance type:
Central instance
Dialog instance
Database instance
Installation logs:
---> create local groups and global groups and assigns them to users
1. System logs at OS level ---> MMC ---> SAP system ---> <Sid> ---> sys log
UNIX command:
Cat <filename> ---> to open the file & read the files
Ri <file name> ---> if you want modify any file it is use full
Su <filename> <target location> ---> to move the other directory or rename the file
UNIX commands:
3- Should not be a need to delete any as the daily job should handle, unless too many
spools are old.
ST06 OS Monitor:
1- Click on 'Detailed Analysis menu'
2- Click on 'CPU' in 'Previous Hours' Group
3- Check if at any past hoursis > %80
4- Notify Team if there is any such case
The Following are the transaction codes used for the System Monitoring:
SM12:
This Traction is used for Check for Lock Entries. There may be old locks still in place
from transactions that did not release, or from when the user was cut off from the
Network. If any lock entries are exist then we have to check since how long this lock
existing. If, this lock existing from more than one day then we should check that
particular User is available or not (By using the Transaction Code AL08). If he is not
available then Delete that lock. Otherwise we should wait 1 or 2 Days.
SM13 :
This Transaction is used for Check for any Errors in Update Records. A failed or “Update
Terminate” is an update to the failed database. These failed Updates occurs when a user
entry or transaction is not entered or Updated in database. And we should check Whether
Update is ACTIVE or not. And also we should check any Update Records are terminated.
SM21 :
This Transaction is used to check System Logs. After hitting the traction we should go to
System log--> Chooseà All Remote System logs, and set Date and time to before the Last
log review. And we should check whether any Errors, Warnings, Security Messages,
Database, Abends, Any other different Events are there.The log is important because
unexpected or unknown warnings and errors could indicate a serious problem.
SM51 :
This Transaction is used to check that all Application Servers are UP. And also This
transaction is a central transaction from which you can select the instance to be monitor.
SM50 :
This Transaction is used to check Work Process Overview and for Systems with out
Servers. Here all work processes with a “Running” or “Waiting” State. If Batch Jobs are
not Running, If all the work processes are in use, this transaction provide a hint of this
problem.
ST01 :
This Transaction is used for System Trace. By this transaction we can trace that what are
the operations performed on particular file by particular user on which dates.
ST02 :
This transaction is used for Buffer tuning or Buffer Statistics. And it is used to tune
Buffer perameters of R/3. The Buffer is important because significant buffer swaping
reduces performance. Look under “Swaps” for Red Entries. Regularly check these entries
to establish trends and get a feel of the Buffer behaviour. And in this transaction we
should Maintain “Hit Ratio” is in between 90 – 100% for all , and “Heap Memory”
allocated should be “0” , and “Swaps” is 0.
ST03 :
This Transaction is used to Check Work Load Analysis of. Workload Analysis is used to
determine System performance. Check Statistics and Record Trends to get a feel for the
System’s Behaviour and Performance. Understanding the System when it is running well
helps us to determine what changes may need to be made when it is not.
ST04 :
This Transaction is used for Database Performance Analysis. This transaction provides
the ability to Monitor the Database in related to 1) In Shared Pool “SQL Area Get Ratio”
should be 90 – 95% 2) In Log Buffer Allocation Retries / Entries <1% 3) In Data Buffer
“Quality” should be in 90 – 95% 4) In Sorts Disk / Memory <1% 5) In Table Scan &
Fetches “Long Table Scans” should maintain as minimum as possible. And we should
check Detailed Analysis then we should hit “Detailed Analysis menu” Button in this
screen. In that we can check Database Overview like “Exclusive Lock Waits” , “Wait
Events”, “Buffer Busy Waits”, “ File System Request”, “ Database Message logs”, “ SQL
Requests”, Summery Report for all activities, etc
ST22 :
This Transaction is used to Analyse ABAP Dumps or Short Dumps. This transaction is
also used for Analyses and Determine why the error occurred and take corrective action.
It looks for an excessive number of dumps, and also dumps of an unusual nature. A
ABAP dump is generated when a report or transaction terminates as a result of a serious
error. The system records in the System Log(SM21) and writes a snapshot of the program
terminate to a special table.
DB02 :
This transaction is used to check all table Spaces and Indexes. Here we should check
table spaces sizes. If any table used space is =>99 then we should increase add the space
for particular table space. And this transaction is provides a way to examine database
allocation. And this transaction is allows us to monitor items such as: a) DB Space
History b) DB Analysis By this transaction we can view Database history by Dates and
Times.
DB12 :
This Transaction is used to check database Backups. And in this we should we see
successful Backups and Unsuccessful Backups list
AL08 :
This transaction is used to Check the users on the System. This transaction displays User
Ids and Terminal Names who are currently logged on the system.
SM37 :
This transaction is used for Monitoring Background Jobs. Background are batch jobs
scheduled to run at specific time during the day. Here we should check for cancelled jobs.
Here If we want to check particular job then,we should enter the Job Name and enter
User name in User name field or ‘*’ and hit execute Button. And verify that all critical
jobs are successful.
are running. Double servers, login to OS level of the app server and
click on each
check the wps using dpmon.
application server and
check whether you
are able to login
SM21 1. Check for 1. Analyse & take appropriate action
Database errors,
Oracle error, System
Errors etc.
2. Refer to "Sys log
Codes" Sheet for
errors
Note: Please check
the system log
starting from
yesterday 00:00:00 till
Current time. This
should help to see the
errors which occurred
yesterday
SM12 1. Check for old lock 1. Check if there is any active job running for
entries (Generally 1 that user using SM66. If not then write email to
day old) user and take the confirmation for clearing old
lock entries after confirmation from user.
2. Note down the actual utile value. This value
should be <= 80% of
SM13 1. Check for " Update 1. Note down the number of V1 and V2 update
is active " failures
2. Check for Update
failures.
ST02 1. Ensure Hit ratio for 1) Note down the buffer and value if hit ratio is
each buffer is more <95%
than 95 %. 2) No action to be taken if sometimes hit ratio is
2. Sometimes if hit <95%,
ratio is below 95 % &
no Swaps you can
ignore it.
3. Ensure extended
memory should not
cross more than 80%
use.
4. Please check the
following thresholds
for SWAPS for
individual
ST03N 1. Check and note the 1. Note down the values for all application
following parameters. servers (yesterday's value) and analyze. If the
Dia. Response time response time is above 1200 ms then detail
DB Response Time analysis is required
Compare all these 2. For SAP-standard expensive transactions
times with previous check for SAP notes and for Z-transactions
data. If there is check with AB
sudden increase then
analyze & corrective
action
2. Check for collector
status.
ST06 Check for following 1. Note down the idle avg value for yesterday .
utilization in all ST06 -> Detail Analysis -> Compare recent
Sap Basis Page 101
Venkat
instances days . Use Next server tab and note down the
1. CPU Utilization. values for each application server.
Ideally 60 % should 2. If SAPOSCOL is not running. check the
be free. same at OS level.
2. Page out/s should
be 0.
3. Check for
SAPOSCOL Status
ST22 1. Check for the 1. Analyze the Dump.
dump which is
2. If Dump is caused by the
appearing more than
20 times program/auth.object send a mail to respective
2. Check for dumps
team
appearing more than
100 times. 3. Note down the total number of dumps
(yesterday's value)
ST04 Check following 1. Note down data buffer value . If value is less
settings for all than 95 % check for expensive SQL statements
instances in ST04.
1. Check for Data 2. Note down DD-cache value. If value is less
Buffer quality. It than 97 % check for expensive SQL statements
should be above 95 in ST04.
%. 3. Note down the Read/user calls . If this value
2. Check for DD is above 30
Cache quality . It
should be above 97
%.
3. Check for
Read/User Calls. It
should be below 30.
screen
2 Check Server login to NWA url
Processes via http://s49cam.corp.wrgrace.com:51600/nwa
Internet Explorer Administration -> Systems -> Click on JC49 to
expand. Check both server processes are
running and dispatcher is OK.
3 Check logs via login to NWA url
Internet Explorer http://s49cam.corp.wrgrace.com:51600/nwa
Monitoring -> Logs and traces -> SAP Logs
4 Check Resource login to NWA url
consumption via http://s49cam.corp.wrgrace.com:51600/nwa
Internet Explorer Monitoring -> Java System reports
Database Checks
1 Run/Review Run the database check job. This will highlight
Database Check job any errors that have turned up in the oracle
via BR tools alert logs, table space problems, statistics etc.
Logon as oraepp user to the DB server
Run brtools
6 - Check and verification, continue
1 = Database system check,
2 Check Database Check the status of the BR backups/ BR
backup and Redo log Connect and view the log if required.
backups via BR tools Logon as oraepp user to the DB server
Run brtools
8 - Additional functions
1 = Show profiles and logs
Select either
3 - BRBACKUP logs
4 - BRARCHIVE logs
Check Table space Check the free space left in the table spaces:
Free space via Br Logon as oraepp user to the DB server
tools Run Br tools
2 - Space management
7 - Additional space functions
1 = Show table spaces
Continue
Continue