Show TOC

Stopping TREXLocate this document in the navigation structure

Using the SAP Management Console to Stop TREX
  1. Log on with the user <sapsid>adm.
  2. Launch the SAP Management console by double-clicking the program icon on your desktop or by choosing Start → Programs  → SAP Management Console.
  3. In the tree structure, choose the node for the central SAP instance <SAPSID> and navigate to the subnode for the TREX instance <host>_<instance_number> (for example,p123456_77).
  4. Choose the right-hand mouse button to access the context menu.
  5. Choose Shutdown.
    Caution

    The Shutdown command only stops the TREX processes once current transactions have been completed. Do not use the Stop command because this terminates the TREX processes abruptly and there is a risk of data loss.

Using stopsap.exe to Stop TREX

  1. Log on with the user <sapsid>adm.
  2. Open a command prompt by choosing Start → Programs → Instance_number → Tools → TREX_<instance_number> so that the environment variables are set correctly.
  3. Switch to the <TREX_DIR>/exe directory and enter the following:

    stopsap.exe name=<SAPSID> nr=TRX<instance_number> SAPDIAHOST =<host>

    In the SAPDIAHOST parameter, you specify the host name on which the TREX instance should be stopped.

    Tip

    stopsap.exe name=ABC nr=TRX77 SAPDIAHOST =p123456

    Caution

    Do not use the Task Manager to stop the SAP service or the individual TREX servers. Otherwise, data can be lost. Affected indexes can be irreparably damaged.

    Certain processing steps, for example, writing an index, cannot be interrupted. Such steps are completed before TREX is stopped. This process can take a while to complete. With large indexes, it can take up to a few hours to stop the TREX servers if lots of documents are currently being indexed.