Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article covers several different areas to consider when you deploy Oracle Database for SAP workload in Azure infrastructure as a service (IaaS). Before you read this document, we recommend that you read Considerations for Azure virtual machines (VMs) database management system (DBMS) deployment for SAP workload. We also recommend that you read other guides in the SAP workload on Azure documentation.
You can find information about Oracle versions and corresponding operating system (OS) versions that are supported for running SAP on Oracle on Azure in SAP Note 2039619.
For general information about running SAP Business Suite on Oracle, see SAP on Oracle. Oracle supports running Oracle databases on Azure. For more information about general support for Windows Hyper-V and Azure, see the Oracle and Azure FAQ.
Relevant SAP Notes for an Oracle installation
Specifics for Oracle Database on Oracle Linux
Oracle supports running its database instances on Azure with Oracle Linux as the guest OS. For more information about general support for Windows Hyper-V and Azure, see the Oracle and Azure FAQ.
The specific scenario of SAP applications using Oracle databases is also supported. Details are discussed in the next part of this article.
General recommendations for running SAP on Oracle on Azure
When you install or migrate existing SAP on Oracle systems to Azure, follow this deployment pattern:
Use the most recent Oracle Linux version available (Oracle Linux 8.6 or later).
Use the most recent Oracle Database version available with the latest SAP Bundle Patch (Oracle 19 Patch 15 or later) 2799920 - Patches for 19c: Database.
Use ASM for small, medium, and large-sized databases on block storage.
Use Azure Premium SSD storage. Don't use Standard or other storage types.
Note that ASM removes the requirement for Mirror Log. Follow the guidance from Oracle in Note 888626 - Redo log layout for high-end systems.
Use
ASMLiband don't useUDEV.Use Oracle direct Network File System (dNFS) for Azure NetApp Files deployments, which is Oracle's own high-performance dNFS driver solution.
Note that large Oracle databases benefit from large System Global Area (SGA) sizes. Large customers should deploy on Azure M-series with 4 TB or more RAM size:
- Set Linux HugePages to 75% of physical RAM size.
- Set SGA to 90% of HugePage size.
- Set the Oracle parameter
USE_LARGE_PAGES = ONLY. The valueONLYis preferred over the valueTRUEbecause the valueONLYis supposed to deliver more consistent and predictable performance. The valueTRUEmight allocate both large 2-MB and standard 4-K pages. The valueONLYalways forces large 2-MB pages. If the number of available HugePages isn't sufficient or isn't correctly configured, the database instance fails to start with the following error code:
ora-27102 : out of memory Linux_x86_64 Error 12 : can't allocate memoryIf you encounter insufficient contiguous memory, you might need to restart Oracle Linux or reconfigure the OS HugePage parameters.
Locate Oracle Home outside of the "root" volume or disk. Use a separate disk or Azure NetApp Files volume. The disk holding the Oracle Home should be 64 gigabytes in size or larger.
Note that the size of the boot disk for large high-performance Oracle database servers is important. At a minimum, use a P10 disk for M-series or E-series. Don't use small disks, such as P4 or P6. A small disk can cause performance issues.
Enable Accelerated Networking on all VMs. Upgrade to the latest Oracle Linux release if there are any problems when you enable Accelerated Networking.
Check for updates in this documentation and the SAP Note 2039619 - SAP Applications on Microsoft Azure using the Oracle Database: Supported Products and Versions.
For information about which Oracle versions and corresponding OS versions are supported for running SAP on Oracle on Azure VMs, see SAP Note 2039619.
For general information about running SAP Business Suite on Oracle, see the SAP on Oracle community page. SAP on Oracle on Azure is supported only on Oracle Linux (and not SUSE or Red Hat) for application and database servers.
ASCS/ERS servers can use RHEL/SUSE because the Oracle client isn't installed or used on these VMs. Don't install application servers (PAS/AAS) on these VMs. Refer to SAP Note 3074643 - OLNX: FAQ: if Pacemaker for Oracle Linux is supported in SAP Environment. Oracle Real Application Cluster (RAC) isn't supported on Azure because RAC requires multicast networking.
Storage configuration
Two storage deployment patterns are recommended for SAP on Oracle on Azure:
- Oracle ASM
- Azure NetApp Files with Oracle dNFS
Customers currently running Oracle databases on EXT4 or XFS file systems with Logical Volume Manager (LVM) are encouraged to move to ASM. There are considerable performance, administration, and reliability advantages to running on ASM compared to LVM. ASM reduces complexity, improves supportability, and makes administration tasks simpler. This documentation contains links for Oracle database administrators (DBAs) to learn how to install and manage ASM.
Azure provides multiple storage solutions.
The following table details the support status.
| Storage type | Oracle support | Sector size | Oracle Linux 8.x or later | Windows Server 2019 |
|---|---|---|---|---|
| Block storage type | ||||
| Premium SSD | Supported. | 512e | ASM recommended. LVM supported. | No support for ASM on Windows. |
| Premium SSD v21 | Supported. | 4K Native or 512e.2 | ASM recommended. LVM supported. | No support for ASM on Windows. Change Log File disks from 4K Native to 512e. |
| Standard SSD | Not supported. | |||
| Standard HDD | Not supported. | |||
| Ultra Disk | Supported. | 4K Native | ASM recommended. LVM supported. | No support for ASM on Windows. Change Log File disks from 4K Native to 512e. |
| Network storage types | ||||
| Azure NetApp Files | Supported. | Oracle dNFS required. | Not supported. | |
| Azure files NFS | Not supported. | |||
| Azure files SMB | Not supported. |
1 Azure Premium SSD v2 doesn't have predefined storage sizes. There's no need to allocate multiple disks within an ASM disk group or LVM volume group. The recommendation is to allocate a single Premium SSD v2 with the required size, throughput, and IOPS per ASM disk group.
2 512e is supported on Premium SSD v2 for Windows systems. We don't recommend 512e configurations for Linux customers. Migrate to 4K Native by using the procedure in My Oracle Support (MOS) 512/512e sector size to 4K Native Review (Doc ID 1133713.1).
Other considerations that apply:
No support for
DIRECTIOwith 4K Native sector size. The recommended settings forFILESYSTEMIO_OPTIONSfor LVM configurations are:- LVM: If you use disks with 512/512e geometry, the setting is
FILESYSTEMIO_OPTIONS = SETALL. - LVM: If you use disks with 4K Native geometry, the setting is
FILESYSTEMIO_OPTIONS = ASYNC.
- LVM: If you use disks with 512/512e geometry, the setting is
Oracle 19c and later fully supports 4K Native sector size with both ASM and LVM.
Oracle 19c and later on Linux. When you move from 512e storage to 4K Native storage Log sector, you must change sizes.
For migration from 512/512e sector size to 4K Native Review (Doc ID 1133713.1), see the section "Offline Migration to 4-KB Sector Disks."
SAPInstwrites to thepfileduring installation. If$ORACLE_HOME/dbsis on a 4-K disk, setfilesystemio_options=asynchand see the section "Datafile Support of 4-KB Sector Disks" in "MOS Supporting 4K Sector Disks" (Doc ID 1133713.1).No support for ASM on Windows platforms.
No support for 4K Native sector size for Log volumes on Windows platforms. Premium SSD v2 and Ultra Disk must be changed to 512e via the Edit Disk pencil icon in the Azure portal.
4K Native sector size is supported only on Data volumes for Windows platforms. 4K isn't supported for Log volumes on Windows.
The following MOS articles provide more information:
- "Oracle Linux: File System's Buffer Cache versus Direct I/O" (Doc ID 462072.1)
- "Supporting 4K Sector Disks" (Doc ID 1133713.1)
- "Using 4K Redo Logs on Flash, 4K-Disk, and SSD-based Storage" (Doc ID 1681266.1)
- "Things to Consider for Setting filesystemio_options and disk_asynch_io" (Doc ID 1987437.1)
We recommend that you use Oracle ASM on Linux with ASMLib. Performance, administration, support, and configuration are optimized with deployment pattern. Oracle ASM and Oracle dNFS set the correct parameters or bypass parameters (such as FILESYSTEMIO_OPTIONS) and deliver better performance and reliability.
Storage configurations for SAP on Oracle on Windows
| Component | Disk | Host cache | Striping1 |
|---|---|---|---|
E:\oracle\\<SID\>\origlogA and mirrlogB |
Premium | None. | Not needed. |
F:\oracle\\<SID\>\origlogB and mirrlogA |
Premium | None. | Not needed. |
G:\oracle\\<SID\>\sapdata1...*n* |
Premium | None. | Recommended. |
H:\oracle\\<SID\>\oraarch2 |
Premium | None. | Not needed. |
I:\Oracle Home, saptrace, ... |
Premium | None | None. |
1 Striping: Windows Storage Spaces.
2 oraarch: Windows Storage Spaces is optional.
You must select disks for hosting Oracle's online redo logs based on IOPS requirements. It's possible to store all sapdata1...*n* (tablespaces) on a single mounted disk if the volume, IOPS, and throughput satisfy the requirements.
Storage configurations for SAP on Oracle on Linux
| Component | Disk | Host cache | Striping1 |
|---|---|---|---|
/oracle/\<SID\>/origlogA and mirrlogB |
Premium | None. | Not needed. |
/oracle/\<SID\>/origlogB and mirrlogA |
Premium | None. | Not needed. |
/oracle/\<SID\>/sapdata1...*n* |
Premium | None. | Recommended. |
/oracle/\<SID\>/oraarch2 |
Premium | None. | Not needed. |
Oracle Home, saptrace, ... |
Premium | None. | None. |
1 Striping: LVM stripe by using RAID0.
2 oraarch: LVM is optional.
You must select disks for hosting Oracle's online redo logs based on IOPS requirements. It's possible to store all sapdata1...*n* (tablespaces) on a single mounted disk if the volume, IOPS, and throughput satisfy the requirements.
SAP on Oracle on Azure with LVM
ASM is the default recommendation from Oracle for all SAP systems of any size on Azure. Performance, reliability, and support are better for customers when they use ASM. Oracle provides documentation and training for DBAs to transition to ASM. When the Oracle DBA team doesn't follow the recommendation from Oracle, Microsoft, and SAP to use ASM, use the following LVM configuration.
When you create an LVM, the -i option must be used to evenly distribute data across the number of disks in the LVM group. Mirror Log is required when you run LVM.
Oracle ASM
Checklist for Oracle ASM:
- All SAP on Oracle on Azure systems run ASM, including Development, Quality Assurance, and Production, for small, medium, and large databases.
- ASMLib is used and not
UDEVbecauseUDEVis required for multiple SANs. This scenario doesn't exist on Azure. - ASM should be configured for External Redundancy. Azure Premium SSD storage provides triple redundancy. Azure Premium SSD matches the reliability and integrity of any other storage solution. For optional safety, customers can consider Normal Redundancy for the Log disk group.
- Mirroring redo log files is optional for ASM 888626 - Redo log layout for high-end systems.
- ASM disk groups are configured as per Variant 1, 2, or 3.
- ASM allocation unit size = 4 MB (default). For very large database (VLDB) OLAP systems, such as SAP Business Warehouse, it might benefit from larger ASM allocation unit size. Change only after you confirm with Oracle support.
- ASM Sector Size and Logical Sector Size = default (
UDEVisn't recommended but requires 4K). - If the
COMPATIBLE.ASMdisk group attribute is set to11.2or greater for a disk group, you can create, copy, or move an Oracle ASMSPFILEinto the Oracle ACFS file system. Review the Oracle documentation about movingpfileinto ACFS. Notice thatSAPInstdoesn't create thepfilein ACFS by default. - The appropriate ASM variant is used. Production systems should use Variant 2 or 3.
Variant types
Note
You can set the Azure host disk cache for the DATA ASM disk group to either Read-only or None. Consider some of the new M(b)v3 VM types where the use of read cached Premium SSD v1 storage might result in lower Read and Write IOPS rates and throughput. You get better performance if you don't use Read cache on these VM types. Set all other ASM disk groups to None. On SAP Business Warehouse or Supply Chain Management, you can consider a separate ASM disk group for TEMP for large or busy systems.
In this example, a customer has small or medium-sized databases (up to 3 TB). You can accomplish the backup or restore of all databases by using Oracle Recovery Manager (RMAN) in a timely fashion when recovery time isn't critical. When a complete Oracle ASM disk group with data files from one or more databases is broken, you must restore all data files from all databases. Use RMAN to perform this restoration to a newly created Oracle ASM disk group.
Oracle ASM disk group recommendation:
| ASM disk group name | Stores | Azure Storage |
|---|---|---|
+DATA |
All data files Control file (first copy) Online redo logs (first copy) |
3-6 x P 30 (1 TiB) (To increase database size, add extra P30 disks.) |
+ARCH |
Control file (second copy) Archived redo logs |
2 x P20 (512 GiB) |
+RECO |
Control file (third copy) RMAN backups (optional) Recovery area (optional) |
2 x P20 (512 GiB) |
Oracle ASM disk groups
Part II of the official Oracle Guide describes the installation and management of ASM:
- Oracle ASM Administrator's Guide, 19c
- Oracle Grid Infrastructure Grid Infrastructure Installation and Upgrade Guide, 19c for Linux
The following ASM limits exist for Oracle Database 12c or later:
- 511 disk groups
- 10,000 ASM disks in a disk group
- 65,530 ASM disks in a storage system
- 1 million files for each disk group
For more information, see Performance and Scalability Considerations for Disk Groups (oracle.com).
Review the ASM documentation in the relevant SAP Installation Guide for Oracle.
Add space to ASM and Azure disks
You can extend Oracle ASM disk groups by either adding extra disks or extending current disks. We recommend that you add extra disks rather than extending existing disks. Review these MOS articles and the MOS Notes 1684112.1 and 2176737.1.
The following command adds an ASM disk to the disk group:
asmca -silent -addDisk -diskGroupName DATA -disk '/dev/sdd1'
ASM automatically rebalances the data. To check rebalancing, run this command:
ps -ef | grep rbal
Here's a sample output:
oraasm 4288 1 0 Jul28 ? 00:04:36 asm_rbal_oradb1
To learn more, see:
- Resize ASM Disk Groups Between Multiple Zones (aemcorp.com)
- RESIZING - Altering Disk Groups (oracle.com)
Monitor SAP on Oracle ASM systems on Azure
Run an Oracle Automatic Workload Repository (AWR) report as the first step when you troubleshoot a performance problem. Disk performance metrics are detailed in the AWR report.
You can monitor disk performance from inside Oracle Enterprise Manager and via external tools. For more information, see:
OS-level monitoring tools can't monitor ASM disks because there's no recognizable file system. You must monitor free space from within Oracle.
Azure NetApp Files with Oracle dNFS
The combination of Azure VMs and Azure NetApp Files is a robust and proven combination implemented by many customers on an exceptionally large scale.
Databases of 100+ TB are already running productively on this combination. For a detailed blog on how to set up this combination, see Deploy SAP AnyDB (Oracle 19c) with Azure NetApp Files - Microsoft Tech Community.
For more general information, see:
Mirror Log is required on dNFS Azure NetApp Files production systems.
Even though Azure NetApp Files is highly redundant, Oracle still requires a mirrored redo-logfile volume. The recommendation is to create two separate volumes and configure origlogA together with mirrlogB and configure origlogB together with mirrlogA. In this case, you make use of a distributed load balancing of redo-logfiles.
We don't recommend the mount option nconnect when the dNFS client is configured. dNFS manages the I/O channel and makes use of multiple sessions. This option is obsolete and can cause many issues. The dNFS client ignores the mount options and handles the I/O directly.
Both NFS versions (v3 and v4.1) with Azure NetApp Files are supported for Oracle binary data files and log files. We highly recommend that you use the Oracle dNFS client for all Oracle volumes.
We recommend the following mount options:
| NFS version | Mount options |
|---|---|
| NFSv3 | rw,vers=3,rsize=262144,wsize=262144,hard,timeo=600,noatime |
| NFSv4.1 | rw,vers=4.1,rsize=262144,wsize=262144,hard,timeo=600,noatime |
Azure NetApp Files backup
With Azure NetApp Files, some key features are available like consistent snapshot-based backups, low latency, and remarkably high performance. From version 6 of the AzAcSnap tool, you can configure Oracle databases for consistent database snapshots. For more information, see Azure Application Consistent Snapshot tool for Azure NetApp Files.
The snapshots remain on the actual data volume and must be copied away by using Azure NetApp Files cross-region replication (CRR) or other backup tools. For more information, see Cross-region replication of Azure NetApp Files.
Oracle configuration guidelines for SAP installations in Azure VMs on Windows
SAP on Oracle on Azure also supports Windows. The recommendations for Windows deployments are:
Use the following Windows releases:
- Windows Server 2022 (only from Oracle Database 19.13.0 on)
- Windows Server 2019 (only from Oracle Database 19.5.0 on)
Use Windows Storage Spaces to aggregate disks for optimal performance because ASM isn't supported on Windows.
Install Oracle Home on a dedicated independent disk. (Don't install Oracle Home on the
C:\drive.)Format all disks as NTFS.
Follow the Windows Tuning guide from Oracle and enable large pages, lock pages in memory, and make other Windows-specific settings.
At the time of writing ASM for Windows, customers on Azure aren't supported. Currently, the SAP Software Provisioning Manager for Windows doesn't support ASM.
Azure infrastructure: VM throughput limits and Azure disk storage options
Current recommendations for Oracle storage
- Azure Premium Storage: Most customers deploy on ASM with Premium Storage.
- Azure NetApp Files: VLDB customers, often with single Oracle databases larger than 50 TB, typically use Azure NetApp Files and Storage Snapshot capabilities of Azure NetApp Files for backup and restore.
- Managed disk bursting - Azure VMs.
- Write Accelerator: Used for the case that the Oracle redo log is based on Premium SSD v1 disks.
- Online disk extension: Fully supported for Premium Storage v1 and works with ASM.
You can improve log write times on Azure M-Series VMs by enabling Write Accelerator. Enable Write Accelerator for the Premium SSD storage disks used by the ASM disk group for online redo log files. For more information, see Write Accelerator.
Using Write Accelerator is optional, but you can enable it if the AWR report indicates that log write times are higher than expected.
Azure VM throughput limits
Each Azure VM type has limits for CPU, disk, network, and RAM.
Follow these recommendations when you select a VM type:
- Ensure that the disk throughput and IOPS are sufficient for the workload and at least equal to the aggregate throughput of the disks.
- Consider enabling paid bursting, especially for redo log disks.
- Recognize that network throughput is important for Azure NetApp Files. All storage traffic is counted as network rather than disk throughput.
- Review Optimizing Network Throughput on Azure M-series VMs HCMT for network tuning for M-series.
- Review Architectures for Oracle Database Enterprise Edition on Azure to learn how to use an AWR report to select the correct Azure VM.
- Learn about Azure Intel Ev5 Edv5 and Edsv5-series - Azure VMs.
- Learn about Azure AMD Eadsv5 Easv5 and Eadsv5-series - Azure VMs.
- Learn about Azure M-series/Msv2-series M-series - Azure VMs and Msv2/Mdsv2 Medium Memory Series - Azure VMs.
- Learn about Azure Mv2 Mv2-series - Azure VMs.
Backup and restore
For backup/restore functionality, the SAP BR*Tools for Oracle are supported in the same way as they are on bare metal and Hyper-V. RMAN is also supported for backups to disk and restores from disk.
For more information about how you can use Azure Backup and recovery services for Oracle databases, see Azure Backup and Back up and recover an Oracle database on an Azure Linux VM by using Azure Backup.
High availability
Oracle Data Guard is supported for high availability and disaster recovery purposes. To achieve automatic failover in Data Guard, you need to use Fast-Start Failover (FSFA). The Observer functionality (FSFA) triggers the failover. If you don't use FSFA, you can only use a manual failover configuration. For more information, see Implement Oracle Data Guard on an Azure Linux VM.
For disaster recovery aspects of Oracle databases in Azure, see Disaster recovery for an Oracle Database 12c database in an Azure environment.
HugePages and large Oracle SGA configurations
VLDB SAP on Oracle on Azure deployments apply SGA sizes in excess of 3 TB. Modern versions of Oracle handle large SGA sizes well and significantly reduce I/O. Review the AWR report and increase the SGA size to reduce read I/O.
As general guidance, configure Linux HugePages to approximately 75% of the VM RAM size. You can set the SGA to 90% of the HugePage size. For an approximate example, an M192ms VM with 4 TB of RAM would have HugePages set at approximately 3 TB. You can set the SGA to a value that's a little less, such as 2.95 TB.
Large SAP customers running on High-Memory Azure VMs benefit from HugePages. For more information, see Oracle HugePages configuration steps.
Non-Uniform Memory Access (NUMA) systems vm.min_free_kbytes should be set to 524288 (number of NUMA nodes). To learn more, see Oracle Linux: Recommended value of vm.min_free_kbytes Kernel Tuning Parameter (Doc ID 2501269.1....
Training resources on Oracle ASM
For Oracle DBAs who aren't familiar with Oracle ASM, see these training materials and resources:
- SAP on Oracle with ASM on Microsoft Azure - Part 1
- Oracle19c DB ASM installation on [Oracle Linux 8.3 | Grid | ASM | UDEV | OEL 8.3 | VMware]
- ASM Administrator's Guide (oracle.com)
- Oracle for SAP Development Update (May 2022)
- Performance and Scalability Considerations for Disk Groups (oracle.com)
- Migrating to Oracle ASM with Oracle Enterprise Manager
- Using Recovery Manager (RMAN) to migrate to ASM
- What is Oracle ASM to Azure IaaS?
- ASM Command-Line Utility (ASMCMD)
- Useful asmcmd commands - DBACLASS
- Installing and Configuring Oracle ASMLIB Software
Oracle Linux utilities
Oracle Linux provides a useful GUI management utility:
- Oracle web console Oracle Linux: Install Cockpit Web Console on Oracle Linux.
- Upstream Cockpit Project.
Oracle Linux has the new package management tool, DNF:
- Oracle Linux 8: Package Management made easy with free videos
- Oracle Linux 8 Managing Software on Oracle Linux - Chapter 1 Yum DNF
You can test and benchmark memory and NUMA configurations with Oracle Real Application Testing:
- Oracle Real Application Testing: What Is It and How Do You Use It?
- Oracle ASM in Azure corruption
- Data corruption on Hyper-V or Azure when running Oracle ASM - Red Hat Customer Portal
- Set up Oracle ASM on an Azure Linux VM
Related content
To learn more about Oracle on Windows, see:
- Overview of Windows Tuning (oracle.com)
- Post installation Configuration Tasks on Windows (oracle.com)
- SAP on Windows Presentation (oracle.com)
- 2823030 - Oracle on MS WINDOWS Large Pages
To learn more about SAP Azure VM DBMS deployments, see Considerations for Azure VMs DBMS deployment for SAP workload.