[Python] Call Oracle function from python

Discussão em 'Python' iniciado por Stack, Junho 10, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to call an Oracle stored function by passing an sdo_geometry object to the function

    cursor = connection.cursor()
    geom = 'sdo_geometry (2001, 27700,sdo_point_type (40000, 500000, null),null, null)'

    noderef = cursor.callfunc('function123', str, [geom])


    I am getting error: wrong number or types of arguments in call

    Any suggestions how the sdo geometry can be passed as parameter to an Oracle function?

    Continue reading...

Compartilhe esta Página