简体   繁体   中英

SSIS Update Oracle DB

Hello and thank you in advanced for reading my question.

I am working in SSIS and trying to take a view in Oracle SQL developer and update any matching rows in a table. By searching around I found out that SSIS has some problems with updating Oracle Databases and you can do it via OLE DB Command. SO What I did was added a OLE DB Source to bring in a View I have created in Oracle SQL Developer. This source has the same exact columns as the destination table. I then connected it to OLE DB Command. I selected the appropriate Connection Manager and I had to add the external columns in the Inputs and Outputs tab to match what the destination table has. This lets me select all of the column mappings. However the issues I am having appear to be with the SQLCommand that I have typed up in the custom properties section of the Component Properties Tab. Can someone with experience in this area please help me with getting this set up? Below is my SQLCommand (It currently gives me an error of "ORA-01008: not all variables bound". when I try to execute):

UPDATE DB.PERMDB
SET 
DB.PERMDB.NET_TIME = :NET_TIME,
DB.PERMDB.PROC_ZONENAME = :PROC_ZONENAME,
DB.PERMDB.NET_TIME2 = :NET_TIME2,
DB.PERMDB.PROC_ZONENAME = :PROC_ZONENAME2,
DB.PERMDB.LAST_DISCOVERY = :LAST_DISCOVERY1,
DB.PERMDB.PULSEDATE = :PULSEDATE1
WHERE
DB.PERMDB.COMBREL = :COMBREL1

我最终使用了脚本任务来运行UPDATE查询,它的工作原理很吸引人。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM