28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

● JDBC API calls called by the JDBC application<br />

● JDBC API call parameters<br />

● Executed SQL statements and their results<br />

The location of the trace file is determined by the trace options.<br />

Tracing via GUI<br />

You can start tracing by running the tracing configuration tool that includes a graphical user interface (GUI).<br />

Tracing via the GUI enables you to start and configure tracing without stopping and restarting your application<br />

that is connected via JDBC.<br />

1. On the client, enter the following command on the command line: java -jar <br />

\ngdbc.jar.<br />

2. Select Trace enabled.<br />

3. Select and modify the tracing options.<br />

4. Select OK.<br />

Tracing via Command Line<br />

You can start tracing by running the tracing configuration tool and sending commands via the command line.<br />

Tracing via the command line enables you to start and configure tracing without stopping and restarting your<br />

application that is connected via JDBC.<br />

1. Display the current configuration by running the command java -jar <br />

\ngdbc.jar.<br />

2. Select trace options by running the command java -jar \ngdbc.jar<br />

.<br />

3. Start tracing by running the command java -jar \ngdbc.jar TRACE ON.<br />

Related Links<br />

Trace Options<br />

Tracing via Connection String<br />

You can start tracing by adding an option in the connection string when creating a JDBC connection.<br />

Tracing via the connection string requires you to stop and restart your application that is making the JDBC<br />

connection. Also, with the connection string, you cannot turn off tracing or set any options except setting the<br />

trace filename.<br />

Add the trace option to the connection when creating a JDBC connection.<br />

Here is an example connection string that starts tracing:<br />

jdbc:sap://localhost:30015/?autocommit=false&trace=traceFile.txt<br />

The location of the trace file is determined by the trace options.<br />

Trace Options<br />

Options when enabling JDBC tracing.<br />

360<br />

P U B L I C<br />

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

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

Using Database Client Interfaces

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

Saved successfully!

Ooh no, something went wrong!