在 Talend 中读取访问数据库提取
Read Access DB Extract in Talend
我需要阅读 Talend 中的 Access DB Extract。 Talend 'tAccessInput' 中有一个组件用于读取 Access DB 表。但它需要连接到 Access 数据库。
但是,根据我的要求,我得到了 Access 数据库的摘录,比如 MasterTables.accdb,它不是实时数据库连接。我需要使用 Talend 提取此 Access DB Extract 中存在的表。
此外,我知道有一个选项可以通过打开数据提取并导出所需的表来从 Access DB 数据提取中导出,但我不想手动执行此操作。
那么,有没有 component/steps 可以帮助我使用 Talend 实现我的要求。
As guided by @iMezouar(Thanks for the inputs), i was able to use
tAccessInput component of Talend and achieve my requirement. Below are
the steps i followed:
Step 1- Configure tAccessInput component. Set the Database field with
the path of the .accdb extract. Leave the username and password blank
if the extract is not password protected
Step 2- In the Table Name field provide the name of the table that you
want to read from your access extract
Step 3- Go to edit schema section and add the column details of the
TableName provided in the above step
Step 4- Now go to Query Type and select Guess Query. Once you have
clicked this button, it will populate the Query section with the
relevant query
Step 5- Next connect the tAccessInput to tMap if you intend to do any
processing else connect it directly to an output component. In my case
its tFileOutputDelimited and your job is ready to run to extract data
from the access dump
Step 6- If you get a Warning issue in the Run Console i.e 'Error in
the metadata of the table: table's row count in the metadata is XXX
but XXY records have been found and loaded by UCanAccess. All will
work fine, but it's better to repair your database', just open the
access dump, go to Database Tools tab and select 'Compact and Repair
Database'. Then save the file. This will remove the warning issue also.
我需要阅读 Talend 中的 Access DB Extract。 Talend 'tAccessInput' 中有一个组件用于读取 Access DB 表。但它需要连接到 Access 数据库。
但是,根据我的要求,我得到了 Access 数据库的摘录,比如 MasterTables.accdb,它不是实时数据库连接。我需要使用 Talend 提取此 Access DB Extract 中存在的表。
此外,我知道有一个选项可以通过打开数据提取并导出所需的表来从 Access DB 数据提取中导出,但我不想手动执行此操作。
那么,有没有 component/steps 可以帮助我使用 Talend 实现我的要求。
As guided by @iMezouar(Thanks for the inputs), i was able to use tAccessInput component of Talend and achieve my requirement. Below are the steps i followed:
Step 1- Configure tAccessInput component. Set the Database field with the path of the .accdb extract. Leave the username and password blank if the extract is not password protected
Step 2- In the Table Name field provide the name of the table that you want to read from your access extract
Step 3- Go to edit schema section and add the column details of the TableName provided in the above step
Step 4- Now go to Query Type and select Guess Query. Once you have clicked this button, it will populate the Query section with the relevant query
Step 5- Next connect the tAccessInput to tMap if you intend to do any processing else connect it directly to an output component. In my case its tFileOutputDelimited and your job is ready to run to extract data from the access dump
Step 6- If you get a Warning issue in the Run Console i.e 'Error in the metadata of the table: table's row count in the metadata is XXX but XXY records have been found and loaded by UCanAccess. All will work fine, but it's better to repair your database', just open the access dump, go to Database Tools tab and select 'Compact and Repair Database'. Then save the file. This will remove the warning issue also.