Welcome to cx_Oracle’s documentation!¶
cx_Oracle is a module that enables access to Oracle Database and conforms to the Python database API specification. This module is currently tested against Oracle Client 19, 18, 12, and 11.2, and Python 2.7, 3.5, 3.6 and 3.7.
cx_Oracle is distributed under an open-source license (the BSD license). A detailed description of cx_Oracle changes can be found in the release notes.
Contents:
User Guide¶
- Introduction to cx_Oracle
- cx_Oracle 7 Installation
- Overview
- Quick Start cx_Oracle Installation
- Oracle Client and Oracle Database Interoperability
- Installing cx_Oracle on Linux
- Installing cx_Oracle RPMs on Oracle Linux
- Installing cx_Oracle on Windows
- Installing cx_Oracle on macOS
- Installing cx_Oracle without Internet Access
- Install Using GitHub
- Install Using Source from PyPI
- Upgrading from Older Versions
- Installing cx_Oracle 5.3
- Troubleshooting
- Connecting to Oracle Database
- Establishing Database Connections
- Closing Connections
- Oracle Environment Variables
- Optional Oracle Configuration Files
- Connection Strings
- Connection Pooling
- Database Resident Connection Pooling (DRCP)
- Connecting Using Proxy Authentication
- Connecting Using External Authentication
- Privileged Connections
- Starting and Stopping Oracle Database
- Securely Encrypting Network Traffic to Oracle Database
- Resetting Passwords
- Connecting to Sharded Databases
- SQL Execution
- PL/SQL Execution
- Using Bind Variables
- Binding By Name or Position
- Bind Direction
- Binding Null Values
- Binding ROWID Values
- DML RETURNING Bind Variables
- LOB Bind Variables
- REF CURSOR Bind Variables
- Binding PL/SQL Collections
- Binding PL/SQL Records
- Binding Spatial Datatypes
- Changing Bind Data Types using an Input Type Handler
- Binding Multiple Values to a SQL WHERE IN Clause
- Binding Column and Table Names
- Using CLOB and BLOB Data
- Working with the JSON Data Type
- Simple Oracle Document Access (SODA)
- Working with XMLTYPE
- Batch Statement Execution and Bulk Loading
- Exception Handling
- Oracle Advanced Queuing
- Continuous Query Notification
- Transaction Management
- Characters Sets and National Language Support (NLS)
- High Availability with cx_Oracle
- Tracing SQL and PL/SQL Statements
API Manual¶
- Module Interface
- Constants
- General
- Advanced Queuing: Delivery Modes
- Advanced Queuing: Dequeue Modes
- Advanced Queuing: Dequeue Navigation Modes
- Advanced Queuing: Dequeue Visibility Modes
- Advanced Queuing: Dequeue Wait Modes
- Advanced Queuing: Enqueue Visibility Modes
- Advanced Queuing: Message States
- Advanced Queuing: Other
- Connection Authorization Modes
- Database Shutdown Modes
- Event Types
- Operation Codes
- Session Pool Get Modes
- Session Pool Purity
- Subscription Grouping Classes
- Subscription Grouping Types
- Subscription Namespaces
- Subscription Protocols
- Subscription Quality of Service
- Types
- Exceptions
- Exception handling
- Constants
- Connection Object
- Cursor Object
- Variable Objects
- SessionPool Object
- Subscription Object
- LOB Objects
- Object Type Objects
- Advanced Queuing (AQ)
- Soda Document Class