Skip to main content

^DATACHECK Routine

^DATACHECK Routine

You can use the ^DATACHECK routine (in the %SYS namespace) to configure and manage the data checking. To obtain Help at any prompt, enter ?.

To start the ^DATACHECK routine, do the following:

  1. Enter the following commands in the Terminal:

    set $namespace = "%SYS"
    %SYS>do ^DATACHECK
    
    
  2. The main menu is displayed. Enter the number of your choice or press Enter to exit the routine:

    1) Create New Configuration
    2) Edit Configuration
    3) View Details
    4) Start
    5) Stop
    6) Delete Configuration
    7) Incoming Connections to this System as a DataCheck Source
    
    Option? 
    
    
    Note:

    For options 2 through 6, if you created multiple destination systems, a list is displayed so that you can select the destination system on which to perform the action.

    The main menu lets you select DataCheck tasks to perform as described in the following table:

    Option Description
    1) Create New Configuration

    Prompts for the name of a new DataCheck destination system configuration via the Create New Configuration prompt.

    2) Edit Configuration

    Displays the Edit Configuration submenu.

    3) View Details

    Displays the View Details submenu.

    4) Start

    Starts/restarts the destination system. If you are restarting, it resumes from where you stopped it.

    5) Stop

    Stops the destination system. If you restart the destination system after stopping it, it resumes from where you stopped it.

    6) Delete Configuration

    Deletes the specified destination system configuration.

    7) Incoming Connections to this System as a DataCheck Source

    Displays the Incoming Connections to this System as a DataCheck Source submenu.

    Note:

    This option must be selected on a source system.

Create New Configuration

This submenu lets you configure the destination system. When you select this option, the following prompt is displayed:

Configuration Name: 

If you are creating a DataCheck configuration on a system that is not a mirror member, the Edit Settings submenu is displayed, and you complete the configuration manually as described in Editing DataCheck Configurations on Non-mirror-based Systems.

If you are creating a DataCheck configuration on a system that is a mirror member, you are prompted for additional information that is dependent upon whether or not you want to base the data checking on mirroring. Choosing to configure DataCheck that is not based on mirroring displays the Edit Settings submenu, which you use to complete the configuration manually as described in Editing DataCheck Configurations on Non-mirror-based Systems. However, choosing to configure DataCheck based on mirroring restricts data checking to mirrored databases, and subsequent prompts are dependent on whether the destination system is a failover or async mirror member; for more information, see DataCheck for Mirror Configurations in this chapter.

Edit Configuration

The submenu lets you modify the destination system configurations. The options in the submenus are different depending on whether you are editing mirror-based or non-mirror-based configurations. For more information, see the following subsections:

Editing DataCheck Configurations on Non-mirror-based Systems

On a non-mirror-based system, when you select this option, the following prompts are displayed:

Configuration Name: dc_test
 
1) Import Settings from a Shadow   (static)
2) Connection Settings             (static)
3) Database Mappings               (static)
4) Globals to Check                (dynamic)
5) Performance Settings            (dynamic)
6) Manage Workflow                 (dynamic)

Option? 

Note:

In edit mode, if you created multiple destination systems, a list is displayed so that you can select a destination system to edit. In addition, before you edit the settings for options 1 through 3, you must stop the system.

Enter the number of your choice or press ^ to return to the previous menu. The options in this submenu let you configure the destination system as described in the following table:

Option Description
1) Import Settings from a Shadow

Deprecated; do not use.

2) Connection Settings

Information to connect to the source system.

3) Database Mappings

Lets you add, delete, or list database mappings on the source and destination systems.

4) Globals to Check

Globals to check or exclude from checking. For more information, see Specifying Globals and Subscript Ranges to Check in this chapter.

5) Performance Settings

Adjusts system resources (throttle) used and/or granularity with which DataCheck isolates discrepancies (minimum query size). For more information, see Performance Considerations in this chapter.

6) Manage Workflow

Manages the order of workflow phases. For more informations, see DataCheck Workflow in this chapter.

Editing Mirror-based DataCheck Configurations

On a mirror-based system, the following submenu is displayed:

Configuration Name: MIRRORSYS2_MIRRORX201112A_1
 
1) Globals to Check     
2) Performance Settings 
3) Manage Workflow      
4) Change Mirror Settings (Advanced) 

Option? 

Enter the number of your choice or press ^ to return to the previous menu. The options in this submenu let you configure the destination system as described in the following table:

Option Description
1) Globals to Check

Globals to check or exclude from checking. For more information, see Specifying Globals and Subscript Ranges to Check in this chapter.

2) Performance Settings

Adjusts system resources (throttle) used and/or granularity with which DataCheck isolates discrepancies (minimum query size). For more information, see Performance Considerations in this chapter.

3) Manage Workflow

Manages the order of workflow phases. For more informations, see DataCheck Workflow in this chapter.

4) Change Mirror Settings (Advanced)

See Planning DataCheck within the Mirror in the “Mirroring Considerations” section of this chapter

View Details

This submenu lets you monitor the status of the destination system, as well as view detailed information about the queries that are running and the results of data checking:

System Name: dc_test
 
1) View Status
2) View Results
3) View Queries
3) View Log

Option? 

Enter the number of your choice or press ^ to return to the previous menu. The options in this submenu let you view information about the destination system as described in the following table:

Option Description
1) View Status

Displays information about the selected destination system, including performance metrics for the DataCheck worker jobs, the source and state, current phase, workflow timeout, new phases requested, percentage of queries completed in the current phase, and the number of discrepancies recorded in this phase.

2) View Results

Displays the results for the selected destination system. For more information, see DataCheck Results in this chapter.

3) View Queries

Displays information about the queries submitted by the selected destination system (see DataCheck Queries). This includes the globals that remain to be processed (or global ranges if subscript include/exclude ranges are used), and indicates the active queries currently being worked on by DataCheck. A summary count is displayed at the end of the list.

4) View Log

Displays the selected destination system log file.

Note:

When ^DATACHECK is run against the two copies of a mirrored database on two mirror member instances, and that database is experiencing the rapid setting and killing of a whole global, it can display confusing results from the View Status option when compared to the View Results option. For example, it will report that there are unmatched answers in status, but will not actually report the globals that caused these answers in results (because further passes resolved the discrepancies). In addition, displayed answer counts can be larger than the actual number of globals within the instance (as displayed in the management portal, and as actually reported in the results).

When View Status shows Answers Rcvd having a non-zero unmatched value but discrepancies having a zero value, this is indicative of transient globals, not a data issue.

Incoming Connections to this System as a DataCheck Source

This submenu lets you view information about the source system:

1) List Source Systems
2) View Log

Option? 

Enter the number of your choice or press ^ to return to the previous menu. The options in this submenu let you view information about the source system as described in the following table:

Option Description
1) List Source Systems

Displays information about the DataCheck source system.

2) View Log

Displays the source system log file.

FeedbackOpens in a new tab