+ All Categories
Home > Documents > Basis Impl Topics

Basis Impl Topics

Date post: 08-Nov-2014
Category:
Upload: gunturchilli
View: 65 times
Download: 13 times
Share this document with a friend
Popular Tags:
37
Daily Activities 1. Monitoring Application servers in SM51 From SM51,we can Check whether all SAP servers are running or not When application server is not available, we can’t find the host name for the server. we can also get the information about number of users logged to the instances We can estimate the current activities and the resulting load on the instance And also we can monitor list of all app servers, sever info, Queue info and SNC status in SM51 We can also view the status of all active/inactive instances using RZ03 2. Monitoring Work processes in SM50 & SM66 - We can Check for Long time running work processes Check the state of work process We can cancel a process by selecting the work process and click the “process” menu, in this menu we have “Cancel” option When we cancel work process ,all transactions are terminated and dispatcher starts new work process We can also view the work processes of the instance at OS level by using DPMON p (when only one instance) DPMON P <instance profile> <SID> (When multiple instances) 3. Active users over view in SM04 and AL08 Display active users and their activities Checking for the users who have lost their connections We can also view the number of RFC users, number of interact users, terminal, active instances. 4. Check for log on load balance using SMLG(log on groups) We can check for load distribution and average response time and quality ratio ……… (in SMLG---press F5 for load distribution –now we can see log on groups, instance ,status, response time, number of users per instance ,quality of load balancing and dialog steps of each instance If any application server is goes down for any reason, user can still connect the group which will assign the best application server (SPACE –default log on group) 5. Checking for ABAP Dumps in ST22 When user have a program error , the dump is immediately displayed 1
Transcript
Page 1: Basis Impl Topics

Daily Activities

1. Monitoring Application servers in SM51 From SM51,we can Check whether all SAP servers are running or not When application server is not available, we can’t find the host name for the server. we can also get the information about number of users logged to the instances We can estimate the current activities and the resulting load on the instance And also we can monitor list of all app servers, sever info, Queue info and SNC status in SM51 We can also view the status of all active/inactive instances using RZ03

2. Monitoring Work processes in SM50 & SM66- We can Check for Long time running work processes Check the state of work process We can cancel a process by selecting the work process and click the “process” menu, in this

menu we have “Cancel” option When we cancel work process ,all transactions are terminated and dispatcher starts new work

process We can also view the work processes of the instance at OS level by using DPMON p (when only

one instance) DPMON P <instance profile> <SID> (When multiple instances)

3. Active users over view in SM04 and AL08 Display active users and their activities Checking for the users who have lost their connections We can also view the number of RFC users, number of interact users, terminal, active instances.

4. Check for log on load balance using SMLG(log on groups) We can check for load distribution and average response time and quality ratio ………

(in SMLG---press F5 for load distribution –now we can see log on groups, instance ,status, response time, number of users per instance ,quality of load balancing and dialog steps of each instance

If any application server is goes down for any reason, user can still connect the group which will assign the best application server (SPACE –default log on group)

5. Checking for ABAP Dumps in ST22 When user have a program error , the dump is immediately displayed This dumps include information like “what happened”,” what can we do”,” what tables were being

used at that time” and “any other program were affected”. We can see how many short dumps have been generated in the current day and previous

day-----in ST22, select the day and click on the display list icon. ABAP run time errors like Syntax errors, wrong logic, exception/short text Invalid request made to DB interface when accessing table(DBIF_RSQL_INVALID_REQUEST) Application program error(MESSAGE_TYPE_X) Error occurred due to database inconsistency (start_call_sick) (DBIF_NTAB_TABLE_NOT_FOUND ,UNCAUGHT_EXCEPTIION) All these dumps are stored in SNAP table, We need to delete the old dumps, why because

some old dumps may cause some more new dumps If there are more than 20 dumps ,we should send a mail to the client

1

Page 2: Basis Impl Topics

6. Check for Lock entries in SM12 Check for Lock entries older than one day should be analyzed and corrected (lock entry menu—

delete). Normally, the locks are automatically released when transactions are committed or when users

are finished working on the data. But we need to aware about locks which are held unreleased for several hours---in this

situation ,problem might be long running background jobs which update the data base , abnormal termination of the SAPGUI and also problems in update processing.

To solve this problem ,we can delete the lock entries or logoff the user from SM04 To test whether the enqueue work process is working correctly or not l( go to SM12 -Extras

menu-diagnosis All lock entries are stored in TLOCK table. Causes of malfunctions in lock management

1. the enqueue server is not available2. the message server is not available3. faulty computer links4. incorrect system installation5. incorrect setting of system parameters

7. Check for any terminated updates in SM13 We can check for any hanged updates, or updates pending for long or updates in PRIV mode We can check the system update records with error status or which have not yet been

processed. Based on the type of error ,request the user repeat the data entry which performs the update All update requests are stored in VBLOG table we can monitor the cancelled update requests and all update requests in SM14

8. Check whether Production Client is open or close In SCC4 Production Client should be Always in closed status unless until approved close-No changes allowed, No change repository objects and no changes with out automatic

recording and no changes to repository objects and also we can set the protection level 2(no over writing, no external availability)

Open-changes to repository objects, automatic recording changes and no restrictions

9. Monitoring Database in DB02 Check for Space of Table space used more than 90% if table space size reached 90% we need to increasing table space by adding data file using

SAPDBA tool Check for Missing indexes indexes in BD02, by selecting “missing indexes “ tab we can find

missing indexes like primary indexes and secondary indexes, If we find any missing indexes we can report to ABAPers they will assign those indexes to

proper Tables Check for Space critical objects (huge table/report occupy the maximum space in buffer, in this

situation system may hang) If we find any space critical objects ,we should add the data file to the table space

2

Page 3: Basis Impl Topics

10. Check for the terminated back ground jobs and log time running jobs in SM37 We can check the status of the job, if it is in active state for long time, we need to cancel that

job(job-cancel) If it is still in active state we need to check the status in Job menu Still it is in same state we should kill that particular work process from SAP level(SM51) or OS

level (DPMON) If one particular job is cancelled more than 20 times ,a mail should be sent to the user

11. Check for Spool requests SP01 Look for spool jobs that have been “in process” for an hour. Checking for problems with spool and output request Check logs and possible causes of printing problems Check the output request attributes, the log files, and the size of the print job Check whether the device type and what the access method is for the device. Deleting old spool requests or scheduling the background job which automatically deletes them,

If there are more than 50 spool errors, then they have to be deleted.12. Monitor the back-up logs in DB12

Check whether last back up is successful or not If it is not successful Problem might be sapbackup disk was full. We can check the redo logs which are not yet back up And check for the back up status Checking archive log directory status(oracle/SID/oraarch) Verify the log of the last backup and free space in log directory

13. Monitoring OS logs and CPU utilization in ST06 or OS06 - We can monitor the entire operating system in OS06 or ST06 We can monitor OS logs and CPU utilization -detailed analysis-OS logs and CPU

utilization We can monitor the CPU, memory, swaps, disks, file systems, and network (OS06-datailed

analysis ) From the detailed analysis menu we can see operating system information from any of the previous 24 hours

Alert Monitoring in ST04 We can monitor the system alerts from RZ20-doubleclick on the corresponding

monitor-in that screen click on the Open alert. We can set the thresholds /alerts and our own monitors in RZ20-extras menu-click on

activate maintenance function-in that we can create threshold with colors We can also monitor database alert log in ST04-Detailed analysis-error log, in OS level -Oracle/SID/sap trace/back ground directory We can find the all data base errors and warnings in DB16

System log in SM21 we can monitor the system log in SM21 System Log stores all messages including problems warnings & information. In this system log we mainly look for errors related to Database listed as ORA-???? Error and

update terminate errors. We can also monitor the local system and all remote systems logs –SM21-system log menu-

select Choose option-in that we have local system, remote system options .

3

Page 4: Basis Impl Topics

PERFORMANCE TUNING:

Large Wait Time Problem with work process sizingLarge Roll –wait Time Can Problem with net work and RFC connections

Large Load Time Program (PXA) and Screen (CUA) buffers are too small

Large DB request Time Can problem with Expensive SQL statements , missing indexes ,CPU/Memory bottle necks and DB server

Large CPU time Can be problem with processing large tables and frequently accessing R/3 buffers

Large processing Time CPU bottle necks, Net work problem and common problems

Response Time Time taken by the user request from dispatcher to GUIWait Time 10% of Average Response TimeRoll –wait Time 200 msLoad Time 10% of Average Response TimeDB request Time 40% of Average Response Time – Wait TimeCPU time 40% of Average Response Time – Wait Timeprocessing Time Not much larger than CPU Time

Response Time Time taken by the user request from dispatcher to GUIWait Time Work processes request is waiting in dispatcher Queue

Roll -In User context data moves from the roll area to work process

Roll -Out process of user context data from the work process to Roll area

Roll –wait Time Time b/w roll in and roll outLoad Time Time of Loading the report from the database to bufferDB request Time Time of retrieving/insert the report from/to the data base

CPU time Time of executing report logic in CPUprocessing Time Report executing time

If single user or single transaction getting this (large response time) performance problem, we need to tune the program which is causing large response time From ST03, The average response time for dialog-step should not be more than 1000 ms

4

Page 5: Basis Impl Topics

We can Check for the top programs which are causing high data base request time and programs with high CPU time, mainly we concentrate on customized programs

If the average DB request time is more than 500 ms It can problem with missing indexes on tables and expensive SQL statements

We can check for missing indexes in DB02 (detail analysis-missing indexes), if we find any missing indexes .., we can raise the ticket to ABAPers to re-create the indexes for proper fields.

And also Check the expensive SQL statements in St04,which are taking High disk reads(> 5% of total physical reads), High buffer gets/misses(> 5% of total reads) monitoring (detailed analysis menu-SQL request tab),if we got any expensive SQL statement ,we need to optimize that SQl statement by ABAP’ers

If the CPU time is greater than 400 ms It can problem with wrong logic of the ABAP program

We can analyze the time consuming transaction using STAT and raise the ticket to ABAPers to make correction of wrong logic or reprogram

---------------------------------------------------------------------------------------------------------

If all transactions are getting the (large response time) performance problem we need to analyze the programs which are causing large Wait Time, large roll- wait time, and large load time, large DB request time, large CPU time and large processing time.

If the average Wait time is more than 50 ms It can problem with long running jobs.

We can identify the long running jobs by using SM50 or SM66 and tune that long running job or terminate them.

Work processes are blocked by long running reports, this problem occurring frequently we need to increase the work processes.

The average number of free work processes available in the system should be sufficiently to ensure that user’s queries are processed with out delay

//-----(if user start programs such as reports with very long response times, the affected work processes may be occupied for several minutes. This may mean that number of remaining work processes is not sufficient to process the queries of other users, which could cause wait times.)—

If the average DB request time is more than 500 ms It can problem with missing indexes on tables and expensive SQL statements

We can check for missing indexes in DB02, if we find any missing indexes .., raise the ticket to ABAPers to create the indexes for proper fields.

And also Check the expensive SQL statements in St04,which are taking High disk reads, High buffer gets/misses monitoring (detailed analysis menu-SQL request tab),if we got any expensive SQL statement ,we need to optimize that SQL statement by ABAP’ers

Check and update CBO statistics (DB21)

If the CPU time is greater than 400 ms It can problem with wrong logic of the ABAP program

We can analyze the time consuming transaction using STAT. Than raise the ticket to ABAPers to make correction of wrong logic or reprogram

5

Page 6: Basis Impl Topics

If the Load time is greater than 10 ms It can problem with Program (PXA) and Screen (CUA) buffers are too small

From ST02, We can check for the Buffer quality ,it should be more than 90%,If it is less than 90% We can check for Swaps on buffer, swaps should be in red color and not more than 5000 swaps

day, if we getting more swaps on buffers We need to increase program and screen buffer sizes

//----- (Program (PXA) buffer: This buffer stores the compiled executable version of the ABAP programs, also known as program loads. abap/buffersizeScreen (CUA) buffer: This buffer stores menu data, buttons and related SAPGui functionality-rsdb/cua/buffersize) ---//

If the Roll wait time is greater than 200 ms Can problem with RFC connections or network communication

From ST03 -We can check the average RFC + CPIC time this time indicates the time for establishing an RFC connection.

This average RFC time should be less than 10 ms.

If the Processing time is greater than CPU time Can problem with CPU bottle necks and network problems

From ST06, we can check the CPU idle %, if high CPU loads (the CPU Idle average per hour is less than 40%, if it is more than 40% can be problem with logic of the current executing program.

Then we can analyze the program which is causing top CPU TIME by using STAT And also we can analyze the Top CPU processes( ST06) If work processes causing high CPU load, We can analyze the time consuming transaction using

STAT .If external processes causing high CPU load, we need to terminate the external processes

We can check the LAN communication from ST06(detail analysis menu –check by ping tab)

Memory management

If any work process is entered PRIV mode than the system performance will be very poor, in this situation, We need to restrict the memory usage by increasing user context data, in order to restrict we have

some parameters for Dialog and Non-dialog step. The main areas for user context data is roll area, extended memory and heap area

Roll area—Stores the initial part of user contexts like work process information, Authorization information, user context data initial size is 150 to 200 MB.Extended memory—Uncompleted transaction information and Stores the main part of user context Heap/Local memory—Stores the variable part of user context data

Dialog work process user context data memory allocation (ST02)1. Ztta/roll_first :Size of the 1st allocated memory area from the roll area2. Ztta/roll_extension : amount of memory that a work process can request in extended

memory in bytes,2GB(NT),one by 3rd of extended memory for other systems 3. Em/initial_size_MB : Initial size of extended memory in MB

6

Page 7: Basis Impl Topics

4. Ztta/roll_area: Size of roll area in bytes 6.5 MB for UNIX systems, 2MB for NT.5. Abap/heap_area_dia:Size of Heap memory in bytes that dialog work process can request,

2GB (default)6. Abap/heap_area_total : maximum heap memory for all work process in bytes7. Abap/heap_limit:If a work process requests more memory than the value of this parameter

allows, the work process is automatically restarted (200 MB)Non-Dialog work process user context data memory allocationStep 4, Step 5, Step 6, Step 3, Step 7(if heap limit is mentioned) (as above)

Applying Support Packs

1st ,check the current levels of support pack levels in our system (SPAM-select all support packages) Now down load the relevant support stacks from Sap market place(services/sap.com/sp-stacks) Un car the all .CAR files in usr/sap/trans> directory at OS level using SAPCAR –xvf <car files> Now 2 files (.ATT & .PAT )will be copied automatically in EPS/IN folder in trans directory So we need to check the available space in trans directory Ensure that no users logged in. Now logon with 000 client with user DDIC and go to SPAM Now import the down loaded files in to the Queue (SPAM-support packages-download packages-

from front end/from application server) We need to take the back up of the system before applying the support packages We should apply the support pack layers one by one ,based on dependencies double click on the

support pack and click continue and confirm

Updating support packages in bulk: I think practically most of the cases there was problem when apply all support packages in

groups; especially when the package size is quite big and quite complex such as SAPKH If we have small size of packages ;I think it is fine to group the packages but no more than a

certain number let say no more than 5 packages

Supports pack layers: SAPK? <Version>< release>SAP_BASIS--SAPKB-(43 / 45)--basis functionality, manages all layersSAP_ABA---- SAPKA-(43 /45)--application interface layer, cross applicationsSAP_HR------SAPKE—(21)--function moduleSAP_APPL----SAPKH—(31 /34)--SAP R/3 enterprise, LogisticsADD-IN------ SAPKI/J/P/GPLUG-IN------SAPK I/J/P/G (PI_BASIS, ST_PI.ST/API)SAINT/SPAM—SAPKD—(16/17)KERNEL------- (620_1620 /620_1750)SPAU---- Adjusting (modifying) repository objectsSPDD---- Adjusting data dictionary objects

If we have modified Sap objects from the add-on that we want to install, we must adjust these objects when we import them.

To enable our developers to adjust modifications, go to the SE01 and create a request that includes task for the developers

Then go to SAINT—Extras menu –adjust modification, to go to either transition SPAU or SPDD.

7

Page 8: Basis Impl Topics

Kernel Up gradation: Down load the Kernel files from Sap market place(services/sap.com/sp-stacks) (R3trans.*.car.TP.*.car, disp+work.car, enq.*.car…….) Un car all files into new directory. Back up the actual Kernel directory and replace the new directory. Start and stop the R3 system.

TMS CONFIGURATION

First, Login with 000 client and go to STMS. It will ask to specify a domain controller. Mostly development system will be the domain controller. So, give the development system as

domain controller. Now the development system has to be included in a transport route, in order to transport the

object. We should repeat the same procedure in QAS and PRD systems To create transport routes go to STMS - “Overview” menu click on “transport routes” Now go to “configuration” menu Standard configuration. Select 3 systems in group. It will ask for QAS, PRD (SLD)’s for mapping And select “distribute and activate “option in Configuration menu and just save.

TPPARAM (Usr/Sap/Trans/bin)

Transport parameter file must be configured for the transport control program ‘tp’ to function properly.

This includes entries for each of the r/3 system transports like trans dir, DB name DB type, and Message server port number

DOMAIN.CFG (Usr/Sap/Trans/bin)>>>>>> Configuration file.

This file includes TMS configuration information like Host name, instance no, Domain controller ,transport group,

Transport layer is used to reporting all development objects and assigned to all the objects that

come from the development system.Repair mode: modifying an object in the system in which it is created.

Change mode: To modify an object in a system in which it is not created.

OS level Transports: We can transport the change requests at OS level by using TP program and R3 Trans…TP ---/usr/sap/trans>”-tp addtobuffer <change request no> <SID> pf=TP_DOMAIN_<SID>.PFL”“tp import <change request no> <SID> client=<client no> pf=TP_DOMAIN_<SID>.PFL”

Background reports while Change request transporting RDDIMPDP, RDDPUTPP and RDDNEWPP

8

Page 9: Basis Impl Topics

Return Codes: 0 –Successful 4---Warning message 8---Error message 12—serious error 13-OS terminate the transport

TMS unconditional Flags

0—Change request can be imported from buffer without deleting it.1---Imports the same change request again2---Over writs the originals3---over writes the system dependent objects6---Over write the unconfirmed objects9---The system is locked for this kind of transports

TP commands:tp export <change request>: The complete objects in the request from the source system will be

transported. This command also Used by SAP System when it releases a request.

tp r3e <change request>: R3trans export of one transport request. tp sde <change request>: Application defined objects in one transport request can be exported. tp tst <change request><SAP system >: The test import for transport request can be done using this command. tp createinfo <change request>: This command creates a information file that is automatically done during the export. tp verse <request>: This command creates version creates versions of the objects in the specified request. tp showbuffer <sid>: Shows all the change requests ready to be imported to the target system. tp count <sid>: Using this command users can find out the number of requests in the buffer waiting for import.

tp go <sid>: This command shows the environment variables needed for the connection to the database

of the <sid> or target system. tp showparams <sid>: All the values of modifiable tp parameters in the global parameter file. The

default value is shown for parameters thatTp showbuffer<sID> : show all change requests ready to be imported to the target systemTp count<SID> number of requests in the buffer waiting for importTp importall<SID>: Imports all the request from buffer to the target systemTp put<SID> imports all the request from buffer to the target system and locks the systemtp sapstart <sid>: To start the R/3 system. tp stopsap <sid>: To stop the R/3 system. tp dbstart <sid>: To start the database. tp dbstop <sid>: To stop the databasetp locksys <sid>: This command locks the system for all the users except SAP* and DDIC. The users

that have already logged on are not affected by the call.

9

Page 10: Basis Impl Topics

tp unlocksys <sid>: This command unlocks the system for all the users. tp lock_eu <sid>: This command sets the system change option to "system can not be changed" tmporarily. tp unlock_eu <sid>: This command unlocks the system for all the changes. tp backupall <sid>: This command starts a complete backup using R3trans command. It uses

/usr/sap/trans/backup directory for the backup

R3trans commands:

R3trans -d : This command is used to check the database connection . R3trans -u <int>: Unconditional mode can be used as we have seen in the above example. R3trans -v : This is used for verbose mode. It writes additional details to the log file R3trans -i <file>: This command directly imports data from data file without a control file. R3trans -l <file>: This provides output of a table of contents to the log file. R3trans -n : This option provides a brief information about new features of R3trans. R3trans –t: This option is used for the test mode. All modifications in the database are rolled backR3trans –ba: This command is used for a complete backup. we will see in the next

paragraph how to use the Control file for the backup. R3trans –bd: This command is used for a delta backup if the user does not want a complete backup. R3trans –bi: This option will display backup information

BACK UP

ON-Line backup—taking the backup of archive logs and as an incremental backup we have to take the backup of redo logs for the time taken for archive logs backup, in this case no down time needed.

On line back up is not consistence, it might have some negative effects on performance, so it’s better to schedule at night times where there is not much online activity

OFF-Line backup---Take complete Archive +redo logs, in this case down time is required. Off line back up is consistence.

Backup Scheduling Go to DB13, we can schedule database backup using DBA planning calendar by selecting a

particular date. Double click on the date and select the action to be performed and click “start immediately”. It will ask for storage location, these location can be either tapes or disks, the location can be

set the parameter ‘backup_dev_type=Tape” in backup profile “initSID.dba”(oracle home\dbs) and “start “the backup

The status of the backup can be checked in DB12

BACKINIT: Is the inter face that connects 3rd party S/W tool to SAP in order to take back up on tape

drives.

10

Page 11: Basis Impl Topics

Snap shot technology of LEGATO tool for back up This technology mainly used to take OFF-LINE back up for 24*7 environment systems Legato server intimates the legato client regarding the back up This legato client takes a snapshot of information of production system and stored in bits and

bytes,(which is more easier and no time taking when compared to normal offline back up). Snapshot image taken will be mounted on another storage system, (while data stored in the

difference of time (incremental) back up will be taken with another snapshot and stored in a different disk in the storage system.)

After completely taking the snapshot of complete data and incremental data, they both are clubbed together to give a complete full back up image in the storage system.

Now this back up image on storage system is complete back up of production system and this is taken as on tape libraries

_______________________________________ _________________________

Backup Database (SAPDBA) Backup Offline Redo logs(SAPDBA)

__________________________ _______________________________________

a - Backup function Normal backup b - Parameter file initRP1.sap c - Backup device type local tape (cpio) d - Objects for backup all e - Backup type offline f - Backup volume(s) g - Query only no h - Special options ... i - Standard backup yes j - Backup from disk backup l - Restart backup m - Make part. backups compl. S - Start BRBACKUP (V4.6D)

Backup parameters:((init<SID>.sap)backup_mode = all backup_type = offlinebackup_dev_type = tape backup_root_dir = D:\oracle\RP1\sapbackupstage_root_dir = D:\oracle\RP1\sapbackup archive_function = savearchive_copy_dir = D:\oracle\RP1\sapbackup archive_stage_dir = D:\oracle\RP1\sapbackupnew_db_home = X:\oracle\C11 tape_address = /dev/nmt0expir_period = 30 util_par_file = initRP1.utlmount_par_file = initRP1.mnt tape_copy_cmd = cpiodisk_copy_cmd = copy split_cmd = "<split_cmd> [$]"tape_size = 1200M tape_size_arch = 1200M

a - Archive function Save offline redo logs b - Parameter file

initRP1.sap c - Archive device type local tape (cpio) d - Number of redo logs 10000 e - Archive volume(s) f - Query only no g - Fill tape(s) permanently no h - Special options ... i - Standard backup of offline redo logs

yes j - Backup from disk backup no q – ReturnS - Start BRARCHIVE (V4.6D)

11

Page 12: Basis Impl Topics

Tablespace administration

Table space: Table spaces are logical storage objects, contains the database data and indexes

Indexes: Indexes are objects associated with tables that are used to speed up the search and execution of SQL statements, creating or deleting indexes does not affect the associated table.

Segments: Collection of extents, we have some common segments in the databaseIndex segments: Contains index data, and the 1st block of 1st extent contains the segment

header, it contains The free list information.

Rollback Segments : stores the value of particular data block before it was modifiedTemporary Segments: Stored in PSAPTEMP tablespace.this is uses temporarily for doing sort

operation or creating indexes. These segments are increase performance when dealing

with largetables or indexes, so we need assign this space a size twice as big as the

size of the biggest index.

Extent: Collection of oracle blocksWe have some Storage parameters for ExtentINITIAL (First extent): It’s the size of the first extents, it should be large enough. we need to

set “compress extents = NO”.

NEXT (New Extent): The size of the new extent.this value can be caluculated automatically by TGORA ,IGORA

tables and suggested next extent sizes for the data base objects.the number of extents

reaching the lmit,we can change the NEXT parameter value to large size ,”max_next_sze”

= max 2GB in init<SID>.dba file.MAXEXTENT: The maxmum number of allowed extents for the segment.It’s

generally set to 100 for oracle block

MINEXTENT: It’s the starting numberof the extents when the object is created. It’s normally always set to 1.

Block: It’s the smallest physical storage unit in the data base. Tables and indexes are stored in individual data blocks. The

size is defined in parameter ”db_block_size” in init<SID>.ora file, default 8k

Table space Increasing If the Usage % of any table space is more than 90 %( DB02), then we have to increasing the

table space by adding a table file. Using SAPDBA tool, we can increase the table space

12

Page 13: Basis Impl Topics

In command prompt, enter SAPDBA and select the option C for ‘space administration’ in that, select option ‘F’ to “alter table space and add data file”

The system will first ask if we want to use file systems or raw devices for the new data file. On this new screen shows the table space name in the header and it also displays some default

values for the new data file. And if we want reset the default values by selecting the options like File system or raw

device ,Select path and Display current files We need to set ‘auto extend ON” to utilize the available space automatically. During the table space name for which we want to increase ,we can check for free space

available free space on the disk for a mentioned table space and ‘start’ then ‘continue’ We can specify the size of the table space by checking the After the new data file has been

successfully created, the sapdba program will automatically show the menu for backing up the database

If there are any errors while this process is running, an error message will be displayed and alert file and the log file generated in the sapreorg directory(oracle /SID/sapreorg/space<SID> file)

______________________________________________________________________________

Tablespace administration (SAPDBA) ______________________________________________________________________________ a - Tablespace: b - Log checks: no c - Free space and fragmentation of all tablespaces d - Check free space of objects in all tablespaces e - Check free space of objects in tablespace f - Alter tablespace add data file g - Create/drop tablespace h - Display all tablespaces and data files q - Return Alter tablespace add data file (SAPDBA) a - Show existing data files: 1 old file b - New path: 'd:\oracle\rp1\sapdata6\poold_2\poold.data2' c - New size: 307200 K File system: 'd:\' Free space: 18470928 K d - Define more than one new data file f - Select new path from a list of file systems u - Autoextend: OFF s – StartTableSpace Names & Types

1.Oracle system Tablespaces:

SYSTEM: includes the internal oracle dictionaryPASPROLL: Contains the Roll back segmentsPASPTEMP; Temporary tablespace for internal processing

2.Basis Tablespaces: Contains theR/3 basis environment data.

13

Page 14: Basis Impl Topics

PASPLOAD D/I: Contains ABAP report loads and screensPASPSOURSE D/I: Contains the ABAP report sourse and screensPASPDDIC D/I: Includes ABAP dictionaryPASPPROT D/I: includes control and log tables

3.Application tablespaces:

PASPCLU D/I Contains the system cluster tablesPASPPOOL D/I: Contains the system pool tablesPASPSTAB D/I: Contains master data, transparent tablesPSAPBTAB D/I; Contains transactional dataPASPDOCU D/I; Contains documentation tables

4.Customers tablespaces:

PSAPUSER1 D/I: Contains customer tables

Client Administration

CLIENT Creation: To create a new client we need to log in as user SAP* in client 000 with password PASS

o By using SCC4 –we will get the all clients available in the systemo Click on the change icon to the display modeo Click on the “new entries” button on the application tool bar to define the cliento And enter client number with meaningful description ,role of the client which can be

production,testing,customizing and trainingo Specify the change and transport for client-dependent objects

Changes without automatic recording—the client can be customized but system will not automatically generate change request

Automatic recording of changes No changes allowed—does not allow any modifications on the client No transports allowed

o Specify the Client – independent object changes Changes to repository and client-independent customizing allowed No changes to client –independent customizing objects No changes to repository objects No changes to repository and client-customizing objects

o And we can set the protection levels for client copy and comparison tool] Level 1: no restriction Level 2: no overwriting Level 3: no over writing and external adaptability—client is protected against read

access by other clientso Finally we have to select some restriction

Currently locked due to client copy and Protection against SAP upgradeClint copy profiles

14

Page 15: Basis Impl Topics

SAP_ALL--- All client specific data. SAP_APPL---Customizing and application data SAP_USER-- User master records and authorization profiles SAP_CUST---Copy customizing data SAP_UCUS-- User master records and Customizing SAP_UAPP---All users, customizing ,master records and transaction data

Background reports while client copy (in new client only) RSCLXCOP RSCLCCOPClient locking:tp LOCKSYS pf=tp param path ------>lock all users except DDICtp UNLOCKSYS pf=tp param path----->unlock all usersSCCR_LOCK_CLIENT-------------run this function module from SE37, it will ask for client Update USR02 set flag=0 where bname=”username” and mandt=”client No...”-- To lock particular user

CLIENT COPY When a client is defined there is no data is available in the client, by default user SAP* with

password PASS is assigned to it. We need this user to log ion to the client to copy data from other client into it.

A client can be only copied from one R3 system to another R3 system if both are in the same network and both are should have same release.

Before client creating and copying the client, we should ensure there is enough space for it; this can be done by executing a client copy in test mode.

SAP recommends approximately 200 MB of free space for a client with no application data, this space is distributed mainly in the PASPPOOLD , PASPPOOLI , PASPPROTD , ,PASPSTABI , PASPPROTI , PSAPSTABD

In order to perform a client copy we need some authorizations like , S_TABU_CLI, S_TABU_DIS S_CLIENT_IMP S_DATASET_ALL USR_PRO S_USER_GRP We can perform the local client copy by using SCCL-Where we copy the data into the new

client from another client with in the same system We can do Remote client copy by using SCC9—where we copy the data into new client

from another system and data can also be filled into the new client from another system by transport request.

“Logging into the new client with user SAP* and password PASS, and specify the source client and select the profile as per our requirement, this profile indicates what kind of data from the source to copy into the new client.

Use the Test run option. Test run include an estimate the data to be moved (Client size, errors and estimate time).

After these steps, click on the execute tab, depending on the data this process may take several hours, So we should run in background and if possible in night.”

Check the client copy log in SCC3

We can do the client export/ import using SCC8/SCC7—To export/import the client to different network R3 system 0r other land scape R3 system….,

if the client already exists in the target system, we should first delete it “Logging into the source system & client, and select the profile as per our requirement, this

profile indicates what kind of data from the source to copy into the new client, and specify the Target system

15

Page 16: Basis Impl Topics

When the export is finished ,we get 2 data files as RO9xxxxx.SID ,RT9xxxxx.SID and 3 control files like KO9xxxxx.SID(client –independent objects), KX9xxxxx.SID(client –dependent long text) and KT9xxxxx.SID(client –dependent tables)

Now we have to import these files manually in target system using the tp program, the order is SIDKO9xxxxx SIDKT9xxxxx..

After importing the KO, KT, we have to run transaction SCC7 in the target system for importing process, in which text files are automatically imported.

Before 4.0, we should run the RSCLIMP report in target system for import, when this report executed the screen will ask us to enter SIDKTxxxxx.

Background jobs

Go to SM36,Give the “jobName”,select the Job class(A<B and C) and select the “Target server” in which this job has to be performed

Give the “ Start condition” which can be “immediate”, on a specific tme”,”after job” and “after event”

If we want to run this periodically check the “periodic job” check box We can select an ABAP program or External program and save it Than the particular job is schedule on particular time.Classes: A-High priority –data transfer to and from external R3 application and time critical B-middle priority –periodically started jobs…, C—low priority –other jobsStates/Phases: Scheduled-------the job has been saved .Start time has not been defined yet. Release---------the job has been scheduled. Start time has been set. Job is waiting for an event Ready-----------Job is ready to start execution. Start time has been reached Active------------The job is currently being processed Finished---------The job has been completed

We can check the job logs/status in SM37

Background job authorizations: S_BTCH_ADM, S_BTCH_JOB, S_BTCH_NAM

Standard/House keeping jobsStandard jobs are those background jobs that should be run regularly in a production SAP System. These jobs are usually jobs that clean up parts of the system, such as by deleting old spool requests. (Sm36-Standard jobs-defaultsheduling)RSPO0041--Deleting old spool requests, RSBTCDEL--Deleting background job logsRSBDREO—-Temse reorganization, RSSNAPDL—Delete old dumps, RSM13002--Deletes old completed update records

OPERATION MODES --- we can define operation modes to have many work processes during normal working hours which can be automatically switch to background work processes during night for processing back ground jobs scheduled at night times. (SAPMSSY2-system program)

To configure the operation modes using RZ04 , 1.define operation mode 2.define the instance 3.assign the instance and work process distribution to the operation mode 4.set the operation mode time table

Manual switching: RZ03->click on “operation mode” tab ->select shift and click on “choose” tab in this screen go to “control” menu and select the “switch operation mode” option in that click on “selected servers”.

16

Page 17: Basis Impl Topics

Spool/Printer Configuration: (SPAT) To configure a printer in R/3 systems go to SPAT.

Specify “Output device “name. Click on “Output device” button, select the device type. Give the ‘spool server’ name, ”device class”. Go to ‘access method’ tab and mention the access method then ‘save’ and ‘activate’.

Access methods :( Communication path between spool system and host spool system)E- External output management system, F- Front end printing, L- Suitable for UNIX SystemX- For sap communication device types. C- Used for Windows NT, I- Remote printing.S-Print uses SAP protocol (PCL, POST SCRIPT), U-Print using Berkeley protocol.

TemSe (SP11 &SP12)—contains Spool data and background job logs and output requestsTemse location: “rspo/store_location”If Value =db, stored at TST03 table in data baseIf value =G, stored at usr/sap/<SID>/SYS/Global directory.

Spool server: if we have at least 1 spool work processes, called spool server

Print server: is holds print information, scheduled print jobs and print drivers

Spool Request :(SP01) contains administrative information like, printer name, number of pages to be printed and spool

Data Location.Out put request: Spool data + administrative information

AIS (audit information system) This system is used for scurrility administrators to display all security related information and also

record the security related information by using audit log. The security audit log records areas such as successful and unsuccessful dialog log-on attempts,

RFC log-on attempts, changes to user master records, and transaction starts. If we want to configure AIS in the system, we can easily track the system with respect to auditing

information. We can use this system to generate Quarterly and yearly reports. To activate audit log , we need to change the “rsau/enable” parameter value as 1 We can monitor the audit log in SM20-security log-choose-all audit logs We can configure the AIS by using SM19

Static configuration---need to restart after configurationDynamic configuration—No need to re start

SNC (secure network communication) SNC is a interface which allows to SAP system to integrate with a 3 rd party security products (LDAP-

light weight directory access protocol, ADS-Active directory services)for secure communication. This secured communication is done by using diag and RFC protocols. Data security can be achieved in 3 ways1. Authorization —If a user has to be validated at logon then we have to enable this type of

communication

17

Page 18: Basis Impl Topics

2. Integrity ---We can secure the changes of data by enabling this type of communication3. Encryption —If entire communication has to be done in secure way ,then we have to select this type

of communication We can enable SNC to users by indicating “SNC name” and type of communication in log on pad for

particular server(SAP logon-new item-advanced)

Real time Problems

After releasing my change request, we can't find the change request in the queue Go to STMS, select over view menu, in this menu we have import queue by selecting this

sub menu we will get all imported queues. In that screen, we can select particular queue and go to extras menu choose the other

request option by using that we added the new request which is not available before. And also for solving this problem we use to import the change request forcibly by applying

U126 flag in TP program. Back ground job has been canceled

Run time errors of he ABAP program, wrong variant, system shout down, restart of instance and authorization permissions ,in this kind of situations background jobs may canceled

In TemSeTable There was one entry that repeated itself literally hundreds of times. We can delete that particular entry by executing RSTS9803 report- (SAP notes 48400 and

11070) In a PRD system, we have only one SPOOL Work process is enabled, there will be delays in

getting printout if printing in bulk is given.

We solved this by increasing No. of SPO to 2 and change the system parameter to load balance the Spools

Increase SPO using RZ10. Change the system parameter ,rdisp/wp_no_spo set to 2

Very recently, we are unable to transport the requests, when we are trying to transport the change requests they were hanged.

If you do a transport (tp import) and it fails it may leave entries in TRBAT and TBATG. Delete the entries from these two tables before trying anymore transports. If you leave the entries in these two tables all your transports will hang

We got a problem when applying a support package Tables PAT01 and PAT03 stores the support package list and its phase respectively. We

can delete table contents for PAT03 (Truncate table sapr3.<table name> ; ) and update table PAT01 the status which is unknown, so, We can go back and continue applying the patch with no risk

If a print job has been printed out but contains unreadable characters and When nothing is output the printer and output controller is in a wait status

Then we can check what the access method is for device. And also we can check the system log (SM21) and look for time out messages and also check that all application servers running spool work processes are reachable (SM51).

Oracle Errors ORA-600-----internal errors

18

Page 19: Basis Impl Topics

May be Block is corrupted in the hard disk RAM issues and Disk errors

ORA-155-(Snapshot too old) >>>>Roll back / Undo segments size is not sufficient. Dead locks >>>Need to increase the max trans on Objects

Memory management errors NO_MEMORY , RESIZE_INITIAL_SIZE_ALLOC and TSV_TNEW-NO_MEM_ARE

Increase the swap area Load balancing Increase the segment size(64 bit—2048 MB , 32 bit---600 MB)

OS level Commands

dpmon d Dispatcher queue monitorSapdba (up to SAP R/3 -4.7)/ brtools

database administration

PS Running work processps -eaf|grep dw process overviewps -eaf|grep ora check oracle service is runningPs –eaf | grep dw kill -9 Kill work processmsmon pf=profile path name=sid to check the message server statusgwmon pf=profile path nr=num to check the gateway statusPs –eaf | grep lsnrctl Listener statusRslgview pf =-r –ft | pg System logsDisp + work –v to check the version of r3 kernelR3trans –d ,tnsping Checking the connection with database Df –k File system monitorDu –k Display all directories and size of current directorySvrmgrlConnect internal//(old versions)---------------------------------------------Sqlplus“/as sysdba” (new versions)

SQL prompt and database connection

-------------------------------------------------SQL prompt and database connection

Saplicence -get to get hardware keysaplicense -install to install licensesappfpar all pf=profile path display all profile parameterssappfpar check path=profile path checks the required space for memorymemlimits to check the available space for heap and swap

memorytelnet Remote system logintelnet <ipaddress><dispatcherportnum>

to check the remote sap system is up and running

ftp file transfer protocolrcp remote copy of filesStart/stop sap Start / stop Sap instanceping check destination host reachableniping check connection between server and a client by

19

Page 20: Basis Impl Topics

transferring packetssysteminfo check the configuration of systemPs -aef Processes statuslsps -a Swap spacetopas Memory

Differences Client independent ABAP programs ,R3 repository objects available through out entire system

Client dependent customizing, application data and user data available from one client only

SPAUAdjusting (modifying) repository objects

SPDD Adjusting data dictionary objects

SAPevt Is SAP event trigger program, used to

send events to the back ground job scheduler for the release and execution of background jobs

SAPxpg To start external programs from R/3 , and sending

back job information.

Message server To exchange the data and internal

Gateway server Allows the communication between R3, R2 and 20

Page 21: Basis Impl Topics

messages The message server routes the

messages B/W application servers

external applications, by using CPIC protocol. Exchanges larger amount of data between

application servers

Central instance The CI contains all the work

processes Every SAP system has just one

central instance

Application server Application server contain only dialog work process There is no DB instance in application server

SAP_ALL this profile allows the user to perform

all functions in the system

It should not be granted to any users in

The production environment.

SAP_NEW this profile provides general access

To any new profiles and authorizations which are included in a new release of SAP.

created by users after installation of SAP

V1 Synchronous Dialog waits for end of update

task(success or failure can be handled)

Must be processed first Time crucial Immediately update the critical data

V2 Asynchronous Dialog does not waits for end of update task Can be processed later Not time critical when no V2 update processes is configured , V1

processes takes over V2 processes

Instance profile if we change the parameter of

instance profile, it will affect that instance only

details about work process and instances

Default profile if we change the parameters in default profile, it will

affect the complete system has the default parameter values

Remote client copy The data is exported to operating

system in source client and imported to target system

Client export/import The data is exported to operating system in source

client and imported to target system a copy of data is available in the operating system level for further copies

000 Is the reference client

with sample data Sap recommends not

to work in this client for productive purpose except for those administrative tasks

001 Is a copy of 000,can

use to start the customizing work or use also as a reference client

066 006 is a special client used to

perform the early watch Default user is EARLY WATCH

password SUPPORT

SAP* SAP* is the standard

SAP system super

DDIC DDIC user is

responsible for the

Early watch This user is used by SAP’s early

watch experts.

21

Page 22: Basis Impl Topics

user, does not require a user master record because it’s defined in the code it self.

SAP* has the SAP_ALL profile with all authorizations.

password is 06071992

maintenance of the ABAP dictionary and software logistics.

This is the only user that can log into the R/3 system, while a new release is being installed

password is 19920706

It has access to monitoring and performance data only

Default pass word is SUPPORT

TABLES

VBLOG Update logs TWSYS Consolidation routesSNAP ABAP dumps TDEVS Development class

T000 Client entries TDEVL Transport layerTLOCK Lock entries

PAT01,PAT03 Support packs

TRBATTBATG Transport requests entries

TSP01 Spool requests TACT Authorization activitiesTST03 TemSe AGR* Security roles information

TPFYPROPTY Profile parameters USR04 Password restrictions tableTSTC T-Codes DDLOG Buffer synchronization

CCCFLOW Client copy control

VBERROR Update errors

Reports

RSBDCREO To delete old batch jobsRSBDCDEL To delete old job logsRSPO0041 To delete old spool requestsSAPOSCOL Operating system programSAPMSSY2 To switch the operation modesRDDIMPDP,RDDNEWPP,RDDPUTPP

Background jobs while transporting the change requests

RSTS9803 To delete particular entry in TemSeRSSNAPDL To delete old dumpsRSM13002 To clean the processes update requestsRSBPSTDE To clean the job run time statistics information

SAP Notes:

22

Page 23: Basis Impl Topics

0024092 Distribution of background jobs on application server0006604 Deleting jobs at OS level

0039412 Number of work processes to configured0031395 System parameters

0048400 To delete particular entry in TemSe

0016083 Standard jobs, reorganization jobs0019706 Tuning the spooler

23

Page 24: Basis Impl Topics

Communication B/W R3 system and BW System1. Create logical system in R/3 and BW systems(BD54)2. Create role for R/3 and BW systems(PFCG)3. Create RFC connection(SM59) For communication B/W R3 system and BW system, 1st we should create the Logical system for

both R3 and BW systems in BD54 (click “new entries” and enter logical system name and “save” it).

After this we can create the RFC connection by using SM59,Now the login in BW system go to SM59Select R/3 connection and create, in this screen we need to give R/3 information like RFC destination, Communication type(R/3 Communication) and save And also give the target host, system no., IP address, client(R/3 client), user (R3 user) and save it.

Do the same steps in R/3 system with BW system information. Finally we can execute RSA1 t-code in BW system and add the source system and then check

the connection Post Installation steps

Stop and Restart instance Installation check (SICK) Create user with SAP_ALL & SAP_NEW profiles, in 000 client (SU01) TMS configuration (STMS) Import profiles for all active servers (RZ10-utilities menu-import profilesall active servers). Increase work process (RZ10) Applying support packs,(SPAM) Client creation and copy (SCC4 & SCCL), Activate standard jobs (SM36)standard jobs tabselect all jobs and click on “default

scheduling” Perform full off line back up(DB13) Right after the completion of installation, SAP works using temporary license that expires in 1

month.., so once installation is finshed,we must fill out a license from and send it to SAP, which will send back to us definitive licensing information (SLICENSE)Saplicense –get: to get H/W keySaplicense –install: to get permanent license in the systemSaplicense –check: to get information about our current installed license

Parameters while installation: SAP system instance identification>>>>>SAPSID,instance number, instance host SAP system identification>>>>>>>>>>>>SAPSID,DBSID,DB Host DB instance parameters>>>>>>>>>>>>>>>DB Home information Installation Type>>>>>>>>>>>>>>>>>>>>>Local,central,uniIcode,NON-unicode System ports>>>>>>>>>>>>>>>>>Message server(3600),Gateway(3200),Listener(1527) Kernel and Export DVD locations MNSL support and Passwords.

Solution manager Contains all SAP systems information and manages the land scape We can do customization and synchronization with solman

24

Page 25: Basis Impl Topics

We can monitor the solutions and service desk which includes system checking ,availability help desk and ticket monitoring

And also solman gives the project management support like implementation support and upgrade support. using SOLAR_PROJECT_ADMIN T-code(click on create and give the project name ,type and just save it)

We can get the solman initial screen with SSM2 T-code.SMSY We can add the systems and configure the system land scape for solman using SMSY T-code We can generate installation key (SMSY –system land scape menu –other object-system-click on

key symbol.) And also we can create a connection between R3 systems and solman(check the RFC connection

and create logical system and click system tab in that click the create new with assistant option and continue

25

Page 26: Basis Impl Topics

RFC Connection

We can create RFC connection by using SM59 1st we should create the Logical system for R3 system RFC destination in BD54 (click

“new entries” and enter logical system name and “save” it). In SM59 screen, Select R/3 connection and create, in this screen we need to give R/3

information like RFC destination, Communication type(R/3 Communication) and save And also give the target host, system no., IP address, client(R/3 client), user (R3 remote user) and save it.

RFC Authorization Objects: S_RFC and S_RFCACL

RFC Types

SRFC (Synchronous RFC): When connecting form GUI to SAP it used SRFC protocolA SRFC (Asynchronous RFC): One dialog work processes may take one LUW (logical unit of work) and

then dialog work processes may take 2nd LUWTRFC (Transactional RFC): It will complete the process in one shot.TRFC will send acknowledgement

and they will stored in data base level and guarantee execution.QRFC (Queued RFC): This is order execution or sequence execution, in this RFC we have return

parameters and also guarantee execution.X-RFC (XML over HTTP): For taking packets to the internetAdaptive RFC It is used when adapt system is communicating with java

26

Page 27: Basis Impl Topics

Authorizations and Security

Profiles (Authorization) SAP_All – ----------------------------------All authorizations in R3 system SAP_NEW—-------------------------------All the authorizations objects added in an R3 upgrade for

existing functions S_A.ADMIN—-----------------------------system administration S_ABAP_ALL—---------------------------all authorizations for ABAPers S_BTCH_ADMS_ENQ_ALL—--------background processing S_BTCH_USER-- ------------------------background processing S_BTCH_ALL----------------------------- background processing SAP_BC_USER_ADMIN_AG—------user administration S_CTS_ADMIN-, S_TRANSPORT ----------TMS SAP_BC_AUTH_PROFILE_ADMIN_AG—authorization profile administrator

User types Dialog user—login possible System user—login not possible, Communicating with in the system Communication—Login not possible , Communication b/w the system,TMSADM is

default user for communication Service—Login not possible , reporting purpose

Authorization field: the field on which we are giving an authorization in order to restrict (SU20)Authorization Object: group of not more than 10 authorization fields (SU21)S_DEVELOP, S-DATASET ,s-TABLE_DIS ,S_CTS_ADMIN, S_TRANSPORT, S_BTCH_ADMAuthorization Class: group of related authorization objects (SU21)AAAB , BC_A , BC_C , BC_ZAuthorization: authorization field + activity (SU03)Activity: is nothing but the action which you perform on the particular authorization field (TACT)Profile: group of not more than 150 authorizations (SU02)Role: Role contains profile+T.Codes+reports (PFCG)Composite role: Group of roles, Based on Position/job (PFCG)Derived role: derived the role from parent role, based on the Organization level (Company code, Plant, Division)Authorization check: SU24, we can analyze the authorization problems and assign the authorization objects to the T-

Code. Checked : can be add manually in PFCG ,we are not maintaining the values Checked & maintain: we can be add objects and also maintaining values

User Compare: updating the role to the user master record Single user compare – PFCG… Mass users compare --- PFUDConcurrent Users: Who are currently using work processes or resourcesNamed Users:

ROLE Creation 1. PFCG give the Role name and click on “create” tab, and save

2. in this screen, click on “menu” tab, in this screen we can assign the T-Code, Reports by clicking on “transaction” and “report” tab and we should give the target system in “target system” field and save it

27

Page 28: Basis Impl Topics

3. After that, click on “authorizations” tab and click on “change authorization data”4. After change authorization data we have to generate the role, it will ask profile name and save it.5. Finally, Assign the role to user and click on “user compare “for adjusting the user master records for this role

User Tablesusr01: user master records (runtime data),· usr02: logon data,· usr03: user address data,· usr04: user master record authorizations, · usr05: user SPA/GPA parameter values,· usr06 and usr14: license data,· usr08 usr09, and usr30: user menu definition

28


Recommended