28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12.4 Privileges<br />

<strong>SAP</strong> <strong>HANA</strong> offers various privileges that can be assigned to users. Users can be a system, an application, a<br />

service, or a person, and each user is assigned specific roles. Privileges can be assigned to users, roles, or both.<br />

There are several privileges that are required either by the <strong>SAP</strong> <strong>HANA</strong> studio or by development tools, such as<br />

SQL. The following types of privileges are explained in the subsequent sections.<br />

● System privileges<br />

● Object privileges<br />

● Package privileges<br />

● Analytic privileges<br />

This section also contains information for creating and granting privileges to users.<br />

12.4.1 System Privileges<br />

System privileges are required to perform system-level operations or administrative tasks.<br />

The following lists shows some of the most common system-level tasks that administrators regularly must<br />

perform:<br />

● Database schema<br />

Creation and deletion of database schema<br />

● Users/Roles<br />

Maintenance and management of users and roles<br />

● Monitor/Trace<br />

Administration of monitoring and tracing<br />

● Backup/Restore<br />

Performance of backup and restore operations<br />

In the <strong>SAP</strong> <strong>HANA</strong> database the user SYSTEM has all system privileges. The SYSTEM user can grant system<br />

privileges to other users and roles.<br />

12.4.2 Object Privileges<br />

Object privileges enable users to perform specified actions on specified database objects.<br />

Object privileges are not specific to the <strong>SAP</strong> <strong>HANA</strong> database; they are part of the SQL standard. You can use the<br />

SQL statements GRANT and REVOKE to manage privileges.<br />

Note: . If object privileges (or any other privilege type) are granted to roles created in the repository,<br />

granting and revoking actions happen through the execution of stored procedures.<br />

The set of actions that can be allowed by an object privilege depends on the object type. For tables, you can use<br />

actions such as: drop, alter, select, insert and update. An execute action is available for privileges for procedures<br />

and functions. Privileges on a schema level are used to enable actions such as: create objects, perform select,<br />

update, delete or execute operations on all objects contained in the schema.<br />

In the <strong>SAP</strong> <strong>HANA</strong> database object privileges are not only available for database catalog objects such as tables,<br />

views and procedures. Object privileges can also be granted for non-catalog objects such as development objects<br />

in the repository of the <strong>SAP</strong> <strong>HANA</strong> database.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Setting Up Roles and Authorizations<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 329

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!