Hi friends,
is there anyway to store text files like
.txt, .sql as a part of oracle.
i want to put all my oracle sql code there.
thanx a lot.
gautam
Printable View
Hi friends,
is there anyway to store text files like
.txt, .sql as a part of oracle.
i want to put all my oracle sql code there.
thanx a lot.
gautam
Yes, you can by using LOB data types in table and then using sqlloader to import data in table.
Download Oracle application developer's guide from http://otn.oracle.com.
Cheers!
You can upload the data from the text file into the Oracle Table through SQL Loader Utilityof the Oracle. In the text file you have to define the each column with some delimiter like space or comma etc..
You have to use two more file, One is as Control and Another is as Log file.
You have to define column name of the table in the control file. And log file shows the status of the loading of the data. How much data loaded and how much data not loaded due to some error.
Only through SQL Loader you can migrate the data from one application to oracle.
Naresh Kakrani
DBA - Reliance
nkakrani@yahoo.com
Excuse me, I might have understood wrong, but you want to export or import a script?
" i want to put all my oracle sql code there. "
if you want to put all your sql code into a .txt or .sql file use SQL*Plus spool command.
-----------
spool c:\expcode.txt
// script code
spool off
-----------
F.