DBMS_USER_CERTS

The DBMS_USER_CERTS package allows you add and delete certificates.

This chapter contains the following topics:

See Also:

Oracle Database Administrator’s Guide

Oracle Database Concepts

Oracle Database SQL Language Reference

Oracle Database Reference

For information on hidden columns in blockchain tables, see Hidden Columns in Blockchain Tables

DBMS_USER_CERTS Overview

The DBMS_USER_CERTS package allows you add and delete certificates.

The DBMS_USER_CERTS package allows you to:

One use case is to attach a digital signature to a row in a blockchain table and be able to verify the digital signature later. A certificate used to sign one or more rows in blockchain tables and which has since expired should remain in the database until all those rows have been deleted from the blockchain tables.

DBMS_USER_CERTS Security Model

The DBMS_USER_CERTS package is owned by SYS and is installed as part of database installation.

Summary of DBMS_USER_CERTS Subprograms

The DBMS_USER_CERTS package uses ADD_CERTIFICATE and DROP_CERTIFICATE subprograms to add and delete X.509 certificates which are used for signature verification for blockchain tables by the current user.

Table 1 DBMS_USER_CERTS Package Subprograms

Subprogram Description
ADD_CERTIFICATE Procedure Adds X.509 certificates which are used for signature verification of blockchain tables.
DROP_CERTIFICATE Procedure Drops a certificate that is used for signature verification of blockchain tables.

ADD_CERTIFICATE Procedure

This procedure can be used by the current user to add an X.509 certificate that is used for signature verification of blockchain tables.

Syntax

DBMS_USER_CERTS.ADD_CERTIFICATE(
   x509_cert                 IN  BLOB,
   cert_id                   OUT RAW);

Parameters

Table 2 ADD_CERTIFICATE Procedure Parameters

Parameter Description
x509_cert The X.509 certificate used for signature verification of blockchain tables.
cert_id The Global Unique Identifier (GUID) for the certificate.

DROP_CERTIFICATE Procedure

This procedure can be used by the current user to drop a certificate that is used for signature verification of blockchain tables.

Syntax

DBMS_USER_CERTS.DROP_CERTIFICATE(
   cert_id                    IN  RAW);

Parameters

Table 3 DROP_CERTIFICATE Procedure Parameters

Parameter Description
cert_id The Global Unique Identifier (GUID) of the certificate.