connect oracle




    This code imports the cx_Oracle module and creates a connection to the Oracle server. The cursor object is then created and used to execute a SELECT statement.

    Shortcut: oracleconex

    Filename pattern: *.py

    import cx_Oracle
    connection = cx_Oracle.connect("system", "netoracle", "localhost/XE")
    cursor = connection.cursor()
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.