# python-cx_Oracle_1 **Repository Path**: mirrors_oracle/python-cx_Oracle_1 ## Basic Information - **Project Name**: python-cx_Oracle_1 - **Description**: Obsolete Python interface to Oracle Database, now superseded by python-oracledb - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-08-26 - **Last Updated**: 2025-09-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Python cx_Oracle **cx_Oracle was obsoleted by [python-oracledb](https://oracle.github.io/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](https://github.com/oracle/python-oracledb).