The SAP Hana Reference For SAP Basis Administrators
The SAP Hana Reference For SAP Basis Administrators
The SAP HANA Reference for SAP Basis Administrators was started because during studies for HANATec
Certification it was noticed that anybody interested in HANA Administration was missing a one-stop shop
location and reference for the HANA Commands and Command Line Tools and Administrator’s SQL queries
respective to the Basis Administrator’s HANA requirements.
The SAP HANA Reference for SAP Basis Administrators is a live SCN Community project, this means it is
continuously updated and extended to include the latest valuable knowledge on SAP HANA from the Basis
Administrator’s perspective.
Everybody who has gems of knowledge anything from tips tricks to howto’s on SAP HANA from the Basis
Administration perspective is positively welcomed and encouraged to join this open source sharing SCN
Community collaborative initiative to make this resource the most powerful SAP HANA Basis Administration
resource available.
Let’s together exploit the power of the SCN Community and unlock the value of the knowledge and experience
in the community to the benefit of all.
To contribute either add a comment at the bottom or email or private message me.
Looking forward to more community contributions.
All the best,
Andy.
p.s.
if you click the View as PDF button on the right, then you can save this as a pdf onto your phone or pc
for offline access and reading – of course, this work is live so come back from time to time and get the latestversion.
.
Contribution History
Date Author Subject
2013
2013
17th December Jake Echanove Steps To Reset HANA System User Password
2013
21st January 2014 Jake Echanove Configure ABAP to HANA SSL Connection
23rd January 2014 Nicolas Chang SAP HANA Lifecycle Manager – How to launch, start, install
Date Author Subject
6th February 2014 Reinhard Jud Additional information for the RowStore Reorg
10th February 2014 Jake Echanove Move HANA Data and Log Files to a different Mount Point
11th February 2014 John Appleby Licensing, Architecting and Sizing BW on HANA
26th March 2014 Vinod Nair Handy SQL Statements for Monitoring HANA
28th April 2014 Richard Bremer Reactivating the SYSTEM user when no User with USER ADMIN is
Available
10th June 2014 Lars Breddemann Big thanks to Lars for taking time to correct and improve the look and feel
18th June 2014 Yuan Fang The Configuration and Usage of SAP HANA Web-based IDE
1st July 2014 Xing Jin Preparing a SAP Hana system for SAP Lumira installation
3rd July 2014 DevendraKumar Troubleshooting Issues when implementing SAML SSO in HANA XS
Saxena Engine
Interactive Contents
The SAP HANA Reference for SAP Basis Administrators
SAP HANA Commands and Command Line Tools and SQL Reference Examples for NetWeaver
Basis Administrators
1) Stop HANA
2a) Start HANA
2b) Note about SAPCONTROL location on the HANA Developer Edition
2c) SAP HANA Database: Starting the Script Server
3) Query the current status of all hosts
4) Start the name server:
7) Install Permanent License Using SQL
8b) Handy SQL Statements for Monitoring SAP HANA
Used Memory
The story
Procedure One – Requiring Database Restart
Procedure Two – Requiring Development Capabilities
of an application the SAP HANA database provides several techniques to process such
accesses within the database. By doing so application logic is processed within the SAP HANA
database procedures. The use of database procedures reduces the data volume to be transferred
between the database and application server. In addition, compared to code running on the
application server level, a database procedure can more efficiently access data stored in the database.
The disadvantage of database procedures, in general, is that they might somehow affect the stability
of the database itself. In order to minimize the risk of destabilizing the SAP HANA database,
procedures can be performed on the script server. The script server is one of the SAP HANA
database servers, which has its own memory management and is therefore separated from the
main server. Its usage is optional. The script server does not store application data.
Full details of how to start and stop the Hana Script Server including setting automatic start of the
Hana Script Server are given in the OSS Note:
1650957 – SAP HANA Database: Starting the Script Server
3) Query the current status of all hosts
/usr/sap/hostctrl/exe/sapcontrol -nr &-function GetSystemInstanceList
4) Start the name server:
/usr/sap/hdbenv.sh
/usr/sap/exe/hdbnameserver
5) Start an index server in a new console:
/usr/sap/hdbenv.sh
/usr/sap/exe/hdbindexserver -console
6) hdbuserstore
Create a user key in the user store and store the password under this user key:
hdbuserstore SET & & & &
For example:
hdbuserstore SET millerj localhost:30115 JohnMiller 2wsx$RF
List all available user keys (passwords are not displayed):
hdbuserstore LIST &
For example:
hdbuserstore LIST millerj
The following information is displayed
:KEY: millerjENV: localhost:30115USER: JohnMiller?
Call hdbsql with the user key:
hdbsql -U &
For example:
hdbsql -U millerj
hdbuserstore Example of User Creation while solving saphostagent/sapdbctrl for HANA issue
Ref: SAP Note 1625203 – saphostagent/sapdbctrl for newdb
The saphostagent functions for querying the database status and for
starting and stopping the database are now also available for the HANA.
Then logon to the HANA studio under the username &and execute
the following command:
ALTER USER SAPDBCTRL PASSWORD &
b. As the OS user &adm, you must provide the user key &SAPDBCTRL in
hdbuserstore on the database server. You can check the existence of the
user key with the following command:
hdbuserstore LIST &SAPDBCTRL
If the user key does not exist, you can create it as follows:
or
/usr/sap/&hdbclient
c. To check whether the sapdbctrl queries without passwords work, execute
the following command as OS user &:
/usr/sap/hostctrl/exe/saphostctrl -function GetDatabaseStatus -dbname
&-dbtype hdb
If sapdbctrl responds with the following error text:
You can delete all installed license keys by executing the following SQL command
HANA Studio and on the command line with SQL for checking all kinds of memory consumption:
OSS 1840954 – Alerts related to HANA memory consumption +]
Show the Total Read Size and the the Total Write Size for each Volume since the Service
in question was last started.
M_VOLUME_IO_STATISTICS_RESET
now shows the statistics since the reset time
You can use the M_SERVICE_MEMORY view to explore the amount of SAP HANA
Used Memory as follows:
SELECT round(sum(USED_FIXED_PART_SIZE +
USED_VARIABLE_PART_SIZE)/1024/1024) AS “Row Tables MB”
FROM M_RS_TABLES;
Total Memory Consumption of All Columnar Tables by Schema
SELECT SCHEMA_NAME AS “Schema”,
round(sum(MEMORY_SIZE_IN_TOTAL) /1024/1024) AS “MB”
FROM
M_CS_TABLES
GROUP BY SCHEMA_NAME
ORDER BY “MB” DESC;
FROM M_CS_TABLES
WHERE SCHEMA_NAME = ‘SYSTEM’
ORDER BY “MB” DESC;
Available Physical Memory
Used Memory
The total amount of memory in use by SAP HANA is referred to as its Used Memory.
This is the most precise indicator of the amount of memory that the SAP HANA database
uses at any time
When used: To understand the current used memory in HANA when HANA alerts shows usage greater
than licensed memory. Understanding memory usage by components will help in troubleshooting and perform
necessary memory clean up actions.
Display the current size of the Used Memory; you can use the following SQL statement
SELECT ROUND(SUM(TOTAL_MEMORY_USED_SIZE/1024/1024/1024), 2) AS “Used Memory GB”
FROM SYS.M_SERVICE_MEMORY;
Display current used memory for Column Store Tables
SELECT ROUND(SUM(MEMORY_SIZE_IN_TOTAL)/1024/1024) AS “Column Tables MB Used”
FROM M_CS_TABLES;
SELECT HOST,
ROUND(USED_PHYSICAL_MEMORY/1024/1024/1024, 2) AS “Resident GB”,
ROUND((USED_PHYSICAL_MEMORY + FREE_PHYSICAL_MEMORY)/1024/1024/1024, 2) AS
“Physical Memory GB”
FROM PUBLIC.M_HOST_RESOURCE_UTILIZATION;
(T1.USED_PHYSICAL_MEMORY + T2.SHARED_MEMORY_ALLOCATED_SIZE)/1024/1024/1024
“Total Resident”
FROM M_HOST_RESOURCE_UTILIZATION AS T1
JOIN
(SELECT M_SERVICE_MEMORY.HOST,
SUM(M_SERVICE_MEMORY.SHARED_MEMORY_ALLOCATED_SIZE)
AS SHARED_MEMORY_ALLOCATED_SIZE
FROM SYS.M_SERVICE_MEMORY
GROUP BY M_SERVICE_MEMORY.HOST) AS T2
ON T2.HOST = T1.HOST;
(SELECT
SUM(CODE_SIZE+SHARED_MEMORY_ALLOCATED_SIZE) AS “M”
FROM SYS.M_SERVICE_MEMORY
UNION
SELECT
SUM(INCLUSIVE_PEAK_ALLOCATION_SIZE) AS “M”
FROM M_HEAP_MEMORY
WHERE DEPTH = 0);
Peak used memory
SAP HANA maintains a special Used Memory indicator, called the Peak Used Memory.
This is useful to keep track of the peak value (the maximum, or “high water mark”) of Used Memory over time.
Here is how to read the Peak Used Memory:
SELECT ROUND(SUM(“M”)/1024/1024/1024, 2) as “Peak Used Memory GB”
FROM
Memory Cleanup:
Forcing Garbage collector from Server
Login to HANA server -> open HDBAdmin.sh and navigate to Services -> Console
Select the node where the garbage collection to be triggered. Execute the below command
mm gc –f
The garbage collector will be triggered, and free up the memory. This will not unload the tables.
Resetting Monitoring Views
When Used:
when testing a report or need to monitor the peak of memory usage by a SQL, monitor IO, memory objects
throughput and statistics about garbage collection jobs.
The below will allow to reset these statistics.
Memory allocator statistics
M_HEAP_MEMORY view contains information about memory consumption of various components in the system.
ALTER SYSTEM RESET MONITORING VIEW SYS.M_HEAP_MEMORY_RESET;
TABLE_NAME,
RECORD_COUNT,
RAW_RECORD_COUNT_IN_DELTA ,
MEMORY_SIZE_IN_TOTAL,
MEMORY_SIZE_IN_MAIN,
MEMORY_SIZE_IN_DELTA
from M_CS_TABLES
where schema_name = ‘SCHEMA’
order by RAW_RECORD_COUNT_IN_DELTA Desc
To drill down further and see what columns is not loaded /loaded please use below
Select top 100 LOADED,
HOST,
TABLE_NAME,
COLUMN_NAME,
MEMORY_SIZE_IN_TOTAL
from PUBLIC.M_CS_COLUMNS
WHERE SCHEMA_NAME = ‘SCHEMA’
AND LOADED <> ‘TRUE’
MERGE DELTA
See if there is delta to be merged. RAW_RECORD_COUNT_IN_DELTA will provide the delta count.
SELECT LOADED,
TABLE_NAME,
RECORD_COUNT,
RAW_RECORD_COUNT_IN_DELTA ,
MEMORY_SIZE_IN_TOTAL,
MEMORY_SIZE_IN_MAIN,
MEMORY_SIZE_IN_DELTA
from M_CS_TABLES
where schema_name = ‘SCHEMA’
order by RAW_RECORD_COUNT_IN_DELTA Desc
Forcing delta Merge
Smart merge
UPDATE <table_name> MERGE DELTA INDEX WITH PARAMETERS (‘SMART_MERGE’=’ON’)
Find Auto Merge On
When used:
To see the uncompressed size and the compression ratio in HANA for the loaded tables.
SELECT top 100 “SCHEMA_NAME”,
sum(“DISTINCT_COUNT”) RECORD_COUNT,
sum(“MEMORY_SIZE_IN_TOTAL”) COMPRESSED_SIZE,
sum(“UNCOMPRESSED_SIZE”) UNCOMPRESSED_SIZE,
(sum(“UNCOMPRESSED_SIZE”)/sum(“MEMORY_SIZE_IN_TOTAL”)) as COMPRESSION_RATIO,
100*(sum(“UNCOMPRESSED_SIZE”)/sum(“MEMORY_SIZE_IN_TOTAL”)) as
COMPRESSION_PERCENTAGE
FROM “SYS”.”M_CS_ALL_COLUMNS”
GROUP BY “SCHEMA_NAME”
select
COLUMN_NAME,
LOADED,
COMPRESSION_TYPE,
MEMORY_SIZE_IN_TOTAL,
UNCOMPRESSED_SIZE,
COMPRESSION_RATIO_IN_PERCENTAGE as COMPRESSION_FACTOR
from M_CS_COLUMNS
where schema_name = ‘SCHEMA’
HOST,
PORT,
CONNECTION_ID
FROM M_CONNECTIONS
Also to monitor the expensive sqls executed in HANA. Identify the ways for performance optimization.
Find expensive statements for errors
SELECT
“HOST”,
“PORT”,
“CONNECTION_ID”,
“TRANSACTION_ID”,
“STATEMENT_ID”,
“DB_USER”,
“APP_USER”,
“START_TIME”,
“DURATION_MICROSEC”,
“OBJECT_NAME”,
“OPERATION”,
“RECORDS”,
“STATEMENT_STRING”,
“PARAMETERS”,
“ERROR_CODE”,
“ERROR_TEXT”,
“LOCK_WAIT_COUNT”,
“LOCK_WAIT_DURATION”,
“ALLOC_MEM_SIZE_ROWSTORE”,
“ALLOC_MEM_SIZE_COLSTORE”,
“MEMORY_SIZE”,
“REUSED_MEMORY_SIZE”,
“CPU_TIME”
FROM “PUBLIC”.”M_EXPENSIVE_STATEMENTS”
WHERE ERROR_CODE > 0
ORDER BY START_TIME DESC;
Finding expensive statements executed by User
SELECT
“HOST”,
“PORT”,
“CONNECTION_ID”,
“TRANSACTION_ID”,
“STATEMENT_ID”,
“DB_USER”,
“APP_USER”,
“START_TIME”,
“DURATION_MICROSEC”,
“OBJECT_NAME”,
“OPERATION”,
“RECORDS”,
“STATEMENT_STRING”,
“PARAMETERS”,
“ERROR_CODE”,
“ERROR_TEXT”,
“LOCK_WAIT_COUNT”,
“LOCK_WAIT_DURATION”,
“ALLOC_MEM_SIZE_ROWSTORE”,
“ALLOC_MEM_SIZE_COLSTORE”,
“MEMORY_SIZE”,
“REUSED_MEMORY_SIZE”,
“CPU_TIME”
FROM “PUBLIC”.”M_EXPENSIVE_STATEMENTS”
FROM “PUBLIC”.”M_CONNECTIONS”
WHERE CONNECTION_STATUS = ‘RUNNING’
Resetting Connections
Find the connection
SELECT CONNECTION_ID, IDLE_TIME
FROM M_CONNECTIONS
PASSWORD Policy
Disable password policy on a user, this is used when you don’t want the policy to be applied on a user. This
will set to lifetime.
ALTER USER USER DISABLE PASSWORD LIFETIME
Audit Policy
Configure
Enable global auditing
‘SYSTEM’)
set (‘auditingconfiguration’,
set (‘auditingconfiguration’
,’default_audit_trail_type’ ) = ‘CSVTEXTFILE’
with reconfigure;
aduit target path
set (‘auditingconfiguration’
,’default_audit_trail_path’ ) = ‘path’
with reconfigure;
‘SYSTEM’)
set (‘auditingconfiguration’,
2.Run Unique checker (you can schedule it in you crontab also ,so as to get updates automatically in your
mail box.
This program helps you to find duplicate entries in tables . Reach out to SAP to get the program or refer
to https://help.sap.com/HANA/SAP_HANA_Administration_Guide_en.pdf if you do not have it.
3.Check for CRASH dumps if Any :-
check it on admin console –>Performance –>to see the dumps (OOM dumps as well) give the serach text as
“dump”
if you find any crash dump –>analyze if its because of any query –>notify the query owner to optimize it in
case if its causing dumps.
It triggers the garbage collector and without unloading the tables it free up memory .
Hope this template helps you to keep you HANA environment healthy and running . Happy Monitoring .
to check replication configuration, to assess trigger status of different tables and to have a look at the statistics
of
the replication.
Checkout the following OSS Note for all details and especially the zip file attached to the OSS Note:
1898103 – Health Checker for the IBM SAP HANA appliance
9) Activating Emergency User with hdbnameserver &
hdbindexserver
If the SYSTEM user’s password is lost, you can use the SAP system user
to reset the password.
To recover an SAP HANA instance where the SYSTEM user’s password is lost,
you need to have &adm access to the instance where SAP HANA’s master
index server is running.
/usr/sap//HDB/exe/hdbnameserver
/usr/sap/exe/hdbindexserver -console
You will see the output of a starting index server.
When the service has started, you have a console to the SAP HANA
instance where you are logged on as a SYSTEM user.
Reset the SYSTEM user’s password and store the new password in a
secure location with the following SQL command:
ALTER USER SYSTEM password &
? hdbnameserver &;
• Start index server. Run command even though may not be at a prompt.
? hdbindexserver –console
• Start HANA
• ./HDB start
• Verify HANA services are running
There are at least two ways to resolve this situation. The first one requires a database restart but does not have
any further prerequisites. The second one does not need the restart, but requires that you still have some
database users available that have development capabilities.
1. Start the database in console mode as described in the database administration guide
2. User SYSTEM is not allowed to unlock itself. You therefore have the following options:
If there are other database users with privilege USER ADMIN, but these users are locked/deactivated,
you can activate/unlock one of them. The procedure to unlock/activate depends on the reason for the
user being deactivated. It’s either a password reset, or an “alter user <name> activate user now“
Alternatively, you may create a dummy user and grant USER ADMIN to this user:CREATE
USER emergency_user_admin PASSWORD WhySoComplicated?;GRANT
USER ADMIN TOemergency_user_admin;Shut down the system that you have started in emergency
mode:
Stop the indexserver process by entering “quit” in the SQL console
Stop the nameserver and compileserver that you have started by hitting Ctrl+C in their respective
linux terminals.
3. Now start the instance again in the regular way: “/usr/sap/<SID>/HDB<instance>/exe/sapcontrol -nr
<instance> -function StartSystem HDB“
4. Once the system is started, log on with either the unlocked regular user administrator, or with the
emergency_user_admin, depending on what you did in step 2.
5. Activate the SYSTEM user: “ALTER USER SYSTEM ACTIVATE USER NOW“
6. Verify that the SYSTEM user is in fact working again.
7. If you created an emergency user admin: delete that emergency user, get a regular user administrator
working again.
8. With that regular user admin, deactivate the SYSTEM user, and activate any other locked/deactivated
user admin.
If you are having this trouble in your production system, and if you have deactivated SYSTEM, I’m pretty
certain your HANA is als “read only” – i.e. you do not have development accounts in this database. So the
requirements are that you need to be able to import (including activation) a stored procedure into your system,
and that at least one active user has the execute privilege on the database schema in which the runtime object
of the procedure will reside (e.g. execute on schema _SYS_BIC).
If you do have development users in the troubled system, then you are probably good to go, as any database
user with minimal development privileges can create and activate stored procedures, and in most cases they
will also have permission to test, i.e. execute, these activated procedures.
One more prerequisite is that the system parameter sqlscript_mode must be set to UNSECURE – the reason is
that we need to use dynamic SQL in the procedure, which needs a read/write procedure. Read/write procedures
are only possible if SQLSCRIPT_MODE = UNSECURE.
Here’s what you have to do:
1. Create a stored procedure in the repository as read/write procedure, in definer mode. In the
body of the procedure, we will activate the SYSTEM user. If you create the procedure using the SAP
HANA modeler, the following body is sufficient:
/********* Begin
Procedure Script ************/
v_sqlnvarchar(128) := ‘alter user SYSTEM activate user now’;
BEGIN
EXEC v_sql;
END;
/********* End Procedure Script ************/
You can of course activate any other locked database user which might have the USER ADMIN
privilege – just change the content of v_sql accordingly.
2. If the procedure has not been created in the troubled system, transport it. If you transport using the
HALM application or CTS+, activation is performed implicitly. If the procedure has been created
locally in the right system, you need to activate it.
3. Call the procedure. For an activated procedure which has been created with the modeler in package
system-local.public.developer and is named “ACTIVATE_SYSTEM_USER”, the call is:
call _SYS_BIC.“system-local.public.developer/ACTIVATE_SYSTEM_USER” ();
4. Finally you want to clean up. This means: perform steps 7/8/9 from the first procedure. And you also
want to remove the sqlscript procedure from the repository, making sure that also the runtime object
gets deleted.
connect and work on the database for some time. Regular user sessions should be disconnected and no
new user sessions for non-administration users should be allowed. After your administrative actions you
would like all regular users to be able to connect to your SAP HANA database system again.
The OSS Note explains the whole process and SQL statements and steps:
1986645 – Allow only administration users to work on HANA database
10) Renaming an SAP HANA System with a GUI using
HANAconfig.sh
In GUI mode, you will be prompted to enter the required parameters.
Select Next
Specify the required entries.
HANAconfig.sh gui can also be used for other tasks including installing and de-installing
SMD Agents
11) Location of Configuration Files
The configuration files (.ini files) are located by default in the following directories
$DIR_INSTANCE/../SYS/global/hdb
custom/config global.ini
indexserver.ini
nameserver.ini
sapprofile.ini
daemon.ini
The SQL trace file will be listed along the other trace files in the following format:
sqltrace_&_&_000.py
Note: Make sure you are connected to the correct HANA instance
ref: 1627480 – How to enable serverwide HANA SQL traces?
4. Confirm the settings took by running hdbodbc_cons show all. You should see something similar to the
following:
Configuration:
Checkout this wonderful OSS Knowledge Base Article which includes screenshots
describing precisely how to achieve this:
or
odbcreg32 -t hdbcodbc32 (for 32-bit driver).
If the driver is installed properly, you should get the ODBC login screen.
You are not sure if SUM is mandatory and using hdbupd is obsolete by now.
+The use of SUM is mandatory and the highly recommended way for updating
the SAP HANA appliance. SUM takes care of:
Migrating the old SAP HANA file system structure to the new
shared layout during the selfupdate process
Handling the lm_structure content in a consistent way
Keeping the system consistent via update of all the components
which are installed on the HANA box
Checking the correct component version dependencies. In case of
inconsistencies an error is generated and execution will be stopped
Integration to Solution Manager, e.g. consuming generated stacks with HANA
content
Other tools such as the On Site configuration tool rely on this landscape
to be correct in order to work properly.
It is technically possible to use hdbupd but you should consider this option
only in special/extreme situations and after consulting a SAP representative.
and Revisions with SUM for HANA. If you do not have these directories, the recommendation
is to bring your instance up-to-date and install SUM for HANA and lm_structure using
SAP Note 1793303. After following this note you can use SUM for HANA to apply revisions
and SP Stacks.
The SAP Software Update Manager is a separate software component that must
be started on the SAP HANA server. A good practice is to install this component
as a service.
The SAP Software Update Manager does not have a user interface.
It is controlled remotely from the SAP HANA studio.
After the release of an SPS of the SAP HANA Appliance Software new revisions of the SAP HANA
database are released.
To update your SAP HANA database to these new revisions, use the commands
hdbupd or hdbsetup which are provided with the SAP HANA database installation.
For more information, see SAP HANA Client Installation and Update Guide.
a. Open a command prompt and call the SAP HANA client installation program by entering
the following command:
hdbinst -a client
b. Follow the instructions displayed by the installation tool.
$DIR_INSTANCE/exe/python_support
(Linux).
python fullSystemInfoDump.py
By default the script creates a zip file with all of the collected support information
to the directory
DIR_TEMP/system_dump where DIR_TEMP
be looked up by entering:
hdbsrvutil -z | grep DIR_TEMP=
To change the default directory, an explicit absolute path can be given to the script,
for example:
python fullSystemInfoDump.py &
python fullSystemInfoDump.py –h
To collect support information you need an SQL user with rights to select the system tables and
views listed in System Tables/Views.
For security reasons the user name and password for this SQL user cannot be given as command
Password:
The password is not displayed on the command line.
If the system can be reached via SQL and the user name and password information is valid, the script
starts collecting support information.
If user name and/or password are invalid, the script aborts.
17) HDBSQL
SAP HANA HDBSQL is a command line tool for entering and executing SQL statements, executing
database procedures, and querying information about SAP HANA databases.
You can use HDBSQL interactively or import commands from a file and execute them in the
background. You can access databases on your local computer and on remote computers.
Examples:
One step logon to the database on the PARMA computer with instance ID 01 as database
user MONA with the password RED.
hdbsql -n PARMA -i 1 -u MONA –p RED
Start HDBSQL:
hdbsql /
\s
host : wdfd00245293a:30015
database : ORG
user : SYSTEM
autocommit : ON
\q to quit
/usr/sap/exe/
Note Backups using SQL commands are only recommended for batch mode
Currently, the main tool for batch mode backup is the command
line interface hdbsql.
The full usage of the command, all switches, use cases and including examples is fully
described in the SAP Note:
A data backup is then created in the default location. In the above example,
the prefix of all service-related backup files is “MONDAY”.
Prerequisites
A user needs the system privileges CATALOG READ and BACKUP ADMIN.
Canceling a Running Data Backup Using SAP HANA Studio
You can use SAP HANA studio to cancel running data backups that you
started using the backup wizard. To cancel a running data backup, choose Cancel.
To find the backup ID of the running data backup, use the following SQL command:
You can now use the backup ID to cancel the running data backup.
Cancel the data backup.
To cancel the running data backup use the following SQL command:
A restore fails with the error “Recovery could not be completed Cannot open file …”.
One or more log backups of the SAP HANA database are missing or damaged.
All the available log backups exist in the file system of the database server.
If not all the required log backups are available, an SAP HANA database restore is subject to restrictions.
In most cases, you will only be able to restore the SAP HANA database to a in time that lies before the time
when the oldest missing log backup was written.
A restore to any point in time (including redo of the log area) is possible only if the content of the missing log
backup still exists in the log area.
Use hdblogdiag to determine the lowest log item that still exists in the log segments of the log area as follows:
Call
hdblogdiag seglist &
LogSegment[0/1:&-&(……
Take into account that the system outputs the log items in hexadecimal format and that you have to convert
them into decimal numbers.
Example:
Assuming the parameter basepath_logvolumes has the value /HANA/log/HAN and the parameter
use_mountpoints has the value yes, so that the log egments lie in the subdirectory mnt0001.
The log segments for the volume with the volume ID 2 then lie there in the subdirectory
hdb00002: > hdblogdiag seglist /HANA/log/HAN/mnt0001/hdb0002
LogSegment[0/0:0x129540-0x131c00(…
LogSegment[0/1:0x131c00-0x139540(…
Log segment 0 has the lowest log item 1217856 (hexadecimal 0x129540), log segment 1 has the lowest log
item 1252352 (hexadecimal 0x131c00).
This means that the lowest log item that exists in the log segments is 1217856.
If the lowest log item of the missing log backup is bigger than the lowest log item that still exists in a log
segment of the log area, a restore to the latest available point in time is possible.
In such a case, proceed as follows:
Start the restore for the point in time that you selected. For this, you must select “Initialize Log Area”.
26) hdbbackupdiag
The program hdbbackupdiag provides support for determining the data backup files and log backup files that
are required to restore an SAP HANA database, with “Recover the database to its most recent state” as the aim.
Depending on the availability of the file BackupCatalog.xml that is saved under the path
$DIR_INSTANCE/../SYS/global/hdb/metadata and that is used to determine the restoration strategy, two
application scenarios arise; they are both described in the following section.
If the program is not started from the directory in which the file
BackupCatalog.xml
is located, you can use the option -d & to adjust the access path.
BackupCatalog.xml
Output:
Data backup file: thursday_databackup_0_1
RedoLogPosition: 0
Backup time: 2012-04-12T17:30:0302:00
The backup catalog that the database created is not available or defective.
All data backups and log backups that are required for the recovery are available in the file system of the
database server.
You can use the program “hdbbackupdiag” to create a new backup catalog.
For this, you provide all the data backups and log backups in the file system of the database server. If you
cannot use the standard paths for data backups and log backups due to space restrictions, you can also save the
files in different directories. Note that all files of the data backup must be saved to one directory. However, log
backups can be distributed across multiple directories.
To do this, start the program hdbbackupdiag with the following options:
generate
dataDir
–logDirs
-d
When you call “hdbbackupdiag”, the content of the specified directories is analyzed and a new backup catalog
is generated.
This backup catalog is created with a directory for the log back up that is specified with -d.
Then new backup catalog has the file name “log_backup_0_0_0_0.n” whereby n is the newly generated
backup ID of the database.
To be able to verify the content of the backup catalog, you can output the recovery strategy that is based on the
latest data backup in the generated backup catalog. For this, use the command
“hdbbackupdiag -d “
After you generate the backup catalog, a recovery of the database may carried out.
In case the backup catalog is not created in the standard directory $DIR_INSTANCE/backup/log, you must
specify the directory in which the backup catalog is located in the Recovery Wizard in the step “Locate Log
Backups”.
For more information check SAP Note:
SAP HANA Development Support requires information about a suspected memory issue.
Connect to your HANA database server as user sidadm.
This will show us how much memory is located by which code line.
b. hdbcons ‘mm l -s -S -p’ > /&&
This will show which allocator allocates how much memory at the moment and its peak memory allocation.
The memory consumption stays at a high level / the database seems to hang because of high memory
consumption
Please provide a runtime dump as described in SAP Note 1813020 and the content of the monitoring view
M_HEAP_MEMORY.
Total RAM is
RAM = (Source data footprint – 60gb) * 2 / 4 * c1 + 90gb
or
RAM = ( colstore tables footprint * 2 / 4 + rowstore tables footprint /1.5) * c1 + 50gb
c = source database specific compression factor (where applicable)
Disk Sizing
Disk persistence = 4 * RAM
Disk Log = 1 * RAM
This enables you to leverage the In-Memory capabilities of HANA and the SAP-HANA-optimized BW
objects.
To simplify sizing of an SAP BW system that is supposed to be migrated, SAP now provide the database
independent ABAP report
/SDF/HANA_BW_SIZING
Important: If you plan to migrate a BW system with significant size (e.g. 20 TB source system database size),
please read SAP note 1855041.
For a detailed description of the report, its input parameters, and how to interpret its output, please refer to
the document:
enhanced sizing precision by table type specific compression factors
“non-active data” concept: optimized memory consumption by taking into account that specific tables
are preferred for memory displacement (e.g. tables belonging to objects in Corporate Memory).
Sizing of a Part of the scenarios can be done specificating a subset of BW Objects which have to be
considered for sizing.
Dependent BW Objects will be automatically taken into account.
ref: SAP Note 1736976 – Sizing Report for BW on HANA and the pdf attached to the Note
The following contribution is with thanks to John Appleby for allowing his excellent blog to be
included in this work:
I’ve had more than a few questions on BW on HANA Licensing and Sizing, and it seems that there
isn’t anything authoritative in the public domain. So here we go, but before we start…
Caveats
Architecting BW on HANA systems requires some care. First, database usage, number of indexes
and aggregates, use of database compression, reorgs and non-Unicode systems all cause a variance
in compression in the HANA DB. The best way to size a HANA DB is to do a migration.
In addition, you may choose to use the cold data concept, to archive/delete prior to migration or to use
Sybase IQ for NLS. All of these will vary the amount that you need. And don’t forget growth – you need
to plan for data volume growth, and M&A activities or projects which may increase data volumes.
If you get this wrong with SAP HANA, then you may buy the wrong hardware. I’ve worked with customers
who bought 3-4x too much, and customers who bought 3-4x too little, so please get expert advice.
In addition be careful when architecting HANA systems, whether you need Dev/Test/UAT, if you have a
big system, will it be scale-out, will there be a standby node, and is there HA/DR? Where will you store
backups and application servers?
So whilst this blog is intended to help and inform, the responsibility lies with you for getting it right. If in
doubt, get the services of an expert. Now we’ve got that out the way!
What are the license models for BW on HANA?
It is possible to buy BW on HANA in one of two ways:
1) By the 64GB unit. As noted in this slide deck, this is EUR 60k per unit for up to 10 units, and then the
price decreases with every additional 10 units you buy, and future licensing purchases are accretive and
retroactive.
2) By Software Application Value. You pay 8% of your total SAP purchase price and SAP provide an
unlimited runtime license for BW. This is also available at 20% including ERP on HANA.
As has been described before, BW on HANA is non-discountable, but you should always have a frank
discussion about your overall license package with your Account Exec.
Note that this purchase covers you for all usage: Dev, Test, Training, HA and Disaster Recovery. The only
time when you need anything else is if you want to build HANA Enterprise models, and in this case you
software and a small BW. If you are a mid-size organization with a big BW, the SAV licensing can be
manual corrections, and then needs to be installed via SAP Transaction SNOTE. Ensure you run the latest
version, because it is constantly updated. You can then run ABAP Report /SDF/HANA_BW_SIZING.
When you run this report, run it with and without future growth, and keep both sets of numbers. It will produce
Now it is necessary to be careful when interpreting this report. In this case, no growth was assumed and it
is a 120GB MSSQL database, which it suggests will be a 127GB HANA DB. The sizing tool tends to be
conservative and over-size slightly, especially for small systems.
In newer versions of this tool it will tell you how many Medium (512GB) nodes you would need, or how
many Large (1TB) nodes. This is a rule of thumb, use it with care.
Now ensure that you think about what you are sizing for. For instance, you may feel that you can archive
or delete data. Now is a good time to do this, and if you look at the PSA and DSO Change Log sizes in
this system below, a cleanup is definitely in order. Also, you can set some data to be “cold” in HANA
and purge it from memory after the migration. You can remove this from the sizing if you like.
If you have a very large system (greater than 3-4TB of HANA required) then it may be cost-effective to use
the IQ Near Line Storage (NLS). You can subtract any data that you can archive from NLS from your sizing,
but be careful: the NLS software is only good for cold data that is not updated frequently.
Once you require more than 1TB RAM then you will need to move to a scale-out HANA system. This is
where
customers often go wrong. Let’s assume we use Medium (512GB) nodes and the sizing tool says we need
100GB for the row store and 1.5TB for the column store. The row store requires one master node, and the
column store fits on the remaining nodes. This means that we need 4 active nodes, plus one standby node
if we want high availability. That’s 5x Medium (512GB) nodes for production.
Now we need to architect for disaster recovery, and we can take the same as production.
Now we can architect our test system. If our disaster recovery can be warm (i.e. take some time to start up
in case of a failure) then we can share this with our test system. This may make sense if you want a
production sized copy in test. Note that if you do not have a DR system you will need a dedicated test
system. If you have a scale-out production environment, always ensure you have a scale-out test system
for scale-out testing.
And now you need a development system. Normally I recommend copying the existing system, and one
512GB node should be sufficient unless development is a copy of production. Use common sense.
From here you can work with a hardware vendor for the best approach, but be careful – the hardware vendors
often cut some items out to cut cost (or indeed add extra hardware to get a larger sale), and I’ve dealt with a
number of customers who have been bitten by this and have had to buy substantial amounts of extra hardware.
Ensure that your hardware partner has an upgrade policy for the amount of hardware you expect to need in the
low cost, and you will just sacrifice performance. With HANA, you will have overspent, or will have to spend
a significant amount to change your HANA architecture. Depending on your design, this can be very
inconvenient.
Your first HANA deployment is critical, because it will set the tone of sentiment in the business for HANA as
a technology stack. Take the time to get this part right, and you will help your BW on HANA deployment on
its way. Your project will appreciate you for it!
Thanks to HANA Distinguished Engineer Lloyd Palfrey for his input on the original blog!
28b) Sizing the SAP Business Suite on HANA
Initial Sizing observations for Suite on HANA (SAP enhancement package 6 for SAP ERP 6.0, version for
SAP HANA, SAP enhancement package 2 for SAP CRM 7.0, version for SAP HANA, SAP enhancement
package 2 for SAP SCM 7.0, version for SAP HANA, SAP enhancement package 3 for SAP Supplier
Relationship Management 7.0, version for SAP HANA)
Initial sizing observations are based on lab measurements, load tests and measurements performed in customer
test systems.
This information may change, if additional measurement results are available.
This information is only valid, if the system usage is not changed after the move; intense additional reporting
and OLAP processing is not taken into account.
Application Server
Based on the measurements SAP doesn’t expect any changes concerning CPU, memory and network
requirements for the ABAP application server. This means that the existing hardware and network
infrastructure can still be used. Please check the PAM (www.service.sap.com/pam) for further details.
The current recommendation from SAP is that you should take half of the size of an uncompressed but “well-
maintained” disk-based database and include a safety buffer of 20%. This means, if the database is currently
approximately 1,8 TB in size (tables plus indexes), SAP recommends a HANA appliance of 1 TB.
You should not forget to consider your future data growth into your planning.
SAP doesn’t expect changes in memory requirements for applications using liveCache.
The appliance is configured in such a way that the CPU power and the I/O capacity is sufficient.
To fully support the parallel processing capabilities of HANA for optimal response times for analytical
applications SAP prefers a factor of 3 to 4 more CPU power for HANA than for disk based databases without
parallelization of single statements.
This also provides a buffer for running OLTP and OLAP load simultaneously.
If other software is running on the database server, please be careful to identify the CPU consumption of the
database.
You can for example look at the CPU consumption of the database process(es) using SAP’s monitoring tools.
Regarding the disk space of Suite on HANA, SAP recommends to use half of therequired
disk space that is needed for the Business Suite for disk-based databases.
Please note that this does not mean that each table just needs half of the disk space as compared to a disk based
database.
For initial sizings you should use the Quick Sizer (www.service.sap.com/quicksizer) results for database size
(DB Disk) and CPU requirements (DB SAPS) as input for HANA main memory, disk space and CPU sizing.
ref: Note 1793345 – Sizing for Suite on HANA
contains a fantastic pdf document containing a step by step procedure for setting up Kerberos with HANA+
The configuration is a complex task with various sources of error.
Main reasons are the cross OS nature of the setup (Linux/ Windows), often resulting in problems with case
(Windows: case insensitive, Linux: case sensitive) and the tight integration into the network configuration
(/etc/hosts, DNS).
In particular, there are various sources of error when creating the keytab and exporting it from Active
Directory.
The process is highly manual and consists of several steps across different operating systems and hosts.
A python script is provided in SAP Note 1813724 which automates the creation of the keytab.
In addition, the IP configuration at the HANA appliance is validated (hostname resolution/reverse lookup) and
the Kerberos configuration is checked for consistency with the remote Active Directory.
Unzip the attached hdbkrbconf.zip and run as adm
$ python hdbkrbconf.py -h
for help.
There are two main options, “-k” for creating the keytab and “-v” for validating the configuration including the
keytab.
Option “-V” will provide verbose output, together with an analysis file for SAP support.
This file will also be written in the event of an error.
More info, check: SAP Note 1813724 – HANA SSO/Kerberos: create keytab and validate conf
[row_engine]
page_compaction_max_pages =
Row store memory size is a lot bigger than the actual data size in row store and shows high fragmentation
ratio.
Row store grows by allocating a 64MB memory segment and shrinks by freeing empty segments.
A segment is internally divided into fixed-size pages. When a row store table requires more memory to store
records, the table takes a free page from existing segments. If no segment has a free page, a new segment is
allocated.
The pages in sparse segments are moved to other segments and the resultant empty segments are freed.
If the prerequisites are not satisfied, row store reorganization should not be executed.
The prerequisites, queries, and monitoring views used for the queries are applicable to Rev 50 and to change in
future releases.
o HANA Database Rev 50 or later
– HANA Database has to be upgraded prior to run row store reorganization
CALL CHECK_CATALOG
(‘CHECK_OBJECT_REFERENTIAL_INTEGRITY’,”,”,”);
o Row store reorganization is recommended, when allocated row store size is over 10GB and free page ratio is
over 30%.
SELECT HOST, PORT,
CASE WHEN (((SUM(FREE_SIZE) /SUM(ALLOCATED_SIZE)) > 0.30)
AND SUM(ALLOCATED_SIZE) > TO_DECIMAL(10)/102410241024)
THEN 'TRUE' ELSE 'FALSE' END "Row store Reorganization Recommended",
TO_DECIMAL(SUM(FREE_SIZE)100 / SUM(ALLOCATED_SIZE), 10,2) "Free Space Ratio in %"
,TO_DECIMAL( SUM(ALLOCATED_SIZE)/1048576, 10, 2) "Allocated Size in MB"
,TO_DECIMAL( SUM(FREE_SIZE)/1048576, 10, 2) "Free Size in MB"
FROM M_SHARED_MEMORY
WHERE
( CATEGORY = 'TABLE' OR CATEGORY = 'CATALOG' )
AND PORT LIKE '%03'
GROUP BY HOST, PORT;
If the result of “Reorganization Recommended” is “TRUE”, then row store memory can be reclaimed after row
store reorganization.
Please check the indexserver trace files after row store reorganization is done.
Row store reorganization is performed in 11 phases when successful.
It prints out “[RSReorg] start” message at the beginning,
All three methods are described in great detail and with screenshots in the
Knowledge Base Article:
o dbsl_equi_join
You can use this hint for a FOR_ALL_ENTRIES in order to inform the
DBSL that an EQUI join can be created from this FAE statement; this
EQUI join can then be resolved for an IN data set.
You must then specify this hint together with the hint of the DBI interface
(&prefer_join 1&) in the statement (see Note 48230).
ABAP
SELECT * INTO FROM FOR ALL ENTRIES IN itab
WHERE a = itab-a AND b = itab-b AND c = itab-c AND d = itab-d
%_HINTS HDB '&prefer_join 1&' hdb 'dbsl_equi_join'
From this, the system generates the following statement for the
database
SQL for the database
select * from where (a, b, c, d) IN ( (?, ?, ?, ?), ... (?, ?, ?, ?) )
o dbsl_add_stmt
Use: dbsl_add_stmt
This hint provides you with the option of adding an additional SQL
enhancement to the SQL statement in the DBSL. This hint is resolved
in the DBSL and the system appends the following text to the end of
the statement that was generated (after the keyword
dbsl_add_stmt).
ABAP
SELECT node FROM CONNECTION ('HANA') INTO TABLE T_NODE
%_HINTS HDB 'dbsl_add_stmt WITH PARAMETERS (''expression'' =''LEAVES("Node1")'' )'
SQL for the database
select node from table with parameters ( 'expression' = 'leaves("Node1")' )
Note
In Release 7.20, you cannot use the keyword %_HINTS HDB to define the
hints for SAP HANA; instead, you must use the keyword %_HINTS ADABAS.
The database interface ensures that this hint is also generated for an SAP
HANA Connection.
Ref: Useful OSS SAP Note 1622681 – DBSL Hints for HANA
33) hdbrename
http://help.sap.com/businessobject/product_guides/HAN01SP4/en/HANA_sps4_HDB_server_inst_en.pdf
You can rename an SAP HANA database system as described in this section.
Caution:
Renaming a SAP HANA database system that is running with a permanent SAP license invalidates the license
so that the instance is locked down.
You need to request a new license key with the new system ID and the new hardware key (generated by
renaming) in order to unlock the renamed system.
This especially impacts renaming in batch mode: since the renamed instance is locked down, no other activities
except license installation are then possible.
For more information, see SAP License Key.
• You identify an existing SAP HANA database system, created by an installation or a file system
copy, that is to be renamed.
• The target system ID (SID) must not exist.
• If a mountpoint contains the system ID, you must first rename it manually before performing the rename of
the SAP HANA database.
To rename the instances of a distributed system, you perform the rename for all hosts with a single call of
hdbrename.
In interactive mode, the program queries all essential parameters that are not defined using command line
options as well as parameters that have invalid values.
a. Open a root shell.
b. Via the local mount point, change to the following directory on the shared file system:
///global/hdb/install/bin
c. Call the hdbrename program by entering this command:
./hdbrename
34) hdbnsutil
Example Usage:
SAP Note 1738390 – How to update SAP HANA Linux server hardware key
When you have installed SAP HANA, you want to update the Linux server hardware key.
Prerequisite: You have logged on to Linux as SAP HANA instance administrator.
To update the hardware key, follow the procedure below:
in /usr/sap//SYS/global/hdb/custom/config/nameserver.ini
Execute ‘hdbnsutil -convertTopology’
NOTE: Reinstallation of SAP HANA will generate a different hardware key, but upgrade of SAP HANA will
not change the hardware key.
35) hdbsrvutil – Example Usage
SAP BW on HANA Cookbook
Collecting Location and Usage Information
There is a Python script which allows you to collect support information for customer systems even when no
access to the system via SQL is possible.
This information can be added to the support message.
The name of the Python script is fullSystemInfoDump.py and is part of a server installation.
It runs from a command line and is located in the directory $DIR_INSTANCE/exe/python_support (Linux).
To execute the script adm rights of the customer system are required.
To start the script out of its location directory, enter: python fullSystemInfoDump.py
By default the script creates a zip file with all of the collected support information to the
directory DIR_TEMP/system_dump where DIR_TEMP is the content of the variable with the same name in
sapprofile.ini
This output directory is shown as console output when the script is running, but it can be looked up by
entering:
hdbsrvutil -z | grep DIR_TEMP=
To change the default directory, an explicit absolute path can be given to the script, for example:
python fullSystemInfoDump.py
Usage information can be displayed by entering
python fullSystemInfoDump.py –h
To collect support information you need an SQL user with rights to select the system tables and views listed in
System Tables/Views.
For security reasons the user name and password for this SQL user cannot be given as command line
parameters to the script.
If the customer system can be reached via SQL and the user name and password information is valid, the script
starts collecting support information. If user name and/or password are invalid, the script aborts.
If the customer system cannot be reached via SQL the script only collects information which can be read
without SQL access.
eg /usr/sap/HDB/HDB00/HDB info
The OSS Note contains excellent attachments, make sure to download them.
1650046 – IBM SAP HANA Appliance Operations Guide
41) SAP HANA Administration Guide
[[http://help.sap.com/HANA/HANA_admin_en.pdf |
41b) SAP Hana Master Guide
SAP Hana Master Guide
42) SAP HANA Administration tables/views
A great blog by Balaji Rajendran explaining some of the most important HANA tables/views required for
administration
To be continued
43) The time stamps for the “Start Time” in Data Provisioning
of HANA Studio are UTC time
The time stamps are supposed to be displayed as UTC time in Data Provisioning of HANA Studio.
It was a design decision to use UTC time to allow the replication schema to accommodate systems from
differing time zones. Using UTC time simplifies this task as then it is not necessary to consider the time zone
for each of the connected SLT and their respective source systems.
The time stamps you see in Data Provisioning match the internal time stamps which are used in the replication
process on each connected SLT system.
The system works as designed.
1861325 – HANA: “Start Time” of replication on all tables are UTC time in Data Provisioning of HANA
Studio
cat /etc/SuSE-release
If you are running on SLES 11 SP2 the following values should be shown:
Or you would like to restore the backup created when the SAP HANA script server was not activated.
You must not simply stop the SAP HANA script server service. Since it has its own persistency, it is relevant
for backups. A data backup fails if the SAP HANA scriptserver volumes are still entered in the topology but
the service is not running.
Carry out the following steps to stop SAP HANA script server and remove SAP HANA scriptserver from the
topology:
o Stop all the applications that use the database.This is required because a new data backup has to be created
after you remove SAP
HANA scriptserver. A log replay over the time of the service removal is not supported.
o Determine all the hosts on which SAP HANA scriptserver services are active:
select host from m_services where service_name =’scriptserver’
o Determine the volume ID of the SAP HANA scriptserver services:
o Remove the SAP HANA scriptserver service entry from the topology.
To do this, carry out the following command for every with an SAP HANA scriptserver service:
Total Disk Usage represents the file system point of view and is identical to what
Volume size refers to the size of the HANA volumes on file system level
This is effectively the output of the following SQL statement:
If there is a huge difference between “Volume Size” and “Disk Usage”, this would
indicate that a lot of space on files system level is consumed by files not related
to data volumes, log volumes or trace files. In this example, this is true for the
trace volume. All trace files together just consume around 100 MB, but consumed
disk space is actually close to 19 GB:
SIZE_MB
117,222
In cases like this, the ‘du’ command, executed against the file system in question,
The file system containing the trace files also contains the executables of HANA software
(present and previous version), hence the difference in volume and disk usage.
Volume Size and Volume Utilization
Data Volumes
If the percentage of unused space is high, shrinking the volume can be considered.
The relevant system management command is outlined in SAP HANA Reference:
Log Volumes
The number of log segments that consume space can either be determined using HANA Studio
or using SQL statements against view M_LOG_SEGMENTS
SAP note 1679938 explains how to free space in case that the log volume is full.
Trace Files
If the trace files are contributing to the disk usage of the file system where they are located
(see section ‘Volume Size vs. Disk usage’), then 2 cases have to be distinguished:
Space consumed by a large number of files that are not exceptionally large or
Individual files that are significantly larger than expected.
The number and size of existing trace files is influenced by the following factors:
(1) Activated trace components. This can be verified by using the following SQL statement:
select distinct(“SECTION”) as “TRACE”
from SYS.M_INIFILE_CONTENTS
where ((“SECTION”=’trace’)
or (“SECTION”=’sqltrace’ and “KEY”=’trace’ and “VALUE” = ‘on’)
or (“SECTION” like ‘traceprofile_%’)
or (“SECTION” = ‘expensive_statement’ and “KEY”=’enable’ and “VALUE” = ‘true’))
and “LAYER_NAME” = ‘SYSTEM’
(2) Incorrect configuration of trace file rotation:
The relevant parameters are maxfiles and maxfilesize
47) Log Volume is Full and the Database Doesn’t Accept any
new Requests
If the log_mode is set to legacy the logvolume keeps all log segments since the last full backup in the
logvolume.
If no backups are performed the logvolume can run out of space.
Solution
1. Stop the database:
HDB stop
2. Change into the folder mnt00001 of the logvolume (Default: /usr/sap//global/hdb/log):
cd /usr/sap//global/hdb/log/mnt00001
3. You have to move one of the logvolumes temporarily to another volume where enough space is available.
You should free at least 2 GB of space to ensure that the database has enough space to start.
To find out the space consumption of each volume execute:
du -sh
4. Move a volume which consumes at least 2 GB of space (e.g. hdb00003)
mv /usr/sap//global/hdb/data/hdb00003 /usr/sap//global/hdb/log/mnt00001
10. Start the database (HDB start)
As for texts (e.g. view column descriptions), the DU TAR-GZ-files contain only the texts in the original
language (typically, English), but no translated texts (e.g. for German, Chinese etc.).
Translated texts for DUs are distributed in the form of Languages-DU-TAR-GZ-files.
At the moment (HANA SP5/revision 45), those cannot be imported using the SAP HANA Studio.
To deploy translated texts, the command line tool “Regi” can be used.
“Regi” is bundled with the HANA client installation (it is also bundled with the HANA server installation).
Note that Regi is only included in the 64bit Windows and Linux versions of the HANA client.
Here is a step-by-step guide to deploy translated texts using Regi:
1) Start a command line window and navigate to the folder of your HANA client installation.
/usr/sap/hdbclient
2) Set the user, password, host and port of the connection to the HANA system using environment variables.
On Windows, the commands are:
set REGI_HOST=:315
set REGI_USER=
set REGI_PASSWD=
where “” is a two-digit number identifying the instance number of the HANA system.
On Linux (bash), replace the command “set” with “export”:
export REGI_HOST=:315
export REGI_USER=
export REGI_PASSWD=
The prerequisites are that you have installed an SAP system with SAP HANA as the primary database
and you have installed SAP HANA Studio in which the database that is to be copied is set up as a system.
The version of the SAP HANA database server must be at least Version 1.00 Revision 28.
For carrying out the system copy, you must use SWPM 1.0 Support Package 1 or higher.
The scenario for this reference example is: You want to copy the BW system PRD connected to the database
PR1 to the BW system DEV connected to the database DV1. The name of the ABAP schema in PR1 is
SAPPRD.
Therefore, PRD is the source system (the system that is to be copied), PR1 is the source database (the database
system that is to be copied), DEV is the target system (the copied system), and DV1 is the target database (the
target database system).
SAPPRD is the (database) schema (the schema name) or the database user of the system.
Procedure
SAP HANA Database – Backup and Recovery Guide on SAP Help Portal.
a) In SAP HANA Studio, right-click the database system that is to be copied and choose “Backup…”.
b) If possible, select “Complete Data Backup” as the Backup Type and “FILE” as the Device Type.
Under Location, enter a directory in which the backup files are to be stored and enter a prefix for the backup
files under Backup File Prefix.
Ensure that the backup directory contains sufficient free space for the backup and that no backup that has the
same prefix already exists there.
Then choose “Next”.
c) Check your entries and choose “Finish” to start the backup or choose “Back” to correct your entries.
d) Wait until the backup has been created and then close the dialog box.
a) Copy all backup files to the standard backup directory of the target database system.
The backup files are saved in the standard backup directory of the source database system and begin with the
prefix entered in step 1.
b) Choose -> -> System Copy -> Target System -> ->
For example, if you install a system DEV and use a backup of the system PRD for the installation, you must
specify SAPPRD as the schema in the dialogs but not SAPDEV.
The same applies to the DBA Cockpit schema.
f) In the dialog Database Recovery, enter the name (prefix) of the backup.
In addition, you can specify whether you want the system to check whether the backup exists.
If this check is deactivated and the backup does not exist, the installation will terminate with an error at a later
time.
You also have to specify the password of the adm user of the database and the SAPControl URL.
The system prefills the SAPControl URL; it usually does not have to be changed.
4. Installation
a) After you complete the following dialogs, you can start the installation.
b) During the installation, the system may issue an error message such as:
Error during execution of HdbCmdClazz ‘ABAP_PRE_LOAD_EXECUTION’
com.sap.hdb.core.main.cmd.HdbCmdMain
This license must be implemented manually using the SAP HANA Studio.
To do this, right-click the target database system in the SAP HANA Studio and choose “Properties”.
In the subsequent dialog, choose “License” and then choose “Install License Key”.
Select a valid license for the target database and confirm your selection with “OK”.
As soon as the license has been installed successfully, you can proceed with the installation in
the SWPM by choosing “Retry”.
5. Additional adjustments after the installation
a) Check the secondary database connections.
After you copy the database, the target system has the same database connections (for example, for the DBA
Cockpit) as the source system; this may cause problems.
Therefore, you must check the database connections in transaction DBCO and adjust them if required.
The incoming requests are processed automatically within a few hours (maximum processing time: three
working days).
In the SAP HANA Studio, select your system in the Navigator and choose the option to display the attributes
in the context menu of the system.
On the “Request license keys” tab page, choose either “Search an installation” or “select it from a list” and
search for an ERP or an SAP NetWeaver installation.
In the installation list, you can enter the installation number directly in the blank field in the column for the
installation.
Alternatively, you can also use the installation search. Here, the system displays all of the installation numbers
for which you have to request the license key authorization.
You can also split your acquired SAP HANA license (total amount) over several instances (also over several
installation numbers).
Choose “Save” to save your entries.
Therefore, always check how much main memory you have currently licensed by contract.
For test and development systems, you can request license keys as required.
These license keys are permanent and contain the licensed memory amount number for each request at the
most.
You can then choose “Open – File – Save as” to save the license key file directly to your host.
Installing the license key
You can install a permanent license key, which you received by e-mail or download, in your SAP HANA
database only by using SAP HANA Studio.
The prerequisite for this is a database user with the system authorization LICENSE ADMIN.
In SAP HANA Studio, navigate to the properties page of the database for which you have requested the license
key.
On the properties page, choose the button for installing the license key.
Navigate to your license file and select it.
After a successful confirmation, the properties page of the system is updated with the new license information
if this is valid for the database.
Another option of installing a license key is to use the SQL command line of SAP HANA Studio.
In this case, you also require a database user with the system authorization LICENSE ADMIN, who can install
a license key with the following SQL command:
SET SYSTEM LICENSE ”
Note that you must use the complete content of the license file, including the line breaks, for this command.
If the specified license data is correct and corresponds to the database (hardware key, system ID), the license is
updated in the database, and you can verify it in the system view M_LICENSE.
Emergencies
If a production standstill occurs, you can create a message with priority 1 under component XX-SER-LIKEY
to request a temporary license key that is valid for one week.
The following data is required for the license key to be issued:
System ID, hardware key, and installation number.
The key is issued immediately. Request a permanent license key within this week.
ref: Note 1644792 – License key req./installation SAP HANA databases (HANA SPS3)
PDF Export
Demo Applications
BPM
EP Core – Application Portal
Enterprise Portal
BI Java
Advanced Adapter Engine
Composition Platform
Guided Procedures
AS Java Extensions
Development Infrastructure
Definition: “SAP HANA appliance”: “SAP HANA appliance” means a single SAP HANA node server or a
scale-out cluster of multiple server nodes within one logical SAP HANA system.
This described scenario has also been called Multiple Components One System (MCOS) in regards to other
SAP applications. The term “SAP HANA system” is used interchangeably with the term “SAP HANA
appliance”.
In this context, some new terms are introduced: “Multiple DBs One HANA” (MDOH), and “Multi-SID”.
SAP does not support running multiple SAP HANA databases on a single production SAP
HANA appliance
SAP does support running multiple SAP HANA databases on a single non-production (DEV,
QA, test, etc) single-node SAP HANA appliance.
While SAP HANA is delivered by the hardware partners with one DB installed, additional DBs can be
installed by an SAP consultant who has access to SAP internal documentation for this purpose.
SAP does support multiple DBs on a distributed (multi-node) non-production SAP HANA system as an SAP-
managed project solution.
Additionally., SAP plans to offer generally available support for this in the near future; this note will be
updated when this status changes.
Special Considerations:
Please ensure that your system is sized appropriately for any additional DBs that you wish to deploy. SAP
recommends working closely with your hardware partner to ensure adequate capacity planning.
Please be aware that running multiple DBs on one SAP HANA system may impact performance of various
types of operations, as contention for memory resources may occur.
Note this multiple DB one SAP HANA configuration isonly available for non-production SAP
HANA systems, where consistently fast performance is generally not as critically important as with
production systems.
If performance issues arise when running multiple DBs on one SAP HANA system, stop all but one of the DBs
and see if the performance issue persists.
SAP support have stated they will only address the performance issue only if it exists when
only one DB is running on the SAP HANA system.
ref: SAP Note 1681092 – Support for multiple SAP HANA databases one HANA
“SAP NetWeaver BW powered by SAP HANA (BW on HANA). For more information,refer to SAP note
1666670.
SAP Suite Accelerator (aka “Application Acelerator”)
Things to take into consideration when running multiple components on one HANA system
Upgrades and patches:
– Applying SAP HANA support packages and revisions will affect all applications residing within the SAP
HANA database or utilizing other SAP
HANA components.
– Applications deployed on a single SAP HANA may have to be patched and/or upgraded at the same time due
to direct dependencies on SAP HANA patch levels.
– Packaged Applications releases, support packages or patches may have direct dependencies on SAP HANA
revisions, patches and support packages.
– Packaged applications may have independent release cycles to SAP HANA and may have independent
timeline for support of SAP HANA release levels and support packages.
Resource allocation and capacity planning:
If you are running multiple applications on one SAP HANA system, there is a risk that one application’s
processing operations could consume a
significant amount of available CPU and memory resources, thereby reducing the amount of such resources
available for the processing operations of the other applications at a given point in time.
Such contention for system resources may negatively impact performance of any one application’s processing
operations.
This means that when performing capacity planning, you must determine the resource allocation needs for
each application, then add them together to estimate the required sizing for your SAP HANA system.
It is important to avoid underestimating sizing, as this will help mitigate the risk of performance issues due to
contention for system resources.
System Management, Workload Management and Monitoring:
SAP HANA monitoring, debugging and support tools are not individual application or schema-specific, they
are supported at the SAP HANA database level.
SAP HANA scale out distribution options (including node fail over) is offered at the database level, not at an
individual application or component level.
Stopping and starting the database is a database wide operation.+
Backup &; Recovery:
– Backup and Recovery is currently supported only at the SAP HANA database and component level (e.g.
SLT, Data Services) and not at a specific
application level in an MCOD scenario.
This means that a point-in-time recovery for the SAP HANA system will impact all applications residing on
that SAP HANA system.
Please note that various point-in-time recovery scenarios (recovering SAP HANA or recovering a connected
SAP Business Suite system) will likely entail re-initializing and re-loading replicated data into SAP HANA.
Depending on data volume, this could be a time-consuming process.
Lifecycle management:
– All applications should be isolated from each other in separate database schemas.
– System copies of applications are not available at an individual applications level.
High Availability &; Disaster Recovery:
– HA and Disaster Recovery is currently supported only at the SAP HANA database and component level (e.g.
SLT, Data Services) and not at a specific application level.
Security:
– Customers are responsible for implementing security models to protect and/or isolate application artifacts
(e.g. users, data, metadata, database
objects)
Production support systems (“Break fix systems”) and Quality assurance system:
– It is recommended that “break fix” and QA systems have the same configuration as the production system so
that customers can replicate
issues and test corrections in systems that are representative of the production environment.
ref: 1661202 – Support for multiple applications on SAP HANA
and the complimentary OSS Note
More information: SAP HANA Backup and Recovery Guide, available on SAP Help Portal
2. Check that there is sufficient disk and main memory capacity on the target database host.
The available main memory should be able to hold at least twice the size of your row store data.
To find out how much this is, execute the following SQL statement:
select sum(allocated_page_size)
from M_CONVERTER_STATISTICS
where type = 'RowStoreConverter';
The result is the total size in bytes.
Multiply this value by 2 to obtain the absolute minimum size of main memory required.
The total number of index servers on the target database must be the same as on the source database.
(The number of index servers is normally the same as the number of hosts.)
Thus additional index servers must be configured in your target database.
To configure additional index servers, you need to change the daemon.ini file.
To change the daemon.ini file, execute the following statement (for example, with instanceids 40 and 42):
alter system alter configuration(‘daemon.ini’,’system’)
[indexserver.c]
instanceids = &,&,…
&and &must be even numbered ports starting at 40 with an interval of 2.
For example, for a triple host source system, you would need two additional instanceids and you can use 40,
42, …
4. Check that the additional index servers are configured in your target
instance.
In SAP HANA studio, go to the Landscape tab.
The description indicates which are the added index servers (“HDB Tenant Index Server on Port 300&”, where
& corresponds to the instanceids you elected earlier).
$(DIR_INSTANCE)/../SYS/global/hdb/metadata/
BackupCatalog.xml
$(DIR_INSTANCE)/../SYS/global/hdb/metadata/
BackupCatalog_Recover.xml
8. Copy the data backup files and, optionally, the log backup files from the source database to the
corresponding directories in the target database.
Note:
The directories for data and log backup are defined by the parameters basepath_databackup and
basepath_logbackup in the global.ini file.
9. Start the recovery of the target database system.
In SAP HANA studio, select the target database system and choose Recovery… from the context menu.
10. Select a recovery type.
14. Select the option Install new license and specify the license file.
15. Choose Next.
ref: SAP Note 1749467 – Copying SAP HANA From a Multiple- to a Single-Host System
SAP EHP 6 for SAP ERP 6.0, version for SAP HANA
SAP EHP 2 for SAP CRM 7.0, version for SAP HANA
SAP EHP 2 for SAP SCM 7.0, version for SAP HANA
apply:
a) High availability scenarios in a multi-node cluster with a standby-node are released for the Suite on HANA,
but are restricted to the simplest case of two servers (one worker, one standby) only, since scale-out in general is
not yet supported for Suite on HANA.
b) Scale-out scenarios with multiple worker nodes to scale memory are not yet released for Suite on HANA.
It is recommended to scale-up memory by using a hardware configuration that maximizes the available database
memory.
ref: SAP Note 1825774 – SAP Business Suite Powered by SAP HANA – Multi-Node Support
All of this information is specified in the SAP Note 1950470 which is kept up to date
ref: SAP Note 1950470 – Hardware Prerequisites for Business Suite on SAP HANA Scale Out
54b) HANA Architecture – Guidance from IBM and SAP for
Highend Customer Landscapes based on SAP HANA
Attention has been drawn to this document by +HANA Distinguished Engineer and SAP Mentor Tomas
Krojzl .
This document is guidance for large Customers implementing HANA.
The document is a must read for all HANA Basis Architects involved in HANA implementations.
High-end customer landscapes based on SAP HANA+
– http://public.dhe.ibm.com/common/ssi/ecm/en/xsw03129usen/XSW03129USEN.PDF
1650046 – IBM SAP HANA Appliance Operations Guide
Checkout the PDF’s attached to the OSS Note
1990413 – How to connect BI applications to SAP HANA when there are multiple HANA servers
55) How to Overcome the HANA Hardware Check or Hardware
not recognised errors during Installation
You have received new hardware from your Hardware-Partner for your SAP HANA appliance or recently
bought a new SAP HANA on top of new hardware.
When installing the newest SAP HANA Revision the hardware check fails for your hardware configuration.
Beginning with SAP HANA Revision 18 a new Hardware check is mandatory when executing the SAP HANA
Installer.
The reason for this check is the elimination of problems due to wrong or unsupported Hardware configurations in
combination with the SAP HANA appliance.
Since hardware validation is a continuing process as new hardware becomes available on the market, the check
for allowed configurations will change over time to include newly certified hardware.
When installing any SAP HANA Revision your new hardware may not be recognized by the check, because it
was not yet included at the corresponding release date.
The solution to this problem is, to go to SAP Note
‘HANAHwCheck.py’
in the
‘server\linuxx86_64\SAP_HANA_DATABASE\server’
subdirectory of your SAP SMP download with the version attached to this note.
ref: OSS 1658845 – Recently certified SAP HANA hardware not recognized
If the SLD does not meet the pre-requisites then it is necessary to apply the Java patches to the SLD according
to SAP Note 1649323.
To successfully register the SAP HANA Database in the SLD use either:
– sldreg, following the HANA Installation Guide with SAP HANA unified installer, page 46, chapter 2.3.7.5
Configuring a SAP HANA System to Connect to System Landscape Directory (SLD)
You mount the DVD with the HANA configuration tool, which you can find at the following location on the
SAP HANA DVD:
&\DATA_UNITS\HANA_IM_LINUX__X86_64
If you specify the host name, make sure that it is fully qualified, such as:
myhost.sap.com (not just myhost).
1. Connect to the system with an X server client to enable GUI system access.
2. Open a root shell and go to the directory where you mounted the SAP HANA DVD, by entering a command
like the following:
cd /mnt/ &DATA_UNITS/HANA_IM_LINUX__X86_64
4. Choose Configure SLD Connection, then Next . Follow the instructions of the wizard.
Configuring Connection to SLD in Interactive Mode
Before you continue, make sure that you meet these prerequisites:
You are logged on to the host where the server software is installed.
You are logged on as the root user.
In interactive mode, the program queries all essential parameters that are not defined using command line
options and if invalid parameters are entered the program interrupts the process.
1. Open a root shell.
cd /mnt/&DATA_UNITS/HANA_IM_LINUX__X86_64
In batch mode, you specify all required values using command line options.
If you omit required values or specify invalid values the program interrupts the process.
1. Open a root shell.
– RZ70
ref: 1871902 – Cannot find registered HANA DB system in the Technical Systems view of the SLD
In SPS05 the On-site Configuratio supports multiple systems on single SAP HANA appliance.
If you need to configure SLD connectivity for multiple systems in SPS04 the best approach is to update the
systems and the On-site Configuration tool
to SPS05. In this way you will have system and tools with the correct and integrated behaviour.
If this is not possible you can configure the SLD connection manually by using the sldreg tool.
Example:
su &adm -l -c ‘”/usr/sap/&SYS/exe/hdb/sldreg” -configure
“/usr/sap/&SYS/global/slddest.cfg”‘
Replace &with the SID of your system.
For addtional SLD configurations you can take a look in the SAP HANA
•. OSS 1898460 – #SAP #HANA : How to handle alert “Check internal disk full event”
•. OSS 1898505 – #SAP #HANA : How to handle alert “Check last save point time”
•. OSS 1899511 – #SAP #HANA : How to handle alert ‘Check currently utilized percentage of main memory’
•. OSS 1899528 – #SAP #HANA : How to handle alert ‘Check for new rte dump file’
•. OSS 1899480 – #SAP #HANA : How to handle alert ‘Check license expiration’
•. OSS 1900261 – #SAP #HANA : How to handle alert ‘Check a long lived cursor’
•. OSS 1900296 – #SAP #HANA : How to handle alert ‘Check database supports point-in-time recovery’
•. OSS 1900267 – #SAP #HANA : How to handle alert ‘Check whether the database is running in log mode
overwrite’
•. OSS 1900257 – #SAP #HANA : How to handle alert ‘Check used memory against allocation limit’
•. OSS 1900788 – #SAP #HANA : How to handle alert ‘Check last log backups’
•. OSS 1900730 – #SAP #HANA : How to handle alert ‘Check the age of last data backup’
•. OSS 1900795 – #SAP #HANA : How to handle alert ‘Check last data backup’
•. OSS 1900728 – #SAP #HANA : How to handle alert ‘Check whether a data backup exists’
•. OSS 1900682 – #SAP #HANA : How to handle alert ‘Check availability of volumes for backup’
•. OSS 1898317 – #SAP #HANA : How to Handle Alert ‘Check host free physical memory’
•. OSS 1910188 – #SAP #HANA : How to Handle Alert ‘Check record count of column table partitioned’
•. OSS 1910159 – #SAP #HANA : How to Handle Alert ‘Check number of connections’
•. OSS 1910169 – #SAP #HANA : How to Handle Alert ‘Check for not assigned volumes’
•. OSS 1909641 – #SAP #HANA : How to Handle Alert ‘Check param mergedog delta merge’
•. OSS 1909707 – #SAP #HANA : How to Handle Alert ‘Check lock waittimeout’
•. OSS 1909763 – #SAP #HANA : How to Handle Alert ‘Check record count of not partitioned column table’
•. OSS 1909742 – #SAP #HANA : How to Handle Alert ‘Check delta memory record counttable column
count’
•. OSS 1909670 – #SAP #HANA : How to Handle Alert ‘Check host CPU utilization’
•. OSS 1902033 – #SAP #HANA: How to Handle Alert ‘Check Inactive Service’
Out of memory (OOM) dumps
Memory related SAP HANA alerts
High memory consumption of SAP HANA
Heap memory is constantly growing
Checkout the manual steps and useful SQL statements in the OSS Note:
2000792 – SAP HANA: High Memory Consumption and constantly growing on
Pool/RowEngine/QueryExecution
58d) How to check Master Job Status
One Master Job (Monitoring Job) exists for each configuration that calls the initial load jobs and the data
transfer
jobs in the SAP LT Replication Server.
Every day at midnight, the monitoring job and related data load jobs – but not the migration object definition
or
access plan calculation jobs – are automatically stopped and restarted immediately.
This action has no negative impact on the ongoing data load and replication, it will simple resume
immediately.
If the master job is stopped then all data transfer jobs are stopped too.
The following OSS Note details how to handle this:
1971486 – How to check Load Job Status
58f) How to test HANA connector
How to test the HANA connector after, creating the HANA connector from tcode DBCO
Note:
Out of memory (OOM) dumps.
Memory related SAP HANA alerts.
High memory consumption of SAP HANA.
Unloads, performance decrease and other consequences of memory bottlenecks.
1824819 – SAP HANA DB: Recommended OS settings for SLES 11 / SLES for SAP Applications 11 SP2
1944415 – Hardware Configuration Guide and Software Installation Guide for SUSE Linux Enterprise
Server with SAP HANA and SAP
60a) Hardware Configuration Guide and Software Installation
Guide for SUSE Linux Enterprise Server with SAP HANA and
SAP Business One
The SAP HANA database for SAP Business One runs on SuSE Linux Enterprise Server 11 (SLES 11).
The following OSS Note intends to provide instructions on how to configure the certified hardware platforms
and some additional information
1944415 – Hardware Configuration Guide and Software Installation Guide for SUSE Linux Enterprise Server
with SAP HANA and SAP Business One
60b) RedHat Linux Support For SAP HANA Since SPS08
Since SAP HANA Platform SPS08, RedHat Linux is now aa supported Operating System.
-> xsengine.ini
-> httpserver
-> developer_mode = true
1913500 – SAP HANA Backup Support Process for IBM Tivoli Storage Manager
1986958 – Common issues / Configuration recommendations for Symantec NetBackup for SAP HANA
66b) HP Reference Architecture for SAP HANA Backup and
Recovery
This is a very nice document from HP explaining a reference architecture for SAP Hana Backup and Recovery.
67) SAP HANA Internet of Things IoT Edition
Internet of Things IoT represents a strategic direction for SAP with HANA.
Published on Friday 8th May, is the SAP Note for the SAP HANA Internet of Things IoT Edition:
2008304 – SAP HANA platform, Internet of Things (IoT) edition 1.0 Central Note
2010194 – SAP HANA platform, Internet of Things (IoT) edition 1.0 SP01 Release Information Note
At the same time, SAP HANA XS engine also provides a web-based development environment. Only using
a web
browser, you can perform some simple development. When you either cannot install and use SAP HANA
studio
locally or you need to develop from a remote location, you can use this IDE.
This web-based IDE is called SAP HANA Web-based Development Workbench, which contains four
modules:
Editor:operate objects in HANA repository.
Catalog:manage objects in catalog.
Security:manage users and roles.
Trace:check or download trace files of XS applications.
The whole blog is here, The Configuration and Usage of SAP HANA Web-based IDE
70) Prepare a SAP Hana System for SAP Lumira installation
There is an excellent blog written by Xing Jin where all of the steps to preparing a SAP Hana
system for SAP Lumira installation are explained and with screenshots.
Prepare a HANA System for Lumira Server Install
71) SAP Hana on AWS Amazon Web Services
Amazon Web Services is a popular Cloud based hosting option for SAP Hana.
The main url for information on SAP Hana on AWS Amazon Web Services is:
SAP HANA
Amazon Web Services have produced some excellent introduction guides:
SAP Hana on AWS Amazon Web Services Quick Start Guide
SAP Hana on AWS Amazon Web Services Implementation and Operations Guide
72) SAP Hana on VMWare vSphere
SAP Hana on VMWare vSphere, the full documentation is here:
https://www.vmware.com/business-critical-apps/sap-virtualization/sap-hana.html
FAQ – SAP Hana on VMWare vSphere for Production Environments
SAP Hana on VMWare vSphere Best Practices Guide
72b) SAP HANA Support for VMWare Virtualized
Environments
There is a fantastic SAP Note from SAP explaining all of the most important information regarding
HANA Support for VMWare Virtualized environments.
Visit the SAP Note regularly, because it is the most up to date source of information in this are:
to build decision logic based on the organization’s data. This rule engine applies rules and actions as
defined
Using the SAP HANA rules framework, you can plan your decision support application development by:
Identifying the business logic to be represented by rules in your application and implement the out
calls for rule execution
Identifying data sources for your rule elements, defining alternative actions and phrasing them all
using an end user vocabulary, which will later be used as the foundation for all user-entered logic
Designing the application user interfaces that, in designated areas, should allow the insertion of
business logic
SAP MarketPlace contains all of the implementation guides and security information.
Appendix – Useful Documentation
The SAP Basis Administrator’s Toolbox contains the longest list of SAP HANA Basis
Alert Moderator
90 Comments
You must be Logged on to comment or reply to a post.
like (0)
like (0)
Like to see much more similar blogs from you in near future
Regards
Raj
like (0)
like (0)
like (0)
like (0)
Akshay
like (0)
me too and that is precisely why I have compiled this and why I will maintain it.
All the best,
Andy.
like (0)
Excellent Job
Appreciate that you shared with SCN members
like (0)
Bowya S S
like (0)
it, and harvesting it is easy and should be a part of your routine once a week
or once every two weeks.
And then, start blogging what you have learn’t and share it with others
All the best,
Andy.
like (0)
I finally had the time to look this over. We should “sit down” some time an think about how we can
make some money off our two lists with an Amazon ebook. Great job.
Regards,
Bill
like (0)
Regarding making money $$$, I am in the zen stage of my life, (turned forty two months ago) and in
this stage of my life I am so grateful for everything SAP has done for me, that I try to give back to the
SAP universe whatever I can, for free.
If you do a book, you are welcome to use any material I produce without reservation and when you
make your fortune and are sitting on that beach listening to the waves and sipping from a cool drink
like (0)
Best regards
Tom
like (0)
like (0)
like (0)
You can start the SAP system by executing the following commands
from the command line:
/usr/sap/hostctrl/exe/sapcontrol -nr <instance-nr> -function StartSystem HDB
Thank you for pointing out the difference with the Hana Developer Edition and I curious to
like (0)
that sure does help, thank you for confirming the locations.
I’ve added a section 2b) using the information you have provided.
Thank you,
Andy.
like (0)
A lot of scripts and tools are indeed not in the Developer Edition so for an Administrator it’s not the
ideal environment to practice on.
You could insert them if you have access to the SAP HANA DVD’s but I’m not so sure that is allowed
from a legal point of view. I wish SAP would add more capabilities so administrators also can
practice on the tooling / scripting etc.
Best regards
Tom
like (0)
Best regards,
Andy.
like (0)
Regards,
Sakuru.koteswararao.
like (0)
thanks, I will be doing so, next week should be an interesting new blog.
You know, you are also welcome to blog something, everybody has something they can contribute
to the community.
All the best,
Andy.
like (0)
like (0)
thanks, the hardest is doing the first execution, once the main body is there it’s just a case of
keeping adding to it as things come to mind which can be added.
like (0)
Thanks,
Rama
like (0)
like (0)
ufffffff
uffff, thanks
Andy.
like (0)
thanks.
As I said in the intro, I really missed such a resource, a one stop location Hana Reference for Basis
Administrators and that is my goal with this work.
The hard part is done, now I just need to fill in the gaps
Andy.
like (0)
This is very useful information for us. We need similar related documents will be posted in future.
Thanks
Basha
like (0)
Andy.
like (0)
Regards,
Rafikul
like (0)
thanks – a lot more work to do yet but this is going in the right direction.
Many more sections to cover, so keep watching for updates.
All the best,
Andy.
like (0)
Thanks again
Regards
Kumar.
like (0)
Valuable Information .
Regards
Kamal
like (0)
thanks,
Andy.
like (0)
like (0)
Regards,
Jerry
like (0)
Regards
Srinivas
like (0)
20. Ravi SubramanianJuly 7, 2013 at 6:01 am
Hi Andy,
Thanks a lot for putting a comprehensive guide together. Excellent cheat sheet for NW/Basis folks.
Regards,
Ravi
like (0)
like (0)
like (0)
From the Diagnosis Files tab, I downloaded the index server crash dump trace but the file is too big
and don’t know what to look for. How to find for which problem the index server is crashed?
Regards
Raj
like (0)
Sujit
like (0)
Andy.
like (0)
Thanks for a helpful list. Here are 2 which you may want to add which I did not see currently:
Forward port 80 to XS Engine (8080)
This is helpful if you would like your web app to be available on the default/standard HTTP port.
From HANA Studio, open Administration -> Configuration -> xsengine.ini -> httpserver ->
developer_mode = true
Cheers, Paul
like (0)
1. Andy Silvey Post authorSeptember 19, 2013 at 7:48 am
Hi Paul,
thank you very much for this contribution, what you have done, contributing more valuable
information to the SAP Hana Basis Administrator’s Reference is precisely what the spirit of this blog
is about.
I will add sections to the blog for your items and credit them to you.
Thank you again and all the best
Andy,
like (0)
Cheers, Paul
like (0)
please put this question into the Hana forum where it will be visible for all to contribute to and to gain
from.
Best regards,
Andy.
like (0)
28. Ishteyaque AhmadDecember 15, 2013 at 11:37 am
Thanks Andy for sharing the info.
like (0)
best regards,
Andy.
like (0)
like (0)
best regards,
Andy.
like (0)
great blog
like (0)
like (0)
Regards
Sudhir Sadhu
like (0)
Regards
Rodrigo Silveira
like (0)
like (0)
thanks – it’s a work in progress, now I need to fix the formatting grrr
I think I will find an offline blog editor tool and write it in there and then paste into here from now on.
Best regards,
Andy.
like (0)
thanks – it’s a work in progress, now I need to fix the formatting grrr
I think I will find an offline blog editor tool and write it in there and then paste into here from now on.
Best regards,
Andy.
like (0)
poorna
like (0)
Thanks
Tabrayz
like (0)
Best regards,
Andy.
like (0)
yes, that is precisely the goal of this work, to cover everything to do with Hana Administration, all in
one place, on one page, which can be scrolled up and down, and can be searched with CTRL-F and
can be stored for offline access by converting to pdf
Andy.
like (0)
like (0)
It is indeed an excellent document , I have one doubt, I am trying to keep this piece of work within
the scope of Basis Administration work, and John’s document is more oriented towards getting
Developers started with their first app.
I would suggest a better home would be for Vivek to reference it from his excellent series, the SAP
Hana Reference for Developers
If you spot other great content, more in line with Basis Admin for Hana then please highlight it and
we can add it to this work.
like (0)
thanks, that one has a video doing most of the explanation, I have deliberately focused only on items
without pictures, text specific.
Thanks,
Andy.
like (0)
You will geht the success message in the trace: [RSReorg] success (1048576 pages)
So if you have a bigger Row Store not the complete will be reorganized if this parameter will not be
changed to a higher value, maybe two or four times higher then default:
[row_engine]
page_compaction_max_pages = <value>
BR, Reinhard
like (0)
thank you, your feedback is precisely the spirit and goal of this work.
The work is updated now to include your additional information, and you
are now a member of the alumni in the introduction.
Thanks and best regards,
Andy.
like (0)
like (0)
Best regards.
Andy.
like (0)
Regards,
Hari Suseelan
like (0)
Andy.
like (0)
like (0)
Andy.
like (1)
like (0)
like (0)
Mahesh.
like (1)