The performance of a database depends on the configuration of the database, the database design and the formulation of SQL statements. The following information is only a general overview; depending on your system environment, additional actions might be required.
Before carrying out a performance analysis, the system this should have been running for some time: the read actions in the data cache should have reached at least 20,000,000.
More information:
Database Studio, Displaying Caches (Working Memory Areas)
Database Administration in CCMS, Caches
Regularly update the SQL optimizer statistics. Use performance analyses of individual SQL statements (particularly Join statements) only after the statistics have been updated.
Database Studio, Updating SQL Optimizer Statistics
Database Administration in CCMS, Update of the SQL Optimizer Statistics
Always have Database Analyzer running. When a SAP system or a SAP liveCache system starts up, Database Analyzer is automatically started for the system's basis database. If necessary, start Database Analyzer manually.
More information:
Database Studio, Starting or Stopping Database Analyzer
Database Administration in CCMS, Database Analyzer
In SAP systems, database monitoring is automatically activated when the database is started. This means that the statistical data which the system collects for monitoring goes back to the last database start. Depending on the performance issue you want to analyze, it may be necessary to reset the collected monitoring data.
More information: Database Administration in CCMS, Database Monitoring
For a performance analysis you can check a wide range of settings, access times and hit rates of your database system. It may also be necessary to include the applications running on the database into your analyses. As each performance analysis is highly specific to the system analyzed, the following steps are suggestions only.
To analyze performance issues, use Database Studio and CCMS (in SAP systems only). Experts can use further database tools, such as Database Analyzer and XCONS.
Check your database parameter settings.
For an explanation of database parameters, see Database Parameters and SAP Note 814704.
If necessary, adjust the values of your database parameters. More information:
Database Studio, Changing Database Parameters
Database Administration in CCMS, Parameters
Check disk access (read and write operations), especially for the data volumes. Long I/O times may be caused by a heavy system load. Check general database system activities such as running backups or disk read actions since the last database start.
More information:
Database Studio, Displaying Database Properties
Database Administration in CCMS, I/O Operations
Check the hit rates in the data cache and the catalog cache. Database performance can suffer if too much data has to be read from disk.
More information:
Database Studio, Displaying Caches (Working Memory Areas)
Database Administration in CCMS, Caches
Check the logging activities. Specifically, there should be no log I/O queue overflows.
More information:
Database Studio, Displaying Database Properties
Database Administration in CCMS, Overview of Activities
To analyze performance bottlenecks in more detail, use Database Analyzer.
More information:
Database Studio, Activating or Deactivating Database Analyzer
Database Administration in CCMS, Bottlenecks
Database Analyzer documentation
Bottleneck analysis provides a variety of statistical data covering a longer period of time. To get current data on I/O activities and execution times, you can also temporarily activate database time measurement in the database task manager.
More information:
Database Studio, Displaying Tasks
Database Administration in CCMS, Task Manager
If a performance problem has just been reported, you can specifically check the current user tasks. In the database task manager, activate automatic refresh and monitor the user tasks and their task states. Most user tasks should have the status Running. The status I/O Wait should be much rarer; statuses like Vwait, Vbegexlc and Vsuspend should not occur at all.
More information:
Concepts of the Database System, Tasks
Database Studio, Displaying Tasks
Database Administration in CCMS, Task Manager
Display the open database transactions and examine these thoroughly.
More information: Database Administration in CCMS, Transactions
Check if exclusive wait situations have occurred. Exclusive write locks mean that other users cannot access the locked data. These locks can significantly reduce database performance.
More information: Database Administration in CCMS, Wait Situations (Exclusive)
To perform runtime analyses of any long–running SQL statements, use the special SQL command monitors (resource monitor, command monitor).
More information:
Database Studio, Conducting an SQL Performance Analysis
Database Administration in CCMS, Resource Monitor, Command Monitor
Indexes are essential for fast and efficient access to the data. Regularly check if indexes are missing from the database system or are damaged. Always recreate missing indexes immediately.
More information:
Database Studio, Displaying Indexes
Database Administration in CCMS, Index Analysis
Check the SQL statements that cause the most disk accesses and optimize these statements, if necessary.
More information: SQL Optimizer documentation
SAP Notes: 819641 (FAQ: MaxDB Performance), 819324 (FAQ: MaxDB SQL Optimization)
Database Administration in CCMS, Performance Analysis in CCMS
XCONS documentation
SAP MaxDB wiki on SDN: https://www.sdn.sap.com/irj/sdn/wiki?path=/display/MaxDB/Main