We have a requirment where we have to pull the data from Oracle database to MariaDB from where the Application access that data.
Can some please help me how can we accomplish this?
Thank you
I am aware of data link where we can pull the data Fro mariaDB to Oracle but not sure in reverse way
The MariaDB Connect Engine has ODBC and JDBC data types which can connect to Oracle.
Rough instructions:
- install MariaDB-connect-engine and unixODBC
- configure the Oracle ODBC driver in /etc/odbcinst.ini
- configure a Oracle DSN to the server in ~/.odbc.ini
- load the
ha_connect.so
into MariaDB (plugin-load-add=ha_connect.so
inmy.cnf
) - create mariadb table connecting to Oracle –
create table table_maria engine=connect table_type=ODBC tabname="t" Connection='DSN=oracle' SRCDEF='select * from t';
- create local table;
create table table_maria_local like table_maria; alter table table_maria_local engine=InnoDB
- copy data;
insert into table_maria_local select * from table_maria
Extracted from blog