required changes when hostname is modified

User f05f6b8c05

16-05-2013 13:15:08

Hi,


Are there any instructions for how to handle/modify a jchem installation when the server hostname changes?  (Still the same server, it has just been given a different hostname and/or ip)  Or is it easier/better to just reinstall?


Thank you,


Andrew

ChemAxon aa7c50abf8

16-05-2013 13:36:40

Hi Andrew,


server hostname changes

What kind of server do you mean here?


Thanks


Peter

User f05f6b8c05

16-05-2013 13:42:00

Hi Peter,


Thanks for the quick reply.


I'm not sure how to best answer your question .. this is the server on which we installed the jchem cartridge (both the oracle piece and the java piece) .. it is a linux server.  What other details are useful?


Thanks again,


Andrew

ChemAxon aa7c50abf8

16-05-2013 13:56:45

Hi Andrew,


Thank you for this clarification. It was not clear from your post that you mean JChem Cartridge by JChem.


Starting JChem 6.0, we will provide a command-line utility which helps you reconfigure your JChem Cartridge installation when server IPs (or ports) are changed.


But in your case (both Oracle and JChem Cartridge server run on the same host), didn't you configure JChem Cartridge to use "localhost" for both the Oracle server and the JChem Cartridge server? If you did so, your configuration shouldn't be affected by changing the host IP address.


Peter

User f05f6b8c05

16-05-2013 14:43:01

Hi Peter,


No, we did not use localhost in install .. is that preferred hostname to use?


Since jchem 6.0 is not yet released, re-install is best solution?


Thank you,


Andrew

ChemAxon aa7c50abf8

16-05-2013 15:29:50

Hi Andrew,


"localhost" is preferred for a "single-host installation" over specific IP addresses (or DNS names) in the sense that it is the simplest, most unambiguous solution, guaranteed to cause the least communications overhead.


Changing host addresses in the JCC configuration manually is not very complicated, so it would be worthwhile trying it before a complete reinstall:


1. Change the jchem.server.host property in the jchem/cartridge/conf/jcart.properties file to localhost.


2. Change the oracle.server.host property in the same file to localhost.


3. Change the value in the PROP_VALUE column for the rmi.server.1 PROP_NAME of the JC_IDX_PROPERTY table in the JCC installation schema to localhost:<jcc-port>, where <jcc-port> is the same value as that of the jchem.server.port property in the jchem/cartridge/conf/jcart.properties file.


4. Restart the JChem Cartridge server and reconnect database sessions which need to use JChem Cartridge.


It is not entirely impossible that due to some Oracle-specific network configuration details Oracle won't accept connections on localhost. You then have to try the same procedure using the specific host name/address instead of "localhost".


Peter

User f05f6b8c05

16-05-2013 17:30:15

Thank you for the information .. we'll try this.


Best,


Andrew