Lukasz Indeka
Member²
Is it possible to run the set of queries and have automatically an Excel file generated from all result sets for couple databases?
My use case:
Let's say I have a dummy SQL file with the following content:
I need to run the above on over a dozen of DBs and collect the results to Excel files. I do it currently DB by DB, switching connection, running the set of queries and then right mouse clicking on the dataset → Copy all to Excel... My real life queries are time-consuming, so I switch back and forth between a couple instances of PL/SQL Developer connected to separate DB's. How to do it better?
My use case:
Let's say I have a dummy SQL file with the following content:
SQL:
-- Excel = c:\Exports\%yyyy%_%mm%_%dd%\%dbname%_%yyyy%_%mm%_%dd%_-_%hh%_%mi%.xlsx
-- Tab = X
-- Records = all
select *
from dual;
-- Tab = Y
-- Records = all
select sysdate
from dual;
I need to run the above on over a dozen of DBs and collect the results to Excel files. I do it currently DB by DB, switching connection, running the set of queries and then right mouse clicking on the dataset → Copy all to Excel... My real life queries are time-consuming, so I switch back and forth between a couple instances of PL/SQL Developer connected to separate DB's. How to do it better?
Last edited: