Migrating the Source Package Only
Upload the source package to be migrated or specify the source package path on the remote server. You can scan the source code for SQL statements or non-SM algorithms.
Prerequisites
- You have logged in to the Kunpeng DevKit.
- The source component package to be migrated is available and the runtime environment is Java 1.8 or later.
Procedure
- Click System Migration in the navigation tree on the left and then click
to go to the New Project tab page.Figure 1 Basic Settings
- Set Migration Project Name. A project name is automatically generated by default, which can be changed if needed.
The name must meet the following requirements:
- Can contain only letters, digits, and underscores (_).
- 1 to 64 characters.
- Select Source package migration only for Migration Scenario.
- Set Obtain Source Package to either of the following options:
- Upload source packages
Figure 2 Upload source packages
Click Upload and drag the source packages to the upload area. Alternatively, you can click Add File to select source packages and click Upload.
- Obtain from node server
Figure 3 Obtain from node server
- Set Migration Project Node. You can search for nodes by their IP addresses or names. If a node is not included on the list, you can click Add Node to add it for the migration project. For details, see Managing Agent.
- Configure Paths to Scan. Scan source files in specified paths on the remote node. You can configure the node and file paths as needed.
Click Add Path and enter the path to the source package to be scanned. To scan an SQL source package, you are advised to configure a data definition language (DDL).
- Upload source packages
- Complete the advanced settings for a more smooth migration.Figure 4 Advanced Settings
Table 1 Advanced settings Parameter
Description
Migration Source Database
Select the source database to improve the accuracy of scanning source code for SQL statements.
Migration Target Database
Select the target database to improve the accuracy of scanning source code for SQL statements.
DDL
You are advised to configure a DDL for each of the SQL source packages to be scanned. A DDL file records complete information about database tables and fields. DDL statements can improve the accuracy of SQL statement parsing. For details about how to obtain a DDL file, see Exporting a DDL File.
NOTE:This parameter is displayed when Obtain Source Package is set to Upload source package.
Middleware Type
- N/A
- BES migration strategy: The uploaded source package contains the built-in Tomcat configuration files and you need to migrate to the built-in BES files.
- TongTech migration strategy: The uploaded source package contains the built-in Tomcat configuration files and you need to migrate to the built-in TongTech files.
- Click Start Migration.