Sie sind auf Seite 1von 29

Daily Activities

1.

2.

3.

4.

5.

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 cant 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 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) 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. 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) 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 1

If there are more than 20 dumps ,we should send a mail to the client

6.

Check for Lock entries in SM12 Check for Lock entries older than one day should be analyzed and corrected (lock entry menudelete). 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 available 2. the message server is not available 3. faulty computer links 4. incorrect system installation 5. incorrect setting of system parameters 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 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 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, 2

7.

8.

9.

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

10.

11.

12.

13.

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 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. 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 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 3

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 menuselect Choose option-in that we have local system, remote system options .

PERFORMANCE TUNING:
Large Wait Time Large Roll wait Time Large Load Time Problem with work process sizing Can Problem with net work and RFC connections 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 Large processing Time Can be problem with processing large tables and frequently accessing R/3 buffers CPU bottle necks, Net work problem and common problems

Response Time Wait Time Roll wait Time Load Time DB request Time CPU time processing Time Response Time Wait Time Roll -In Roll -Out Roll wait Time Load Time

Time taken by the user request from dispatcher to GUI 10% of Average Response Time 200 ms 10% of Average Response Time 40% of Average Response Time Wait Time 40% of Average Response Time Wait Time Not much larger than CPU Time Time taken by the user request from dispatcher to GUI Work processes request is waiting in dispatcher Queue User context data moves from the roll area to work process process of user context data from the work process to Roll area Time b/w roll in and roll out Time of Loading the report from the database to buffer 4

DB request Time CPU time processing Time

Time of retrieving/insert the report from/to the data base Time of executing report logic in CPU 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 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 ABAPers 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 users 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 5

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 ABAPers 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 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/buffersize Screen (CUA) buffer: This buffer stores menu data, buttons and related SAPGui functionalityrsdb/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, 6

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 areaStores the initial part of user contexts like work process information, Authorization information, user context data initial size is 150 to 200 MB. Extended memoryUncompleted transaction information and Stores the main part of user context Heap/Local memoryStores 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 area 2. 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 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 bytes 7. 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 allocation Step 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 packagesfrom 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 7

Supports pack layers: SAPK? <Version>< release> SAP_BASIS--SAPKB-(43 / 45)--basis functionality, manages all layers SAP_ABA---- SAPKA-(43 /45)--application interface layer, cross applications SAP_HR------SAPKE(21)--function module SAP_APPL----SAPKH(31 /34)--SAP R/3 enterprise, Logistics ADD-IN------ SAPKI/J/P/G PLUG-IN------SAPK I/J/P/G (PI_BASIS, ST_PI.ST/API) SAINT/SPAMSAPKD(16/17) KERNEL------- (620_1620 /620_1750) SPAU---- Adjusting (modifying) repository objects SPDD---- 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 SAINTExtras menu adjust modification, to go to either transition SPAU or SPDD. 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. 8

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 Return Codes: 0 Successful 4---Warning message 8---Error message 12serious error 13-OS terminate the transport TMS unconditional Flags 0Change request can be imported from buffer without deleting it. 1---Imports the same change request again 2---Over writs the originals 3---over writes the system dependent objects 6---Over write the unconfirmed objects 9---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. 9

tp count <sid>: buffer waiting for import. tp go <sid>: to the database tp showparams <sid>: Tp showbuffer<sID> : Tp count<SID> Tp importall<SID>: Tp put<SID> system tp sapstart <sid>: tp stopsap <sid>: tp dbstart <sid>: tp dbstop <sid>: tp locksys <sid>: tp unlocksys <sid>: tp lock_eu <sid>: tmporarily. tp unlock_eu <sid>: tp backupall <sid>: R3trans commands: R3trans -d : R3trans -u <int>: R3trans -v : R3trans -i <file>: R3trans -l <file>: R3trans -n : R3trans t: rolled back R3trans ba: R3trans bd: complete backup. R3trans bi:

Using this command users can find out the number of requests in the This command shows the environment variables needed for the connection of the <sid> or target system. All the values of modifiable tp parameters in the global parameter file. The default value is shown for parameters that show all change requests ready to be imported to the target system number of requests in the buffer waiting for import Imports all the request from buffer to the target system imports all the request from buffer to the target system and locks the To start the R/3 system. To stop the R/3 system. To start the database. To stop the database 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. This command unlocks the system for all the users. This command sets the system change option to "system can not be changed" This command unlocks the system for all the changes. This command starts a complete backup using R3trans command. It uses /usr/sap/trans/backup directory for the backup

