Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or Docker Desktop.
- To connect Oracle to MindsDB, install the required dependencies following this instruction.
Connection
Establish a connection to your Oracle database from MindsDB by executing the following SQL command:- 
user: The username for the Oracle database.
- 
password: The password for the Oracle database.
- 
dsn: The data source name (DSN) for the Oracle database. OR
- 
host: The hostname, IP address, or URL of the Oracle server. AND
- 
sid: The system identifier (SID) of the Oracle database. OR
- 
service_name: The service name of the Oracle database.
- port: The port number for connecting to the Oracle database. Default is 1521.
- disable_oob: The boolean parameter to disable out-of-band breaks. Default is- false.
- auth_mode: The authorization mode to use.
- thick_mode: Set to- trueto use thick mode for the connection. Thin mode is used by default.
- oracle_client_lib_dir: The directory path where Oracle Client libraries are located. Required if- thick_modeis set to- true.
Usage
Retrieve data from a specified table by providing the integration name, schema, and table name:The above examples utilize 
oracle_datasource as the datasource name, which is defined in the CREATE DATABASE command.Troubleshooting Guide
Database Connection Error- Symptoms: Failure to connect MindsDB with the Oracle database.
- Checklist:
- Make sure the Oracle database is active.
- Confirm that the connection parameters provided (DSN, host, SID, service_name) and the credentials (user, password) are correct.
- Ensure a stable network between MindsDB and Oracle.
 
- Symptoms: Connection timeout errors.
- Checklist:
- Verify that the Oracle database is reachable from the MindsDB server.
- Check for any firewall or network restrictions that might be causing delays.
 
- Symptoms: Can’t connect to db: Failed to initialize Oracle client: DPI-1047: Cannot locate a 64-bit Oracle Client library:
- Checklist:
- Ensure that the Oracle Client libraries are installed on the MindsDB server.
- Verify that the oracle_client_lib_dirparameter is set correctly in the connection configuration.
- Check that the installed Oracle Client libraries match the architecture (64-bit) of the MindsDB server.