We are currently re-engineering our system (Documents Management System) and we are moving from MySQL to use OrientDB, we are creating the migration tool, but we are faced with the problem of moving the data from RDMS mysql to orientDB, my question is: Is there any tool to easily migrate from MySQL to OrientDB and yes we are using orientDB as graphDB, my orient is v 2.2.10 (i have recently updated from 2.2.6)
You can use teleporter. It is compatible with MySQL.
OrientDB Teleporter is a tool that synchronizes a RDBMS to OrientDB database. You can use Teleporter to:
Import your existing RDBMS to OrientDB
Keep your OrientDB database synchronized with changes from the RDBMS. In this case the database on RDBMS remains the primary and the database on OrientDB a synchronized copy. Synchronization is one way, so all the changes in OrientDB database will not be propagated to the RDBMS
Teleporter is fully compatible with several RDBMS that have a JDBC driver: we successfully tested Teleporter with Oracle, SQLServer, MySQL, PostgreSQL and HyperSQL. Teleporter manages all the necessary type conversions between the different DBMSs and imports all your data as Graph in OrientDB.
NOTE: This feature is available only in the OrientDB Enterprise Edition. If you are interested in a commercial license look at OrientDB Subscription Packages.
Related
Azure Postgres Single server version is 11. Is it possible to upgrade it to 13+ version using dump and restore as mentioned here:
https://learn.microsoft.com/en-us/azure/postgresql/how-to-upgrade-using-dump-and-restore
It should still remain Single Server.
Yes, you can.
The document you shared is Microsoft's official and therefore there is no doubt that you can upgrade it to any higher version using dump and restore.
Just take care of the below mentioned points:
You can upgrade your PostgreSQL server deployed in Azure Database for PostgreSQL by migrating your databases to a higher major version server using following methods.
Offline method using PostgreSQL pg_dump and pg_restore which incurs downtime for migrating the data.
Online method using Database Migration Service (DMS). This method provides a reduced downtime migration and keeps the target database in-sync with the source and you can choose when to cut-over. However, there are few prerequisites and restrictions to be addressed for using DMS.
The following table provides some recommendations based on database sizes and scenarios.
Choose the right approach based on your database configuration and it should be done without any issue.
To upgrade using pg_dump and pg_restore, you can refer Migrate your PostgreSQL database by using dump and restore.
It is not possible.
In the document, prerequisites states:
A source PostgreSQL database server running a lower version of the
engine that you want to upgrade. A target PostgreSQL database server
with the desired major version Azure Database for PostgreSQL server -
Single Server or Azure Database for PostgreSQL - Flexible Server.
The question asks about upgrading target.
I have a source code querying an Oracle database.
Is it possible to replace the Oracle database by a PostgreSQL database without modifying the source code ?
I thought about adding an adapter/wrapper module between my source code and the PostgreSQL db for the source code to be compatible with PostgreSQL.
Thanks
PostgreSQL is strict about ISO SQL standard implementation. Most recent Oracle versions are also compliant. Oracle usually implemented some feature long before
it was standardized therefor their dialects is slightly different.
Nowadays various SQL features have duplicate implementation in Oracle, an original one a ISO one.
Look Ora2pg, is this a Perl code which can convert a lot of Oracle code into Postgres.
Try to modify your Oracle code in Oracle database to be ISO SQL compliant, even before starting actual migration. Such a code can run on both databases without any changes.
Then you finally move from Oracle to Postgres
I am running OrientDB 2.2 Community Edition and I have already used teleporter to import a SQL database consisting of 22 tables and 11 million records. I dropped a vertex class as I needed to change something and when i went to reimport a table using teleporter i got this message...
ERROR: Synchronization not allowed in OrientDB CE. Execution will be terminated
Is there a way i can import this table and join it to the corresponding vertex classes already in the orientdb database without dropping the whole database and reimporting everything from scratch (which took about 5 hours)
Thanks :)
Synchronisation is not allowed in OrientDB Community Edition, but it is in OrientDB Enterprise Edition. Thus you just have 2 choices:
try the OrientDB Enterprise Edition (45 days trial) and exploit the synch feature. Download link: http://orientdb.com/orientdb-enterprise/
drop the old database and migrate you relational database again from scratch.
I Hope I was helpful.
I was under the impression that MySQL Workbench could be used to generate DDL for relational databases other than MySQL.
This question from 2010 says no, the only way to do it is to generate DDL for MySQL and then manually convert it.
Has there been any changes in the meantime? Any plugins?
Thank you -- Matthew Moisen
I'm a MySQL Workbench dev and I can tell you firsthand that nothing have changed about this.
I want to use Embedded FireBird with .NET 3.5. I have few queries:
(1) Are there any new developments done on the embedded version by the FireBird community?
(2) Are there any database file repair & optimize (shrink etc.) features in it?
(3) Does it supports Triggers, Foreign Keys, PL/SQL type of things etc.?
(1) Are there any new developments
done on the embedded version by the
FireBird community?
Yes, both the embedded and the client-server version are very active projects.
Using the same embedded version dll for ADO.NET for example, you can use the most recent version of the firebird engine dlls, even if the ADO.NET Firebird provider is not build for that version, but for a previous.
Check the issue tracker here: http://tracker.firebirdsql.org/secure/Dashboard.jspa
(2) Are there any database file repair
& optimize (shrink etc.) features in
it?
Yes, as described here: http://www.firebirdfaq.org/faq324/. You need to install the client-server version of firebird to use GFIX and GBAK from the command line. It is just a few megabytes.
Firebird does not have a "Compacting" feauture to shrink the database. You need to backup and then restore the database to do this. However you can use a firebird database for years without backup/restore (if you are lucky and the hard disk does not die). The only thing that you might need to do is to recalculate all indeces selectivity as described here: http://www.firebirdsql.org/dotnetfirebird/blog/2005/03/improving-query-performance-through.html
(3) Does it supports Triggers, Foreign
Keys, PL/SQL type of things etc.?
Yes. The 2.5 version of the embedded engine also supports accessing the same database file from different proccess at the same time.
Answering your questions:
The Embedded version is like a normal Firebird but encapsulated in a DLL and with some minor limitations. The Firebird Team just released some days ago the 2.5 version of SuperServer, Classic and Embedded flavors. More info at Embedded Firebird Server and Firebird website.
There are tools to repair and optimize databases. Check How to repair a corrupt Firebird database
Firebird is SQL:2003 conformant as stated in Firebird: SQL Conformance. It has triggers, foreiggn keys and stored procedures.
Hope that helps