I have got 2 questions.
- Is there any way to load data to a table in Oracle from a
.txt
file other than using SQL loader? - How to unload data from the table to a text file?
Someone please help me.
Thanks in advance.
I have got 2 questions.
.txt
file other than using SQL loader?Someone please help me.
Thanks in advance.
Use google with these key words you will find lot of information.
Oracle has a free tool SQL Developer (http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html) you can use to do these.
There are a bunch of options. It depends on the context - your Oracle version, data format, is this on the client or the server, etc. Here's a quick list, there are probably many other methods:
File Input:
File Output:
For unloading the data you can just spool the file. In SQLPLUS create a spool file and then run a select query that reads from a table, format the data and return a string. The data will be written to the file.
Other solutions have already been mentioned. The tools including TOAD have features to create files.