Академический Документы
Профессиональный Документы
Культура Документы
February 2009
Executive Overview............................................................................................................. 2
Introduction ......................................................................................................................... 1
Database MARKET SHARE for Enterprise Applications .................................................... 1
Oracle-SAP Technology Relationship................................................................................. 2
Oracle 11g for SAP ............................................................................................................. 3
SAP Standard Applications Benchmarks ............................................................................ 3
Scalability and Performance ............................................................................................... 4
Reliability ............................................................................................................................. 4
Platform neutrality ............................................................................................................... 4
Real Application Clusters (RAC) ......................................................................................... 5
RAC affordable scalability............................................................................................... 6
Inherent High Availability ................................................................................................ 6
Simplified Administration ................................................................................................ 6
Disaster Recovery ............................................................................................................... 7
Oracle Features Important for SAP Customers .................................................................. 7
Partitioning ...................................................................................................................... 8
Index Key Compression.................................................................................................. 8
Addressing Backup and Recovery ................................................................................. 9
Addressing Disaster Recovery ..................................................................................... 10
Flashback database...................................................................................................... 11
Oracle Segment Shrinking ............................................................................................ 11
Database copy using transportable tablespace............................................................ 11
Manageability ................................................................................................................ 12
Automatic Shared Memory ....................................................................................... 12
Automatic Workload Repository ............................................................................... 12
Oracle Expertise in the SAP environment......................................................................... 15
Conclusion ........................................................................................................................ 15
Executive Overview
For almost 20 years Oracle has been the database of choice as the development
platform for SAP applications. A contract between Oracle and SAP had been signed in
November 1999 to ensure the future cooperation and the position of Oracle as “tier one”
platform for SAP. The contract was last renewed in January 2008.
SAP R/3 was originally developed on Oracle, and the companies have a deep
relationship at the technical level. Subsequent SAP products, such as SAP Business
Information Warehouse (BW) have also been developed using the Oracle database.
Oracle’s assistance during incorporation of new database features, performance testing,
bug fixing and customer problem escalations has been invaluable to the large number of
SAP customers running on Oracle.
Years ago, Oracle implemented the industry’s best concurrency model with non-
escalating row-level locking and multi-version read consistency; innovative features such
as self-tuning database components and enhanced indexing and partitioning schemes
have maintained Oracle’s reputation for performance and scalability for enterprise
applications. And Oracle has shown itself to be a leader in database availability and
security as well – an important consideration for managing critical data in an SAP system.
For our customer this means:
Introduction
This paper covers the business and technology factors driving customers to choose Oracle as the
underlying database for their SAP deployments. In the following sections we discuss Oracle’s
market position among databases for SAP applications, the SAP-Oracle technology relationship
including adoption of new Oracle database features by SAP.
• Scalability
• Reliability
• High Availability
• Manageability
• Security
1
Oracle Database: the Database of Choice for Deploying SAP Solutions
The Oracle development team working at SAP HQ in Walldorf, Germany assists SAP in:
• Performance testing of each release with the Oracle database to ensure there is no
degradation of response time, throughput and scalability between SAP versions.
• Fixing database bugs found during SAP functional testing, and including SAP
enhancement requests in the database product roadmap
• Incorporating new Oracle features in SAP releases
• Responding to escalated customer problems, when related to database issues
All SAP products are currently certified with Oracle 10g Database Release 2, 10g Real
Application Clusters has been certified in December 2006 and is general available for SAP
customers.
2
Oracle Database: the Database of Choice for Deploying SAP Solutions
SAP is an enthusiastic adopter of new features in the Oracle database. We will discuss an extract
of the features supported by SAP later in this paper showing the main differentiators of Oracle
Database from DB2 and SQL Server.
3
Oracle Database: the Database of Choice for Deploying SAP Solutions
Database with Oracle Real Application Clusters continues to demonstrate exceptional grid
computing capabilities, delivering excellent performance, scalability, and value.
Reliability
Oracle was developed to minimize planned as well as unplanned downtime:
• Administrators can perform most management and maintenance jobs while the system
is online and full data access is possible.
• The individual components of an Oracle database server are extremely stable. Users can
access the database even if parts of it are unavailable.
• Should a system failure occur (e.g. because of hardware problems), recovery of an
Oracle database is fast and fully automatic in RAC environment.
• The management tools provided by Oracle can identify and solve potential problems
before they affect data availability.
Platform neutrality
Oracle has always been a platform-neutral database. Oracle9i/10g Database were released
simultaneously on all major platforms, and the database is the same across all platforms. Oracle’s
support for the major Unix platforms, Windows and Linux gives customers the assurance that
they can switch hardware vendors and operating systems with no penalty. SQL Server and, to a
slightly lesser extent, DB2, force the customer to pick a specific operating system or hardware
vendor. A SAP system on Oracle can scale up by moving to a different, larger hardware
configuration; the choices are far fewer for SQL Server or DB2 based systems.
Oracle has maintained platform-neutrality even as new chips and operating systems are
developed:
4
Oracle Database: the Database of Choice for Deploying SAP Solutions
5
Oracle Database: the Database of Choice for Deploying SAP Solutions
Simplified Administration
Multiplying the number of components in a solution can potentially increase the maintenance
burden. However, Oracle RAC features minimize this possibility. Resources, servers, and storage
can be managed as a single entity within a cluster-wide environment. Because the database
appears as a standard, single instance to applications and administrators, the same maintenance
tools and practices can be used. All standard backup and recovery operations work transparently
with RAC. Maintenance is simplified because RAC provides rapid, automatic failover for users if
any server crashes. This automatic failover capability overcomes the need to execute the complex
operations required to restore database access.
6
Oracle Database: the Database of Choice for Deploying SAP Solutions
Disaster Recovery
Oracle Data Guard is the most effective and comprehensive data availability, data protection, and
disaster recovery solution for enterprise databases. It provides the management, monitoring, and
automation software infrastructure to create and maintain one or more synchronized standby
databases to protect data from failures, disasters, errors, and corruptions.
Data Guard standby databases can be located at remote disaster recovery sites thousands of miles
away from the production data center, or they may be located in the same city, same campus, or
even in the same building. If the production database becomes unavailable because of a planned
or an unplanned outage, Data Guard can switch any standby database to the production role,
thus minimizing downtime and preventing any data loss.
7
Oracle Database: the Database of Choice for Deploying SAP Solutions
architectural decisions made in early Oracle releases and a record of continued innovation have
allowed Oracle to give customers this assurance.
Partitioning
Improved scalability for partitioned objects: Dropping partitioned tables and indexes is now
substantially faster by using a new algorithm for identifying the blocks of a partitioned object in
the buffer cache and for cleaning these blocks in the buffer cache. The SAP BW application
benefits the most, as dropping partitioned objects is a frequently used operation in SAP BW.
Scalability is enhanced in a number of different ways:
• Data can be partitioned across time, thus providing the ability to store more historical
data in the analytic workspace without affecting performance or manageability.
• Calculations can be easily limited to a subset of dimension members, or they can be
parallelized. For example, aggregations, allocations and other calculations can be
performed on time periods within a particular partition.
• Data loading can be parallelized.
• When partitioned by the logical model, for example, by level of summarization, the
definition of the variable can be adjusted to account for changes in sparsity between
detail data and summary data.
• Disaster recovery tasks can be performed on subsets of data and can be parallelized.
• Partitioned variables can be partitioned across different data files and disks to minimize
I/O bottlenecks.
While Oracle provided Range partitioning for many years, SQL Server 2005 does this for the first
time and DB2 is actually supporting it since DB2 version 9. But it is unusable because:
• “The SAP Dictionary does not support range partitioning. During a conversion, range
partitioning settings are always lost.
• Range partitioning cannot be activated by the SAP Dictionary; you can only use native
DB2 tools for this purpose.
• Range partitioning can lead to problems in the SAP upgrade.”(Source SAP note 930487
as of September 09, 2007)
8
Oracle Database: the Database of Choice for Deploying SAP Solutions
the leading columns of an index and the selectivity of these repeating values in the leading part of
an index.
The advantages of key compression:
• Saves disk space for indexes and reduces total database size on disk: Customer
experiences show that up to 75% less disk space is needed for key compressed indexes.
Even after index reorganizations have taken place an additional up to 20% total disk
space reduction for the whole database can be achieved using index compression.
Without any reorganizations done before the total space savings for the complete
database may be higher than 20% using index compression as index compression
implicitly reorganizes any index (Real world example: The size of the 'GLPCA~1' index
was reduced from 18GB 4.5GB ).
• Reduces physical disk I/O and logical buffer cache I/O improving buffer cache quality
• Higher CPU consumption: Every compression technique comes with higher CPU
consumption. The higher CPU consumption is more than compensated by doing less
logical I/O for index blocks in the database buffer cache.
• Improved overall database throughput: Early customer experiences have shown a 10-
20% better database throughput for an SAP system by using index key compression in a
non CPU bound environment.
9
Oracle Database: the Database of Choice for Deploying SAP Solutions
• Change-Aware Incremental Backups: By using a new type of log file to track blocks that
have changed in the database, RMAN can avoid scanning the entire data file during an
incremental backup. Instead the amount of data scanned is proportional to the amount
of data changed. Block change tracking is supported in the SAP environment as of
Oracle 10.2.0.2 and BR*Tools 7.00
10
Oracle Database: the Database of Choice for Deploying SAP Solutions
Flashback database
The Flashback Database capability is similar to conventional point-in-time recovery in its effects
and it is accessible from both RMAN and SQL*Plus by using the FLASHBACK DATABASE
command, which has also been integrated into the BR*TOOLS (SAP notes: 1125923, 966117,
966073). To enable the Flashback Database capability a DBA configures the Flash Recovery
Area. The Flash Recovery Area is a new feature in Oracle Database 10g that provides a unified
storage location for all recovery related files and activities in an Oracle database.
Flashback provides Data Guard with an easy-to-use method to correct user errors. Flashback
Database can be used on both the primary and standby database to quickly revert the databases
to an earlier point in time to back out user errors. If the administrator decides to failover to a
standby database, but those user-errors were already applied to the standby database (for
example, because Real Time Apply was enabled), then the administrator may simply flashback
the standby database to a safe point in time.
Flashback database on the productive database server: SAP customers may be required to revert
the database to an earlier state if a logical data corruption occurred due to an application error,
user error, or administrator error.
Flashback Database also lends itself for cases where you anticipate a database reset in advance,
for example; if the import of an SAP Support Package or an SAP or Oracle upgrade to a new
patch set fails, which means that the database must be reset so you can repeat the process.
Flashback database on the standby Server: We can take advantage of Flashback Database
together with a Physical Standby in order to open the Standby Database in write mode, perform
testing/reporting activities, and once these activities are completed we can reinstate the standby
and synchronize it with the primary database. See:
http://blogs.oracle.com/AlejandroVargas/gems/PhysicalStandbyActivatedRead.pdf
11
Oracle Database: the Database of Choice for Deploying SAP Solutions
Manageability
Oracle Database 10g comes with a large set of optimizations, making the database run faster on
any type of hardware on which the database has been deployed. The database now has the
capability to use fibers, large pages, and Non Uniform Memory Access (NUMA) systems. Fibers
improve overall database performance and throughput. Large pages boost performance for
memory-intensive database applications, especially in cases when the buffer cache is several
gigabytes in size, a typical scenario for SAP configurations. Oracle Database 10g can
automatically detect NUMA hardware and optimize it self by efficiently utilizing NUMA node
affinities.
With every release, Oracle has included more features to automate database administration. Some
features that distinguish Oracle from its competitors and are often adopted by SAP customers to
enhance the manageability of their SAP systems include: Automatic Shared Memory
Management and Automatic Workload Repository.
Oracle Database 10g introduces Automatic Shared Memory Management. DBAs can just specify
the total amount of SGA memory available to an instance using the new parameter
SGA_TARGET. The database server then automatically distributes the available memory among
various components as required. The Automatic Shared Memory Management feature is based
on a sophisticated algorithm internal to the database that continuously monitors the distribution
of memory and changes it periodically as needed, according to the demands of the workload.
One of the most positive aspects of the current Oracle release is the area of diagnosability and
supportability. Compared to any other database platform Oracle version 10.2 offers the most
sophisticated options for in depth analysis. The evaluation of the data provided by the Oracle
Advanced Workload Repository (AWR) and the Advanced Session History (ASH) allows root
cause analysis on every desired level. This is a huge benefit every time you run in e.g. a
performance problem or any other error situation. The SAP and Oracle support lines can act
very effectively based on those features. This situation is hardly measurable in numbers and
proven by several statements received from our support colleagues. The Automatic Workload
Repository (AWR) collects, processes, and maintains performance statistics for problem
detection and self-tuning purposes. This data is both in memory and stored in the database. The
gathered data can be displayed in both reports and views.
An excerpt of the statistics collected and processed by AWR include:
• Object statistics that determine both access and usage statistics of database segments
• SQL statements that are producing the highest load on the system, based on criteria
such as elapsed time and CPU time
12
Oracle Database: the Database of Choice for Deploying SAP Solutions
• Active Session History (ASH) statistics, representing the history of recent sessions
activity
AWR automatically generates snapshots of the performance data once every hour and collects
the statistics in the workload repository. You can also manually create snapshots, but this is
usually not necessary. The data in the snapshot interval is then analyzed by the Automatic
Database Diagnostic Monitor (ADDM).
AWR compares the difference between snapshots to determine which SQL statements to
capture based on the effect on the system load. This reduces the number of SQL statements that
need to be captured over time.
Database Vault
Oracle Database Vault, part of Oracle's comprehensive portfolio of database security solutions,
helps organizations address regulatory mandates and increase the security of existing applications.
Regulations such as Sarbanes-Oxley, Payment Card Industry (PCI) Data Security Standard (DSS),
Health Insurance Portability and Accountability Act (HIPAA), Gramm-Leach-Bliley Act (GLBA)
and similar global directives call for separation-of-duties and other preventive controls to ensure
data integrity and data privacy. With Oracle Database Vault, organizations can pro-actively
13
Oracle Database: the Database of Choice for Deploying SAP Solutions
safeguard application data stored in the Oracle database from being accessed by privileged
database users. Application data can be further protected using Oracle Database Vault's multi-
factor policies that control access based on built-in factors such as time of day, IP address,
application name, and authentication method, preventing unauthorized ad-hoc access and
application by-pass.
14
Oracle Database: the Database of Choice for Deploying SAP Solutions
Conclusion
Oracle has a large and growing share of the market for databases used to deploy SAP. This is not
an accident – both companies invest in making Oracle technology work well for SAP, and Oracle
has a long track record of delivering the de facto standard database for enterprise applications.
SAP customers continue to choose Oracle because of the Scalability, High Availability,
Manageability and Security benefits they obtain.
15
Oracle Database: The Database of Choice for
Deploying SAP Solutions
February 2009
Author: Abdelrhani Boukachabine
Contributing Authors: Thomas Stickler
Copyright © 2009, Oracle and/or its affiliates. All rights reserved. This document is provided for information purposes only and
the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other
Oracle Corporation
warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or
World Headquarters
fitness for a particular purpose. We specifically disclaim any liability with respect to this document and no contractual obligations are
500 Oracle Parkway
formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any
Redwood Shores, CA 94065
means, electronic or mechanical, for any purpose, without our prior written permission.
U.S.A.
Worldwide Inquiries: Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective
Fax: +1.650.506.7200
oracle.com 0109