How to change the default max revision history setting of a domain?

How to change the default max revision history setting of a domain?

book

Article ID: KB0094354

calendar_today

Updated On:

Products Versions
TIBCO Administrator -
Not Applicable -

Description

Resolution:

  • TRA 5.7.x and above , you can change the max revision history from DomainUtility , please refer TRA DomainUtility Guide -- >Server Settings and Migration : Changing the Max Deployment Revision Value.

  • TRA 5.6.x and below , there is no utility to do this change for  a domain.

The max revision history setting of a domain is stored in

1. AdministrationDomain.properties under $TIBCO_HOME/tra/domain/<domainname> (on all the machines that are part of the domain).
2. Domain data
    a) DB tables for database based domain
    b) SYS_<domainname>.dat and AUTH_<domainname>.dat for file based domains


To change it manually, we need to do the below steps.
1. Shutdown the admin server and hawkagent running on the admin server machine.
2. Update the "MaxDeploymentRevision" property in AdministrationDomain.properties file with the new max deployment history value.
3. Updating the data:
    a) For DB based domains, please do the below:
        update admap set value='<revision history number>' where              mapkey='MaxDeploymentRevision'
       update aumap set value='<revision history number>' where             mapkey='MaxDeploymentRevision'
     If there are any application domains (like hawk config, monitoring management), you      need to do the below update for each of your application domain too:
            update <application domain prefix>map set value='<revision history number>'                  where mapkey='MaxDeploymentRevision'
            ex:update pamap set value='<revision history number>' where                               mapkey='MaxDeploymentRevision'

    b) For file based domains, please do the below:


SYS_<domainname>.dat
====================

<dir name="com.tibco.pof.entity.EntityStoreConfiguration" lastModified="1242081619578" id="-15">
<dir name="56-t400-file" lastModified="1242081619578" id="-16">
  <object name="__Reserved" lastModified="1242081681152" id="68">
    .
    .
    .
    .
    <string name="mName" value="56-t400-file"/>
    <assoc name="mConfigProperties">
      <string name="Machine" value="emedavar-T400"/>
      <string name="LogGenerationSize" value="5000"/>
      <string name="UserID" value="admin"/>
      <string name="Domain" value="56-t400-file"/>
      <string name="Credential" value="#!hJpZQJV3hAr5EhhiCs9/LrLbzBJNYpZw"/>
      <string name="LogGenerations" value="5"/>
      <string name="notifier%2erv%2eservice" value="7500"/>
      <string name="TIB_REPO_ROOT" value="/TIBCO"/>
      <string name="MaxDeploymentRevision" value="5"/>
      <string name="DomainImplementation" value="com.tibco.pof.admindomain.AdministrationDomain"/>
      <string name="TIB_REPO_URL" value="tibcr@SYS_56-t400-file:daemon=tcp:7500:service=7500:discoveryTime=10"/>
      <string name="EntityStoreImplementation" value="com.tibco.pof.entitystore.tibrepo.TibRepoEntityStore"/>
      <string name="LogDebug" value="false"/>
      <string name="notifier%2erv%2edaemon" value="tcp:7500"/>
    </assoc>
    .
    .
    .
    .
</dir>

<dir name="com.tibco.pof.entity.DomainConfig" lastModified="1242156663433" id="-524">
<dir name="HawkConfig" lastModified="1242156663433" id="-525">
  <object name="__Reserved" lastModified="1242156663433" id="409">
    .
    .
    .
    .
    <assoc name="myProps">
      <string name="Machine" value="emedavar-T400"/>
      <string name="LogGenerationSize" value="5000"/>
      <string name="UserID" value="admin"/>
      <string name="Domain" value="HawkConfig"/>
      <string name="Credential" value="#!hJpZQJV3hAr5EhhiCs9/LrLbzBJNYpZw"/>
      <string name="LogGenerations" value="5"/>
      <string name="notifier%2erv%2eservice" value="7500"/>
      <string name="MaxDeploymentRevision" value="-1"/>
      <string name="TIB_REPO_ROOT" value="/TIBCO"/>
      <string name="TIB_REPO_URL" value="tibcr@APP_56-t400-file_HawkConfig:server=56-t400-file:typeAccess=CLIENT_USAGE_READ_WRITE:discoveryTime=10:service=7500:daemon=tcp:7500"/>
      <string name="DomainImplementation" value="com.tibco.pof.entity.impl.AppDomain"/>
      <string name="EntityStoreImplementation" value="com.tibco.pof.entitystore.tibrepo.TibRepoEntityStore"/>
      <string name="tibcoadmin%2edatabase%2euseShortURI" value="true"/>
      <string name="LogDebug" value="false"/>
      <string name="notifier%2erv%2edaemon" value="tcp:7500"/>
    </assoc>
    .
    .
    .
    .
</dir>
<dir name="MonitoringManagement" lastModified="1242156682056" id="-526">
  <object name="__Reserved" lastModified="1242156682056" id="410">
    .
    .
    .
    <assoc name="myProps">
      <string name="Machine" value="emedavar-T400"/>
      <string name="LogGenerationSize" value="5000"/>
      <string name="UserID" value="admin"/>
      <string name="Domain" value="MonitoringManagement"/>
      <string name="Credential" value="#!hJpZQJV3hAr5EhhiCs9/LrLbzBJNYpZw"/>
      <string name="LogGenerations" value="5"/>
      <string name="notifier%2erv%2eservice" value="7500"/>
      <string name="MaxDeploymentRevision" value="-1"/>
      <string name="TIB_REPO_ROOT" value="/TIBCO"/>
      <string name="TIB_REPO_URL" value="tibcr@APP_56-t400-file_MonitoringManagement:server=56-t400-file:typeAccess=CLIENT_USAGE_READ_WRITE:discoveryTime=10:service=7500:daemon=tcp:7500"/>
      <string name="DomainImplementation" value="com.tibco.pof.entity.impl.AppDomain"/>
      <string name="EntityStoreImplementation" value="com.tibco.pof.entitystore.tibrepo.TibRepoEntityStore"/>
      <string name="tibcoadmin%2edatabase%2euseShortURI" value="true"/>
      <string name="LogDebug" value="false"/>
      <string name="notifier%2erv%2edaemon" value="tcp:7500"/>
    </assoc>
    .
    .
    .
  </object>
