Verbindung zu Oracle Analytics Cloud über eine JDBC-URL (mit Ressourceneigentümer-Assertion) herstellen

Stellen Sie über eine JDBC-Verbindung mit Ressourceneigentümer-Assertion eine Verbindung zu Oracle Analytics Cloud her, damit Sie das semantische Modell abfragen können.

  1. Erstellen Sie die Datei bijdbc.properties mit den OAuth-Authentifizierungs- und -Autorisierungseigenschaften, die für die Verbindung mit Ihrer Oracle Analytics Cloud-Instanz erforderlich sind.
    Verwenden Sie die zuvor erfassten Details. Siehe Details erfassen, die Sie für die Datei bijdbc.properties benötigen. Verwenden Sie das folgende Format für die Datei bijdbc.properties:
    idcsEndpointUrl=https://<IDCS_hostname> 
    idcsClientId=<ID string>
    idcsClientScope=<ID string> 
    idcsClientSecret=<secret>
    user=<firstname.lastname@example.com>
    password=<password>

    Beispiel:

    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. Ermitteln Sie die für die Verbindung zu Ihrer Oracle Analytics Cloud-Instanz erforderliche URL. Welches Format Sie verwenden, hängt davon ab, wann und wie die Instanz bereitgestellt wurde.
    Zur Verbindung mit einer Instanz, die bereitgestellt ist auf: Erstellungsdatum

    Oracle Cloud Infrastructure (2. Generation)

    Beliebig

    Oracle Cloud Infrastructure

    12. Mai 2020 oder später

    Verwenden Sie folgendes URL-Format mit OAuth:

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

    Beispiel:

    jdbc:oraclebi:https://<host>:443/api/jdbc?BIJDBC_PROPERTIES_FILE=D:\\Workspace\\bijdbc\\bijdbc.properties
    Zur Verbindung mit einer Instanz, die bereitgestellt ist auf: Erstellungsdatum

    Oracle Cloud Infrastructure

    Vor dem 12. Mai 2020

    Verwenden Sie folgendes URL-Format mit OAuth:

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

    Beispiel:

    jdbc:oraclebi:https://abcdefghi123-jklmnopqrs4t-je.analytics.ocp.oraclecloud.com:443/bimodeler/api/jdbc?BIJDBC_PROPERTIES_FILE=D:\\Workspace\\bijdbc\\bijdbc.properties
  3. Testen Sie die Verbindung zur Oracle Analytics Cloud-Zielinstanz.
    Verwenden Sie Ihr bevorzugtes SQL-Befehlstool, um mit der entsprechenden JDBC-URL eine Verbindung zu Oracle Analytics Cloud herzustellen. Beispiel:
    jdbc:oraclebi:https://abcdefghi123-jklmnopqrs4t-je.analytics.ocp.oraclecloud.com:443/api/jdbc?BIJDBC_PROPERTIES_FILE=D:\\Workspace\\bijdbc\\bijdbc.properties