WSO2 Governance Registry upgrade - DB Scripts Issue - wso2

We are doing a DB Upgradation for WSo2 Governance Registry upgradation from 4.5.3 to 4.6.0. The sql scripts available in the documentation for creating some db schema in staging database is having discrepancy like scripts for creating few tables are missing. Can anyone provide valid scripts for staging database as we are trying out with mySql/Oracle database?
The reference link I am following is shown as below:
https://docs.wso2.com/display/Governance460/Upgrading+from+the+Previous+Release

Related

Is there any way to load analytics-dashboard wso2 with mssql DB?

I am using the MSSQL database for WSO2 API manager 3.2.0 and want to use analytics. When I changed the database to MSSQL, this error appeared. How can I solve this problem?
You need to add the MSSQL JDBC driver to the <API-M_ANALYTICS_HOME>/lib directory to use MSSQL as the external database for Analytics. I have tried with mssql-jdbc version 8.2.2.jre8. Since mssql-jdbc depends on OSGi Service JDBC you will need to add that jar as well to the <API-M_ANALYTICS_HOME>/lib directory. You may use the following links to download the jars,
OSGi Service JDBC - https://mvnrepository.com/artifact/org.osgi/org.osgi.service.jdbc/1.0.1
Microsoft JDBC Driver For SQL Server - https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc/8.2.2.jre8
If you still face issues after adding the above jars, please add the complete stack trace related to the error. You can find the logs in the carbon.log file located at <API-M_ANALYTICS_HOME>/wso2/worker/logs.

Is it possible to migrate embed h2 database to PostgreSQL database with data in WSO2 identity server 5.10

We are using default h2 database in wso2 identity server 5.10. we want to migrate h2 database to postgres data base with complete old data.
I did not find any link for migrating with data.
Can you please help on it.
I did not find any link for migrating with data.
WSO2 does not support migrating data between RDBMSs. You might have to find a third party tool for that.

WSO2 Enterprise Integrator Database migrate

I'm using WSO2 EI 6.5.0 (latest release),
I'm wondering that Where can i find WSO2 database schema, stores all of things,
Those log files, written on Management console is saved in Database right ?
I am using Oracle DB (PL\SQL)..
I found oracle.sql from dbscripts folder - %E_HOME%,
How to connect WSO2's default database in PLSQL ?
Regards
By default wsoesb use h2 database. You can overwrite default database using oracle. There is documentation how to configure datasource, and there is, i am not sure something like carbon.xml where configure default datasource.
No, the logs are persisted in the files in ESB_HOME/repository/logs folder.
As #srimar mentioned, the default database is embedded H2. You can follow this doc to browse the embedded H2.
But WSO2 didn't recommend the embedded H2 database in the production
To configure the Oracle database you can follow this doc

WSO2 EI, migrating all configs in H2 to another database

I have WSO2 EI application which has a lot of datasources and all of them are exposed as dataservices. Also, I have a lot of users that use this application. Now I want to migrate from local H2 database to MySQL cluster. I need to upload all my configurations about datasources, dataservices and users to this new database.
When I made search for database files in my WSO2 EI folder I have found a lot of database files and some of them have same name.
What kind of .db files I should copy in my WSO2 EI folder in order to properly migrate to new database?
Have a look at [1] which explains on upgrading efforts of EI.
[1] https://docs.wso2.com/display/EI610/Upgrading+from+WSO2+EI+6.0.0#UpgradingfromWSO2EI6.0.0-Upgradingthedatabases
Based on your question, I understand you want to upgrade to an industry standard RDBMS like MySQL instead of using the embedded database H2, that is packaged along with WSO2 products.
All WSO2 products have the SQL scripts for different RDBMS shipped along with the product, that can be found under dbscripts directory inside the installation folder. We can use the relevant .sql file for creating the DB schema. Also there is no need to manually copy the .db files to migrate to a new DB. WSO2 setup as specified in the below links, will handle that implicitly.
Refer the following link, for detailed steps on the migration activities.
https://docs.wso2.com/display/ADMIN44x/Working+with+Databases
https://docs.wso2.com/display/ESB490/Remote+Instance+and+Mount+Configuration+Details
https://docs.wso2.com/display/Governance520/Remote+Instance+and+Mount+Configuration+Details

WSO2 ESB clustering - sharing registry

I have tried to implement shared registry between clustered environment ESB 4.6.0 using GREG 4.5.3 following the guidance provided in provided in the documentation.
When I use the h2 db for currentDBConfig and the mysql database for mounted registry, WSO2 workers displays the following error when Deployment Synchronizer is automatically invoked:
Error while updating artifacts in the file system from the registry {org.wso2.carbon.deployment.synchronizer.registry.RegistryBasedArtifactRepository}
org.wso2.carbon.registry.synchronization.SynchronizationException: message code: ERROR_IN_READING_STREAM_TO_CREATE_META_FILE
When pointing currentDBConfig to the mysql database, the deployment synchronizer works ok and replicates configuration as expected, but according to the documentation it is not good practice.
How does the Deployment Synchronizer utilize the registry to update artifacts?
I have noticed that the User database uses by default the h2 database. Should it not be re-pointed to the shared governance registry database instead?
Thanks. Guillaume