</dir>
        

AUTH_<domainname>.dat:
=====================

<dir name="com.tibco.pof.entity.EntityStoreConfiguration" lastModified="1242081621421" id="-16">
<dir name="AUTH_56-t400-file" lastModified="1242081621421" id="-17">
.
.
.
</dir>
<dir name="56-t400-file" lastModified="1242081621421" id="-31">
  <object name="__Reserved" lastModified="1242081680980" id="77">
  .
  .
  .
  .
    <string name="mName" value="56-t400-file"/>
    <assoc name="mConfigProperties">
      <string name="Machine" value="emedavar-T400"/>
      <string name="LogGenerationSize" value="5000"/>
      <string name="UserID" value="admin"/>
      <string name="Domain" value="56-t400-file"/>
      <string name="Credential" value="#!hJpZQJV3hAr5EhhiCs9/LrLbzBJNYpZw"/>
      <string name="LogGenerations" value="5"/>
      <string name="notifier%2erv%2eservice" value="7500"/>
      <string name="TIB_REPO_ROOT" value="/TIBCO"/>
      <string name="MaxDeploymentRevision" value="-1"/>
      <string name="DomainImplementation" value="com.tibco.pof.admindomain.AdministrationDomain"/>
      <string name="TIB_REPO_URL" value="tibcr@SYS_56-t400-file:daemon=tcp:7500:service=7500:discoveryTime=10"/>
      <string name="EntityStoreImplementation" value="com.tibco.pof.entitystore.tibrepo.TibRepoEntityStore"/>
      <string name="LogDebug" value="false"/>
      <string name="notifier%2erv%2edaemon" value="tcp:7500"/>
    </assoc>
  .
  .
  .
  </object>
</dir>
<dir name="HawkConfig" lastModified="1242156663027" id="-65">
  <object name="__Reserved" lastModified="1242156663027" id="108">
  .
  .
  .
    <string name="mName" value="HawkConfig"/>
    <assoc name="mConfigProperties">
      <string name="Machine" value="emedavar-T400"/>
      <string name="LogGenerationSize" value="5000"/>
      <string name="UserID" value="admin"/>
      <string name="Domain" value="HawkConfig"/>
      <string name="Credential" value="#!hJpZQJV3hAr5EhhiCs9/LrLbzBJNYpZw:0:0"/>
      <string name="LogGenerations" value="5"/>
      <string name="notifier%2erv%2eservice" value="7500"/>
      <string name="MaxDeploymentRevision" value="-1"/>
      <string name="TIB_REPO_ROOT" value="/TIBCO"/>
      <string name="TIB_REPO_URL" value="tibcr@APP_56-t400-file_HawkConfig:server=56-t400-file:typeAccess=CLIENT_USAGE_READ_WRITE:discoveryTime=10:service=7500:daemon=tcp:7500"/>
      <string name="DomainImplementation" value="com.tibco.pof.entity.impl.AppDomain"/>
      <string name="EntityStoreImplementation" value="com.tibco.pof.entitystore.tibrepo.TibRepoEntityStore"/>
      <string name="tibcoadmin%2edatabase%2euseShortURI" value="true"/>
      <string name="LogDebug" value="false"/>
      <string name="notifier%2erv%2edaemon" value="tcp:7500"/>
    </assoc>
   .
   .
   .
  </object>
</dir>
<dir name="MonitoringManagement" lastModified="1242156681588" id="-69">
  <object name="__Reserved" lastModified="1242156681588" id="112">
    .
    .
    .
    <string name="mName" value="MonitoringManagement"/>
    <assoc name="mConfigProperties">
      <string name="Machine" value="emedavar-T400"/>
      <string name="LogGenerationSize" value="5000"/>
      <string name="UserID" value="admin"/>
      <string name="Domain" value="MonitoringManagement"/>
      <string name="Credential" value="#!hJpZQJV3hAr5EhhiCs9/LrLbzBJNYpZw:0:0"/>
      <string name="LogGenerations" value="5"/>
      <string name="notifier%2erv%2eservice" value="7500"/>
      <string name="MaxDeploymentRevision" value="-1"/>
      <string name="TIB_REPO_ROOT" value="/TIBCO"/>
      <string name="TIB_REPO_URL" value="tibcr@APP_56-t400-file_MonitoringManagement:server=56-t400-file:typeAccess=CLIENT_USAGE_READ_WRITE:discoveryTime=10:service=7500:daemon=tcp:7500"/>
      <string name="DomainImplementation" value="com.tibco.pof.entity.impl.AppDomain"/>
      <string name="EntityStoreImplementation" value="com.tibco.pof.entitystore.tibrepo.TibRepoEntityStore"/>
      <string name="tibcoadmin%2edatabase%2euseShortURI" value="true"/>
      <string name="LogDebug" value="false"/>
      <string name="notifier%2erv%2edaemon" value="tcp:7500"/>
    </assoc>
    .
    .
    .
  </object>
</dir>
</dir>
=====================

NOTE: Before making any change please take proper backup of your Domain folder under <ADMIN_HOME> and <TRA_HOME>.

Issue/Introduction

How to change the default max revision history setting of a domain?