I have a application that uses bulk insert to put data into Oracle database table. Now I need to change it, so it upserts it, but have a hard time finding best solution to do this. All the sites suggest using MERGE to insert/update rows, as it's most effective and simplest solution, but all the examples base on data that is already in the table.
What would be the best solution for this change? Is using some kind of temporary or staging table necessary, or is there a way to skip this?