Create and Manage Registration Policies in Oracle Data Safe

Overview

You can create registration policies in Oracle Data Safe to automate the registration of pluggable databases (PDBs). See Supported Databases for Automatic Registration.

When you create a registration policy, you are prompted to choose a connectivity option: an Oracle Data Safe private endpoint or an Oracle Data Safe on-premises connector (if supported). If your database supports only a private endpoint, you are not prompted to make a selection. Instead, Oracle Data Safe automatically uses an existing private endpoint or creates one if none exists. If you want to use an on-premises connector, the workflow is simpler if you create the connector before enabling automatic registration.

By default, automatic registration enables the following Oracle Data Safe features on the target databases:

  • Security and user assessment
  • Audit collection
  • Audit setting
  • Data discovery

Note

Note: You can enable the Data masking, Data subsetting, and SQL Firewall features after target registration is completed if needed. You cannot disable Security and user assessment. SQL Firewall management in Oracle Data Safe is only available for Oracle AI Database 26ai target databases.

For ExaDB-D and ExaDB-XS, Oracle Data Safe automatically uses an existing private endpoint or creates one if none exists.

Before creating a registration policy, be sure to complete the necessary preregistration tasks. See Preregistration Tasks.

Preregistration Tasks

Task Number Task Links to Instructions
1 In Oracle Cloud Infrastructure Identity and Access Management (IAM), obtain permissions to register your database. Permissions to Automatically Register PDBs in Oracle Exadata Database Service on Dedicated Infrastructure

Permissions to Automatically Register PDBs in Oracle Exadata Database Service on Exascale Infrastructure

Permissions to Automatically Register PDBs in Oracle Exadata Database Service on Cloud@Customer
2 If you plan to connect to the CDB via an Oracle Data Safe on-premises connector, download the install bundle for the on-premises connector and then install the on-premises connector on a host machine on your network. Create an Oracle Data Safe On-Premises Connector
3 If you are using a TLS connection and an Oracle Data Safe on-premises connector, configure a TLS connection between the on-premises connector and your target database. Configure a TLS Connection Between the On-Premises Connector on Your Host Machine and Your Database

Before creating a registration policy in Oracle Data Safe, make sure that the selected Oracle Data Safe private endpoint or on-premises connector can connect to the CDB and PDB listener endpoints. You are responsible for configuring required network security groups, security lists, route tables, firewalls, and other network controls. Oracle Data Safe does not modify these customer network resources automatically.

Create a Registration Policy for a CDB in Oracle Data Safe

  1. Under Data Safe - Database Security, expand Target databases, and then select Registration policies.

  2. Select Create registration policy.

    The Create registration policy panel opens.

  3. Select the compartment that contains your Exadata VM cluster.

  4. Select the name of your Exadata VM Cluster.

  5. Select the name of your container database.

  6. Enter a name for your registration policy.

  7. (Optional) Enter a description for your registration policy.

  8. Select Oracle Data Safe features to be allowed with the PDBs.

    By default, Security and user assessment, Audit collection, Audit setting, and Data discovery are selected. Security and user assessment cannot be disabled.

  9. Under Connectivity, select an Oracle Data Safe private endpoint or Oracle Data Safe on-premises connector (if supported).

    Note

    Note: If your database only uses private endpoints, then these options are not shown. A private endpoint will automatically be selected or created for you.

    • If you select Data Safe private endpoint, choose to create a new private endpoint or select an existing one. When you select Create private endpoint, the Create private endpoint panel opens. Enter a Name, and select a Compartment, VCN, and Subnet. Optionally, you can add a tag. For more information, see Create an Oracle Data Safe Private Endpoint.

    • If you select Data Safe on-premises connector, choose to create a new on-premises connector or select an existing one. You can add multiple on-premises connectors depending on the number of active connections you need. When you select create a new one in Data Safe, you are brought to the On-premises connectors page in Oracle Data Safe where you can create a new on-premises connector. For more information, see Create an Oracle Data Safe On-Premises Connector.

  10. (Optional) Add a tag.

  11. Select Create.

    Oracle Data Safe creates a registration policy for the CDB, begins discovering and registering eligible PDBs in the background, and enables the default features on the registered target databases.

Post Registration Tasks

The following table lists tasks that you need to complete after you enable automatic registration on a CDB.

Task Number Task Link to Instructions
1 (Optional) Modify which features are granted on the registered target databases. Edit Feature Grants in a Registration Policy
Edit Feature Grants on a Registered Target Database
2 If you are using a TLS connection and an Oracle Data Safe on-premises connector, configure a TLS connection between the on-premises connector and your target database. Configure a TLS Connection Between the On-Premises Connector on Your Host Machine and Your Database
3 Make sure to allow ingress traffic to your target database from the Oracle Data Safe private endpoint or Oracle Data Safe on-premises connector. (none)

