Create an Amazon RDS for Oracle data source to enable Dataphin to read business data from or write data to Amazon RDS for Oracle.
Permissions
Only users with the Create Data Source permission in a custom global role, or users with the super administrator, data source administrator, domain architect, or project administrator role can create data sources.
Procedure
-
In the top navigation bar of the Dataphin homepage, choose Management Hub > Datasource Management.
-
On the Datasource page, click +Create Data Source.
-
On the Create Data Source page, select Amazon RDS for Oracle in the Relational Database section.
If you have recently used Amazon RDS for Oracle, you can also find it in the Recently Used section, or enter keywords in the search box to locate it quickly.
-
On the Create Amazon RDS For Oracle Data Source page, configure the parameters for connecting to the data source.
-
Configure the basic information of the data source.
Parameter
Description
Datasource Name
Enter a name for the data source. The name must meet the following requirements:
-
It can contain only Chinese characters, letters, digits, underscores (_), and hyphens (-).
-
It cannot exceed 64 characters in length.
Datasource Code
After you configure the data source code, you can directly access Dataphin data source tables in Flink_SQL tasks or by using the Dataphin JDBC client in the format of
data source code.table nameordata source code.schema.table namefor quick consumption. If you need to automatically switch data sources based on the task execution environment, you can access them using the variable format${data source code}.tableor${data source code}.schema.table. For more information, see Development method for Dataphin data source tables.ImportantThe data source code cannot be modified after it is configured.
You can preview data on the object details page in the asset directory and asset checklist only after the data source code is configured.
In Flink SQL, only MySQL, Hologres, MaxCompute, Oracle, StarRocks, Hive, SelectDB, and GaussDB data warehouse service (DWS) data sources are currently supported.
Version
Select the Oracle version: Oracle19c or Oracle21c.
Data Source Description
A brief description of the data source, up to 128 characters.
Data Source Configuration
Select the data source configuration:
-
If your business data source distinguishes between production and development data sources, select Production + Development Data Source.
-
If your business data source does not distinguish between production and development data sources, select Production Data Source.
Tag
You can categorize and tag data sources based on tags. For information about how to create tags, see Manage data source tags.
-
-
Configure the parameters for connecting the data source to Dataphin.
If you selected Production + Development data source, configure the connection information for both environments. If you selected Production data source, configure the connection information for the production environment only.
NoteWe recommend configuring different data sources for the production and development environments to isolate them and reduce mutual impact. However, Dataphin also supports using the same data source with identical parameter values for both environments.
You can select either JDBC URL or Host for Configuration Method. The default is JDBC URL.
JDBC URL configuration method
Parameter
Description
JDBC URL
The format of the connection address is
jdbc:oracle:thin:@host:port:sidorjdbc:oracle:thin:@//host:port/servicename.Schema
If the data source is only used for real-time database migration, you do not need to specify a schema. If the data source is used for offline integration or real-time computing, you need to specify a schema (case-sensitive).
Username, Password
The username and password for authentication. Ensure that the user has the required data permissions for tasks to run properly.
Host configuration method
-
Host configuration method
Parameter
Description
Server Address
Enter the IP address and port number of the server. You can add only one set.
Service Type
You can select Service Name or SID (System Identifier).
dbname
Enter the database name.
-
Parameter configuration
Parameter
Description
Parameter
-
Parameter name: You can select an existing parameter name or enter a custom parameter name.
Custom parameter names can only contain letters, digits, periods (.), underscores (_), and hyphens (-).
-
Parameter value: When a parameter name is selected, the parameter value is required. It can only contain letters, digits, periods (.), underscores (_), and hyphens (-), and cannot exceed 256 characters in length.
NoteYou can click +Add Parameter to add multiple parameters, and click the
icon to delete unnecessary parameters. You can add up to 30 parameters.Schema (optional)
If the data source is only used for real-time database migration, you do not need to specify a schema. If the data source is used for offline integration or real-time computing, you need to specify a schema (case-sensitive).
Username, Password
The username and password for logging on to the Amazon RDS for Oracle instance.
-
NoteAfter creating a data source with the Host configuration method, if you switch to the JDBC URL method, the system concatenates the server IP address and port number into a JDBC URL automatically.
-
-
Configure advanced settings for connecting the data source to Dataphin.
Connection Retries: If the database connection times out, the system automatically retries until the specified limit is reached. If all retries fail, the connection fails. The default is 1 retry, configurable from 0 to 10.
The retry count applies by default to offline integration tasks and global quality (requires the Asset Quality module to be enabled). You can also configure the retry count at the task level in offline integration tasks.
NoteRules for duplicate parameter values:
-
If a parameter exists in both the JDBC URL, Advanced Settings parameters, and Host configuration method's parameter configuration, the value in the JDBC URL takes precedence.
-
If a parameter exists in both the JDBC URL and Advanced Settings parameters, the value in the JDBC URL takes precedence.
-
If a parameter exists in both the Advanced Settings parameters and Host configuration method's parameter configuration, the value in the Advanced Settings parameters takes precedence.
-
-
-
Select a Default Resource Group, which is used to run tasks related to the current data source, including database SQL, offline database migration, and data preview.
-
Click Test Connection or directly click OK to save and complete the creation of the Amazon RDS for Oracle data source.
Clicking Test Connection tests whether the data source can connect to Dataphin. Clicking OK directly triggers an automatic connection test for all selected clusters. The data source is created even if all cluster connections fail.
Test Connection tests the connection for the Default Cluster or Registered Scheduling Clusters that have been registered in Dataphin and are in normal use. The Default Cluster is selected by default and cannot be deselected. If there are no resource groups under a Registered Scheduling Cluster, connection testing is not supported. You need to create a resource group first before testing the connection.
The selected clusters are only used to test network connectivity with the current data source and are not used for running related tasks later.
The test connection usually takes less than 2 minutes. If it times out, you can click the
icon to view the specific reason and retry.Regardless of whether the test result is Connection Failed, Connection Successful, or Succeeded With Warning, the system will record the generation time of the final result.
NoteOnly the test results for the Default Cluster include three connection statuses: Succeeded With Warning, Connection Successful, and Connection Failed. The test results for Registered Scheduling Clusters in Dataphin only include two connection statuses: Connection Successful and Connection Failed.
When the test result is Connection Failed, you can click the
icon to view the specific failure reason.When the test result is Succeeded With Warning, it means that the application cluster connection is successful but the scheduling cluster connection failed. The current data source cannot be used for data development and integration. You can click the
icon to view the log information.