SAP MaxDB User Guide
Version control
Version | Revision date | Change type | Effective date |
1.0 | 2018/7/19 |
Overview
This guide describes best practices for running SAP MaxDB systems deployed on Alibaba Cloud. This guide does not replace any standard SAP documentation.
Management
This section describes common management tasks for SAP MaxDB systems on Alibaba Cloud, including starting, stopping, and cloning systems.
Start and stop ECS instances
You can stop any SAP MaxDB host at any time. As a best practice, stop the SAP MaxDB system running on your Alibaba Cloud ECS instance before you stop the instance. When you restart the instance, it automatically uses the same IP address, network, and storage configuration as before.
Create a custom image for SAP MaxDB
Custom images on Alibaba Cloud allow you to create multiple ECS instances with identical operating systems and environment data to meet scaling needs. You can create a custom image from an existing instance using the Alibaba Cloud console. For more information, see the “Create a custom image from a snapshot” section in the Alibaba Cloud documentation. You can use custom images to perform the following operations:
Create a full offline backup of your SAP MaxDB system, including the OS, /usr/sap, data, logs, and backup files.
Create new ECS instances or replace the system disk of an existing ECS instance.
Move your SAP MaxDB system from one region to another. Create an image of your existing Alibaba Cloud ECS instance and copy it to another region by following the instructions in the Alibaba Cloud documentation. You can also copy a custom image to another region to maintain consistent deployments across regions.
Clone your SAP MaxDB system. You can create an image of your existing SAP MaxDB system to produce an exact clone. For more information, see the next section. Note: To create a consistent-state image of your SAP MaxDB system, you must stop the SAP MaxDB instance first.
Clone an SAP MaxDB system
To clone an SAP MaxDB system, you can create an image of the system in Alibaba Cloud ECS within the same zone. The image typically includes the operating system, preinstalled SAP MaxDB software, and the same storage layout.
Account management
Three types of administrator accounts are used when you manage SAP MaxDB systems on Alibaba Cloud:
Alibaba Cloud account. You must create an Alibaba Cloud account on the Alibaba Cloud website before you use Alibaba Cloud products and services. You can use this account to manage ECS instances, configure VPCs, and manage images or snapshots of your SAP MaxDB system.
ECS instance administrator account. An administrator account (typically root) is created at the OS level when you create an ECS instance. Alibaba Cloud does not create any OS-level accounts. The default Linux user is root. You can create or delete user accounts as needed for your OS.
SAP MaxDB database system administrator. During SAP MaxDB installation, you specify a system ID (SID). SAP MaxDB creates a system account named [sid]adm by default.
Networking
You can deploy SAP MaxDB systems on Alibaba Cloud using ECS virtual networks. We strongly recommend that you use VPC as the default network type for SAP MaxDB. A VPC is a private network that is built on Alibaba Cloud. It is logically isolated from other virtual networks on Alibaba Cloud. With a VPC, you can launch and use Alibaba Cloud resources inside your own network. You have full control over your VPC. For example, you can choose its IP address range, divide it into subnets, and configure route tables and gateways. For more information, see the VPC User Guide in the Alibaba Cloud documentation. You can also connect your VPC to your on-premises network using a physical connection or VPN to build a customizable network environment. This lets you migrate applications to Alibaba Cloud smoothly.
Security isolation
By default, cloud servers for different users reside in separate VPCs.
Different VPCs are isolated using tunnel IDs. You can segment a VPC into subnets using virtual switches and virtual routers, which is similar to how you segment traditional networks. Cloud servers in the same subnet communicate using a virtual switch. Cloud servers in different subnets of the same VPC communicate using a virtual router.
Private networks between different VPCs are fully isolated. They can connect only through external IP mappings, such as elastic IP addresses (EIPs) and NAT IP addresses.
Tunnel IDs encapsulate IP packets from cloud servers. As a result, traffic at the data-link layer (Layer 2), which is based on MAC addresses, never reaches the physical network. Therefore, Layer 2 networks for different cloud servers are isolated. In other words, Layer 2 networks across different VPCs are isolated.
ECS instances in a VPC use security groups to control network access. This provides Layer 3 isolation.
NAT Gateway
If your security policy requires VMs to be completely internal, you must manually set up a NAT proxy and corresponding routes on your network to allow the VMs to access the internet. Note that you cannot connect directly to fully internal VM instances using SSH. To connect to such internal VMs, you must set up a bastion instance that has an external IP address and tunnel through it. For instructions on how to set up a bastion instance, see the SAP MaxDB Deployment Guide in the Alibaba Cloud documentation.
When VMs do not have external IP addresses, they are accessible only by other VMs on the same network or through a managed VPN Gateway. You can deploy VMs in your network to act as trusted relays for inbound connections (called Bastionhost) or as network egress points (called NAT Gateway). For more transparent connectivity without setting up these components, you can use a managed VPN Gateway resource.
Security groups
A security group is a logical grouping of instances that are in the same region, share the same security requirements, and trust each other. Each instance belongs to at least one security group. You must specify a security group when you create an instance. Instances in the same security group can communicate over the network. By default, instances in different security groups cannot communicate over the private network. However, you can authorize communication between two security groups.
A security group is a virtual firewall that performs stateful packet inspection (SPI). Security groups control network access for one or more ECS instances. As a key method of security isolation, security groups define security domains in the cloud. For more information, see the Security Group User Guide in the Alibaba Cloud documentation.
Use SAProuter to allow SAP support access
SAProuter is a software application that enables remote connections between a customer network and SAP. In some cases, you may need to allow SAP support engineers to access your SAP MaxDB system on Alibaba Cloud. The only prerequisite for using SAProuter is network connectivity from your customer network to the SAP network. To set up a direct support connection from your Alibaba Cloud ECS instance to SAP, you can perform the following steps:
Start the ECS instance where SAProuter is installed. You can purchase an elastic IP address (EIP) and bind it dynamically to your VPC ECS instance without the need to restart the instance.
Create and configure a dedicated security group that allows inbound and outbound access on TCP port 3299 only for the SAProuter instance and SAP support networks.
Install the SAProuter software as described in SAP Note 1628296. Create a saprouttab file that allows SAP to access your SAP MaxDB system on Alibaba Cloud.
Set up the connection to SAP. For internet connections, you can use Secure Network Communications (SNC). For more information, see SAP Remote Support – Help.
Security
For IaaS deployments and SAP MaxDB system implementations, Alibaba Cloud maintains the security of the underlying cloud infrastructure. Customers are responsible for securing their cloud resources and applications.
The following Alibaba Cloud security resources help you achieve the required security level for your SAP MaxDB environment on Alibaba Cloud.
Resource Access Management (RAM)
Alibaba Cloud RAM is an identity and access management service. It lets you centrally manage users, such as employees, systems, and applications, and securely control their access to your resources based on permission levels. RAM lets you grant access to Alibaba Cloud resources only to selected high-privilege users, enterprise members, and partners. This helps ensure secure and appropriate use of your cloud resources and prevents unauthorized access to your account. For more information, see the Resource Access Management (RAM) User Guide in the Alibaba Cloud documentation.
Access notifications
The Alibaba Cloud Message Hub allows users to subscribe to notifications and configure notification channels, such as email and text messages. Users receive notifications for SSH logons to their servers.
Server Guard
Alibaba Cloud Server Guard is a reliable and secure service that provides real-time monitoring for servers and databases. Continuous monitoring of exposed vulnerabilities ensures optimal availability for your services and applications. For more information, see the Server Guard User Guide in the Alibaba Cloud documentation. Key features include the following:
Real-time monitoring of common web software vulnerabilities across your entire network.
Access to Alibaba Cloud Security emergency vulnerability response capabilities, including early vulnerability patches that are released before official patches.
One-click vulnerability fixes and cyberattack blocking during the window between vulnerability exposure and official patch release.
Backup and recovery
Backups are critical for protecting mission-critical systems. You can schedule regular backups during low SAP MaxDB workload periods. Backups allow you to recover from unexpected system failures. The following are key considerations for backup and recovery on Alibaba Cloud.
Final backup target for SAP MaxDB on Alibaba Cloud
The main difference between backing up SAP MaxDB on Alibaba Cloud and backing up traditional on-premises infrastructure is the final backup target. For on-premises infrastructure, the typical final backup target is tape. On Alibaba Cloud, backups are stored in OSS. Storing backups in Alibaba Cloud OSS offers many benefits over tape, including unlimited read, write, delete, and storage operations on objects in an OSS bucket. OSS stores three copies of your objects across multiple locations to ensure 99.999999999% data reliability. Built-in security mechanisms include multilayer security protection, monitoring of unauthorized logon attempts, DDoS attack protection, and data access policies.
By default, SAP MaxDB ECS instances on Alibaba Cloud are configured to use cloud disks as the initial local backup target for SAP MaxDB databases. SAP MaxDB backups are first stored on these local cloud disk volumes and then copied to OSS for long-term storage.
Manage identities and backup access
To allow access to backups that are stored in an OSS bucket, you can configure access rules for users in the RAM console. You can perform the following steps:
Select the user to whom you want to grant OSS access and click Authorize.
Select the AliyunOSSFullAccess authorization policy.
As the account owner, enter the Captcha that is sent to your mobile phone for verification.
After mobile verification, you can view the granted permissions in the policy management panel.
You can also create custom policies from the policy management panel.
Backup and recovery for non-production SAP MaxDB databases
This section covers backup options for non-production systems. Examples of non-production systems include the following:
Demonstration system
Training System
Sandbox system
Proof-of-concept system
Typical non-production system requirements:
Infrequent backups
No point-in-time recovery requirement
Low cost
Cloud disk snapshots provide a simple, low-cost backup service that is suitable for non-production systems. Snapshot policies are highly flexible. For example, you can take snapshots on the hour or multiple times per day. You can select specific days of the week for weekly snapshots. You can set a snapshot retention period or choose to retain snapshots permanently. Note that when the maximum number of automatic snapshots is reached, the oldest automatic snapshot is deleted. For more information about cloud disk snapshots, see Snapshot overview. Before you use cloud disk snapshots for backups, review SAP Note 1928060 – Data backup and recovery with file system backup. Specific prerequisites must be met before you take disk snapshots.
Backup method
You can configure automatic snapshots for cloud disk volumes that are attached to your SAP MaxDB ECS instance, including the system disk (/usr/sap), data file system, and log file system.
Recovery method
You can use snapshots to manually restore an entire SAP MaxDB ECS instance for non-production systems.
Backup and recovery for production SAP MaxDB databases
The backup options in this section meet common production system requirements:
Regular scheduled backups
Point-in-time database recovery
Backup method
By default, on the Alibaba Cloud platform, the initial local backup target for SAP MaxDB databases is configured on cloud disk volumes that are attached to your SAP MaxDB ECS instance.
You can start or schedule SAP MaxDB data backups using SQL commands or the SAP DBA Cockpit. Log backups are written automatically unless this feature is disabled.
You can copy SAP MaxDB database backup files from local cloud disks to Alibaba Cloud OSS for long-term storage.
If cross-region redundancy is required, you can configure OSS backups to replicate to another region.
Recovery Method
Copy the backup files from OSS to the cloud disk in the backup directory of your SAP MaxDB ECS instance.
Restore and recover your SAP MaxDB database from the backup files on the backup cloud disk.