Skip to content

oracle/python-cx_Oracle

Repository files navigation

Python cx_Oracle

cx_Oracle was obsoleted by python-oracledb in 2022.

Python-oracledb uses the same Python DB API as cx_Oracle, and has many new features.

Install with:

python -m pip install oracledb

Usage is like:

import getpass
import oracledb

un = 'scott'
cs = 'localhost/orclpdb1'
pw = getpass.getpass(f'Enter password for {un}@{cs}: ')

with oracledb.connect(user=un, password=pw, dsn=cs) as connection:
    with connection.cursor() as cursor:
        sql = 'select systimestamp from dual'
        for r in cursor.execute(sql):
            print(r)

The source code for python-oracledb is at github.com/oracle/python-oracledb.

About

Obsolete Python interface to Oracle Database, now superseded by python-oracledb

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy