So there are MySQL Database and Oracle Database. Is it possible to somehow connect to MySQL database from Oracle and call stored procedure with parameters?
hs2n has a very good answer for your problem. I would check him out.
Related
I have MS SQL Server database include table and store procedure. I want to move my databases to MySQL, but Migration wizard in MySQL just only move table. How can I move both table and store procedure? Thanks a lot!
I have created a stored procedure in mysql workbench located on server. I need to call this stored procedure through a vba application located on local machine. I am stuck on it unable to connect to mysql stored procedure. Thanks in advance for responses .
Have you setup a DSN with an ODBC connection yet?
Assuming so - check out simple examples at
It wasn't hard to find this on Google
DAO Examples
I need to access a remote Microsoft SQL Server database from a stored procedure in MySQL database.
I googled and found that there is a way to access a remote MySQL using federated tables. But I couldn't find anyway to do access MS SQL Server. My exact requirement is, I need to write a stored procedure which can duplicate all the tables and data from a remote MS SQL server database to a local MYSQL database.
Please help..
In short this cannot be done with MySQL federated engine. However you can setup a link from the remote MSSQL server to a MySQL table using the linked server feature of the MSSQL server.
If you can set this up you can have a scheduled job populate the MySQL tables from the MSSQL server side.
I have done the above setup and it is not to difficult.
I would also investigate some ETL tool to do this as it sounds like a ETL job and not something you want to run via stored procedures.
Good Luck.
is it possible to create a connection from a MySQL DB to a remote database (probably Oracle) using something like an ODBC/JDBC connector? I need to create a trigger on the MySQL side that performs an insert/update on a table in the remote DB.
Can MySQL act as a client in this way?
Thanks
Craig
I am certain that you can connect to MySql from Oracle, not that I have done it myself, but I am not sure if it can be done the other way round.
If a connection from Oracle to MySql can solve your problem then have a search for 'Oracle Database Heterogeneous Connectivity'
I found tutorials on creating a stored procedures on the net, I just don't understand when exactly do I need to execute the creation of the stored procedure.
do the stored procedures creation should be executed each time i restart my MySQL server ?
do I need to execute the stored procedures creation sql each time I start my application?
Stored procedures are persisted to the database, ie they will be there even after a restart of the database server. You create them once and then you run them as often as you need. Of course you may want to change them sometimes using an alter statement.