OCI and Threaded applications [message #589132] |
Tue, 02 July 2013 09:57 |
clancypc
Messages: 36 Registered: December 2006
|
Member |
|
|
Does anyone out there have any experience of writing a threaded OCI application?
I am writing an application to load data into a database. The general idea is:
Have a parent process that sets up the environment handle, error handle, server handle etc.. Then it will go to a directory and monitor it for any arriving files to be loaded. When it detects a file it creates a child thread to process the file.
The child thread will then create the statement handle and bind handles, process all the data in the file and load it into the database.
My initial thoughts were to create the threads using POSIX threads, but I have noticed in the OCI Programmers Guide that there are OCI thread functions. Does anyone know if I should be using these instead of the POSIX functions or in addition to the POSIX functions?
Thanks
|
|
|