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, the loader supports connection with connection string or tns configuration.
from langchain_community.document_loaders import OracleAutonomousDatabaseLoaderfrom settings import s
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.