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 ...
随机推荐
- phpmailer使用qq邮箱、163邮箱成功发送邮件实例代码
以前使用qq邮箱.163服务器发送邮件,帐号直接使用密码,现在不行了,得使用授权码,简单记录下 1.首先开通POP3/SMTP服务,qq邮箱——帐号——设置,找到POP3/SMTP点开启,输入短信会有 ...
- golang语言并发与并行——goroutine和channel的详细理解(一) 转发自https://blog.csdn.net/skh2015java/article/details/60330785
如果不是我对真正并行的线程的追求,就不会认识到Go有多么的迷人. Go语言从语言层面上就支持了并发,这与其他语言大不一样,不像以前我们要用Thread库 来新建线程,还要用线程安全的队列库来共享数据. ...
- ALGO-141_蓝桥杯_算法训练_P1102
定义一个学生结构体类型student,包括4个字段,姓名.性别.年龄和成绩.然后在主函数中定义一个结构体数组(长度不超过1000),并输入每个元素的值, 程序使用冒泡排序法将学生按照成绩从小到大的顺序 ...
- C++进阶--placement new/delete
//############################################################################ // Placement New 和 Pl ...
- 【Mysql+shell】查询结果导出到文件,文件数据导入到数据库
Shell: 执行Mysql查询,并将查询结果导出到文件 直接使用Mysql执行查询 mysql> use xxx_dbName; mysql> select * from log_06 ...
- ylbtech-Java-Runoob-高级教程-实例-数组:15. Java 实例 – 判断数组是否相等
ylbtech-Java-Runoob-高级教程-实例-数组:15. Java 实例 – 判断数组是否相等 1.返回顶部 1. Java 实例 - 判断数组是否相等 Java 实例 以下实例演示了如 ...
- blog决定不用二级域名,改为二级目录
看了一篇文章,受益匪浅,到底是用二级域名还是二级目录?已转载到得闲佬设计. 分析了一下得闲佬设计的因素,因为得闲佬设计是小站,流量很小,而且更新文章频率也不大,没必要把流量分出去做一个独立的站点 所以 ...
- PHP程序员的进阶之路
第1阶段:初级PHP程序员 重点:把LNMP搞熟练(核心是安装配置基本操作)目标:能够完成基本的LNMP环境安装,简单配置维护:能够做基本的简单系统的PHP开发:能够在PHP中型系统中支持某个PHP功 ...
- phpmyadmin在nginx环境下配置错误
location ~ \.css { add_header Content-Type text/css; } location ~ \.js { ...
- CRM 插件导出
CRM插件注册一般有三种方式, 1 database 2 disk 3 GAC 如果注册到disk 应该在会在 C:\Program Files\Microsoft Dynamics CRM\Se ...