A Visual Basic application opens a text file (client machine), reads line to line and loads a table.
I want to know if it´s possible to create a stored procedure (or another object) to execute this function and How can I do this?
Oracle 8i (release 8.1.7)
Yes, you may call sql*loader as you may run any program. As for reading file from procedure, you may use UTL_FILE package, but in this case your file should be "visible" from Oracle server, not from client.
Great, I have a great answer for you.
It is possible to run loader from VB. But why involve one more tool. Use UTL_FILE package. This package helps you read and write OS files. Call this from a procedure while passing file to this procedure. IF any probs write me.
UTL_FILE is suitable for reading SMALL TEXT FILES only and its executed on server. You can not even open a file without knowing its name, even if it's the only file in directory.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.