cancel
Showing results for 
Search instead for 
Did you mean: 

change hostname in the J2EE Engine 6.20

Former Member
0 Kudos

Dear all,

Does anyone have idea about changing hostname in J2EE Engine 6.20 ?

In the sap service marketplace, i only find "Note 757692 - Changing the hostname for J2EE Engine 6.40 or 7.0 installation".

Best Regards

Wenjr

Accepted Solutions (1)

Accepted Solutions (1)

markus_doehr2
Active Contributor
0 Kudos

Im not sure if it´s supported at all... 6.20 is pretty different to 6.40 and 7.00.

Markus

Answers (2)

Answers (2)

Former Member
0 Kudos

HI

Follow this steps:

Step 1:-

To modify the default host, or to set SAP J2EE Engine 6.20 to respond to other virtual hosts, specify the Host Name, Root Directory, Start Page, or the Aliases (or both Start Page and Aliases).

Step 2:-

To set a new host name, choose “Runtime” from the right-hand pane. Enter the name in the “Host name” field. You must also modify the hosts file in your operating system source directory (for example, C:\WINNT\system32\drivers\etc for WindowsNT). The server responds to the specified host name when executing HTTP requests.

Regards

Prabhu

Former Member
0 Kudos

Hi, Prabhu ,

Thanks for your reply.

I have some question about your reply.

Step 1:-

Where should i modify the default host or set SAP J2EE engine 6.20?

Step 2:-

Do you mean run j2ee configtool and select application server node -> http ?

Best Regards

Wenjr

Former Member
0 Kudos

Hi,

See this SAP Note: !!!

757692

!!! Changing the name of a host server in a production system !!! !!! is not automatically supported by SAP. !!! !!! Should you wish to change the host name of a server in a test !!! !!! system, you should do so only with the assistance of an SAP !!! !!! consultant. !!!

This note must be seen as a "frame". Because development in this area is continuing, SAP can never guarantee completeness of this note !!

Be aware, that a DB reconfiguration might be necessary, as well as an installation of a new license.

This note covers the procedure for the j2ee engine only! It refers to a installation on which no applications are running other than the default ones. Should you wish to change the hostname of a j2ee engine with already deployed applications, file a message in the appropriate application component first.

This note should be applied only when the hostname of a machine where the j2ee engine was already installed has changed. It does not replace the SAP official system copy procedure and MUST NOT be used for copying of an instance to another host and/or with different SID.

Procedure:

1. Before changing the hostname stop all j2ee engine processes cleanly.

2.Actions on the operating system:

2.1 Windows OS:

Change all hostname occurrences in the instance profiles located in ../usr/sap/<SID>/SYS/profile , as well as the names of the profiles. In the registry change the SAP -> <SID> -> Environment -> SAPLOCALHOST key to the correct value, as well as all SAP keys containing the old hostname for the sapservice users.

Change the old hostname in ../SYS/exe/run/strdbsj2ee.cmd (if present).

2.2 Unix:

Change all hostname occurrences in the instance profiles located in ../usr/sap/<SID>/SYS/profile , as well as the names of the profiles.

With both operating systems, be careful with the dbhost and dbadminurl profile parameters. If the database still resides on the old host, do not change them.

The procedure in points 3-5 refers to all operating systems.

3.Adapt Secure Store properties

3.1 Start config tool from directory ../j2ee/configtool

3.2 If you have changed the hostname of the database an error dialog box will appear telling you that the connection to the database cannot be established. If this is the case choose OK, this will start configtool.

3.3. In the tree on the left handside choose secure store and change admin/host/<SID> to the corresponding new value. If you have changed the hostname of the database as well, correct also the jdbc/pool/<SID>/Url value. Apply the changes by choosing Apply from the File menu.

4. Adapt node host settings

Again in Config tool choose File->Connect if you haven't been connected to the database up to now and perform the following changes to Global properties and Local properties (if available):

4.1 In the tree on the lefthand side go to Instance_IDXXXX -> Dispatcher_IDXXX -> managers -> Cluster Manager. Change ms.host property so that it points to the new hostname. Perform the same for the server node.

4.2 Go to instance -> dispatcher -> Locking manager and change enqu.host to point to the new hostname. If you have changed the profile names modify also the enq.profile.filename accordingly. Perform the same steps for the server node.

4.3. Choose Instance_IDXXX on the tree on the left side and change Message server host parameter to the new value.

4.4 Apply all the changes by choosing File -> Apply.

5. Adapt SDM Properties

5.1 Go to sdm/program directory and edit localsdmgui.properties so that the workingHost property reflects the new value.

5.2. In ../SDM/program/config/sdmrepository.sdc change the Host and mshost tags to reflect the appropriate values. Perform this operation very carefully, so as not to change the format of the file or leave any extra characters.

6. Replace all occurrences (if any) of the old hostname in ../cluster/bootstrap/bootstrap.properties.

7. If necessary replace any occurrences of the old hostname in configuration manager. Again in Config tool choose File->Connect if you haven't been connected to the database up to now and perform the following changes to Global properties and Local properties (if available):

In the tree on the lefthand side go to Instance_IDXXXX -> Dispatcher_IDXXX -> managers -> Configuration Manager. Change secstorefs.keyfile, secstorefs.lib and secstorefs.secfile properties so that they contain the new hostname if necessary. Perform the same for the server node. Save the changes.

8. Adapt UME properties

In configtool go to Global server configuration -> services -> com.sap.security.core.ume.service and change the property ume.r3.connection.master.ashost so that it points to the new hostname.

Apply the changes using File -> Apply after that.

9. Changing URL Generator settings for KM / CM to work correctly

Go to System Administration -> System Configuration -> Knowledge Management -> Content Management -> Global Services and select "Show Advanced Options". Then navigate to URL Generator Service and make sure that the old hostname is replaced with the new one.

NB! Do not change any other settings except the ones described above. Changing instance.box.number in instance.properties should NOT be done, even though it might contain the old hostname.

It must help you....

Cheers

Prabhu

Former Member
0 Kudos

Hi , Prabhu,

Thanks for your help .

I have already solved this problem.

I just reinstall j2ee engine cluster patch 41 and SAP java basis library 20, and change parameters appear in the properties files which contain old host name.

Best Regards.

Wenjr

Former Member
0 Kudos

hi,

check this note8307 will help u

regards

ajai