---
title: OCI Integration Troubleshooting
description: Troubleshooting steps for the Datadog OCI Integration
breadcrumbs: Docs > Integrations > Integration Guides > OCI Integration Troubleshooting
---

# OCI Integration Troubleshooting

{% callout %}
# Important note for users on the following Datadog sites: us2.ddog-gov.com

{% alert level="info" %}
To find out if this integration is available in your organization, see your [Datadog Integrations](https://app.datadoghq.com/integrations) page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [support@ddog-gov.com](mailto:support@ddog-gov.com).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

Use this guide to troubleshoot issues related to the Datadog [OCI Integration](https://docs.datadoghq.com/integrations/oracle-cloud-infrastructure.md).

## Integration issues{% #integration-issues %}

See configuration issues with your OCI integration on the **Issues** tab of the [OCI integration tile](https://app.datadoghq.com/integrations?integrationId=oracle-cloud-infrastructure).

## Invalid Datadog API or app key credentials{% #invalid-datadog-api-or-app-key-credentials %}

This occurs when the Datadog API key or application key configured in the OCI integration has expired or is invalid. Both keys are validated during a stack apply. Look for the following error in your ORM stack's job logs to confirm:

```
Error: unexpected response code '403': {"errors":["Forbidden"]}

  with module.integration[0].restapi_object.datadog_tenancy_integration,
  on modules/integration/main.tf line 15, in resource "restapi_object" "datadog_tenancy_integration":
  15: resource "restapi_object" "datadog_tenancy_integration" {
```

To remediate this, generate new credentials and update your integration deployment:

1. Go to [API Keys](https://app.datadoghq.com/organization-settings/api-keys) in your Datadog organization settings and generate a new API key.
1. Go to [Application Keys](https://app.datadoghq.com/organization-settings/application-keys) in your Datadog organization settings and generate a new application key.
1. Update your integration deployment with the new keys and reapply it.

{% tab title="QuickStart (ORM stack)" %}

1. Navigate to [Oracle Resource Manager stacks](https://cloud.oracle.com/resourcemanager/stacks) and locate your Datadog QuickStart stack.
1. Click **Edit** on the stack.
1. Click **Next** to reach the **Configure Variables** page.
1. Update the **Datadog API Key** and **Datadog Application Key** values with the new credentials.
1. Click **Next**.
1. Click **Save changes**.

{% /tab %}

{% tab title="Terraform" %}

1. Update the `datadog_api_key` and `datadog_app_key` values in your Terraform `.tf` file with the new credentials.
1. Run `terraform apply` to apply the updated configuration.

{% /tab %}

## Required OCI IAM permissions are missing{% #required-oci-iam-permissions-are-missing %}

Datadog has received a `403` error when querying OCI, indicating that not all necessary IAM permissions have been granted. Check the [Policies page](https://cloud.oracle.com/identity/domains/policies) in OCI to ensure that the `dd-svc-policy` and `dd-dynamic-group` policies have all **read-only** permissions properly configured.

## OCI tenancy reaching service connector hub limit{% #oci-tenancy-reaching-service-connector-hub-limit %}

For each tenancy, at least one service connector hub is required per five compartments. [Request a service limit increase](https://docs.oracle.com/en/cloud/get-started/subscriptions-cloud/mmocs/requesting-service-limit-change.html) in your OCI account.

## Cannot collect data from one or more subscribed regions{% #cannot-collect-data-from-one-or-more-subscribed-regions %}

The application function used to forward Datadog metrics and logs was not found. To remediate this, reapply the existing Datadog integration ORM Stack in your OCI tenancy.

**Note**: If you specified the subnet OCIDs in the optional configuration section, ensure that there is one subnet OCID per subscribed region. Do not make any other modifications to the existing stack before reapplying it.

Still need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
