Question: how to export data from oracle to flat file?
Answer: Create a Directory Object in which you will write CSV file., Create Stored Procedure with UTL_FILE Package., Now run the Procedure and check if Data has been Exported.