Если вы используете Oracle SQL devloper:
Экспорт вывода запроса в Excel в Oracle SQL Developer без буферизации:
Step 1: Run your query. To start, you'll need to run your query in SQL Developer. ...
Step 2: Open the Export Wizard. ...
Step 3: Select the Excel format and the location to export your file. ...
Step 4: Export the query output to Excel.
Например: