Page History
...
Download WSO2 Governance Registry 5.4.0.
Stop all running server instances of WSO2 Governance Registry 5.3.0.
- Make sure that you have taken a backup of all the databases and existing configurations.
- To connect the new product version, to the database of the previous version, configure the following files:
- Configure
<G-REG_HOME>/repository/conf/datasources/master-datasources.xml
. For more information on how to do this for your database, see Changing the default database. Navigate to the
<G-REG_HOME>/repository/conf
directory, and update the datasource references inuser-mgt.xml
,registry.xml
andapi-manager.xml
files, to match the updated configurations in themaster-datasources.xml
file, which you made in the above step. The following are sample configurations if the datasource isjdbc/WSO2CarbonDB
.Code Block language html/xml title registry.xml <dbConfig name="wso2registry"> <dataSource>jdbc/WSO2CarbonDB</dataSource> </dbConfig>
Code Block language html/xml title user-mgt.xml <UserManager> <Realm> <Configuration> ... <Property name="dataSource">jdbc/WSO2CarbonDB</Property> </Configuration> ... </Realm> </UserManager>
Code Block language html/xml title api-manager.xml <DataSourceName>jdbc/WSO2CarbonDB</DataSourceName>
- Configure
Follow the below steps to update the database scripts.
Download the migration resources and unzip it to a local directory. This folder is referred to as
<MIGRATION_TOOL_HOME>
.Note If you are using MySQL 5.7, rename the
<MIGRATION_TOOL_HOME>/dbscripts/identity/migration-5.2.0_to_5.3.0/mysql.sql
file tomysql_56.sql
.Copy the DB script files in the
<IS5.3.0_MIGRATION_<MIGRATION_TOOL_HOME>/dbscripts/identity/migration-5.2.0_to_5.3.0
directory to the<G-REG_5.4.0_HOME>/dbscripts/identity/
directory.Copy the
<MIGRATION_TOOL_HOME>/dropins/org.wso2.carbon.is.migrate.client-5.3.0.jar
file in the<IS5.3.0_MIGRATION_TOOL_HOME>/dropins/
directory to the file to the<G-REG_5.4.0_HOME>>/components/dropins/
directory.Info Alternatively, if you are using Oracle, either provide the database owner credentials in the datasource configurations (identity and user management databases). Else, pass the identity database owner name with the
-DidentityOracleUser
command and user management database owner name with the-DumOracleUser
command.
If there are thousands of artifacts in the system, increase the value of the
<indexingFrequencyInSeconds>
property (e.g. to 10), or reduce the value of the<batchSize>
property (e.g. to 10) in the<
G-REG_HOME>/repository/conf/registry.xml
file as shown below.Code Block language xml <indexingConfiguration> <solrServerUrl>http://192.168.48.220:8983/solr/registry-indexing</solrServerUrl> <startingDelayInSeconds>35</startingDelayInSeconds> <indexingFrequencyInSeconds>3</indexingFrequencyInSeconds> <!--number of resources submit for given indexing thread --> <batchSize>50</batchSize> <!--number of worker threads for indexing --> <indexerPoolSize>50</indexerPoolSize> <!-- location storing the time the indexing took place--> </indexingConfiguration>
Once you are done with the migration tasks, restart the server as follows:
Warning Execute both commands one after the other.
For Linux:
sh wso2server.sh -Dmigrate -Dcomponent=identity -DmigratePermissionData
sh wso2server.sh -Dmigrate -Dcomponent=identity -DmigrateIdentityDB
For Windows:
wso2server.bat -Dmigrate -Dcomponent=identity -DmigrateIdentityDB
wso2server.bat -Dmigrate -Dcomponent=identity -DmigratePermissionData
...