Show TOC

Tables/Views/SynonymsLocate this document in the navigation structure

Context

The Problem Analysis user menu shows you, among other things, information about a specified database table, view tables, or their synonyms.

Procedure

  1. Open the Database Assistant (transaction DB50) or the liveCache Assistant (transaction LC10). Choose Start of the navigation path Problem Analysis Next navigation step Tables/Views/Synonyms End of the navigation path.

    The display is part of the DBA Cockpit and can therefore also be called as follows:

    1. Open DBA Cockpit (transaction DBACOCKPIT).

    2. The display options in DBA Cockpit vary depending on which SAP NetWeaver release you are using.

      • Choose Start of the navigation path Diagnosis Next navigation step Database Objects Next navigation step Tables/Views/Synonyms End of the navigation path.

      • SAP NetWeaver 7.1: Choose Start of the navigation path Space Next navigation step Tables/Views/Synonyms End of the navigation path.

  2. Enter the schema of the database object and the name of the database object.

    When you specify the schema or the name, you can also enter * as a wildcard for any character string (T0* for all table names that start with T0, for example).

    If you begin the name of a database object with a ", the subsequent letters are not changed into all caps, but instead are used for the query as you have entered them.

  3. Decide which database objects you want to display:

    Tables, views, and synonyms

    Only tables

    Only tables with a data store clustered on the database side

    Only views

    Only synonyms

  4. Choose Start of the navigation path Database Object Information Next navigation step  Display End of the navigation path.
  5. If necessary, mark the required object in the list provided for any additional analysis.
  6. Choose Display Tables/View Info.

Results

You can choose from the following displays:

  • Properties: Type, access rights, date created and changed, date of the last run to determine table consistency (for tables only), default sample to update optimizer statistics (tables only), and specifications about cost saving by clustering of tables (only for tables)

    You can check the database structures (for a single table of the SAP MaxDB or SAP liveCache system).

    You can change the default value for the sample size to update the SQL optimizer statistics of a table (in rows or percent). If this value is 0, a warning message appears stating that the update of optimizer statistics using the sample size is deactivated.

  • Definition: Definition of the object in the database instance (this is not the object definition from the ABAP Dictionary but the object definition according to the system tables of the database system).

    If the object has a virtual key, it is displayed here. Further information about the data store clustered on the database side can be found in SAP Note 1040431 Information published on SAP site.

  • Indexes: Display of all indexes (inactive, unused, bad indexes) that were defined for this object. Among other things, you can activate or deactivate indexes or restore or reset the usage counter.

  • CREATE statement (only for view tables):  CREATE VIEW statement that was used to generate the view table

  • Table key (only for view tables): Primary key for tables that form the basis for the View table.

  • Optimizer statistics: The latest values calculated for the SQL optimizer statistics, specifying the execution time and the sample size of the update run.

    You can have the system display whether the SQL optimizer statistics need to be updated (Requested Updates). You can update the statistics for this table (Update (Standard)) or selected columns from this table (Update (Selected Columns)) with any sample size (in rows or percent).

  • Exact Sizes: Exact size of tables and indexes

  • Data Store (only for data store clustered on the database side): Information about clustering of the object

    Further information about the data store clustered on the database side can be found in SAP Note 1040431 Information published on SAP site.

If you have opted to have a synonym displayed, you will receive a display where the synonym refers to the object (table or view table). You can jump to the display of the corresponding object.

Choose Start of the navigation path Table/View Next navigation step Optimizer-Relevant Information End of the navigation path for a summary of those displays mentioned above that are relevant to the SQL optimizer.