Oracle sql result to DBF file export -


I would like to export the data from the oracle table to * .dbf file (such as excel) via PL / SQL scripts. Is there any code available?

There are several ways to do this. The easiest way to use such as SDL developer or TOAD is the easiest way, which offers this functionality.

If you want to call it by PL / SQL, then there are no built-in Oracle functions in it. However, it is relatively easy to build something using UTL_FILE, which can write different records than price. It can be picked up in Excel

Note that the default separator - , (comma is "C" in CSV) - Creates problems with comma in your exported data Will do So you will need to open a right-click with it instead of using the Data Import Wizard ...

Incidentally, it may be used to use the .dbf suffix For a bad idea. The approximate meaning of the Oracle file system is a database file - that is, the share of the database infrastructure. It's just a conference, but there is no point in misinterpreting people inadvertently. In the perforated option, .csv , .dmp or .exp .

Edit

If you are interested in exporting data only to transfer to another Oracle database, then you should use the Data Pump utility needed. It comes with API so that it can be used with PL / SQL. Alternatively, we unload the data via the announced external table with the datapump driver.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -