SAP HANA Security - Complete Tutorial
SAP HANA Security - Complete Tutorial
OPEN A FREE ACCOUNT SAP HANA provides a facility i.e. Multitenant database,
in which multiple databases can be created on single
SAP HANA System. It is known as multitenant
database container. So SAP HANA provide all security
related feature for all multitenant database container.
SAP HANA User and Role management configuration depend on the architecture as below –
1. 3-Tier Architecture.
SAP HANA can be used as a relational database in a 3-Tier Architecture.
/
Ad
SAP application (ERP, BW, etc.) connects to database only with the help of a technical user
or database administrator (Basis Person). The end-user cannot directly access to database
or database server.
(/images/sap-
hana/030216_1259_SAPHANASECU1.png)
2. 2-Tier Architecture.
SAP HANA Extended Application Services (SAP HANA XS) is based on 2 –Tier Architecture, in
which Application server, Web Server and Development Environment are embedded in a
single system.
/
(/images/sap-
hana/030216_1259_SAPHANASECU2.png)
Depending on the authorization provided to the user, it can perform database operations on
the database object. This authorization is called, "privileges."
The Privileges can be granted to the user directly or indirectly (through roles). All Privileges
assign to users are combined as a single unit.
When a user tries to access any SAP HANA Database object, HANA System performs
authorization check on the user through user roles and directly grants the privileges.
When requested Privileges found, HANA system skips further checks and grant access to
request database objects.
Privileges Description
Types
/
Object Object Privileges are SQL (/sql.html)privileges that are used to give
Privileges authorization to read and modify database objects. To access database objects
user needs object privileges on database objects or on the schema in which
database object exists. Object privileges can be granted to catalog objects
(table, view, etc.) or non-catalog objects (development objects). Object
Privileges are as below –
CREATE ANY
UPDATE, INSERT, SELECT, DELETE, DROP, ALTER, EXECUTE
INDEX, TRIGGER, DEBUG, REFERENCES
Analytic Analytic Privileges are used to allow read access on data of SAP HANA
Privileges Information model (attribute view, Analytic View, calculation View).
Control for individual users to see the data is in the same view.
Package Package Privileges are used to provide authorization for actions on individual
Privileges packages in SAP HANA Repository.
Privileges It is an SQL Privileges, which can grant by the user on own user.
on User
ATTACH DEBUGGER is the only privilege that can be granted to a user.
1. Technical User (DBA User) – It is a user who directly work with SAP HANA database with
necessary privileges. Normally, these users don't get deleted from the database.
/
These users are created for an administrative task such as creating an object and granting
privileges on database object or on the application.
SAP HANA Database system provides following user by default as standard user–
SYSTEM
SYS
_SYS_REPO
2. Database or Real User: Each user who wants to work on SAP HANA database, need a
database user. Database user are a real person who works on SAP HANA.
There are two types of Database user as below –
Standard This user can create objects in an own PUBLIC role is assigned for read
User schema and reads data in system views. system views.
Standard User created with "CREATE
USER" statement.
1. Create/delete User.
2. Define and Create Role.
3. Grant Role to the user.
4. Resetting user password.
/
5. Re-activate / de-activate user according to requirement.
1. Create User in SAP HANA- only database user with ROLE ADMIN privileges can create user
and role in SAP HANA.
Step 1) To create new user in SAP HANA Studio go to security tab as shown below and follow
the following steps;
1. Go to security node.
2. Select Users (Right Click) -> New User.
(/images/sap-
hana/030216_1259_SAPHANASECU3.png)
(/images/sap-hana/030216_1259_SAPHANASECU4.png)
/
A role is a collection of privileges that can be granted to other users or role. The role includes
privileges for database object & application and depending on the nature of the job.
It is a standard mechanism to grant privileges. Privileges can be directly granted to the user.
There are many standard roles (e.g. MODELLING, MONITORING, etc.) available in SAP HANA
database.
We can use the standard role as a template for creating a custom role.
System Privileges for administrative and development task (CATALOG READ, AUDIT ADMIN,
etc.)
Object Privileges for database objects (SELECT, INSERT, DELETE, etc.)
Analytic Privileges for SAP HANA Information View
Package Privileges on repository packages (REPO.READ, REPO.EDIT_NATIVE_OBJECTS, etc.)
Application Privileges for SAP HANA XS applications.
Privileges on the user (For Debugging of procedure).
Role Creation
(/images/sap-hana/030216_1259_SAPHANASECU6.png)
(/images/sap-hana/030216_1259_SAPHANASECU8.png)
Tick option "Grantable to other users and roles", if you want to assign this role to other user
and role.
STEP 1) In this step, we will Assign Role "MODELLING_VIEW" to another user "ABHI_TEST".
/
1. Go to User sub-node under Security node and double click it. User window will show.
2. Click on Granted roles "+" Icon.
3. A pop-up will appear, Search Role name which will be assign to the user.
(/images/sap-
hana/030216_1259_SAPHANASECU9.png)
(/images/sap-hana/030216_1259_SAPHANASECU10.png)
(/images/sap-hana/030216_1259_SAPHANASECU11.png)
/
If user password needs to reset, then go to User sub-node under Security node and double click
it. User window will show.
(/images/sap-hana/030216_1259_SAPHANASECU12.png)
(/images/sap-hana/030216_1259_SAPHANASECU13.png)
5. Re-Activate/De-activate User
Go to User sub-node under Security node and double click it. User window will show.
/
(/images/sap-hana/030216_1259_SAPHANASECU14.png)
(/images/sap-
hana/030216_1259_SAPHANASECU15.png)
A message "User 'ABHI_TEST' deactivated" will be displayed. The De-Activate icon changes
with name "Activate user". Now we can activate user from the same icon.
Permanent License Key: Permanent license keys are valid till expiration date. We need to
request and apply license key before expire. If license key expires then Temporary License
Key are is automatically installed for 28 days.
Temporary License Key: This is automatically installed with a new SAP HANA Database
Installation. It is valid for 90 days and later can apply for Permanent key from SAP.
Summary:
/
SAP HANA Tutorials
5) Data Type & Identifiers (/sap-hana-data-type.html)
6) Operator (/sap-hana-operator.html)
(https://www.facebook.com/guru99com/)
(https://twitter.com/guru99com)
(https://www.linkedin.com/company/guru99/)
(https://www.youtube.com/channel/UC19i1XD6k88KqHlET8atqFQ)
(https://forms.aweber.com/form/46/724807646.htm)
About
About Us (/about-us.html)
Advertise with Us (/advertise-us.html)
Write For Us (/become-an-instructor.html)
Contact Us (/contact-us.html)
Career Suggestion
SAP Career Suggestion Tool (/best-sap-module.html)
Software Testing as a Career (/software-testing-career-
/
complete-guide.html)
Interesting
eBook (/ebook-pdf.html)
Blog (/blog/)
Quiz (/tests.html)
SAP eBook (/sap-ebook-pdf.html)
Execute online
Execute Java Online (/try-java-editor.html)
Execute Javascript (/execute-javascript-online.html)
Execute HTML (/execute-html-online.html)
Execute Python (/execute-python-online.html)