Oracle

You can use CARTO with your data in an Oracle database, with full support for Oracle Spatial (SDO_GEOMETRY) and GeoRaster data types.

CARTO supports Oracle Database 19c and higher.

Authentication with Oracle Wallet

Oracle connections in CARTO use Oracle Wallet for secure authentication. Oracle Wallet is a container that stores authentication and signing credentials, including private keys, certificates, and trusted certificates needed for secure connections.

If you want to create a connection to your Oracle database, you need to select the Oracle connector in the New connection dialog. After you select the connector click on the Setup connection button.

Required Parameters

To establish a connection, you need to provide the following:

  • Name for your connection: You can register different connections with the Oracle connector. You can use the name to identify the connections.

  • Wallet File (ZIP): Upload your Oracle Wallet file containing the security credentials and certificates. This file is typically provided by your Oracle database administrator.

  • Connection String: The TNS connection string from your tnsnames.ora file (included in the wallet). This defines how to connect to your Oracle database instance.

  • Username: Name of the user account that will access the Oracle database.

  • Password: Password for the user account.

  • Wallet Password: The password protecting your Oracle Wallet file.

About Oracle Wallet

Oracle Wallet files are ZIP archives containing security credentials. Your database administrator can provide this wallet file along with the connection string and wallet password. For Oracle Autonomous Database, you can download the wallet file from the Oracle Cloud Console.

Once you have entered all the parameters, you can click the Connect button. CARTO will try to connect to your Oracle database using the wallet credentials. If everything is OK, your new connection will be registered.

CARTO will try to minimize and reuse the number of connections (sockets) made to the Oracle database. But in some cases the amount of connections can grow rapidly. If you have a strong requirement to control the incoming connections to your database, we recommend configuring connection pooling on your Oracle database.

The connections are only reused if they are going through the same CARTO-Oracle Connection. If you set up many Connections in your organization, the amount of database connections will grow faster.

Advanced options

  • Analytics Toolbox location: This setting controls the location of the Analytics Toolbox used in SQL queries generated by Workflows components, Builder SQL Analyses, 'Create Tileset', 'Geocode Table' and 'Enrich Data' functionalities. By default, a carto schema will be used.\

  • Data Observatory location: This settings controls the location of the Data Observatory subscriptions. This setting will be observed by Data Explorer, Workflows and Enrichment to access your data subscriptions. By default, a cartoschema will be used.

  • CARTO temp location

    Location to store temporary tables used during workflow execution. These include intermediate tables with hashed names created by nodes in a workflow. By default, CARTO uses a carto_temp schema per database. Example: my_oracle_db.carto_temp

  • CARTO Workspace location

    Location to store persistent objects related to workflows, such as API stored procedures and imported files. By default, CARTO uses a carto_workspace schema per database. Example: my_oracle_db.carto_workspace

  • Max number of concurrent queries: This setting controls the maximum number of simultaneous queries that CARTO will send to the Oracle database using this connection.

  • Max query timeout: This setting controls the maximum allowed duration of queries that CARTO runs in the Oracle database using this connection.

  • Restrict this connection to only use Named Sources: When this setting is enabled, this connection will only work within apps that use Named Sources, and it will NOT work in Data Explorer, Builder and Workflows. This prevents the usage of arbitrary SQL in applications for this connection.

IP Whitelisting

If you're using the cloud version of CARTO (SaaS), CARTO will connect to Oracle using a set of static IPs for each region. Check this guide to find the IPs you need to allow for your specific region.

Supported Features

Current Limitations

Oracle connections in CARTO currently have the following limitations:

Last updated

Was this helpful?