With the following procedure, we can create a csv format file in a directory on the server that we specify with the virtual directory, with or without specifying the data in a table. We can use the UTL_FILE package for this operation. It is possible to export the data in tables in the database in csv format depending on a specific condition.