Showing posts with label SAP installation with AIX. Show all posts
Showing posts with label SAP installation with AIX. Show all posts

9/06/2017

HOUSE KEEPING / PERFORMANCE TUNING ACTIVITIES IN SAP BW SYSTEMS

In many BW Projects, we have seen Basis team and the BW consultants searching around for tracing the regular and best housekeeping options and activities provided by SAP for improving the performance of BW Production servers.
I have made an attempt to summarize and mention most of the BW House Keeping activities under a single umbrella.
Basically, I have divided the activities into 4 parts namely General monitoring, System health monitoring, Performance related monitoring and Occasional activities along with some pure basis activities in the fourth part.
Part 1 can be found here –> http://scn.sap.com/docs/DOC-46602
Part 2 can be found here –> http://scn.sap.com/docs/DOC-46844
Part 3 can be found here –> http://scn.sap.com/docs/DOC-47062
Applies to:
SAP NetWeaver Business Warehouse (formerly BI). This will also work on SAP BI 3.5 and BI 7.0.
Other popular articles from the same Author:
  1. Points to be considered while integrating BW Bex queries with BO WEBI  –> http://scn.sap.com/docs/DOC-35444
  2. SAP BW 7.3 Promising Features –>  http://scn.sap.com/docs/DOC-30461
A) Occasional Monitoring Activities:
1) Infocube Indexes:
Transaction Code –> RSA1, Manage (of Info cubes)-Performance tab
• Indexes are data structure sorted values containing pointer to records in table.
Indexes are used to improve data reading performance / query performance improvement but decreases data loading/writing performance .We delete/drop them during the data loading to data target and create again after loading finished. Its recommended to include them while designing the process chain. In process chain, before loading the data to cube use the delete index process and load the cube and create index.
• Use transaction RSRV (and RSRVALT) on a regular basis to check Infocubes. Most importantly tag ‘Database’, option ‘Database indices of an infocube and its aggregate’ to check the health of the cube.
• Using the Check Indexes button, you can check whether indexes already exist and whether these existing indexes are of the correct type (bitmap indexes).
Yellow status display: There are indexes of the wrong type
Red status display: No indexes exist, or one or more indexes are faulty
You can also list missing indexes using transaction DB02, pushbutton Missing tables and Indexes under the Diagnostics folder.
• If a lot of indexes are missing, it can be useful to run the ABAP reports SAP_UPDATE_DBDIFF and SAP_INFOCUBE_INDEXES_REPAIR.
2) Temporary tables:
• Run frequently or schedule ABAP report ‘SAP_DROP_TMPTABLES’.   
Remove temporary database objects SAP
• Run frequently or schedule ABAP report ‘RSAN_RTT_CLEAR_TEMP_TABLES’
Delete temporary tables created by analysis process
• Run frequently function module ‘RSDDS_CHANGERUN_TMPTABLS_DEL’
test function module
3) Unused database partitions:
Tools: ABAP ‘SAP_DROP_EMPTY_PARTITIONS’.
• Remove unused and empty partitions in the F- table of Infocubes using the ABAP ‘SAP_DROP_EMPTY_FPARTITIONS’. See note 430486 for further details.
Locate remove unused or empty partitions of F fact cube
4) Log files:
Tools: ABAP ‘SBAL_DELETE’, ‘RSTBPDEL’, ‘RSSM_ERRORLOG_CLEANUP’.
Remove old application logs from the Database.
• Run periodically ‘SBAL_DELETE’ to remove old application logs(see note 456150)
• Run periodically ‘RSTBPDEL’ to remove old database logs(see note 706478)
• Run periodically ‘RSSM_ERRORLOG_CLEANUP’ to remove old error logs(see note 456150)
5) Archieving:
Transaction Code  –> SARA, ABAP ‘RSEXARCA’ (See notes 643541 and 653393 for more details).
Without archieving, unused data is stored in the database and the DSO’s and Infocubes can grow unrestricted. This can lead to deterioration of general performance.
The benefits of BW archieving include:
• Enables you to archive data from InfoCubes and ODS objects and delete the archived data from the BW database. This reduces the data volume and, thus, improves upload and query performance.
• Reduction of online disk storage.
• Improvements in BW query performance.
• Increased data availability as rollup, change runs and backup times will be shorter.
• Reduced hardware consumption during loading and queries.
6) Delete PSA data:
Transaction Code –> RSA15
• Determine a retention period for data in the PSA tables. This will depend on the type of data involved and data uploading strategy. If PSA data is not deleted on a regular basis, the PSA tables go unrestricted. Very large tables increase the cost of data storage, the downtime for maintenance tasks and performance of the data load.
7) Delete change log data:
• For change logs, the deletion can be done from DSO –> Manage –> Environment –> Delete change log data.
SAP BW guide
Deleting change log data
Please note that only already updated change log requests can be deleted and after deletion a reconstruction of requests for subsequent data targets using the DSO change log will not be possible.
8) Delete DTP temporary storage:
This task is only relevant for BI 7.0/7.3.The DTP can be set up from the temporary storage in case of problems.
The deletion of temporary storage can be set from DTP maintenance –> Goto –> settings for DTP Temporary storage –>Delete temporary storage.
SAP BW blog
sap bw display data transfer process
Here you can choose for each DTP:
• For which steps you want to have a temporary storage.
• The level of detail for the temporary storage.
• The retention time of temporary storage.
9) Compression:
Transaction Code –> RSA11
• Info cubes should be compressed regularly (See notes 375132,407260,590370 for more details). Uncompressed cubes increase data volume and have negative effect on query and aggregate build performance. If too many uncompressed requests are allowed to build up in an infocube, this can eventually cause unpredictable and severe performance problems.
B) Pure Basis Activities:
SAP BW basis activities
1) Apply SAP notes / SAP service and support packs / add-on’s:
Transaction Code  –> SNOTE, SAINT, SPAM
• Implement a SAP note on demand.
• Implement SAP service packs on demand. Normal practice is that this will happen twice a year. More frequent if the BW version is rather new and the service packs comes out more frequently, lesser when the BW version is at the end of its life cycle.
• Implement BW add-ons on demand.
• To keep the system up to date, SAP recommends implementing support packages and / or patches into the system landscape on a regular basis. This should prevent already known and fixed bugs affecting your business and you can make use of product improvements. To guarantee an optimal level of support from SAP side, the system has to have an up-to-date status.
• Corrections for BW (front-end, server, plug-in or add-on) are only made available in the before mentioned support packages. With the expectation of individual cases, no description of the correction (table entries, coding) is given in the notes. In general, SAP does not carry out corrections directly in the customer system. It is recommended to apply support package stacks ,which are usually delivered quarterly.(see http://service.sap.com/sp-stacks
2) BW upgrades:
• Upgrade the BW system on demand.
3) Transport:   
Transaction Code  –> STMS
• Import transports to the system on demand.
4) Client copy activities:
Transaction Code  –> RSA13. Restore Source system.
• After a client copy of a connected source system, the connection needs to be restored.
5) Data base and Kernel settings:
Transaction Code  –> RZ10
• Reevaluate the SAP Kernel and Database settings on a yearly basis.
Related Content:
1) How to optimize Reporting Performance
2) Guide to perform efficient system copy for SAP BW Systems
3) Periodic Jobs and Tasks in BW
4) House Keeping activities for Archiving in BW systems
5) House Keeping Task List
6) BW House Keeping and BW PCA

