Show TOC

Procedure documentationChanging the Profile Settings Locate this document in the navigation structure

Procedure

To change the profile settings you have to perform the following configuration steps:

  • Change the SAP profiles.

  • Change the name of the TREX instance directory.

  • Only UNIX: Change the TREX instance profile name in the sapservices profile file.

  • Only Windows: Change the Windows Service Settings.

  • Check if the new host name matches the host name on operating system level

You have to change the profile settings for the following use cases:

Change the SAP profiles

Change the TREX instance profile <SAPSID>_TRX<instance_number>_<host>. You can find the TREX instance profile for your TREX installation <TREX_GLOBAL> in the global file system.

Change the line SAPLOCALHOST =<new_trex_hostname>. If there is a line SAPGLOBALHOST=<old_trex_hostname> then also change it.

Change the name of the TREX instance directory

Change the name of the TREX instance directory <TREX_DIR>/<old_trex_host_name> to <TREX_DIR>/<new_trex_host_name>.

Only UNIX: Change the TREX instance profile name in the sapservices profile file.
  1. Edit the UNIX profile file /usr/sap/sapservices with a text editor.

  2. Change the name of the TREX instance profile <SAPSID>_TRX<instance_number>_<trex_hostname>:

    LD_LIBRARY_PATH=/usr/sap/<SAPSID>/TRX<instance_number>/exe:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; /usr/sap/<SAPSID>/TRX<instance_number>/ exe/sapstartsrv pf=/usr/sap/<SAPSID>/SYS/profile/

    <SAPSID>_TRX<instance_number>_<new_trex_hostname>

Only Windows: Changing the Windows Service Settings
  1. Execute the following command: <disk_drive>:\usr\sap\<SAPSID>\TRX<instance>\exe\sapstartsrv.exe.

    The screen of the SAP Service Install/Uninstall service appears.

  2. Choose Install Service + Register COM Interface + Start Service.

  3. Specify the following parameters as shown in the Windows Service Manager:

    • SID: TRX

    • NR: <instance_number> of your TREX instance, for example 47

    • Profile: Path to the SAP system profile directory <TREX_GLOBAL> of your TREX installation including the name of the instance profile of your TREX instance <SAPSID>_TRX<instance_number>_<new_trex_host_name>

    • User: SAP system service user as shown in the Windows Services Manager. Look for the SAPService<SAPSID>_<instance_number>, for example SAPA1S_47 and the corresponding user SAPService<SAPSID> (column Log On As), for example SAPServiceA1S.

    • Password: Password for the SAP system service user as specified during TREX installation

  4. Choose OK.

Check if the new host name matches the host name on operating system level

If the new host name does not match the host name on operating system level (as returned by the command hostname; this is the case for example if you are using a virtual host name) then you should do the following:

Check and change TREX instance profile if necessary

Change the TREX instance profile <SAPSID>_TRX<instance_number>_<trex_hostname>. You can find the TREX instance profile for your TREX installation <TREX_GLOBAL> in the global file system.

Change the line SAPLOCALHOST=<virtual_hostname>. If there is a line SAPGLOBALHOST=<old_trex_hostname> then also change it.

UNIX only: Create the hostname file and make it executable

  1. Create a file with the name hostname in the home directory of the <sapsid>adm user with the following content:

    #!/bin/sh

    echo <virtual_hostname>

  2. Make the file hostname executable by the command chmod+x hostname.