You are on page 1of 3

2022-03-28 2031647

2031647 - How to enable SQL Trace in SAP HANA Studio


Version 6 Type SAP Knowledge Base Article
Language English Master Language English
Release Status Released to Customer Category How To
Component HAN-DB-MON (SAP HANA Monitoring) Released On 03.02.2021

Please find the original document at https://launchpad.support.sap.com/#/notes/2031647

Symptom

You want to know how to enable SQL Trace in SAP HANA Studio.

Environment

SAP HANA, platform edition

Cause

You need to get the SQL queries that are being sent to SAP HANA.

Resolution

1. Open the SAP HANA Studio.


2. Click on "Administration" button.

3. In the Administration panel click on "Trace Configuration" tab.

4. Click on the "Edit Configuration" button on the right in the SQL Trace section.

© 2022 SAP SE or an SAP affiliate company. All rights reserved 1 of 3


2022-03-28 2031647

5. The SQL Trace configuration box opens up. To activate the trace choose the "Active" radio button. If
further filters are desired you can select these at this time.

6. Click "Finish".
7. The default name of the trace file will show up like this: sqltrace_$HOST_${PORT}_${COUNT:3}.py,
unless you change it. It's recommended to change the trace file name and use filters to limit what's
being captured. Otherwise the size of the file can grow enormously.
8. Please turn off the SQL Trace after you have finished capturing your issue. You need to click on the
"Edit Configuration" button again, but this time choose the "Inactive" radio button and then click 'Finish'
to turn off the SQL Trace.
9. The location of the SQL Trace file is in the "Diagnosis Files" tab. Please attach the file to your incident.

See Also

SQL Trace

Keywords

Studio, modelling, sqltrace, generate

© 2022 SAP SE or an SAP affiliate company. All rights reserved 2 of 3


2022-03-28 2031647

Products

SAP HANA, platform edition all versions

Other Components

Component Description

HAN-STD-ADM-DBA SAP HANA Studio (Eclipse) Admin Tooling

This document refers to

SAP Note/KBA Title

SQL Trace

Terms of use | Copyright | Trademark | Legal Disclosure | Privacy

© 2022 SAP SE or an SAP affiliate company. All rights reserved 3 of 3

You might also like