Connexion à Oracle Analytics Cloud à l'aide d'une URL JDBC (avec l'assertion Propriétaire de ressource)

Connectez-vous à Oracle Analytics Cloud à l'aide d'une connexion JDBC avec une assertion Propriétaire de ressource afin de pouvoir interroger le modèle sémantique.

  1. Créez un fichier bijdbc.properties qui contient les propriétés d'authentification et d'autorisation OAuth requises pour la connexion à l'instance Oracle Analytics Cloud.
    Utilisez les détails que vous avez collectés précédemment. Reportez-vous à Collecte des détails nécessaires pour le fichier bijdbc.properties. Utilisez le format suivant pour votre fichier bijdbc.properties :
    idcsEndpointUrl=https://<IDCS_hostname> 
    idcsClientId=<ID string>
    idcsClientScope=<ID string> 
    idcsClientSecret=<secret>
    user=<firstname.lastname@example.com>
    password=<password>

    Par exemple :

    idcsEndpointUrl=https://idcs-1a2bc345678901d2e34fgh56789j0ke.identity.c9abc1.oc9def.com
    idcsClientId=12a000dc9ef345678000ghij2kl8a34   
    idcsClientScope=https://<host>.com:443urn:opc:resource:consumer::all
    idcsClientSecret=xyz
    user=myuser@office.com
    password=yourpassword
  2. Déterminez l'URL requise pour vous connecter à votre instance Oracle Analytics Cloud. Le format que vous utilisez dépend du moment et du mode de déploiement de l'instance.
    Pour vous connecter à une instance déployée sur Date de création

    Oracle Cloud Infrastructure (Gen 2)

    Indifférent

    Oracle Cloud Infrastructure

    12 mai 2020 ou date ultérieure

    Utilisez ce format d'URL avec OAuth :

    jdbc:oraclebi:https://<host>:<port>/api/jdbc?BIJDBC_PROPERTIES_FILE=<fully qualified location and name of properties file>

    Par exemple :

    jdbc:oraclebi:https://<host>:443/api/jdbc?BIJDBC_PROPERTIES_FILE=D:\\Workspace\\bijdbc\\bijdbc.properties
    Pour vous connecter à une instance déployée sur Date de création

    Oracle Cloud Infrastructure

    Avant le 12 mai 2020

    Utilisez ce format d'URL avec OAuth :

    jdbc:oraclebi:https://<host>:<port>/bimodeler/api/jdbc?BIJDBC_PROPERTIES_FILE=<fully qualified location and name of properties file>

    Par exemple :

    jdbc:oraclebi:https://abcdefghi123-jklmnopqrs4t-je.analytics.ocp.oraclecloud.com:443/bimodeler/api/jdbc?BIJDBC_PROPERTIES_FILE=D:\\Workspace\\bijdbc\\bijdbc.properties
  3. Testez la connexion à l'instance Oracle Analytics Cloud cible.
    Utilisez l'outil de commande SQL de votre choix pour vous connecter à Oracle Analytics Cloud avec l'URL JBDC appropriée. Par exemple :
    jdbc:oraclebi:https://abcdefghi123-jklmnopqrs4t-je.analytics.ocp.oraclecloud.com:443/api/jdbc?BIJDBC_PROPERTIES_FILE=D:\\Workspace\\bijdbc\\bijdbc.properties