Rsdu Table Consistency 005
Rsdu Table Consistency 005
Rsdu Table Consistency 005
This document contains a brief description of the purpose and usage of the ABAP
report RSDU_TABLE_CONSISTENCY. Please note that checking for and repairing
inconsistencies needs constant changes and enhancements. This document is
therefore subject to frequent updates and will be delivered with note 1937062.
Contents
1
Purpose.......................................................................................................................... 2
Delivery .......................................................................................................................... 2
Operation ....................................................................................................................... 2
3.1
3.2
3.3
Restrictions ............................................................................................................. 3
4.1.1
4.1.2
4.1.3
4.2
4.3
Page 1 of 11
1 Purpose
RSDU_TABLE_CONSISTENCY checks the consistency of table properties on HANA with
certain needs and restrictions defined by SAP BW application. The report should help to
ensure a consistent work of BW functionality on HANA DB and its suggested to run after
critical processes like migration, restore etc. Moreover, you can use this report during regular
operation, if error messages or slow performance are suspected to be caused by
inconsistencies of BW tables on HANA.
2 Delivery
Since RSDU_TABLE_CONSISTENCY is part of the regular SAP BW coding it is delivered
with the support packages of the releases 7.30, 731, 7.40 and above. Moreover the latest
corrections and enhancements will be available with the notes 1953984 (SAP_BASIS) and
1953493 (SAP_BW). Please note that the note numbers will change from time to time. It is
updated in each case in this document.
3 Operation
The operation of the report is strongly divided into two parts: Check and Repair, which
cant be combined in a single run!
Page 2 of 11
Therefore, a user must first select the issues to be repaired before it can start the repair
sequence. Repairing an inconsistence always performs a write action on HANA table
properties the repair will never chance any BW metadata!
3.3 Restrictions
RSDU_TABLE_CONSISTENCY will work with HANA DB only. It will not regard a HANA DB
at secondary DB connections.
The report can analyze only tables of BW objects which are activated and consistent within
their BW metadata.
Page 3 of 11
4.1.1
Data selection
By default the Table names field remains empty. In this case all tables found on HANA DB
will be checked, if they are relevant for BW2. Alternatively a selection of tables can be
provided by including or excluding (multiple) table names and/or ranges. Also the use of
wildcards (*) is supported.
Operational modes
If there are no stored issues, only two possible modes are displayed in this section:
Show issues in GUI will perform the consistency check and display the found issues on
screen only. This is intended to get a quick view of the consistency for only few tables, if no
repair is wanted and no storage of the result is needed. Please note: the results are lost,
after leaving the report.
Store issues will perform the consistency check like above but the results are stored in the
issues store. You can review the issues later, since they are persistent. This is the
prerequisite to repair the found issues later.
4.1.3
In the 3th section you can enable several check scenarios where the selected tables are
checked for certain properties. Not all scenarios are relevant for any type of tables. However
in most cases its recommended to select all available scenarios. Please refer a description
of the available consistency check scenarios in section 6 (on page 10).
As usual with ABAP reports, the consistency check is started with the F8 key resp. icon .
Since the report may need a long runtime if lots of tables are checked, its reasonable to run
this report in background via menu Program -> Execute in Background. Please note: if you
run the program in background, any results will be available only with usage of the
operational mode Store issues!
Relevant for BW are HANA tables of InfoCubes (E- and F-fact-tables, dimension tables, validity
tables), DSOs (active data, activation queue, change log), PSA tables (including error stacks, fast
store) and InfoObjects.
Page 4 of 11
Please note: After the report is closed, the results are not available anymore!
If the mode Store issues was selected, the log screen is displayed too (in case of online
processing), but all found issues are additionally stored in the issue store and youll find an
additional section in the initial screen as shown in
Figure 3 (on page 6) named Issues from previous checks.
Page 5 of 11
Here youll find the overall number of found issues as well as the number of already selected
issues. Using the button
an overview of issues found in the various check scenarios
will be displayed as shown in Figure 4 (on page 6). In this example some check scenarios
results numerous inconsistencies.
This screen provides an overview at an overview of when and by whom any missing
references were found. Whenever the consistency check is performed again and
inconsistencies are found, they are added here.
In the Example (as shown in Figure 4) 31 issues found during the partition check
scenario is marked among lots of other results.
A detailed view of the found inconsistencies of a particular check scenario will be displayed
when you double-click on the relevant line. In Figure 5 (on page 7) the corresponding
Example of the detailed view is shown.
Page 6 of 11
Page 8 of 11
In Figure 6 an example of multiple selected issues from partition spec scenario regarding
ODS tables is shown. The entire functionality of common ALV table views is supported. So
you can sort, filter and select3 the issues as needed.
Before you leave this screen (via
button), please ensure that you save your selection
using the button . You can select issues from multiple check runs or check scenarios, if
you leave the detailed view and choice another one from the overview screen (Figure 4). All
selected issues will be added to the work pool of tables selected for repair.
After selecting the issues for repair go back to the initial screen. Here a third operational
mode Repair is available. If this mode is selected the scenario list vanishes, since check
scenarios are irrelevant in this mode. As shown in Figure 7 a number of issues is selected
now.
Please use the first (selection-) column and the [Ctrl]-Key in order to select multiple ranges of issues.
If you want to select all issues, use the
button above.
Page 9 of 11
8 Special topics
8.1 The Expert parameters
Due to some unexpected problems with inconsistencies concerning HANA DB, the report
RSDU_TABLE_CONSISTENCY was extended with some additional functions. They are
accessible by typing the word expert in the command line of the initial screen.
Please note: The use of this expert-parameters should not be needed in regular
work. But it will help in situations to detect and correct certain error conditions.
Ignore BW locks is only relevant for repairing issues. This forces the repair process
not to regard locks on BW objects. It can be needed, if BW processes results errors
due to inconsistent HANA tables but doesnt release their lock for some reasons (e.g.
RSMIGRHANADB raised an error like flatten scenario failed
Please be careful! Dont use it for repairing large number of tables, because of
competing write access to the tables can lead to further inconsistencies!
Parallel repair runs the repair actions on multiple HANA servers simultaneously. Its
reasonable, if a large number of tables need to be repaired on an scale-out system.
Force NUM_SERVERS check is a special check for HASH partitions of ODS tables.
Usually RSDU_TABLE_CONSISTENCY doesnt check the number of servers in
HASH partitions. But in certain cases it needed to check, if the number of HASH
partitions of the active table and the activation queue is the same.
Force table classification allows checking the classification of HANA tables without
regarding if Table Placement is active or not. This might be reasonable in case of
authorization problems with the table _SYS_REPO.SCHEMAVERSION or
_SYS_REPO.TABLE_PLACEMENT. Please dont use this parameter without explicit
suggestion by SAP support.
Check all tables (storage type only) enables (in contrast to section 3.1) to check all
SAP tables found on HANA for the correct storage type (row store or column store).
Enable table location check might be needed if Landscape Reorg cant for some
reasons not be processed. It checks and repairs the location of partitions of
corresponding tables (e.g. partitions of E- and F-fact tables located on the expected
slaves in order to process the Cube Conversion successfully).
But be carefully: this ensures the consistency of table locations regarding minimal
requirements of BW only! It is not an optimal distribution of tables as Landscape
Reorg provides for performance reasons!
Page 11 of 11