142.4.2 ATTACH_CREDENTIAL Procedure

The ATTACH_CREDENTIAL procedure attaches a credential to the specified endpoint.

Syntax

DBMS_OBSERVABILITY.ATTACH_CREDENTIAL( endpoint IN VARCHAR2, credential_name IN VARCHAR2 );

Parameters

Table 142-8 ATTACH_CREDENTIAL Procedure Parameters

Parameter Description

endpoint

Specifies the endpoint.

credential_name

The name of the credential.

Examples

The following example illustrates how to attach a credential to the endpoint https://example.com:1234/ot_endp/v1/traces:
SQL> execute dbms_observability.attach_credential( endpoint        => 'https://example.com:1234/ot_endp/v1/traces',
                                                   credential_name => 'my_cred' );