I have a column in my oracle table with CLOB datatype.
How do I store .txt file in this column and how can I retrieve the same file?
Below is the table definition
fileID Number
logFile CLOB
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Loading a file into a CLOB in PL/SQL is pretty easy– you just need to use the DBMS_LOB.LoadCLOBFromFile procedure
Writing the file from the CLOB to the file system again is a bit more involved. I would use something like Tom Kyte’s clob_to_file procedure