SAP HANA Database Explorer 2.0 SP 08 Document Version: 1.0 – 2019-02-28
Total Page:16
File Type:pdf, Size:1020Kb
PUBLIC SAP HANA Database Explorer 2.0 SP 08 Document Version: 1.0 – 2019-02-28 SAP HANA Database Explorer company. All rights reserved. All rights company. affiliate THE BEST RUN 2019 SAP SE or an SAP SE or an SAP SAP 2019 © Content 1 Getting Started With the SAP HANA Database Explorer...............................4 1.1 What's New in SAP HANA Database Explorer......................................... 4 1.2 Open Catalog Objects..........................................................5 1.3 Create URL Shortcuts to Database Objects in the SAP HANA Database Explorer................ 6 1.4 Search for Database Objects in the SAP HANA Database Explorer...........................7 1.5 Add SAP HANA Cockpit Resources and Databases to the SAP HANA Database Explorer...........8 1.6 Add HDI Containers and Databases to the SAP HANA Database Explorer..................... 11 2 Security in the SAP HANA Database Explorer......................................15 2.1 Data Protection in SAP HANA Database Explorer......................................15 Delete Personal Data....................................................... 17 Delete Your Personal Data....................................................19 2.2 Securing the SAP HANA Database Explorer......................................... 20 Secure the SAP HANA Database Explorer from Web Socket Attacks......................21 3 Analyzing and Diagnosing Errors............................................... 23 3.1 Configure Tracing in the SAP HANA Database Explorer..................................23 3.2 View Diagnostic Files in the SAP HANA Database Explorer...............................24 View Diagnosis Files of an Unavailable Tenant Database.............................. 25 3.3 Traces....................................................................26 Database Trace (Basic, User-Specific, and End-to-End)...............................28 SQL Trace...............................................................33 Performance Trace.........................................................37 Expensive Statements Trace..................................................38 Kernel Profiler............................................................41 Traces and Trace Configuration for Internal Web Dispatcher............................42 3.4 Set Session Logging..........................................................44 3.5 View SQLScript Code Coverage Report.............................................45 3.6 View Database Procedures in the SAP HANA Database Explorer...........................46 Debug Procedures in the SAP HANA Database Explorer...............................47 3.7 SAP HANA Database Explorer Debugger Tutorials.....................................48 Tutorial: Connecting the Debugger............................................. 49 Tutorial: Debugging a Procedure by Setting Breakpoints..............................50 Tutorial: Debugging a Function by Setting Breakpoints................................51 Tutorial: Working With Expressions in the Debugger................................. 52 Tutorial: Working with Variables in the Debugger....................................53 Tutorial: Working With Watchpoints in the Debugger.................................54 SAP HANA Database Explorer 2 PUBLIC Content Tutorial: Quitting the Debugging Session.........................................55 4 Querying the Database.......................................................57 4.1 Execute SQL Statements.......................................................57 4.2 Execute Parameterized Statements...............................................59 4.3 Run a Query as a Background Activity............................................. 60 4.4 Use the Statement Library to Administer Your Database ................................ 61 4.5 Work With Graph Workspaces in SAP HANA Database Explorer............................63 5 Analyzing Performance...................................................... 65 5.1 Analyzing Statement Performance................................................65 Analyze Statement Performance...............................................67 5.2 Analyzing SQL and Saving Plans..................................................71 Save Plans as Files.........................................................72 Download Files........................................................... 73 5.3 Analyze Procedure and Function Performance........................................74 5.4 View Execution Plans for SQL Statements, Procedures, and Anonymous Blocks................75 6 Importing, Exporting, and Accessing Data........................................ 77 6.1 Create a Remote Source.......................................................77 Edit a Remote Source.......................................................79 6.2 Edit a Remote Source.........................................................80 6.3 Create Virtual Objects (Smart Data Access)..........................................81 6.4 Create Virtual Objects (SAP HANA Smart Data Integration)..............................82 6.5 Import Schemas, Tables, and Other Catalog Objects...................................83 6.6 Import Data Into a New or Existing Table............................................84 6.7 Import HDI Containers........................................................ 86 6.8 Export Schemas, Tables, and Other Catalog Objects ...................................87 6.9 Export HDI Containers........................................................ 89 7 Important Disclaimer for Features in SAP HANA....................................91 SAP HANA Database Explorer Content PUBLIC 3 1 Getting Started With the SAP HANA Database Explorer Use the SAP HANA database explorer to query information about the database, as well as view information about your database's catalog objects. The database explorer is integrated into both the SAP Web IDE for SAP HANA and in the SAP HANA cockpit. The database explorer contains features and functions required by both database administrators and developers. What can I do with the SAP HANA database explorer? The SAP HANA database explorer allows you to query your database and view information about your catalog objects, by providing the following functionality: A catalog browser View the definitions of all types of catalog objects, for example: tables, views, stored procedures, functions, and synonyms. Also, view the content (data) of your tables and views. An SQL console Create SQLScript procedures and queries, and then execute them or analyze their performance using the SQL analyzer. An SQL analyzer View detailed information on your queries and evaluate potential bottlenecks and optimizations for these queries. The SQL analyzer is accessible from the SQL console, as well as from the plan trace and expensive statement features in the SAP HANA cockpit. An SQL debugger View the call stack, set break points, view and evaluate expressions and variables. Related Information SAP Note 2373065 1.1 What's New in SAP HANA Database Explorer The following features are new or changed for this release of SAP HANA database explorer. All Schemas are Shown The catalog browser displays all schemas that you can work with at the system view level. SAP HANA Database Explorer 4 PUBLIC Getting Started With the SAP HANA Database Explorer Production Systems are Production systems are now labeled as such in the database explorer catalog now Labeled browser, the trace configuration editor, and any SQL console opened from a production system. AutoCommit Option You can no longer specify the autoCommit option when adding a database. You can Removed from Add specify auto-commit settings in the SQL Console section of Global Preferences or in Database Dialog your current SQL console. Improved Display of Previously, when viewing binary data in either the Data Preview table or the SQL Binary Data console results table, you were only able to view the data as text. Now, when you right-click the binary cell contents and click View Data, you can view binary data as actual binary, or (where applicable) as an image. New Schemas Object Right-click the Schemas catalog object and click Show Schemas in the context Editor menu. The Schemas tab opens, which shows detailed information for all schemas in the current system. Click a specific schema, either in the schema tab or the item list to view detailed information about the schema. Schema Filters are Schema filters now persist between sessions, on a per-database, per-user basis. Persistent Improved Execution of When executing parameterized statements, a Parameters tab appears in the SQL Parameterized console. This tab allows you to specify parameter values and execute the statement Statements using those values. Enhancement to User- When configuring a user-specific trace, if you are connected with a HANA 2.0 SPS Specific Trace 02 database, then you can now use the Connection ID filter. If you are connected with a HANA 2.0 SPS 03 database, then you can now use the Statement Hash filter. For more information about how to use the Statement Hash filter for user-specific tracing, see SDatabase Trace (Basic, User-Specific, and End-to-End). Enhancement to Kernel When configuring the Kernel Profiler, if you are connected with a HANA 2.0 SPS 02 Profiler database, then you can now use the Connection ID filter. If you are connected with a HANA 2.0 SPS 03 database, then you can now use the Statement Hash filter. 1.2 Open Catalog Objects Browse your database's catalog using the SAP HANA database explorer. Prerequisites