Skip to main content
Oracle Autonomous Database is a cloud database that uses machine learning to automate database tuning, security, backups, updates, and other routine management tasks traditionally performed by DBAs. This notebook covers how to load documents from Oracle Autonomous Database.

Prerequisites

A database that python-oracledb’s default 'Thin' mode can connected to. This is true of Oracle Autonomous Database, see python-oracledb Architecture. You’ll need to install langchain-oracledb to use this integration. The python-oracledb driver is installed automatically as a dependency of langchain-oracledb.

Instructions

With mutual TLS authentication (mTLS), wallet_location and wallet_password parameters are required to create the connection. See python-oracledb documentation Connecting to Oracle Cloud Autonomous Databases.
With 1-way TLS authentication, only the database credentials and connection string are required to establish a connection. The example below also shows passing bind variable values with the argument parameters.