How to change the HTTP base port of the TIBCO Data Virtualization Server?

How to change the HTTP base port of the TIBCO Data Virtualization Server?

book

Article ID: KB0073840

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization All supported versions

Description

Pre-requisite: Make a backup copy of the complete TDV Installation directory and take a Full Server backup from the Studio. 

Next, follow the steps below to change the HTTP base port of the TIBCO Data Virtualization Server

For purposes of illustration, let us assume that the requirement is to move the base port 9400 to 9500:

(1) Navigate to TDV Studio -> Administration -> Configuration -> Server -> Web Services Interface -> Communications -> HTTP -> Port (On Server Restart)

Change the Port number at "HTTP - Port (On Server Restart)" from 9400 to 9500 (Apply the changes)

(2) The TDV repository and the default cache ports do not get reset when you choose a new base HTTP port in the Studio Configuration user interface. The repository/cache port is not configurable in the Studio Configuration user interface either. However, this can be manually edited in the /conf/server/server_values.xml file. Search for the below sets of tags in the .xml file and change the port numbers there. 

For TDV repository port:
==========
<common:attribute>
   <common:name>/server/config/database/databasePort</common:name>
   <common:type>INTEGER</common:type>
    <common:value>9408</common:value>
</common:attribute>

<common:attribute>
    <common:name>/server/config/database/connectionUrl</common:name>
    <common:type>STRING</common:type>
    <common:value>jdbc:postgresql://localhost:9408/cisrepo</common:value>
  </common:attribute>
==========

For TDV default cache port: 
==========
  <common:attribute>
    <common:name>/server/config/cache/defaultCacheDatabase/connectionUrl</common:name>
    <common:type>STRING</common:type>
    <common:value>jdbc:postgresql://localhost:9404/ciscache</common:value>
  </common:attribute>

 <common:attribute>
    <common:name>/server/config/cache/defaultCacheDatabase/databasePort</common:name>
    <common:type>INTEGER</common:type>
    <common:value>9404</common:value>
  </common:attribute>
==========

If you are moving from base port 9400 to 9500, then the TDV repository port should be changed to 9508 and the TDV default cache port should be changed to 9504. Save the changes made.

Example:

For TDV repository port:
==========
<common:attribute>
   <common:name>/server/config/database/databasePort</common:name>
   <common:type>INTEGER</common:type>
    <common:value>9508</common:value>
</common:attribute>

<common:attribute>
    <common:name>/server/config/database/connectionUrl</common:name>
    <common:type>STRING</common:type>
    <common:value>jdbc:postgresql://localhost:9508/cisrepo</common:value>
  </common:attribute>
==========

For TDV default cache port:
==========
  <common:attribute>
    <common:name>/server/config/cache/defaultCacheDatabase/connectionUrl</common:name>
    <common:type>STRING</common:type>
    <common:value>jdbc:postgresql://localhost:9504/ciscache</common:value>
  </common:attribute>

 <common:attribute>
    <common:name>/server/config/cache/defaultCacheDatabase/databasePort</common:name>
    <common:type>INTEGER</common:type>
    <common:value>9504</common:value>
  </common:attribute>
==========

(3)  Edit the port in the postgresql.conf file for repository and cache:

(a) For repository port: Edit <TDV installation directory>repository/data/postgresql.conf and modify the port from 9408 to 9508 at the below tag which is generally at the bottom of the file.
-----------
# Add settings for extensions here
port = 9408              

(b) For cache port: Edit <TDV installation directory>repository/data_cache/postgresql.conf and modify the port from 9404 to 9504 at the below tag which is generally at the bottom of the file.
-----------
# Add settings for extensions here
port = 9404                

(4) Restart TDV repo, cache and monitor services.

Issue/Introduction

How to change the HTTP base port of the TIBCO Data Virtualization Server?