Register an On-Premises Oracle Database
You can use the On-premises Oracle databases wizard to register an on-premises Oracle database in Oracle Data Safe.
Note:
Be sure to complete the preregistration tasks before using the wizard and the post-registration tasks afterward.Preregistration Tasks
The following table lists the preregistration tasks for an on-premises Oracle database.
| Task Number | Task | Link to Instructions |
|---|---|---|
| 1 | In Oracle Cloud Infrastructure Identity and Access Management (IAM), obtain permissions to register your database. | Permissions to Register an On-Premises Oracle Database with Oracle Data Safe |
| 2 | Create an Oracle Data Safe service account on your target database and grant it Oracle Data Safe roles. Create the service account as the SYS
user.
|
Create an Oracle Data Safe Service Account on Your Database and Grant Roles to the Oracle Data Safe Service Account on Your Target Database |
| 3 | (Optional) If you plan to connect to the database via an Oracle Data Safe private endpoint and want to configure a TLS connection, create a wallet or certificates. |
Run the On-Premises Oracle Databases Wizard
The following sections detail the workflow in the On-premises Oracle databases registration wizard.
Step 1: Target information
- On the Overview page in Oracle Data Safe, find On-premises Oracle databases, and
then select Start wizard.
The wizard opens on step 1, Target information.
- For Data Safe target display name, enter a target display name that is meaningful to you. Oracle Data Safe uses this name in its reports. All characters are accepted. The maximum number of characters is 255.
- For Compartment, select the compartment where you want to store the target database.
- (Optional) For Description, enter a description that is meaningful to you.
- For Database service name, enter the database service name of the PDB or CDB.
- If you did not already grant roles to
the database user during the preregistration tasks, select
Download privilege script and save
the
datasafe_privileges.sqlscript to your computer. The script includes instructions on how to use it to grant privileges to the Oracle Data Safe service account on your target database. Also refer to the preregistration task Grant Roles to the Oracle Data Safe Service on a Non-Autonomous AI Database for additional details. - For Database user name and Database password, enter the name and password of the user you created in the preregistration tasks. If the user name is mixed case, enclose it in double-quotes (" "). Oracle Data Safe uses this account to connect to the target database.
- (Optional) To add a tag to organize and track this resource in your tenancy, select Add tag. Select a namespace, select a key, and enter a key value.
- Select Next.
Step 2: Connectivity option
In this step, choose to connect to the target database through either an Oracle Data Safe on-premises connector or an Oracle Data Safe private endpoint. If you have FastConnect or VPN Connect set up between your on-premises network and a virtual cloud network (VCN) in Oracle Cloud Infrastructure, you can register your database with Oracle Data Safe by using an Oracle Data Safe private endpoint.
- For Choose a connectivity option, select On-premises connector or Private endpoint.
- For TCP/TLS, select
TCP or
TLS as the network protocol.
If you select TLS and you are using a
private endpoint, you need to perform the following
additional steps:
- Select One way TLS or Mutual TLS.
- If you select One way TLS, upload the TrustStore of your database in PEM, PKCS#12 wallet, or JKS wallet format. You can also enter the wallet password if required. This file is required whether client authentication is enabled or disabled on your target database.
- If you select Mutual TLS, upload the TrustStore of your database in the format of PEM file, PKCS#12 wallet, or JKS wallet and enter the wallet password. This file is required whether client authentication is enabled or disabled on your target database. When client authentication is enabled on your target database, upload the KeyStore of your database in the format of PEM file, PKCS#12 wallet, or JKS wallet. This file is not required when client authentication is disabled.
- For Database IP address, enter the IP address of the database. If there are multiple IP addresses, use commas with no spaces to separate them.
- For Database port number, enter the port number of your database listener.
- At Do you want to use an existing on-premises
connector (or private endpoint)?, toggle
Yes or
No.
- If Yes: Select the compartment where the on-premises connector (or private endpoint) resides, and then select the on-premises connector (or private endpoint). Note that a private endpoint needs to be in a VCN that can access your on-premises database.
- If No: For a private endpoint, enter a display name, select a compartment to store the private endpoint, select a virtual network compartment and virtual cloud network, select a subnet compartment and subnet, and optionally enter a private IP address. For an on-premises connector, select a compartment to store the on-premises connector, enter a name for the on-premises connector, and enter a description.
- Select Next.
Step 3: Add peer database
If you're registering an Active Data Guard associated database, then you can add peer databases during this step.
It is also possible to register peer databases after you register the primary database. See Manage Peer Databases Associated with a Registered Active Data Guard Primary Database.
- If you're not registering an Active Data Guard associated database, select Next to skip this step.
- For each peer database that you want to add, provide the following
information as needed:
- Peer display name
- Database service name
- Database IP address
- Database port number
- TCP or TLS
- If you are configuring a TLS connection, select a TLS type (One way TLS or Mutual TLS). For Mutual TLS, upload a truststore wallet, upload a keystore wallet, and enter the wallet password. For One way TLS, upload a truststore wallet and enter the wallet password.
- Select Add row.
- Repeat steps 2 and 3 to add additional peer databases.
- Select Next.
Step 4: Add security rule
This step applies if you are using an Oracle Data Safe private endpoint. To allow communication between an on-premises Oracle database and an Oracle Data Safe private endpoint, you must create an egress security rule in Oracle Cloud Infrastructure (OCI). You can allow the wizard to create the rule for you, create it manually in OCI (see Security Rule for On-Premises Oracle Databases), or skip this step if you already have a security rule you want to use. The target database remains inactive in Oracle Data Safe until the required security rule is configured.
See Also:
For more information about security lists and network security groups, see Access and Security in the Oracle Cloud Infrastructure documentation.- To bypass security rule configuration, select No.
- To allow the wizard to configure the security
rule, select Yes. Select Security list or
Network security group, and then select the name of the security
list or NSG. You can change the compartment if needed. The wizard displays the rule that
will be added.
Note:
If you add peer databases during registration, the same egress rule is created for the database and each peer database. - Select Next to continue in the wizard.
Step 5: Review and submit
In this step, the wizard displays the configuration you entered in the previous steps.
- Carefully review the information on this page.
- If all of the settings are correct, select the check box I acknowledge that charges may apply for this on-premises target database, and then select Register.
- If you need to make changes, select Previous to return to any of the earlier steps, or select Close to cancel.
Step 6: Registration progress
Important:
Do not select the Close button in the wizard, sign out of OCI, or close the browser tab until the wizard shows that all of the tasks listed are resolved. If you close prematurely, then the information for all of the tasks that have not yet been completed is lost and the target database is not registered.If there is no further work to do, the registration completes, and the wizard presents the Target database information page. Here you can again review the registration details and complete any post-registration tasks as required.
Post Registration Tasks
The following table lists tasks that you need to complete after you run the On-premises Oracle databases wizard.
| Task Number | Task | Link to Instructions |
|---|---|---|
| 1 |
(If you are using 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 |
| 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 |
(Optional) Change which features are allowed for the Oracle Data Safe service account on your target database by granting/revoking
roles from the account. You need to be the |
Grant Roles to the Oracle Data Safe Service Account on Your Target Database |
| 4 |
(Optional) Grant users access to Oracle Data Safe features with the target database by configuring policies in Oracle Cloud Infrastructure Identity and Access Management. |
Create IAM Policies for Oracle Data Safe Users |
| 5 |
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) |
| 6 |
(If you are using an on-premises connector) Oracle
recommendation: Ensure that only the on-premises client can
connect to your on-premises Oracle database by specifying in
|
TCP.INVITED_NODES (Oracle AI Database Net Services Reference guide) |