I have a table in an Oracle database and I need to copy a filtered set of records from that table into a SQL Server database table on a monthly basis.
The problem I'm having is that the WHERE condition that I use for filtering the Oracle table can change on a month-to-month basis based on data found in a table in the SQL Server database. For example, let's say I keep a table of vendors in a SQL Server table. This list of vendors changes each month. I want to download a list of products from a master products table in my Oracle database that pertain to the list of vendors.
How can I dynamically generate a SQL statement to run a data pump task against the Oracle database? Or is there a different way I can accomplish this?
Thanks.
The problem I'm having is that the WHERE condition that I use for filtering the Oracle table can change on a month-to-month basis based on data found in a table in the SQL Server database. For example, let's say I keep a table of vendors in a SQL Server table. This list of vendors changes each month. I want to download a list of products from a master products table in my Oracle database that pertain to the list of vendors.
How can I dynamically generate a SQL statement to run a data pump task against the Oracle database? Or is there a different way I can accomplish this?
Thanks.