one. Create database connection
To connect to a database using kettle, you first need to create a DB connection.
Note: The kettle environment used in the demonstration is pentaho data integration (kettle) 7.1
It should be noted that when creating a DB connection, you need to copy the JDBC drivers corresponding to DM and ORACLE to the lib directory in the kettle installation directory. The Dmjdbc driver file can be found in the drivers/jdbc directory of the DM installation directory.
two. create conversion
In the input dialog box under the core object, drag the table input and table output to the right panel, and hold down shift to connect the two.
Configure table input and table output separately. It should be noted that the fields of the input and output tables must be consistent.
When setting the table input, you can click the "Get SQL Query Statement" button to select the table to be queried through the list. Here we have selected the dept table under the scott user.
Create a DEPTNEW table with the same structure on the DM side to receive data
Press F9 to start performing the conversion
You can see the output below
Use the DM management tool to check the migration results