Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

oracle/python-cx_Oracle

Repository files navigation

cx_Oracle was obsoleted bypython-oracledb in 2022.

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

Install with:

python -m pip install oracledb

Usage is like:

import getpassimport oracledbun = '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 atgithub.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

Contributors13


[8]ページ先頭

©2009-2025 Movatter.jp