Calling Python from Oracle

后端 未结 7 2224
傲寒
傲寒 2021-02-12 23:13

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.<

7条回答
  •  别跟我提以往
    2021-02-12 23:53

    kind of complicated but possible. I have seen it once. You need to

    1. create a javaclass inside oracle database. This class calls a .py file in the directory which contains it.
    2. create a procedure that calls the java class of item 1.
    3. in your sql query, call the procedure of item 2 whenever you need it.

提交回复
热议问题