Migrating TIBCO Security Server Database from Earlier Version to Version 2.4.1
In TIBCO Enterprise Administrator 2.4.1, H2 database version is upgraded from version 1.4.195 to 2.1.210. You must perform the following steps to migrate your TIBCO Security Server database configured in an earlier version of TIBCO Enterprise Administrator to new format in the version 2.4.1.
- Procedure
-
Stop TIBCO Security Server.
- Take backup of
<TIBCO_CONFIG_HOME>/tibco/cfgmgmt/tss/data/
directory. - Take backup of
<TIBCO_HOME>/tea/agents/tss/1.2/bin/tibco/cfgmgmt/data
directory. -
Run the following commands:
Copycd <TIBCO_HOME>/tea/agents/tss/1.2/lib
Copy
java -cp h2-1.4.195.jar org.h2.tools.Script -url jdbc:h2:<TIBCO_CONFIG_HOME>/tibco/cfgmgmt/tss/data/teaAgentDb -user "sa" -password "sa" -script taagentDB.zip -options compression zipCopyjava -cp h2-1.4.195.jar org.h2.tools.Script -url jdbc:h2:<TIBCO_HOME>/tea/agents/tss/1.2/bin/tibco/cfgmgmt/data/tssDb -user "sa" -password "sa" -script tssDB.zip -options compression zip
This creates
taagentDB.zip
andtssDB.zip
file in the current directory. - In the
<TIBCO_CONFIG_HOME>/tibco/cfgmgmt/tss/data/
folder, deleteteaAgentDb.mv.db
andteaAgentDb.trace.db
. In the<TIBCO_HOME>/tea/agents/tss/1.2/bin/tibco/cfgmgmt/data/
folder, deletetssDb.mv.db
andtssDb.trace.db
. - Install TIBCO Enterprise Administrator 2.4.1 which installs TIBCO Security Server 1.2.1. For more information, see Installation.
-
Copy
taagentDB.zip
andtssDB.zip
files from<TIBCO_HOME>tea/agents/tss/1.2/lib
to<TIBCO_HOME>/tea/agents/tss/1.2.1/lib
directory using the following command:Copycd <TIBCO_HOME>/tea/agents/tss/1.2.1/lib
Copy
cp <TIBCO_HOME>/tea/agents/tss/1.2/lib/taagentDB.zip <TIBCO_HOME>/tea/agents/tss/1.2.1/libCopy
cp <TIBCO_HOME>/tea/agents/tss/1.2/lib/tssDB.zip <TIBCO_HOME>/tea/agents/tss/1.2.1/lib -
Run the following commands to restore the database:
Copycd <TIBCO_HOME>/tea/agents/tss/1.2.1/lib
Copyjava -cp h2-2.1.210.jar org.h2.tools.RunScript -script taagentDB.zip -url "jdbc:h2:<TIBCO_CONFIG_HOME>/tibco/cfgmgmt/tss/data/teaAgentDb;NON_KEYWORDS=KEY,VALUE" -options compression zip variable_binary
Copyjava -cp h2-2.1.210.jar org.h2.tools.RunScript -script tssDB.zip -url "jdbc:h2:<TIBCO_HOME>/tea/agents/tss/1.2.1/bin/tibco/cfgmgmt/data/tssDb;NON_KEYWORDS=KEY,VALUE" -options compression zip variable_binary
-
Start the TIBCO Security Server from
<TIBCO_HOME>tea/agents/tss/1.2.1/bin
directory and verify if all the data from previous version is migrated to version 2.4.1.