Manual installation

Introduction

This guide contains the steps to perform a manual installation of the CARTO Analytics Toolbox for Oraclearrow-up-right.

Setup

This step consists of setting up the Oracle database where we want to install the toolbox.

An Oracle database is required (Autonomous Database, on-premises, RDS, Azure, etc.). The Analytics Toolbox has been tested with Oracle Database 19c and later versions.

Creating the schema

Oracle schemas are tied to database users. We recommend creating a dedicated user to host the Analytics Toolbox functions.

circle-info

For the sake of documenting the process, we'll assume a schema named CARTO and an admin user named ADMIN. You can use different names, but remember to adapt the code snippets accordingly.

Connect to your Oracle database as a user with administrative privileges (e.g., ADMIN) using Database Actions (SQL Worksheet, available in every Oracle Autonomous Database) or SQLcl, and run the following script:

-- Create the carto user/schema
CREATE USER CARTO NO AUTHENTICATION;

-- Grant object creation privileges
GRANT CREATE PROCEDURE TO CARTO;  -- Covers both procedures and functions
GRANT CREATE TABLE TO CARTO;      -- Required for map, statistics, tiler modules
GRANT CREATE VIEW TO CARTO;       -- Required for LDS and data modules
GRANT UNLIMITED TABLESPACE TO CARTO;

-- Grant network ACL permissions (required for AT Gateway features)
BEGIN
  DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE(
    host => '*',
    ace  => xs$ace_type(
      privilege_list => xs$name_list('connect', 'resolve'),
      principal_name => 'CARTO',
      principal_type => xs_acl.ptype_db
    )
  );
  COMMIT;
END;
/

Installation

Once the setup is completed, we can proceed with the installation of the toolbox. This step will be performed the first time and every time we want to install an updated version.

Download the package

This ZIP file contains the scripts to install the Analytics Toolbox. Unzip the content in your local storage. This package will contain:

  • LICENSE file

  • modules.sql file

circle-info

The package is only available to CARTO customers. Please contact [email protected]envelope to get an installation package.

Execute the script

  1. Open the OCI Console and navigate to your Autonomous Database instance

  2. Click Database ActionsSQL to open the SQL Worksheet

  3. Open modules.sql locally, copy its contents, and paste them into the SQL Worksheet

  4. Click Run Script (F5) to execute the full script

circle-info

Use Run Script (F5) rather than Run Statement (Ctrl+Enter) to execute the entire file at once.

circle-info

For scripted or automated installations, SQLclarrow-up-right is also supported. Download your wallet from the OCI Console under Database connection → Download wallet, then:

triangle-exclamation

Setup AT Gateway (optional)

To use features that connect to CARTO services (geocoding, Create Builder Map, etc.), run the SETUP procedure:

circle-info

The JSON must be a single line. Contact CARTO support for the AT Gateway endpoint URL.

circle-exclamation

Granting access to users

After installation, grant permissions to users who will use the Analytics Toolbox:

circle-info

After updating to a new Analytics Toolbox version, repeat the installation steps in order: run modules.sql, then SETUP (if using AT Gateway), then GRANT_ACCESS.

Congratulations!

You have successfully installed the CARTO Analytics Toolbox in your Oracle database and configured user access.

Last updated

Was this helpful?