Showing posts with label Notes. Show all posts
Showing posts with label Notes. Show all posts

SAP HANA: Transaction Codes

A transaction code (or t-code) consists of letters, numbers, or both, and is entered in the command field at the top of the SAP screen. Each function in SAP ERP has an SAP transaction code associated with it.

Administration and Monitoring
If you are working in a SAP HANA system, the following transaction codes are re-routed to their applications in DBA Cockpit for SAP HANA.
SAP Transaction CodeDescription
DB01
Analyze Exclusive Lockwaits
Opens Diagnostics: Locks: Blocked Transactions in DBA Cockpit.
DB02
Tables and Indexes Monitor
Opens Diagnostics: Missing Tables and Indexes in DBA Cockpit.
DB50
SAP DB Assistant
Opens Current Status: Overview in DBA Cockpit.
ST04
DB Performance Monitor
Opens Current Status: Overview in DBA Cockpit.
DB13
DBA Planning Calender
Opens Jobs: DBA Planing Calender in DBA Cockpit.
DB13C
Central DBA Planning Calender
Opens Jobs: Central Calender in DBA Cockpit.
DB26
DB Profile: Monitor and Configuration
Opens Configuration: INI Files in DBA Cockpit.
DB03
Parameter Changes in Database
Opens Configuration: INI Files in DBA Cockpit.
DB12
DBA Backup Logs
Opens Diagnostics: Backup Catalog in DBA Cockpit

SAP HANA: System Privileges

System Privilege
Privilege Purpose
Comment
ADAPTER ADMIN
Controls the execution of the following adapter-related commands: CREATE ADAPTER, DROP ADAPTER and ALTER ADAPTER. Also allows access to ADAPTERS and ADAPTER_LOCATIONS system views.
 
AGENT ADMIN
Controls the execution of the following agent-related commands: CREATE AGENT, DROP AGENT and ALTER AGENT. Also allows access to AGENTS and ADAPTER_LOCATIONS system views.
 
AUDIT ADMIN
Controls the execution of the following auditing-related commands: CREATE AUDIT POLICY, DROP AUDIT POLICY and ALTER AUDIT POLICY and the changes of the auditing configuration. Also allows access to AUDIT_LOG system view.
 
AUDIT OPERATOR
Authorizes the execution of the following command: ALTER SYSTEM CLEAR AUDIT LOG. Also allows access to AUDIT_LOG system view.
 
BACKUP ADMIN
Authorizes BACKUP and RECOVERY commands for defining and initiating backup and recovery procedures. Also changing system configuration options with respect to backup and recovery.
 
BACKUP OPERATOR
Authorizes the BACKUP command to initiate a backup process.
 
CATALOG READ
Authorizes users to have unfiltered read-only access to all system views.
Normally, the content of these views is filtered based on the privileges of the accessing user.
CREATE R SCRIPT
Authorizes the creation of a procedure using the language R.
 
CREATE REMOTE SOURCE
Authorizes the creation of remote data sources using the CREATE REMOTE SOURCE command.
 
CREATE SCENARIO
Controls the creation of calculation scenarios and cubes (calculation database)
 
CREATE SCHEMA
Authorizes the creation of database schemas using the CREATE SCHEMA command.
By default each user owns one schema, with this privilege the user is allowed to create additional schemas.
CREATE STRUCTURED PRIVILEGE
Authorizes the creation of Structured Privileges (Analytical Privileges)
Only the owner of an Analytical Privilege can further grant or revoke that privilege to other users or roles.
CREDENTIAL ADMIN
Authorizes the credential commands: CREATE/ALTER/DROP CREDENTIAL.
 
DATA ADMIN
Authorizes reading all data in the system views. It also enables execution of any Data Definition Language (DDL) commands in the SAP HANA database
A user having this privilege cannot select or change data stored tables for which they do not have access privileges, but they can drop tables or modify table definitions.
DATABASE ADMINAuthorizes all commands related to databases in a multi-database, such as CREATE, DROP, ALTER, RENAME, BACKUP, RECOVERY 
EXPORT
Authorizes export activity in the database via the EXPORT TABLE command.
Note that beside this privilege the user requires the SELECT privilege on the source tables to be exported.
IMPORT
Authorizes the import activity in the database using the IMPORT commands.
Note that beside this privilege the user requires the INSERT privilege on the target tables to be imported.
INIFILE ADMIN
Authorizes changing of system settings.
 
LICENSE ADMIN
Authorizes the SET SYSTEM LICENSE command install a new license.
 
LOG ADMIN
Authorizes the ALTER SYSTEM LOGGING [ON|OFF] commands to enable or disable the log flush mechanism.
 
MONITOR ADMIN
Authorizes the ALTER SYSTEM commands for EVENTs.
 
