S
S
strelkovandrey2017-11-30 16:17:09
PHP
strelkovandrey, 2017-11-30 16:17:09

How to transfer the contents of a table from Oracle to MySQL using PHP?

Good afternoon, how can I use PHP to transfer the contents of one table (views) in Oracle to another MySQL table
, considering that the set of fields of the receiver table are identical
Found a way when between two mysqls https://gist.github.com/kharysharpe/11275211
but considering that my knowledge of php is not strong, I am at a loss how to do it correctly under oracle

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
StrangerInTheKy, 2017-11-30
@StrangerInTheKy

Connect MySQL database to Oracle via dblink and then in oracle:

insert into [email protected]_mysql_db
select * from my_table;

I would first try this, and if it doesn’t work out, you can already try to pervert.

A
Alexander Kuznetsov, 2017-12-01
@DarkRaven

If you cannot do it through PHP, then you can make a dblink in Oracle and write from it in PHP. Another option is to export and import data. You generate inserts and pour into mysql. In my opinion, dblink is the best in this situation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question