In the previous sections, we worked by reading a single line from the text file. Let us consider the following situations:
And so on. How do we solve such problems? Even though we will not be able to address every possible error, there exist some pre-defined exceptions to handle some of the scenarios. Following are the pre-defined exceptions most frequently used when working with UTL_FILE package: INVALID_PATH For a complete list of exceptions, I suggest you go through the Oracle documentation for the respective version you are using. If you are new to exception handling, I suggest you read my contributions at http://www.devshed.com/c/a/Oracle/Database-Interaction-with-PLSQL- My upcoming article will address further issues like "working with a larger number of lines", "better exception handling", "writing to files" and so on. I may also introduce you to some of the professional ways to deal the same issues. Don't forget to keep an eye on this website for the next article (or simply sign up for a newsletter). Any comments, suggestions, feedback, bugs, errors, enhancements are highly appreciated at jag_chat@yahoo.com
blog comments powered by Disqus |