SAP HANA Guide 2
-
Upload
rahulpatchi -
Category
Documents
-
view
223 -
download
0
Transcript of SAP HANA Guide 2
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 1/13
2013
SAP HANA Operations Guide
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 2/13
Contents
About this guide Error! Bookmark not defined.
SNET SAP Hana Database Backup procedureError! Bookmark not defined.
User Creation 6
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 3/13
[Type text]
HANA Database data and log files, including the configuration files can be backed up directly from the
Hana Studio. The user used to perform the backup and recovery should have system privileges such as
BACKUP_ADMIN, CATALOG_READ.BACKUP_ADMIN, CATALOGREAD.
The backup process is executed as operating system user <sid>adm on Linux
Also below are some of the points to be noted, regarding the HANA database backup.and recovery
Data backup in only available in operational mode online
During data backup, the system is available as usual
The backup and recovery process cannot be used for system copies.
Backup only supports files as backup media. Backup to pipes/tapes is not supported.
Once started, backup cannot be canceled
The configuration path for data and log backup must be defined system wide and not host-
specific
To start the database backup, perform the following steps.
1. In Hana studio login with the user who has the above mentioned backup privileges
2. Right click on the system and select backup, as shown below
3. In the next screen, mention the location to write the backup file. An external NFS media is connected
to the network. This NFS media is mounted as /data in the linux file system of HANA server. Use this
file mount to store backup file. Under the folder /data/<Hana appliance> create a folder with name as
backup_<current data>_<current time>. Also mention backup file prefix, eg.
COMPLETE_DATA_BACKUP, as shown below.
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 4/13
[Type text]
4. Click next and review the backup settings as shown below
5. Click Finish to start the backup. Backup progess windows appears as shown below
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 5/13
[Type text]
6. Once backup is successful, backup execution summary displays the results as shown below.
7. Once the backup is done, the log files has to be copied to the NFS file system as well. Proceed as
follows.
- login to the HANA Linux operating system with the <sid>adm password
- Browse to the folder of last log backup and execute the command ‘ls –ltr’ as shown below
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 6/13
[Type text]
- Note down the recent file and recent date. For eg in the screen shot below Oct 29, 12:59 was the
recent file which was backed up to the nfs media. Note down this time stamp.
- Browse to the folder where the actual logs are stored, which is
/usr/sap/<SID>/HDB<instancenumber>/backup/log. Copy all the file in this log folder upto the file with
timestamp noted in above step. This can be done by calculating the difference in number of days between
the most recent log file in the /usr/sap/<SID>/HDB<instancenumber>/backup/log folder and most recent
log file backed up in /data/<HANA Applicance>/backup_<lastrecentdate>_<lastrecenttime> folder. Once
the number of days is calculated the command to copy is as below.
find /usr/sap/<SID>/HDB<instancenumber>/backup/log * -mtime -<numberofdays> -exec cp –p {}
/data/<hana appliance>/backup_<currentdate>_<currenttime> \;
Please note couple of points
- the above copy will take a little longer depending on number of files
- please don’t delete any logs from original location after or before copy. Delete will crash the system
8. Copy the global and host configuration files as explained below
- create a folder called global and host under the backup folder created. Please see screenshot below
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 7/13
[Type text]
- copy all global ‘.ini’ files from /usr/sap/<SID>/SYS/global/hdb/custom/config to the globalconfig folder
created above. Eg screen shot shown below
- copy all host ‘.ini’ file from /usr/sap/<SID>/HDB<instancenumber>/<hostnamefolder> to the host folder
created above. Eg screen shot shown below
USER CREATION:
SAP HANA STUDIO:
1. HANA Studio need to be downloaded from Service Market Place (www.service.sap.com)
https://websmp107.sap-ag.de/hana Select Software downloads
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 8/13
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 9/13
[Type text]
Messages and context information: This screen area contains error and information messages, as well as context-related information
for editors and views (such as properties).
Managing Multiple HANA Systems:
Adding SystemsTo continue with administrative tasks on SAP HANA Studio , we need to add the systems to
Navigator. Servers that need to be access by Hostname or IP address.Before adding a system to navigator we need to open the relevant firewall ports to access the
HANA database.Procedure In the Context Menu of the Navigator, right click on empty space as below screen
Select Add system to add the HANA system to HANA studio.Provide the below information
a) Hostname : Hostname or IP address where HANA DB Installed
b) Instance Number : For ex: 00 or 01
c) Description : Description of your choice
Authentication will be carried out when you click on Next, Please provide the Database user and
its credentials
Ex: User SYSTEM is created default while HANA DB is installed. This user should not be used
for daily operational activities.
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 10/13
[Type text]
Managing Users:
To provide access to resources and to perform operations on SAP HANA is determined
exclusively by the privileges on the database user who perform operations. HANA supports theconcepts of a role which is fundamentally a set of privileges.
Database users:When we install a HANA Database, a database user “SYSTEM” get created by default. This
users has privileges to create another database user, access system tables and so on.
Note : It is highly recommended not to use the “SYSTEM” user for day-to-day operations.
Operating system user:In addition to database user SYSTEM, installation process creates an external operating system
user ( Ex: sidadm, or xyzadm). This user is used only for starting and stopping on HANA
database.
Creating users in HANA Database:After adding SAP HANA system to Studio, drill down the HANA system as per the below
screen.
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 11/13
[Type text]
Please create the user as per the below screen shot
Provide username and password and click on ADD symbol to add a role to particular user.
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 12/13
[Type text]
Please add the below list of roles as per the screen below.
To Add SQL Privileges, we need to execute the below SQL scripts by updating User ID. Thisneeds to be created after creating the users with granted roles.
1) grant CATALOG READ, CREATE SCENARIO, DATA ADMIN, DEVELOPMENT, EXPORT, IMPORT, LOG
ADMIN, MONITOR ADMIN, OPTIMIZER ADMIN, REPO.EXPORT, REPO.IMPORT,RESOURCE
ADMIN, SAVEPOINT ADMIN, SCENARIO ADMIN, SERVICE ADMIN, SESSION ADMIN,
STRUCTUREDPRIVILEGE ADMIN, INIFILE ADMIN, TENANT ADMIN, TRACE ADMIN, VERSION
ADMIN TO <USERNAME> WITH ADMIN OPTION
2) GRANT REPO.MAINTAIN_DELIVERY_UNITS, REPO.WORK_IN_FOREIGN_WORKSPACE TO
<username> WITH ADMIN OPTION
If we need to add more system privileges, Please follow the below screen
8/12/2019 SAP HANA Guide 2
http://slidepdf.com/reader/full/sap-hana-guide-2 13/13
[Type text]
After Adding the required authorizations, Please find the below to deploy the changes.