DBMS_CLOUD_IMPORT Package
DBMS_CLOUD_IMPORT facilitates the import of data from Oracle databases as well as from non-Oracle databases by using the Oracle Heterogeneous Gateway into Autonomous AI Database. During the import process, source data types are converted to Oracle-compatible data types. As a result, any limitations and restrictions of the Oracle Heterogeneous Gateway also apply to operations performed through this package.
- Summary of DBMS_CLOUD_IMPORT Subprograms
This table summarizes the subprograms includedDBMS_CLOUD_IMPORTin the package.
Parent topic: Autonomous AI Database Supplied Package Reference
Summary of DBMS_CLOUD_IMPORT Subprograms
This table summarizes the subprograms included DBMS_CLOUD_IMPORT in the package.
| Subprogram | Description |
|---|---|
|
Creates an import task for importing data from a specified source into Oracle, with optional filtering by schema or table and configurable scheduling options. |
|
|
Temporarily pauses a running import task so it can be resumed later. |
|
|
Restarts a previously suspended import task and continues processing from the point it was paused. |
|
|
Deletes an import task and removes its associated task definition and metadata. |
- CREATE_IMPORT_TASK Procedure
TheDBMS_CLOUD_IMPORT.CREATE_IMPORT_TASKprocedure creates and configures an import job to import data from a specified source system into an Autonomous AI Database. - SUSPEND_IMPORT_TASK Procedure
TheDBMS_CLOUD_IMPORT.SUSPEND_IMPORT_TASKprocedure temporarily pauses a running import task, allowing it to be resumed later. - RESUME_IMPORT_TASK Procedure
TheDBMS_CLOUD_IMPORT.RESUME_IMPORT_TASKprocedure resumes an import task that was previously suspended. It restarts task execution for the specifiedtask_nameand continues the import operation from the point it was paused. - DROP_IMPORT_TASK Procedure
TheDBMS_CLOUD_IMPORT.DROP_IMPORT_TASKprocedure deletes an import task and removes its associated task definition and metadata.
Parent topic: DBMS_CLOUD_IMPORT Package
CREATE_IMPORT_TASK Procedure
The DBMS_CLOUD_IMPORT.CREATE_IMPORT_TASK procedure creates and configures an import job to import data from a specified source system into an Autonomous AI Database.
You must be logged in as the ADMIN user to run this procedure.
Syntax
DBMS_CLOUD_IMPORT.CREATE_IMPORT_TASK(
task_name IN VARCHAR2,
hostname IN VARCHAR2,
port IN VARCHAR2,
service_name IN VARCHAR2,
credential_name IN VARCHAR2,
directory_name IN VARCHAR2,
ssl_server_cert_dn IN VARCHAR2 DEFAULT NULL,
gateway_params IN VARCHAR2 DEFAULT NULL,
schema_list IN CLOB DEFAULT NULL,
table_list IN CLOB DEFAULT NULL
);
Parameters
| Parameter | Description |
|---|---|
|
|
Uniquely identifies the import task. This is the name assigned to the migration task. It is used to identify the task and its associated scheduler job. |
|
|
The hostname for the target database. Specifying |
|
|
Specifies the port for the connections to the target database. When you specify a connection with Oracle-managed heterogeneous
connectivity using the See Oracle-Managed Heterogeneous Connectivity Database Types and Ports for more information. |
|
|
The
|
|
|
The name of a stored credential created with |
|
|
The directory for the Oracle-managed heterogeneous
connectivity is preconfigured with a wallet that contains most of the common trusted root and intermediate SSL certificates. The |
|
|
The DN value found in the server certificate. Oracle-managed heterogeneous
connectivity is preconfigured with a wallet that contains most of the common trusted root and intermediate SSL certificates. The |
|
|
Specifies connection and source-type settings used for heterogeneous migrations (that is, when the source is a non-Oracle database). It is passed as a JSON object and includes values such as the source database type, for example: These parameters tell the migration job which gateway or driver behavior to use when connecting to and importing data from the source system. This parameter is optional and defaults to |
|
|
List of schemas to include in the import. This parameter is optional. If you do not specify a value, the default is |
|
|
Specifies the tables to migrate as a JSON array of Use Do not specify overlapping objects in This parameter is optional and defaults to |
Example
BEGIN
DBMS_CLOUD_IMPORT.CREATE_IMPORT_TASK(
task_name => 'orcl_import_job',
hostname => '<remote_db_hostname>',
port => '<remote_db_port>',
service_name => '<remote_db_service_name>',
ssl_server_cert_dn => '<cn=remote_db_cn_name>',
directory_name => '<walletdb>',
credential_name => 'db1_cred',
schema_list => '["admin"]'
);
END;
/Parent topic: Summary of DBMS_CLOUD_IMPORT Subprograms
SUSPEND_IMPORT_TASK Procedure
The DBMS_CLOUD_IMPORT.SUSPEND_IMPORT_TASK procedure temporarily pauses a running import task, allowing it to be resumed later.
Syntax
DBMS_CLOUD_IMPORT.SUSPEND_IMPORT_TASK(
task_name IN VARCHAR2 );
Parameters
| Parameter | Description |
|---|---|
|
|
Uniquely identifies the import task. |
Example
BEGIN
DBMS_CLOUD_IMPORT.SUSPEND_IMPORT_TASK(
task_name => 'SALES_IMPORT_JOB1'
);
END;
/Parent topic: Summary of DBMS_CLOUD_IMPORT Subprograms
RESUME_IMPORT_TASK Procedure
The DBMS_CLOUD_IMPORT.RESUME_IMPORT_TASK procedure resumes an import task that was previously suspended. It restarts task execution for the specified task_name and continues the import operation from the point it was paused.
You must be logged in as the ADMIN user to run this procedure.
Syntax
DBMS_CLOUD_IMPORT.RESUME_IMPORT_TASK(
task_name IN VARCHAR2 );
Parameters
| Parameter | Description |
|---|---|
|
|
Uniquely identifies the import task. |
Example
BEGIN
DBMS_CLOUD_IMPORT.RESUME_IMPORT_TASK(
task_name => 'SALES_IMPORT_JOB1'
);
END;
/Parent topic: Summary of DBMS_CLOUD_IMPORT Subprograms
DROP_IMPORT_TASK Procedure
The DBMS_CLOUD_IMPORT.DROP_IMPORT_TASK procedure deletes an import task and removes its associated task definition and metadata.
You must be logged in as the ADMIN user to run this procedure.
Syntax
DBMS_CLOUD_IMPORT.DROP_IMPORT_TASK(
task_name IN VARCHAR2 );Parameters
| Parameter | Description |
|---|---|
|
|
Uniquely identifies the import task. |
Example
BEGIN
DBMS_CLOUD_IMPORT.DROP_IMPORT_TASK(
task_name => 'SALES_IMPORT_JOB1'
);
END;
/Parent topic: Summary of DBMS_CLOUD_IMPORT Subprograms