=====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:

  1. Log on to Linux server as root and execute the below commands to grant the privileges:
    • chown :sapsys Example: chown ndbadm:sapsys
    • chmod 771
  2. In SAP HANA studio, navigate to → Configuration → Global.ini → persistence → basepath_databackup or basepath_logbackup and update the path information.
  3. Restart SAP HANA database
  4. 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:
  5. 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 ;
  6. 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.

  7. Do the following to set up a regular automatic backup schedule:
  8. Copy the attached shell file BackupScript.sh (unzipped) to the home directory of the sid user (e.g. /usr/sap/NDB/HDB00/).

  9. 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.
  10. 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:
  11. In the SAP HANA studio, double-click the Backup folder under your system.
  12. In the Backup editor, on the Backup Catalog tab, check the status of the appropriate backup (see the attachment BackupStatus.png).
  13. 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:
  14. In the Backup editor, on the Backup Catalog tab, right-click the oldest backup that you want to retain and select Delete Older Backups.
  15. 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.
  16. On the Review Backup Deletion Settings page, choose the Finish button.
  17. Confirm the deletion.
    SAP HANA starts deleting selected data in the background. You can continue with other operations.

  18. 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的更多相关文章

  1. Oracle GoldenGate 支持 从SAP HANA database抽取或者复制数据到SAP HANA database 吗?

    Oracle GoldenGate 支持 从SAP  HANA database抽取或者复制数据到SAP HANA database 吗? 来源于: Does Oracle GoldenGate Su ...

  2. 2101244 - FAQ: SAP HANA Multitenant Database Containers (MDC)

    Symptom You face issues or have questions related to multitenant database containers in SAP HANA env ...

  3. 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 ...

  4. SAP NOTE 1999997 - FAQ: SAP HANA Memory

    Symptom You have questions related to the SAP HANA memory. You experience a high memory utilization ...

  5. SAP HANA学习资料大全[非常完善的学习资料汇总]

    Check out this SDN blog if you plan to write HANA Certification exam http://scn.sap.com/community/ha ...

  6. 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 ...

  7. 【转】SAP HANA学习资料大全[非常完善的学习资料汇总]

    Check out this SDN blog if you plan to write HANA Certification exam http://scn.sap.com/community/ha ...

  8. 利用Veeam保护SAP HANA数据库

    利用Veeam保护SAP HANA数据库 前言 针对越来越多的SAP HANA备份需求,我们Team翻译.整理.借鉴了Veeam 的SAP HANA 大神 Clemens Zerbe 和 Ali Sa ...

  9. 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 ...

随机推荐

  1. Python3中Urllib库基本使用

    什么是Urllib? Python内置的HTTP请求库 urllib.request          请求模块 urllib.error              异常处理模块 urllib.par ...

  2. linux lftp

    1.登录 lftp 用户名@站点 口令: 例如: lftp jiangzhaowei@192.168.199.73 口令:****** lftp jiangzhaowei@192.168.199.73 ...

  3. esp8266尝鲜

    请将当前用户添加到dialout组,否则会提示打开/dev/ttyUSB0权限不足 sudo usermod -a -G dialout `whoami` dmeg查看驱动安装信息 dmesg | g ...

  4. seo一些相关内容

    PR值算法原理总体上基于下面2个前提: 1.一个网页被多次引用,则它可能是很重要的: 一个网页虽然没有被多次引用,但是被重要的网页引用,则它也可能是很重要的:一个网页的重要性被平均的传递到它所引用的网 ...

  5. json server的简单使用(附:使用nodejs快速搭建本地服务器)

    作为前端开发人员,经常需要模拟后台数据,我们称之为mock.通常的方式为自己搭建一个服务器,返回我们想要的数据.json server 作为工具,因为它足够简单,写少量数据,即可使用. 安装 首先需要 ...

  6. input输入框type=number时的一个缺陷

    本来是在vue里发现获取不到 input[ type="number"]的值,就是输入两个小数点的数值,比如1.1.1,以为是vue的错误,然而不是,vue只做了数字处理 不明白为 ...

  7. bzoj3815: 卡常数

    随机数据,带修改,求到空间中到给定点距离为给定值的点的编号,唯一解. 建三维kdtree,对查询用可行性剪枝在树上找,由于数据随机,插入删除时不需要维护平衡. #include<bits/std ...

  8. 峰Redis学习(9)Redis 集群(概述)

    第一节:Redis 集群概述 redis cluster是去中心化,去中间件的,也就是说,集群中的每个节点都是平等的关系,都是对等的,每个节点都保存各自的数据和整个集群的状态.每个节点都和其他所有节点 ...

  9. nodejs选择JavaScript作为开发语言,是因为一般的开发语言的标准库都是带有IO模块的,并且通常这个 模块是阻塞性的,所以nodejs选择了没有自带IO模块的Javascript

    Javascrip本身不带IO功能,nodejs选择JavaScript作为开发语言,是因为一般的开发语言的标准库都是带有IO模块的,并且通常这个 模块是阻塞性的,所以nodejs选择了没有自带IO模 ...

  10. Java-Runoob-高级教程-实例-数组:16. Java 实例 - 数组并集

    ylbtech-Java-Runoob-高级教程-实例-数组:16. Java 实例 - 数组并集 1.返回顶部 1. Java 实例 - 数组并集  Java 实例 以下实例演示了如何使用 unio ...