ADAM provides two database collection methods: online collection and collector-based collection. Choose a method depending on whether your source database is accessible from the cloud.
Collection methods
-
Online collection: Establish network connectivity to the source database and add the ADAM server to the source database's allowlist. This ensures that the ADAM server can directly collect information by using the online collection method. For more information, see Online collection.
-
With a public IP address: The source database has a public IP address and is accessible over the internet.
-
Without a public IP address: Use Database Gateway (DG) to establish a connection. Database Gateway (DG) is a service that enables remote access to databases in private networks. With DG, you can access and manage databases in your on-premises data centers or on other cloud platforms without exposing them to the public internet. For more information, see What is Database Gateway.
NoteCurrently, ADAM supports DG instances in the China (Beijing), China (Zhangjiakou), China (Shenzhen), China (Hangzhou), and China (Shanghai) regions.
-
-
Collector-based collection: If the source database cannot be exposed to the public internet or is inaccessible from the cloud, you can use the ADAM collector to collect its data. For more information, see Collector-based collection.
Online collection
-
Log on to Data Management Service (DMS) 5.0.
-
In the top navigation bar, choose .
-
On the Database Collection tab, click Online Database Collection.
-
Click Create Collection Task.
-
Log on to the source database to configure a collection account and grant the required permissions.
-
Oracle 10g, 11g, or 12c (non-CDB mode, create a LOCAL USER)
-
Create a collection user named
eoa_userand set the password toeoaPASSW0RD.create user eoa_user identified by eoaPASSW0RD default tablespace users; -
Grant query permissions.
grant connect,select_catalog_role to eoa_user;
-
-
Oracle 12c (CDB mode, connect to the CDB and create a COMMON USER)
create user c##eoa_user identified by "eoaPASSW0RD" default tablespace users; grant connect,select_catalog_role to c##eoa_user container=all; alter user c##eoa_user set container_data=all container=current;
-
-
After configuring the source database account, click Next. In the Create Collection Task panel, configure the following parameters.
Parameter
Description
Collection task name
A custom name for the collection task.
Source Database Type
Only ORACLE is supported.
Source database record
Select the database record that corresponds to your source database type. For information about how to create a database record, see Manage database records.
Specified schema list
Specify the schemas to include. Separate multiple schema names with a comma (
,).Excluded schema list
Specify the schemas to exclude. Separate multiple schema names with a comma (
,).Collect SQL
Specifies whether to collect SQL statements.
-
After you complete the configuration, click Test Connection. If the test succeeds, click Start Collection.
-
After the collection task is complete, select the task and click Next: Create Profile to generate a database profile.
Collector-based collection
-
Log on to Data Management Service (DMS) 5.0.
-
In the top navigation bar, choose .
-
On the Database Collection tab, click Download Collector.
-
Download the ADAM collector package for your device's operating system, and then extract the package.
NoteWe recommend that you do not run the collector on the same server as the source database. The device where the collector is installed must meet the following minimum requirements:
-
Network: Connectivity to the source database.
-
CPU: 2 cores.
-
Memory: 8 GB.
-
Disk: 100 GB of free space.
-
-
Log on to the source database to configure a collection account and grant the required permissions.
Use an account with SYSDBA privileges to create a temporary account and grant the following permissions.
NoteIf you already have an account with the required permissions, you can use it and skip this step.
-
Oracle 10g, 11g, or 12c (non-CDB mode, create a LOCAL USER)
-
Create a collection user named
eoa_userand set the password toeoaPASSW0RD.create user eoa_user identified by eoaPASSW0RD default tablespace users; -
Grant query permissions.
grant connect,select_catalog_role to eoa_user;
-
-
Oracle 12c (CDB mode, connect to the CDB and create a COMMON USER)
create user c##eoa_user identified by "eoaPASSW0RD" default tablespace users; grant connect,select_catalog_role to c##eoa_user container=all; alter user c##eoa_user set container_data=all container=current;
-
-
Collect database structure data to generate feasibility and compatibility reports.
-
Run the collection command.
NoteThe
.batextension is for Windows environments, and the.shextension is for Linux environments.-
Oracle 10g
collect_10g[.sh|.bat] -h -u -p -d <service_name> -
Oracle 11g
-
Oracle 11g R1
collect_11gR1[.sh|.bat] -h -u -p -d <service_name> -
Oracle 11g R2
collect_11gR2[.sh|.bat] -h -u -p -d <service_name>
-
-
Oracle 12c, 18c, and 19c
NoteTo collect data from a specific PDB in Oracle 12c, refer to the data collection instructions for Oracle 11g and use the
collect_12cscript to perform the collection. collect_12c[.sh|.bat] -h <host> -u <username> -p <password> -P <port> -d <service_name> -s <sid>
The command parameters are defined as follows: -h specifies the IP address of the database. -u specifies the collection username, for example, eoa_user. -p specifies the password for the collection user, for example, eoaPASSW0RD. -P specifies the port of the database, such as 1521. -d specifies the service name of the database. For Oracle 12c, this is the service name of a specific PDB. -s specifies the instance name (SID) of the database.
-
-
Export the collection results.
After the collection is complete, the collector generates a data package and displays the path to the package. The following log is an example:
[***] ****************************************************************** [***] * Collect Successfully! [***] * [***] * Complete the file packaging, the package result path is: [***] * ~rainmeter/out/data.zip ******************************************************************
-
-
Optional: After the migration is complete, remove the temporary account.
Use an account with SYSDBA privileges to connect to the database through a terminal and run the appropriate SQL statement.
-
Oracle 10g, 11g, 12c, 18c, or 19c (non-CDB mode)
drop user eoa_user cascade; -
Oracle 12c, 18c, or 19c (CDB mode)
drop user c##eoa_user cascade;
-
-
For faster performance, we recommend collecting database data during off-peak hours.
-
The collector has a low CPU footprint. However, if the collection involves
getddloperations on database objects, the CPU load may increase slightly at the beginning of the collection. The extent of this increase depends on the specifications and current load of the source database. -
The collector has a negligible memory footprint on the source database.