Comparing “LKM SQL to SQL” and “LKM SQL to Oracle”
Hello, I decided to write this post after a question a friend sent me on LinkedIn.
In short, the question was that he can load data using either module, but which one would perform better when loading very large tables.
First of all; if your target database is Oracle, you should definitely use LKM SQL to Oracle, and let me now list the reasons.
- When dropping the Work Table left over from a previous run, LKM Sql to Oracle uses Purge, whereas LKM SQL to SQL does not. (Without Purge, the table is moved to the Recycle Bin and continues to take up space for a while longer)
- While the LKM S2O module can use table hints such as /*+NOLOGGING PARALLEL */, there is no such option in LKM S2S.

- By default, the LKM S2O module uses the /*+ APPEND NOLOGGING*/ hint in the INSERT into the Work Table, whereas these hints are not used in the LKM S2S module. As a result, the load will be much faster with the S2O module.
- LKM S2O adds an index to the Work Table it creates and gathers its statistics so that queries against it run much faster, whereas LKM S2S does not do this.
We can wrap up this topic by stating once more that if our database is Oracle and we have to choose between these two modules, we should definitely use the LKM Sql to Oracle module. Good luck.
