Calling Python from Oracle

后端 未结 7 2249
傲寒
傲寒 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:50

    Depending on context you want to use Python you may consider OML4Py:

    Oracle Machine Learning

    Key benefits:

    In-Database Processing: “Move the algorithms, not the data!”—Process data where it resides to eliminate data movement and further leverage your Oracle environment as a high performance compute engine with parallel, distributed algorithms.

    Rapidly Deploy Machine Learning Applications—Because in-database machine learning models are native SQL functions, model deployment is immediate via SQL and R scripts.


    Further reading:

    Oracle Machine Learning: Scaling R and Python for the Enterprise

    Slides(answering this particular question):

    • page 7: Data access, analysis, and exploration
    • page 24: Create user-defined functions from SQL (or use from R/Python)
    • page 25: Invoke user-defined functions from SQL

    Oracle Machine Learning Platform Move the algorithms, not the data!

提交回复
热议问题