View Details for a Registration Policy

  1. Under Data Safe - Database Security, expand Target databases, and then select Registration policies.

  2. In the table, select the registration policy whose details you want to view.

  3. On the Details tab, view metadata for the policy.

    General information:

    • OCID - OCID for the registration policy. You can select Copy to copy the OCID to the clipboard.
    • Compartment - Name of the compartment where the registration policy is stored.
    • Enablement level - Pluggable database or Container database level
    • Container database - Name of the CDB. You can select View details to navigate to the target registration details for the CDB.
    • Created - When the policy was created
    • Updated - When the policy was last updated

    Connectivity details:

    • Type - Data Safe on-premises connector or Data Safe private endpoint
    • Name - Name of the on-premises connector or private endpoint. For a private endpoint, you can select View details to navigate to its configuration.

    Feature grants: Each of the following is Granted or Not granted. Security and user assessment cannot be disabled.

    • Security and user assessment (granted by default)
    • Audit collection (granted by default)
    • Audit setting (granted by default)
    • Data discovery (granted by default)
    • Data masking
    • Data subsetting
    • SQL Firewall
  4. On the Tags tab, view the configured tags for the registration policy and add more as needed.

Edit Feature Grants in a Registration Policy

When you edit the feature grants in a registration policy, you can apply the changes to all existing and future target databases or only to future target databases.

  1. Under Data Safe - Database Security, expand Target databases, and then select Registration policies.

  2. In the table, select the registration policy whose feature grants you want to edit.

  3. From the Actions menu, select Edit feature grants.

    The Edit feature grants panel opens.

  4. Select the dropdown list, and then select the check boxes for the features that you want to grant. Deselect the check boxes for the features that you want to disable.

  5. (Optional) Turn on Apply these changes to existing registered targets.

    • When On, the features are granted to existing and future registered target databases.
    • When Off, the features are granted only to future registered target databases. Existing target databases are left untouched.
  6. Select Edit feature grants.

Edit Feature Grants on a Target Database that is Associated with a Registration Policy

You can edit features applicable to the target databases that are registered via registration policy targets.

  1. Under Data Safe - Database Security, select Target databases.

  2. In the table, search for and select the PDB whose feature grants you want to edit.

    The page for the PDB opens where you can review the existing feature grants.

  3. From the Actions menu, select Edit feature grants.

    The Edit feature grants panel opens.

  4. Select the dropdown list, and then select the check boxes for the features that you want to grant. Deselect the check boxes for the features that you want to disable.

  5. Select Edit feature grants to save the changes.

Edit Connection Details in a Registration Policy

Updating the registration policy connection applies the new connection configuration to eligible existing targets in the background and to newly registered targets. Existing targets might temporarily show an updating status while Oracle Data Safe validates the new connection.

Note

Note: Once a target database is associated with a registration policy, you cannot edit the target database’s connection details. You can, however, modify the Oracle Data Safe private endpoint. If a target database is no longer part of a registration policy, then you can edit its connection details.

  1. Under Data Safe - Database Security, expand Target databases, and then select Registration policies.

  2. In the table, select the registration policy whose connection details you want to edit.

  3. From the Actions menu, select Edit connection.

  4. If available, select a different connectivity option; for example, Data Safe private endpoint or Data Safe on-premises connector. Then, select the compartment and private endpoint or on-premises connector.

  5. Select Update.

Edit the Display name for a Registration Policy

  1. Under Data Safe - Database Security, expand Target databases, and then select Registration policies.

  2. In the table, select the registration policy whose display name you want to edit.

  3. From the Actions menu, select Edit display name.

  4. Enter a new display name, and then select Update.

Edit the Description for a Registration Policy

  1. Under Data Safe - Database Security, expand Target databases, and then select Registration policies.

  2. In the table, select the registration policy whose description you want to edit.

  3. From the Actions menu, select Edit description.

  4. Modify the description, and then select Update.

Move a Registration Policy

  1. Under Data Safe - Database Security, expand Target databases, and then select Registration policies.

  2. In the table, select the registration policy that you want to move.

  3. Under the Actions menu, select Move resource.

    The Move resource panel opens.

  4. In the drop-down list, select a different compartment, and then select Move resource.

    The registration policy is immediately moved to the compartment.

Delete a Registration Policy

Deleting a registration policy stops future automatic discovery and registration of PDBs for that policy. Existing target databases remain in Oracle Data Safe and can continue to be managed independently.

  1. Under Data Safe - Database Security, expand Target databases, and then select Registration policies.

  2. In the table, select the registration policy that you want to delete.

  3. Under the Actions menu, select Delete. The Delete dialog box appears.

  4. If you are sure that you want to delete your registration policy, select Delete.

    The delete operation is asynchronous. Monitor the associated work request until the registration policy deletion is complete.

Migrate Target Databases to a New Registration Policy

A registration policy can bring existing, manually registered target databases under policy-based management. When the registration policy’s background discovery finds a PDB within its scope, Oracle Data Safe checks for an existing target database for that PDB. If a matching target database is found, Oracle Data Safe migrates the existing target database under the registration policy. The process is asynchronous and uses the PDB’s OCID to identify the target database.

The migration process is as follows:

  1. Create the registration policy and configure its features and connection settings.

  2. Wait for background discovery to process the PDB.

  3. Check the registration policy’s target database details and any related events to confirm the migration outcome.

The following changes occur after migration:

  • Oracle Data Safe associates the existing target database with the registration policy and adds system tags to identify it as policy-managed and migrated.

  • The DATASAFE$ADMIN account becomes system-managed.

  • Features from the existing target database and the registration policy are merged.

  • Updates to the username or credentials of a policy-managed target database are restricted.

  • A migration event TARGET_ACTION_MIGRATED is emitted when the target database is successfully associated with the registration policy.