Click here to Skip to main content
16,005,222 members
Home / Discussions / Database
   

Database

 
AnswerRe: 'Best practices' for managing data base connections [modified] Pin
Luc Pattyn7-Oct-09 8:37
sitebuilderLuc Pattyn7-Oct-09 8:37 
GeneralRe: 'Best practices' for managing data base connections Pin
Gary Wheeler7-Oct-09 8:44
Gary Wheeler7-Oct-09 8:44 
GeneralRe: 'Best practices' for managing data base connections Pin
Luc Pattyn7-Oct-09 8:49
sitebuilderLuc Pattyn7-Oct-09 8:49 
AnswerRe: 'Best practices' for managing data base connections Pin
εїзεїзεїз7-Oct-09 10:57
εїзεїзεїз7-Oct-09 10:57 
AnswerRe: 'Best practices' for managing data base connections Pin
David Skelly7-Oct-09 22:52
David Skelly7-Oct-09 22:52 
GeneralRe: 'Best practices' for managing data base connections Pin
Gary Wheeler8-Oct-09 0:33
Gary Wheeler8-Oct-09 0:33 
AnswerRe: 'Best practices' for managing data base connections Pin
PIEBALDconsult12-Oct-09 6:44
mvePIEBALDconsult12-Oct-09 6:44 
QuestionProblem with LOB Locators. Pin
Code-o-mat7-Oct-09 6:37
Code-o-mat7-Oct-09 6:37 
Hello people!

I am not sure this is the right place for this question or not but i try my luck, sorry if it not. So, the problem, we are writing a VC++ program in which we have to make some BLOB updates. Now, this program is multi-threaded, there are 2 threads which perform DB queries (thorough Oracle XE client) sometimes simulteniously but they both use the same connection, one of these threads performs BLOB updates, the other one never works with BLOBs, it only calls a stored procedure which does some updates on a table (and yes, this table can be updated by both of these threads at the same time, but they never work on the same columns simulteniously). This seems to work well most of the time but (there's always a but, isn't there) time to time we get errors like "The update cannot be performed because the database has changed" or "ORA-22990: LOB locators cannot span transactions Error source: 'OraOLEDB'". Our guess is that the problem is that the same table/row is being updated by the 2 threads, but how to overcome this? The problem is that one of these threads, which doesn't do BLOB updates, has to do its work at specific times, so saying, "while a BLOB update is in progress, don't let anyone else touch the DB" is not a solution, since the BLOB update can take a lot of time and not allowing the other thread to perform its queries will lead to problems.
I have to admit that i am not the "DB guy", but i visit CodeProject frequently and since it has a great forum for DB-related stuff, i thought i ask, maybe it has a pretty obvious and simple solution we don't know about and if so i can then forward it to the DB guys and we can fix the problem.
So, anyone can share her/his wisdom and help? Thanks in advance for any answers.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <

QuestionFIle Format Problems Pin
Vimalsoft(Pty) Ltd7-Oct-09 4:54
professionalVimalsoft(Pty) Ltd7-Oct-09 4:54 
AnswerRe: FIle Format Problems Pin
dan!sh 7-Oct-09 5:15
professional dan!sh 7-Oct-09 5:15 
GeneralRe: FIle Format Problems Pin
Vimalsoft(Pty) Ltd7-Oct-09 5:23
professionalVimalsoft(Pty) Ltd7-Oct-09 5:23 
GeneralRe: FIle Format Problems Pin
dan!sh 7-Oct-09 6:03
professional dan!sh 7-Oct-09 6:03 
GeneralRe: FIle Format Problems Pin
Vimalsoft(Pty) Ltd7-Oct-09 6:19
professionalVimalsoft(Pty) Ltd7-Oct-09 6:19 
GeneralRe: FIle Format Problems Pin
Ashfield8-Oct-09 1:29
Ashfield8-Oct-09 1:29 
GeneralRe: FIle Format Problems Pin
Vimalsoft(Pty) Ltd8-Oct-09 1:31
professionalVimalsoft(Pty) Ltd8-Oct-09 1:31 
GeneralRe: FIle Format Problems Pin
Ashfield8-Oct-09 3:39
Ashfield8-Oct-09 3:39 
GeneralRe: FIle Format Problems Pin
Vimalsoft(Pty) Ltd8-Oct-09 4:00
professionalVimalsoft(Pty) Ltd8-Oct-09 4:00 
GeneralRe: FIle Format Problems Pin
Ashfield8-Oct-09 8:38
Ashfield8-Oct-09 8:38 
GeneralRe: FIle Format Problems Pin
Vimalsoft(Pty) Ltd8-Oct-09 20:20
professionalVimalsoft(Pty) Ltd8-Oct-09 20:20 
QuestionSQL Query Problem Pin
Syed Shahid Hussain7-Oct-09 4:29
Syed Shahid Hussain7-Oct-09 4:29 
AnswerRe: SQL Query Problem Pin
dan!sh 7-Oct-09 4:53
professional dan!sh 7-Oct-09 4:53 
GeneralRe: SQL Query Problem Pin
Syed Shahid Hussain7-Oct-09 5:30
Syed Shahid Hussain7-Oct-09 5:30 
GeneralRe: SQL Query Problem Pin
dan!sh 7-Oct-09 5:44
professional dan!sh 7-Oct-09 5:44 
GeneralRe: SQL Query Problem Pin
Syed Shahid Hussain7-Oct-09 5:50
Syed Shahid Hussain7-Oct-09 5:50 
GeneralRe: SQL Query Problem Pin
dan!sh 7-Oct-09 5:55
professional dan!sh 7-Oct-09 5:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.