This command is used to check the database connection . Unconditional mode can be used as we have seen in the above example. This is used for verbose mode. It writes additional details to the log file This command directly imports data from data file without a control file. This provides output of a table of contents to the log file. This option provides a brief information about new features of R3trans. This option is used for the test mode. All modifications in the database are This command is used for a complete backup. we will see in the next paragraph how to use the Control file for the backup. This command is used for a delta backup if the user does not want a This option will display backup information

BACK UP
ON-Line backuptaking 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. 10

On line back up is not consistence, it might have some negative effects on performance, so its 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. 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) (SAPDBA) Backup Offline Redo logs

__________________________ _______________________________________

11

a - Backup function

Normal backup

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 Return S - Start BRARCHIVE (V4.6D)

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_dev_type = tape stage_root_dir = D:\oracle\RP1\sapbackup archive_copy_dir = D:\oracle\RP1\sapbackup new_db_home = X:\oracle\C11 expir_period = 30 mount_par_file = initRP1.mnt disk_copy_cmd = copy tape_size = 1200M

backup_type = offline backup_root_dir = D:\oracle\RP1\sapbackup archive_function = save archive_stage_dir = D:\oracle\RP1\sapbackup tape_address = /dev/nmt0 util_par_file = initRP1.utl tape_copy_cmd = cpio split_cmd = "<split_cmd> [$]" tape_size_arch = 1200M

Tablespace administration 12

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 database Index 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 modified Temporary Segments: Stored in PSAPTEMP tablespace.this is uses temporarily for doing sort operation or creating indexes. These segments are increase performance when dealing with large tables 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 Extent INITIAL (First extent): Its 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.Its generally set to 100 for oracle block MINEXTENT: Its the starting numberof the extents when the object is created. Its normally always set to 1. Block: Its 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 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. 13

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 Start TableSpace Names & Types 1.Oracle system Tablespaces: SYSTEM: PASPROLL: PASPTEMP; includes the internal oracle dictionary Contains the Roll back segments Temporary tablespace for internal processing

2.Basis Tablespaces: Contains theR/3 basis environment data. PASPLOAD D/I: Contains ABAP report loads and screens PASPSOURSE D/I: Contains the ABAP report sourse and screens 14

PASPDDIC D/I: PASPPROT D/I: 3.Application tablespaces: PASPCLU D/I PASPPOOL D/I: PASPSTAB D/I: PSAPBTAB D/I; PASPDOCU D/I; 4.Customers tablespaces: PSAPUSER1 D/I:

Includes ABAP dictionary includes control and log tables

Contains the system cluster tables Contains the system pool tables Contains master data, transparent tables Contains transactional data Contains documentation tables

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 system o Click on the change icon to the display mode o Click on the new entries button on the application tool bar to define the client o And enter client number with meaningful description ,role of the client which can be production,testing,customizing and training o Specify the change and transport for client-dependent objects Changes without automatic recordingthe client can be customized but system will not automatically generate change request Automatic recording of changes No changes alloweddoes 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 adaptabilityclient is protected against read access by other clients o Finally we have to select some restriction Currently locked due to client copy and Protection against SAP upgrade Clint copy profiles SAP_ALL--- All client specific data. SAP_APPL---Customizing and application data 15

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 RSCLCCOP Client locking: tp LOCKSYS pf=tp param path ------>lock all users except DDIC tp UNLOCKSYS pf=tp param path----->unlock all users SCCR_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 SCC9where 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/SCC7To 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 16

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, Clow priority other jobs States/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 jobs Standard 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 logs RSBDREO-Temse reorganization, RSSNAPDLDelete 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 17

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. 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 System X- 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 requests Temse location: rspo/store_location If Value =db, stored at TST03 table in data base If 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 configuration Dynamic configurationNo 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 (LDAPlight weight directory access protocol, ADS-Active directory services)for secure communication. 18

This secured communication is done by using diag and RFC protocols. Data security can be achieved in 3 ways 1. AuthorizationIf a user has to be validated at logon then we have to enable this type of communication 2. Integrity---We can secure the changes of data by enabling this type of communication 3. EncryptionIf 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 19

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 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 bit2048 MB , 32 bit---600 MB)

OS level Commands
dpmon d Sapdba (up to SAP R/3 -4.7)/ brtools PS ps -eaf|grep dw ps -eaf|grep ora Ps eaf | grep dw kill -9 msmon pf=profile path name=sid gwmon pf=profile path nr=num Ps eaf | grep lsnrctl Rslgview pf =-r ft | pg Disp + work v R3trans d ,tnsping Df k Du k Svrmgrl Connect internal//(old versions) --------------------------------------------Sqlplus /as sysdba (new versions) Saplicence -get saplicense -install sappfpar all pf=profile path sappfpar check path=profile path memlimits telnet Dispatcher queue monitor database administration Running work process process overview check oracle service is running Kill work process to check the message server status to check the gateway status Listener status System logs to check the version of r3 kernel Checking the connection with database File system monitor Display all directories and size of current directory SQL prompt and database connection ------------------------------------------------SQL prompt and database connection to get hardware key to install license display all profile parameters checks the required space for memory to check the available space for heap and swap memory Remote system login 20

