Skip to Content

Browse and Explore Catalog Objects with the Database Objects App

Dive into using the Database Objects tool to explore and inspect objects in an SAP HANA database.
You will learn
  • How to filter for specific tables and schemas within an instance
  • How to inspect and explore objects in an SAP HANA Cloud database
  • Generating SQL Statements for specific schemas for selected database objects

DhyanPatelSAPDhyanPatelSAPOctober 17, 2024
Created by
DhyanPatelSAP
October 17, 2024
Contributors
DhyanPatelSAP

Prerequisites

  • An SAP HANA Cloud database such as SAP HANA Cloud trial where the Database Objects tool is available.
  • You have completed the first 3 tutorials in this group
  • Step 1

    Database Objects is a built-in tool in SAP HANA Cloud Central that enables you to search, view metadata, and generate SQL for catalog objects, right from SAP HANA Cloud Central.

  • Step 2
    1. To navigate to the Database Objects tool, click on the icon for it on the left-hand side of the instances page.

      DBObj Navigation
    2. Upon opening Database Objects all filters are empty except the Instance Type which pre-selects all types you have existing instances for.

      DB Obj Filters

      Click the drop down under the Instance filter to select your SAP HANA Database instance.

      Instances

      Once selected, the Schema and Search filter are both available to use. Select the Schema filter and search for the HOTELS schema.

      Hotels Schema

      You can also directly search for the schema or any other objects directly in the Search filter. In this case after searching navigate to the Schemas tab directly to view the metadata for the HOTELS schema. This data includes ownership, privileges and create time.

      Schema Data
  • Step 3

    Database Objects table features can be leveraged to view table information such as columns, indexes, properties, runtime information and SQL CREATE Statements.

    1. Select the Tables tab to view all associated tables of the HOTELS schema.

      The page now displays all tables in the schema HOTELS and their table type.

      Tables View
    2. Select the RESERVATION table to explore it further.

      Click the full screen icon on the top right of the screen to maximize the page and view all tabs.

      Table Data

      By default you should see the column details for the table.

      Column Data
    3. Explore the Runtime Information tab, where further information about the table can be found. This information includes the total number of rows, disk size, partitions and memory consumption for the table, as well as individual columns.

      Runtime Information
    4. Examine the other tabs, such as CREATE Statements, where SQL code to generate the table can be found.

      Create Statement
    5. Select the Generate SQL Statement dropdown to see the three ways to have SQL generated for the table.

      SQL Generation
  • Step 4
    1. Navigate to settings and enable the functions object type to view functions in the Database Objects app.

      Settings
    2. Open the Functions tab and select AVERAGE_PRICE to examine it further.

      Average Price Function

      Select the Generate SQL Statement dropdown and click SELECT Statement to navigate to the SQL Console.

      Input ‘suite’ in the single quotes of the SELECT statement to get the average price for suites.

      Function Call
    3. Navigate back to the Database Objects app and open the Procedure tab. Select RESERVATION_GENERATOR to examine it further.

      Procedure Data
    4. Click Generate SQL to get SQL that runs the stored procedure.

      Run Procedure

    To learn more about exploring database instances in Database Explorer refer to the Browse Schema with the Database Browser in SAP HANA Database Explorer Tutorial

  • Step 5
    1. Select the Recent tab to view all the recent objects you opened.

      Recents
    2. Navigate to an object and click the star icon on the top right of the screen to favorite it. Allows for easy access to the object through the Favorites tab.

      Favorite Icon

      Once selected as a favorite. Navigate to the Favorites tab to see it.

      Favorite
    3. Click All/Selected Instance toggle to filter favorites.

      Filter Favorites
    4. Navigate to HANA Cloud Central settings to customize preferences for the Database Objects App.

      settings
  • Step 6

    Congratulations! You have now successfully navigated the Database Objects app and learned about the various features and tools available to you right from SAP HANA Cloud Central.

    Which of the following statements are true?

Back to top