OPTIMIZER ADMIN
Authorizes the ALTER SYSTEM commands concerning SQL PLAN CACHE and ALTER SYSTEM UPDATE STATISTICS commands, which influence the behavior of the query optimizer.
 
RESOURCE ADMIN
This privilege authorizes commands concerning system resources, for example ALTER SYSTEM RECLAIM DATAVOLUME and ALTER SYSTEM RESET MONITORING VIEW. It also authorizes many of the commands available in the Management Console.
 
ROLE ADMIN
This privilege authorizes the creation and deletion of roles using the CREATE ROLE and DROP ROLE commands. It also authorizes the granting and revocation of roles using the GRANT and REVOKE commands.
Activated roles, meaning roles whose creator is the pre-defined user _SYS_REPO, can neither be granted to other roles or users nor dropped directly. Not even users having ROLE ADMIN privilege are able to do so. Please check documentation concerning activated objects.
SAVEPOINT ADMIN
Authorizes the execution of a savepoint process using the ALTER SYSTEM SAVEPOINT command.
 
SCENARIO ADMIN
Authorizes all calculation scenario-related activities (including creation).
 
SERVICE ADMIN
Authorizes the ALTER SYSTEM [START|CANCEL|RECONFIGURE] commands.
This privilege is for administering system services of the database
SESSION ADMIN
authorizes the ALTER SYSTEM commands concerning sessions to stop or disconnect a user session or to change session variables.
 
STRUCTUREDPRIVILEGE ADMIN
Authorizes the creation, reactivation, and dropping of structured privileges.
 
TABLE ADMIN
Authorizes the LOAD/UNLOAD/MERGE of tables and its table placement.
 
TRACE ADMIN
Authorizes the ALTER SYSTEM [CLEAR|REMOVE] TRACES commands for operations on database trace files and authorizes changing trace system settings.
 
TRUST ADMIN
Authorizes commands to update the trust store.
 
USER ADMIN
Authorizes the creation and modification of users using the CREATE USER, ALTER USER, and DROP USER commands.
 
VERSION ADMIN
Authorizes the ALTER SYSTEM RECLAIM VERSION SPACE command of the multi-version concurrency control (MVCC) mechanism.
 
<identifier>.<identifier>
Components of the SAP HANA database can create new system privileges. These privileges use the component-name as first identifier of the system privilege and the component-privilege-name as the second identifier.
 

SAP HANA: Default Client Values

  1. Session Client
    1. at run time, modeler filters the table data according to the value you specify as the session client in the user profile.
  2. Cross Client
    1. modeler does not filter the table data against any client and values relevant to all clients will be displayed
  3. Fixed Client
    1. If you want to use a fixed client value, for example, 001, then modeler the table data for this client value.

SAP HANA: System Schemas

  1. SAP_REST_API
  2. SYS
  3. SYS_REPL
  4. _SYS_BI
    1. Metadata about the column views
  5. _SYS_BIC
    1. Column views created are always stored here
  6. _SYS_REPO
    1. System user that needs SELECT authorization on the schema whenever a information model that references objects located in the schema is activated
    2. Grant select on schema <schema_name> to _sys_repo with grant option;
  7. _SYS_STATISTICS
  8. _SYS_TASK

SAP HANA: Data


  1. Attributes = descriptive data (Characteristics in SAP BW)
  1. Calculated Attributes
  1. Measures = quantifiable and calculated data (Key Figures in SAP BW)
  1. Calculated Measures
  1. Restricted Measures

SAP HANA: Information Models

SAP HANA's Information models are organized in packages

  1. Attribute Views = Dimensions
  2. Analytic Views = Cubes
  3. Calculation Views = similar to virtual provider with services concept (BW)
    1. Graphical
    2. Script (SQL Script, CE Functions)
    3. Calculation View enhanced with Analytical View
  4. Analytic Privileges
  5. Procedures
  6. Decision Tables
  7. Persistency Considerations

    1. Scenarios  = different requirements and persistency models = checklist
      1. Write or read intensive scenarios = Criteria for storage type
        1. Write-intensive scenarios = smaller system tables = row storage
        2. Read-intensive scenarios = column storage
    2. Real-time Data access
      1. Support of table type, and data type
      2. Capability of data type transformation
    3. Authorization
      1. Authorization and privilege configuration applies to Attribute views, Analytic Views, and Calculation Views
    4. Application/Client
      1. SAP Business Objects Explorer è does not support filters in the queries on design time
      2. Hierarchies è Supported by only SAP BusinessObjects Analysis and Excel
      3. SAP BusinessObjects WebIntelligence è always retrieves and caches the max result set
      4. Only Explorer, Excel & Analysis do currently consume additional meta data, e.g. multi language support
    5. Functionality
      1. Some complex algorithms can only be expressed in L language
      2. Currency conversion is supported only in Analytic and Calculation views
      3. A union can only be performed in a calculation view
    6. Performance