This topic describes how to migrate data from a user-created Oracle database to a PolarDB for Oracle cluster by using Data Transmission Service (DTS).
Prerequisites
Billing
You are billed when incremental data migration is in progress, including the period when incremental data migration is paused. For more information, see Pricing.
Precautions
During full data migration, DTS uses read and write resources of the source and destination databases. This may increase the loads of the database servers. Before you migrate data, evaluate the impact of data migration on the performance of the source and destination databases. We recommend that you migrate data during off-peak hours.
Before you begin
Log on to the source Oracle database, create an account for data collection, and grant permissions to the account.
Database | Schema migration | Full data migration | Incremental data migration |
---|---|---|---|
Self-managed Oracle database | The permissions of the schema owner | The permissions of the schema owner | Database administrator (DBA) |
PolarDB cluster | The permissions of the schema owner | The permissions of the schema owner | The permissions of the schema owner |
- Self-managed Oracle database: CREATE USER and GRANT
- PolarDB cluster: Create an account
create session; connect; resource; execute on sys.dbms_logmnr; select on v_$logmnr_contents; select on v_$log; select on v_$logfile; select on v_$archived_log; select on v_$logmnr_logs; select on v_$parameter; select on v_$database; select on all_objects; select on all_tab_cols; select on dba_registry; select any table; select any transaction; select on v$active_instances; select on v$instance; select on sys.USER$; select on SYS.OBJ$; select on SYS.COL$; select on SYS.IND$; select on SYS.ICOL$; select on SYS.CDEF$; select on SYS.CCOL$; select on SYS.TABPART$; select on SYS.TABSUBPART$; select on SYS.TABCOMPART$; select on gv_$listener_network;
#Grant permissions on the pluggable database (PDB) and container database (CDB). #Grant permissions on the PDB: create session; connect; resource; select on all_objects; select on all_tab_cols; select on dba_registry; select any table; select any transaction; select on v_$log; select on v_$logfile; select on v_$archived_log; select on v_$parameter; select on v_$database; select on v_$active_instances; select on v_$instance; select on V_$PDBS; select on sys.USER$; select on SYS.OBJ$; select on SYS.COL$; select on SYS.IND$; select on SYS.ICOL$; select on SYS.CDEF$; select on SYS.CCOL$; select on SYS.TABPART$; select on SYS.TABSUBPART$; select on SYS.TABCOMPART$; #Grant permissions on the CDB: create session; LOGMINING; select on v_$logmnr_contents;
#The following sample statements show you how to grant permissions to a database account named dtstest. create user dtstest IDENTIFIED BY rdsdt_dtsacct; grant create session to dtstest; grant connect to dtstest; grant resource to dtstest; grant execute on sys.dbms_logmnr to dtstest; grant select on v_$logmnr_contents to dtstest; grant select on v_$log to dtstest; grant select on v_$logfile to dtstest; grant select on v_$archived_log to dtstest; grant select on v_$logmnr_logs to dtstest; grant select on v_$parameter to dtstest; grant select on v_$database to dtstest; grant select on all_objects to dtstest; grant select on all_tab_cols to dtstest; grant select on dba_registry to dtstest; grant select any table to dtstest; grant select any transaction to dtstest; grant select on v$active_instances to dtstest; grant select on v$instance to dtstest; grant select on sys.USER$ to dtstest; grant select on SYS.OBJ$ to dtstest; grant select on SYS.COL$ to dtstest; grant select on SYS.IND$ to dtstest; grant select on SYS.ICOL$ to dtstest; grant select on SYS.CDEF$ to dtstest; grant select on SYS.CCOL$ to dtstest; grant select on SYS.TABPART$ to dtstest; grant select on SYS.TABSUBPART$ to dtstest; grant select on SYS.TABCOMPART$ to dtstest; grant select on gv_$listener_network to dtstest;
#The following sample statements show you how to grant permissions on the PDB and CDB to a database account named dtstest. #Grant permissions on the PDB: create user dtstest IDENTIFIED BY rdsdt_dtsacct; grant create session to dtstest; grant connect to dtstest; grant resource to dtstest; grant select on all_objects to dtstest; grant select on all_tab_cols to dtstest; grant select on dba_registry to dtstest; grant select any table to dtstest; grant select any transaction to dtstest; -- v$log privileges grant select on v_$log to dtstest; -- v$logfile privileges grant select on v_$logfile to dtstest; -- v$archived_log privileges grant select on v_$archived_log to dtstest; -- v$parameter privileges grant select on v_$parameter to dtstest; -- v$database privileges grant select on v_$database to dtstest; -- v$active_instances privileges grant select on v_$active_instances to dtstest; -- v$instance privileges grant select on v_$instance to dtstest; -- V$PDBS privileges grant select on V_$PDBS to dtstest; grant select on sys.USER$ to dtstest; grant select on SYS.OBJ$ to dtstest; grant select on SYS.COL$ to dtstest; grant select on SYS.IND$ to dtstest; grant select on SYS.ICOL$ to dtstest; grant select on SYS.CDEF$ to dtstest; grant select on SYS.CCOL$ to dtstest; grant select on SYS.TABPART$ to dtstest; grant select on SYS.TABSUBPART$ to dtstest; grant select on SYS.TABCOMPART$ to dtstest; #Grant permissions on the CDB: create user dtstest IDENTIFIED BY rdsdt_dtsacct; grant create session to dtstest; grant LOGMINING TO dtstest; -- v$logmnr_contents privileges grant select on v_$logmnr_contents to dtstest;