Question

I would like to load a txt file into a CLOB field. The catch is that the file resides on the local disk (not on the oracle server). Is it possible to do this with pl/sql, running windows, perhaps from from TOAD or SQLPlus?

If so, could someone share the pl/sql?

I have seen several posts on loading a CLOB File from the server disk, Example1 and Example2. But can't seem to find anything on loading the file from local disk.

Thank you!

ps, It would be great if the routine supported multi-byte text (as in the examples).

Was it helpful?

Solution

No, you can't use a PL/SQL script to load a local file into table. But there is an alternative: loading local file(s) into CLOB field with local Oracle SQL*Loader. Install Oracle Client on your machine if you didn't do this before and use the article to create your own SQL*Loader config and script to running it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top