8/23/2017

SAP R/3 Application server installation on Linux

In this article, I will give you step by step for installation of application server system SAP R / 3 using the Linux OS. Why use Linux? Instead better use Windows? There are some things that a consideration to me why using Linux include:

  1. Database Instance that will be used is Oracle with a platform AIX (IBM's proprietary UNIX). Between AIXand Linux, UNIX machines are equally so compatibility will be more awake than using Windows.
  2. Linux is free and open source. By nature, I was much easier to perform tuning and search for references
  3.  on the Internet.
  4. Communication between Linux and AIX will use NFS, while Windows and AIX will use SAMBA.
  5. Linux machine is more stable, reliable, and most importantly the virus-immune.
  6. Linux is also less expensive in terms of maintenance, hardware requirements, compared to using
  7.  Windows (must have a license) and AIX (in terms of licensing and hardware).
  8. Selection of Linux distributions that will be used freely. I prefer the distro that can use the concept of LVM (Logical Volume Management) so I can make a logical volume space maintenance easier. I will try to explain using Redhat machine. I personally have tried to use SuSE as well. The main difference between them is the problem of the default file system used. Redhat uses ext3, while SuSE using reiserfs.

Excellence ext3 and reiserfs is the ability to manage the logical volume size online.So we can easily increase the size of logical volumes without having to unmount the logical volume.We start, yes ...
1. OS InstallationWhen the OS installation, prepare a sufficient partition for the installation of SAP. The table on the following attachment (Disk) The following will give an explanation setting partitions using LVM.
2. Installing the Central InstanceSince we will use an existing Database Instance on AIX 64 bit machine, then we have to install the Central Instance. Installing the Central Instance package in Linux is to get the executable files from the SAP kernel for Linux.Set environment needed to run sapinst among others:LD_LIBRARY_PATH = / sapmnt / [SID] / exeSAPINST_JRE_HOME = / opt / [location of java runtime environment]DISPLAY = [IP_Address of Windows Client]: 0.0umask = 22
To test, run the xclock command on the console. If an analog clock image, it means that environment is set correctly. If not appear, review the value of each environment variable you.

Go to the directory sapinst. Sapinst Run command on the console.

Choose Install Central Instance.

Fill in the information to the SAP System ID (SAPSID) and Instance Number.Customize with existing information on the Database Instance on AIX.

Fill in the information database ID (DBSID) and Database Host.

Let the information by default. This we do because this server will only be used asapplication servers.

Choose No if you do not use LDAP LDAP facilities on your network.

Make sure that this directory is exist.

Make sure the correct information Database Schema. And do not forget the type ofdatabase server is running on AIX is 64 bits.

Information about the group sapsys. Noteworthy is the Group ID must match the Group ID on the AIX machine (as a database server).

Information about the group dba. Noteworthy is the Group ID must match the Group IDon the AIX machine (as a database server).

Information about the group shift gears. Noteworthy is the Group ID must match the Group ID on the AIX machine (as a database server).

Information about the user [sid] adm. Must be considered is the User ID andpassword must be the same as your User ID and password on AIX machine.

Information about the user ora [sid]. Must be considered is the User ID and passwordmust be the same as your User ID and password on AIX machines.

Note the directory listing above. These directories must exist. If not exist, create itnow!. The directory must exist is / usr / sap, / usr / sap / trans, / sapmnt, / oracle, /oracle / [SID] / 920_64.

You must indicate the location of the SAP Kernel for Linux is available. You should be ready.

Information extraction of Oracle Client. Remove the check mark. We will not installOracle Client now.

Information on ports used by SAP applications. The following ports should not beused by other applications, which is 36 [system number], 33 [system number], 32[system number], 47 [system number], and 48 [system number]. Please edit the file /etc / services.

Information listener name and port used by the listener. Make sure the port is not usedby other applications.

Show location IGS_SOFT.

Summary information on the Central Instance installation. Check back and you stillcan click the back button if there is not yet appropriate.

Installing the central instance is running.

Congratulations!! Installing the central instance successfully. We're already in half way.Please break before ... enjoy hot coffee and fried bananas you ...:)
3. Installing Dialog Instance
Set environment needed to run sapinst among others:
LD_LIBRARY_PATH = / sapmnt / [SID] / exeSAPINST_JRE_HOME = / opt / [location of java runtime environment]DISPLAY = [IP_Address of Windows Client]: 0.0umask = 22
To test, run the xclock command on the console. If an analog clock image, it means that environment is set correctly. If not appear, review the value of each environment variable you.Make sure the machine Linux and AIX machines know each other. Perform the addition of the IP Address and hostname Linux on AIX machines and vice versa.
From the AIX machine via NFS, shared directory / sapmnt / [SID] / global and /sapmnt / [SID] / profile. From the Linux machine, mount the directory with the samemount point.

Screen installation election. Select Non-Unicode_Install Dialog Instance.
Information about the Central Instance. Remember! instance number and instanceinformation are hosted on the AIX machine.

Information Database ID (DBSID) and Database Host.

Information hosted instance of parameters. Leave the default.

Choose No if you do not use LDAP LDAP on the network.

Location SAP Mount Directory is on / sapmnt. Make sure this directory exists.

Note the type of information Database Schema and Database servers. Do not forgetthat the database server that we use is 64 bits.

Note the directory listing above. These directories must exist. If not exist, create itnow!. The directory must exist is / usr / sap, / usr / sap / trans, / sapmnt, / oracle, /oracle / [SID] / 920_64.

You must indicate the location of the SAP Kernel for Linux is available. You should be ready.

Now is the time for us to install Oracle Client. Tick ​​the option extract oracle client.

Information used ports in the SAP. Should have been prepared at the time ofinstallation of the Central Instance.

Setting name of the listener and the listener port name.

Location IGS_SOFT.

Installation Summary Dialog Instance.
Installing Dialog Instance is running.

Error will be out due to lack of permissions on the directory NFS / sapmnt / [SID] /profile.

From the AIX machine, change the first permissions recursively to 777, the command# chmod-R / sapmnt / [SID] / profile. Continue the installation until it met the error again.

Errors occur because the permissions on the directory NFS / sapmnt / [SID] / profileon AIX machines.

Restore permissions to its original position. Use the following commands in succession: # chmod-R 644 profile, # chmod 755 profile.

This error is a bug from SAP. Please edit the file keybd.xml. Search keyword"ERROR" and change it to OK. Save, then run back to the old installation.

Congratulations! Dialog Instance installation has been completed.
4. Next run the dialog instance. Previous sure central instance and database server is running on the AIX machine.
Now we already have a Linux application servers are cheap, reliable and stable.There is more to be tuning, later we went on again.

Popular Posts