Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling Python from Oracle

Is it possible to call Python within an Oracle procedure? I've read plenty of literature about the reverse case (calling Oracle SQL from Python), but not the other way around.

What I would like to do is to have Oracle produce a database table, then I would like to call Python and pass this database table to it in a DataFrame so that I could use Python to do something to it and produce results. I might need to call Python several times during the Oracle procedure. Does anyone know if this is possible and how could it be done?

like image 723
user3311225 Avatar asked Mar 21 '14 16:03

user3311225


1 Answers

You can write stored procedures in Java and you can use Java to run Python code, so you can possibly combine the two to achieve what you want.

like image 130
dwurf Avatar answered Sep 30 '22 10:09

dwurf