telnet <ipaddress><dispatcherportnum> ftp rcp Start/stop sap ping niping systeminfo Ps -aef lsps -a topas

to check the remote sap system is up and running file transfer protocol remote copy of files Start / stop Sap instance check destination host reachable check connection between server and a client by transferring packets check the configuration of system Processes status Swap space Memory

Differences

21

Client independent ABAP programs ,R3 repository objects available through out entire system SPAU Adjusting (modifying) repository 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 Message server To exchange the data and internal messages The message server routes the messages B/W application servers Central instance The CI contains all the work processes Every SAP system has just one central instance 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. 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 Instance profile if we change the parameter of instance profile, it will affect that instance only details about work process and instances Remote client copy The data is exported to operating system in source client and imported to target system 000 Is the reference client with sample data Sap recommends not to work in this client for productive

Client dependent customizing, application data and user data available from one client only SPDD Adjusting data dictionary objects SAPxpg To start external programs from R/3 , and sending back job information. Gateway server Allows the communication between R3, R2 and external applications, by using CPIC protocol. Exchanges larger amount of data between application servers Application server Application server contain only dialog work process There is no DB instance in application server

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

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

Default profile if we change the parameters in default profile, it will affect the complete system has the default parameter values

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 001 066 Is a copy of 000,can 006 is a special client used to use to start the perform the early watch 22 or customizing work Default user is EARLY WATCH use also as a password SUPPORT reference client

TABLES VBLOG SNAP T000 TLOCK PAT01, PAT03 TSP01 TST03 TPFYPROPTY TSTC CCCFLOW VBERROR Reports RSBDCREO RSBDCDEL RSPO0041 SAPOSCOL SAPMSSY2 RDDIMPDP,RDDNEWPP, RDDPUTPP RSTS9803 RSSNAPDL RSM13002 RSBPSTDE To delete old batch jobs To delete old job logs To delete old spool requests Operating system program To switch the operation modes Background jobs while transporting the change requests To delete particular entry in TemSe To delete old dumps To clean the processes update requests To clean the job run time statistics information Update logs ABAP dumps Client entries Lock entries Support packs Spool requests TemSe Profile parameters T-Codes Client copy control Update errors TWSYS TDEVS TDEVL TRBAT TBATG TACT AGR* USR04 DDLOG Consolidation routes Development class Transport layer

Transport requests entries Authorization activities Security roles information Password restrictions table Buffer synchronization

SAP Notes: 0024092 0006604 0039412 0031395 0048400 0016083 0019706

Distribution of background jobs on application server Deleting jobs at OS level Number of work processes to configured System parameters To delete particular entry in TemSe Standard jobs, reorganization jobs Tuning the spooler

23

24

Communication B/W R3 system and BW System 1. 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, 1 st 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 SM59 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 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 key Saplicense install: to get permanent license in the system Saplicense 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 25

We can do customization and synchronization with solman 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

26

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: RFC Types SRFC (Synchronous RFC): A SRFC (Asynchronous RFC): TRFC (Transactional RFC): QRFC (Queued RFC): X-RFC (XML over HTTP): Adaptive RFC When connecting form GUI to SAP it used SRFC protocol One dialog work processes may take one LUW (logical unit of work) and then dialog work processes may take 2nd LUW It will complete the process in one shot.TRFC will send acknowledgement and they will stored in data base level and guarantee execution. This is order execution or sequence execution, in this RFC we have return parameters and also guarantee execution. For taking packets to the internet It is used when adapt system is communicating with java S_RFC and S_RFCACL

27

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_AGauthorization profile administrator User types Dialog userlogin possible System userlogin not possible, Communicating with in the system CommunicationLogin not possible , Communication b/w the system,TMSADM is default user for communication ServiceLogin 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_ADM Authorization Class: group of related authorization objects (SU21) AAAB , BC_A , BC_C , BC_Z Authorization: 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 TCode. 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 --- PFUD Concurrent Users: Who are currently using work processes or resources Named 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 28

and save it 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 Tables usr01: user master records (runtime data), address data, usr04: user master record authorizations, usr06 and usr14: license data, usr02: logon data, usr03: user

usr05: user SPA/GPA parameter values, usr08 usr09, and usr30: user menu definition

29

Das könnte Ihnen auch gefallen