Show TOC

Changing the Profile SettingsLocate this document in the navigation structure

Use

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 start profile name in the profile file sapservices.
  • 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

  1. Change the TREX start profile START_TRX<instance_number>_<trex_hostname>. You can find the TREX start profile in the global file system for your TREX installation <TREX_GLOBAL>.

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

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

    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 start profile name in the profile file sapservices

  1. Edit the UNIX profile file/usr/sap/sapservices with a text editor.
  2. Change the name of the TREX start profile START_TRX<instance_number>_<trex_hostname>:

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

    START_TRX<instance_number>_< new_trex_hostname >

Only Windows: Change the Windows Service Settings

  1. Execute the command<diskdrive>:\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
    • Startprofile: path to the SAP system profile directory <TREX_GLOBAL> of your TREX installation including the name of the start profile of your TREX instanceSTART_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 commandhostname; this is the case for example if you are using a virtual host name) then you should do the following:

Check and change TREX start profile if necessary

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

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

UNIX only: Create the file hostname and make it executable

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

    #!/bin/sh

    echo <virtual_hostname>

  2. Make the filehostname executable by the commandchmod+x hostname.