Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thread and dirpath #294

Closed
LittleSeagull opened this issue Dec 8, 2021 · 6 comments
Closed

thread and dirpath #294

LittleSeagull opened this issue Dec 8, 2021 · 6 comments

Comments

@LittleSeagull
Copy link

Hello Vincent,

I am using libocilib on windows platform with Oracle 19c and I have a problem when I am using thread,pool and dirpath:

There sometimes errors are reported at OCI_DirPathGetMaxRows() function, OCI_PoolGetConnection() function or OCI_DirPathSetBufferSize() function ,and sometimes "OCI-21500" errors are reported.

That I want to know whether multithreading of dirpath's functions is supported.

If it is supported,can you provide a code demo example for reference?
If it is not supported,is there other ways to multithread writing data that can write mode exceeding 10W per second?

Thanks

@vrogier
Copy link
Owner

vrogier commented Dec 8, 2021

Hi,

Can you provide sample code reproducing the issue?
Direct loading operations that load data in the same table/partitions are not meant to be performed from concurrent threads.

Regards,

Vincent

@vrogier
Copy link
Owner

vrogier commented Dec 8, 2021

That might be ways to parallelize to some extend the process but for a given direct path handle, loading data into the database shall be used from a single thread at a time.

@LittleSeagull
Copy link
Author

LittleSeagull commented Dec 8, 2021 via email

@LittleSeagull
Copy link
Author

LittleSeagull commented Dec 8, 2021 via email

@LittleSeagull
Copy link
Author

Hi Vincent,
Is there some progress on using multithreading and ocilib's direct path to write to the oracle database?
My project time is dead line and I really need your help. If you have a good solution, please reply to me.

Thanks

@vrogier
Copy link
Owner

vrogier commented Jan 16, 2025

Closing the issue as reported error is an internal Oracle error.

@vrogier vrogier closed this as completed Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants