Symptom
A debugger needs to be attached to an SAP HANA installation on customer site.
Caution: a debugger can bring the system to an undefined state which may lead to data loss! Only SAP HANA development should therefore perform debugging.
Caution: a debugger can bring the system to an undefined state which may lead to data loss! Only SAP HANA development should therefore perform debugging.
Other Terms
SAP HANA, Debugging, GDB, Debug-Symbols
Reason and Prerequisites
Situations that require an immediate resolution, such as production
down, or issues that cannot be reproduced in a laboratory environment
may require the attachment of a debugger to SAP HANA. This can enable
SAP HANA development to analyze the root cause or restore the system to a
sane state.
As SAP HANA Revisions are shipped with a limited set of debug symbols, debugging on customer site requires an additional package to be installed which contains the full debug symbols.
As SAP HANA Revisions are shipped with a limited set of debug symbols, debugging on customer site requires an additional package to be installed which contains the full debug symbols.
Solution
Preparation
Perform the following steps as <sid>adm:
1. Create a new directory below the SAP mount directory (default "/hana/shared"). Example:
3. Copy the Symbol Package to the newly created directory.
4. Extract it. Example:
After performing these steps, a debugger can be attached to SAP HANA. Example:
To clean up after the debugging session was completed, follow these steps:
1. Stop HANA.
2. Reset links:
You may also delete the Debug Symbol package & the directory containing the extracted symbols.
Perform the following steps as <sid>adm:
1. Create a new directory below the SAP mount directory (default "/hana/shared"). Example:
- mkdir /hana/shared/debug_symbols
3. Copy the Symbol Package to the newly created directory.
4. Extract it. Example:
- cd /hana/shared/debug_symbols
- SAPCAR -xf SAP_HANA_DATABASE100_<revision>_Linux_on_x86_64_DBG_SYMBOLS.SAR
- tar xzf BIN.TGZ && rm BIN.TGZ
- tar xzf EPM.TGZ && rm EPM.TGZ ( ≥ Revision 100 )
- tar xzf INIFILES.TGZ && rm INIFILES.TGZ
- tar xzf PYTHON.TGZ && rm PYTHON.TGZ
- tar xzf PYTHONSUPPORT.TGZ && rm PYTHONSUPPORT.TGZ
- HDB stop
- rm $DIR_EXECUTABLE
- ln -s /hana/shared/debug_symbols $DIR_EXECUTABLE
- export DEV_PATH="$DIR_EXECUTABLE"
- HDB start
After performing these steps, a debugger can be attached to SAP HANA. Example:
- gdb -p <pid of hdbindexserver>
To clean up after the debugging session was completed, follow these steps:
1. Stop HANA.
2. Reset links:
- rm $DIR_EXECUTABLE
- ln -s ../exe/linuxx86_64/hdb $DIR_EXECUTABLE
You may also delete the Debug Symbol package & the directory containing the extracted symbols.
Header Data
Released On | 24.11.2015 09:41:16 | ||
Release Status | Released for Customer | ||
Component | HAN-DB SAP HANA Database | ||
Other Components |
| ||
Priority | Recommendations / Additional Info | ||
Category | Help for error analysis |
No comments:
Post a Comment