1950261 - SAP HANA Database Backup Policy Recommendations and Regular Backup Script
=====Symptom
For SAP Business One, version for SAP HANA users, SAP HANA provides a range of database backup and recovery functions. You must follow the instructions in the SAP HANA Administration Guide at http://help.sap.com/hana_appliance to back up your database.
This note offers additional recommendations on developing a backup policy for your SAP HANA database. Besides, you can use the attached script to enable regular auto-backup.
======Solution
Recommended Backup Policy:
Note: The attached script supports SAP HANA SPS 06 and above.
Note: For a fully automated backup solution, please use the SAP Business One RSP backup solution.
Note: If you intend to use a non-default path as the backup location,you should ensure the backup folders have the following privileges.
• The folder's owner is the sid user (e.g. ndbadm) and the user group is sapsys.
• The folder's privilege is 771.
You can change the backup folder path by performing the following steps:
- Log on to Linux server as root and execute the below commands to grant the privileges:
• chown :sapsys Example: chown ndbadm:sapsys
• chmod 771 - In SAP HANA studio, navigate to → Configuration → Global.ini → persistence → basepath_databackup or basepath_logbackup and update the path information.
- Restart SAP HANA database
- Make the following preparations:
o Create a backup user with the BACKUP OPERATOR system privilege and create a user key in the user store, as below: - In the SQL console of the SAP HANA studio, execute the following SQL statements as an administrative user (e.g. SYSTEM):
create user password "";
alter user DISABLE PASSWORD LIFETIME;
grant backup operator to ; Log on to the Linux server as the ndbadm user and execute the following command in a terminal:
hdbuserstore set USER4BACKUP localhost:315
Example: hdbuserstore set USER4BACKUP localhost:30015 BackupUser Initial0
o Determine the oldest data backup that you want to retain on your SAP HANA server.
For example, your average data backup set is 8 GB per day and 400 GB of disk space is allocated to the SAP HANA server. Then we recommend that you retain backups of the past 2 weeks and no more than 3 weeks. In this case, your backups on the SAP HANA server are no more than 160 GB (approximately 20 days' backup sets).
o Make sure that the sid user (e.g. ndbadm) has the privilege to execute crontab.- Do the following to set up a regular automatic backup schedule:
Copy the attached shell file BackupScript.sh (unzipped) to the home directory of the sid user (e.g. /usr/sap/NDB/HDB00/).
- Schedule the backup job in cron as the sid user (e.g. ndbadm), using the command crontab -e.
Example:
30 05 * * * /usr/bin/sh /usr/sap/NDB/HDB00/BackupScript.sh 2>> /usr/sap/NDB/HDB00/backup.log
The backup job is scheduled to run at 5:30 a.m. each day. - Perform the following administrative tasks every day or based on your backup schedule:
o Check backup.log under the home directory of the sid user (e.g. /usr/sap/NDB/HDB00/).
o Check the latest backup and store a copy on an external location, as below: - In the SAP HANA studio, double-click the Backup folder under your system.
- In the Backup editor, on the Backup Catalog tab, check the status of the appropriate backup (see the attachment BackupStatus.png).
- Copy the backup to a storage location or medium somewhere other than the SAP HANA server.
You can find the backup's current location in the backup details as well (see the attachment BackupStatus.png).
o Delete all backups that are beyond the determined time point to ensure that there is enough space for SAP HANA database's normal operations, as below: - In the Backup editor, on the Backup Catalog tab, right-click the oldest backup that you want to retain and select Delete Older Backups.
- In the Backup Deletion of System xxx window, on the Specify Backup Deletion Settings page, select Catalog and backup location and File system (see the attachment BackupDeletion.png), and then choose the Next button.
- On the Review Backup Deletion Settings page, choose the Finish button.
Confirm the deletion.
SAP HANA starts deleting selected data in the background. You can continue with other operations.Perform the following administrative tasks on a regular basis as appropriate:
o Check the backup.log file to monitor backup activities. This file is generated in the same storage place as the script.
o Delete backup copies on external storage that are old enough.
1950261 - SAP HANA Database Backup Policy Recommendations and Regular Backup Script的更多相关文章
- Oracle GoldenGate 支持 从SAP HANA database抽取或者复制数据到SAP HANA database 吗?
Oracle GoldenGate 支持 从SAP HANA database抽取或者复制数据到SAP HANA database 吗? 来源于: Does Oracle GoldenGate Su ...
- 2101244 - FAQ: SAP HANA Multitenant Database Containers (MDC)
Symptom You face issues or have questions related to multitenant database containers in SAP HANA env ...
- 2690036 - SAP HANA 2.0 SPS 03 Database Revision 034
Symptom This is the SAP Release Note for SAP HANA 2.0 Database Revision 034 (2.00.034.00) of the SAP ...
- SAP NOTE 1999997 - FAQ: SAP HANA Memory
Symptom You have questions related to the SAP HANA memory. You experience a high memory utilization ...
- SAP HANA学习资料大全[非常完善的学习资料汇总]
Check out this SDN blog if you plan to write HANA Certification exam http://scn.sap.com/community/ha ...
- 1732157 - Collecting diagnosis information for SAP HANA [VIDEO]
Symptom SAP Support asked you to provide a collection of the relevant diagnosis files (also known as ...
- 【转】SAP HANA学习资料大全[非常完善的学习资料汇总]
Check out this SDN blog if you plan to write HANA Certification exam http://scn.sap.com/community/ha ...
- 利用Veeam保护SAP HANA数据库
利用Veeam保护SAP HANA数据库 前言 针对越来越多的SAP HANA备份需求,我们Team翻译.整理.借鉴了Veeam 的SAP HANA 大神 Clemens Zerbe 和 Ali Sa ...
- SAP HANA学习资料大全 Simple Finane + Simple Logisitic [非常完善的学习资料汇总]
Check out this SDN blog if you plan to write HANA Certification exam http://scn.sap.com/community/ha ...
随机推荐
- 《JavaScript设计模式与开发》笔记 2.this指针
1.作为对象方法调用 2.作为普通函数调用 1.作为普通函数进行调用 2.将函数赋值给一个对象 3.callback内部的this指向了window 4.解决callback内部的this问题 3.构 ...
- 关于HTML元素点击的时候,背景颜色秒进,缓缓退出的方法
废话不多说,上代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset=" ...
- 当弹出的div失去焦点的时候自动隐藏
jquery: $("#button").click(function(event){ $("#box").show(); event.stopPropagat ...
- "上市时间: 2014年秋冬季" unicode十进制编码转中文
"上市时间: 2014年秋冬季" unicode十进制编码转中文 System.Web.HttpUtility.HtmlDecode(tmp);
- C#对Mongodb数组对象操作
Mongo对数据的存储非常随意,需要修改对象中的数组对象时,就会变得比较复杂. 类中的类对象可以直接通过“.”例如:Department.User.name 类中的对象User是数组时可以用Depar ...
- sql server 2008 R2 备份还原到sql 2012
从sql server 2008 r2备份的在sql server 2012中还原时一直读不到备份文件,然后把2008r2备份文件放到sql 2012的安装路径对应的Backup文件夹后可以读到了,不 ...
- go语言学习--指针数组和数组指针
数组指针(也称行指针)定义 int (*p)[n];()优先级高,首先说明p是一个指针,指向一个整型的一维数组,这个一维数组的长度是n,也可以说是p的步长.也就是说执行p+1时,p要跨过n个整型数据的 ...
- python面向对象:类空间,对象空间, 组合
一. 类空间,对象空间 1. 类空间,对象空间 创建一个类就会创建一个类的名称空间,用来存储类中定义的所有名字,这些名字称为类的属性 而类有两种属性:静态属性和动态属性 静态属性就是直接在类中定义的变 ...
- 不同版本Eclipse对JDK版本要求
原文:https://blog.csdn.net/kevin_pso/article/details/54971739 1.Eclipse 4.6 (Neon)---需要JDK1.8版本,官网解释如下 ...
- 解决sql中上下左右backspace不能用的方法
一. 解决输入 BACKSPACE 键变成 ^h 的问题 #su - oracle $stty erase ^h. 要永久生效,可以加入到用户环境配置文件 .bash_profile 中 , 加入如下 ...