Click here to Skip to main content
15,899,679 members
Home / Discussions / Database
   

Database

 
AnswerRe: how to get maintained values for a certain period Pin
RyanEK24-Feb-11 13:00
RyanEK24-Feb-11 13:00 
Questionsql stored proc returns integer, how do I get access to that in ASP.NET Pin
Aptiva Dave24-Feb-11 6:14
Aptiva Dave24-Feb-11 6:14 
AnswerRe: sql stored proc returns integer, how do I get access to that in ASP.NET Pin
Wendelius24-Feb-11 9:12
mentorWendelius24-Feb-11 9:12 
AnswerRe: sql stored proc returns integer, how do I get access to that in ASP.NET Pin
Mycroft Holmes24-Feb-11 12:03
professionalMycroft Holmes24-Feb-11 12:03 
QuestionGetting error can't serialize access for this transaction Pin
kjsl2k923-Feb-11 16:44
kjsl2k923-Feb-11 16:44 
AnswerRe: Getting error can't serialize access for this transaction Pin
Wendelius23-Feb-11 18:51
mentorWendelius23-Feb-11 18:51 
GeneralRe: Getting error can't serialize access for this transaction Pin
kjsl2k923-Feb-11 20:04
kjsl2k923-Feb-11 20:04 
GeneralRe: Getting error can't serialize access for this transaction Pin
Wendelius24-Feb-11 10:05
mentorWendelius24-Feb-11 10:05 
As this is a concurrency problem it's kinda hard pointing out the problem without seeing the whole scenario. However to demonstrate the problem, do the following:

1. Create a test table and insert data into it
SQL
CREATE TABLE Test (
   a NUMBER PRIMARY KEY NOT NULL
);
INSERT INTO Test VALUES (1);
COMMIT;

2. Now in this session start a transaction and delete the rows. Leave the transaction open
SQL
-- SESSION 1
ALTER SESSION SET ISOLATION_LEVEL=SERIALIZABLE;
DELETE FROM Test;

3. Start another session and select data from the test table in serializable mode
SQL
-- SESSION 2
ALTER SESSION SET ISOLATION_LEVEL=SERIALIZABLE;
SELECT a FROM Test FOR UPDATE OF a;
4. The session 2 hangs and waits for the result from session 1. Now go back to session 1 and commit the transaction:
SQL
-- SESSION 1
COMMIT;

The result in session 2 is:
SELECT a FROM Test FOR UPDATE OF a
              *
ERROR at line 1:
ORA-08177: can't serialize access for this transaction

Hopefully this clarifies the problem.

Best regards,

mika
The need to optimize rises from a bad design.My articles[^]

QuestionFrom Excel to C# Pin
NaturePhoenix22-Feb-11 23:07
NaturePhoenix22-Feb-11 23:07 
AnswerRe: From Excel to C# Pin
R. Giskard Reventlov22-Feb-11 23:26
R. Giskard Reventlov22-Feb-11 23:26 
GeneralRe: From Excel to C# Pin
NaturePhoenix22-Feb-11 23:48
NaturePhoenix22-Feb-11 23:48 
GeneralRe: From Excel to C# Pin
R. Giskard Reventlov23-Feb-11 0:06
R. Giskard Reventlov23-Feb-11 0:06 
Questionhow to display the months based on date Pin
vinu.111122-Feb-11 20:00
vinu.111122-Feb-11 20:00 
AnswerRe: how to display the months based on date Pin
Blue_Boy22-Feb-11 22:21
Blue_Boy22-Feb-11 22:21 
QuestionMultipage Report??? [modified] Pin
scorp_scorp22-Feb-11 19:02
scorp_scorp22-Feb-11 19:02 
Questionplease modify the Store Procedure Pin
vinu.111121-Feb-11 23:36
vinu.111121-Feb-11 23:36 
AnswerRe: please modify the Store Procedure Pin
Mycroft Holmes22-Feb-11 0:02
professionalMycroft Holmes22-Feb-11 0:02 
QuestionADO To MS Access Database. Pin
Mike Certini21-Feb-11 19:08
Mike Certini21-Feb-11 19:08 
AnswerRe: ADO To MS Access Database. Pin
Wendelius21-Feb-11 19:28
mentorWendelius21-Feb-11 19:28 
GeneralRe: ADO To MS Access Database. Pin
Mike Certini21-Feb-11 19:47
Mike Certini21-Feb-11 19:47 
GeneralRe: ADO To MS Access Database. Pin
Wendelius23-Feb-11 19:09
mentorWendelius23-Feb-11 19:09 
QuestionRetrieve N Record. Pin
Nanda_MR20-Feb-11 18:26
Nanda_MR20-Feb-11 18:26 
AnswerRe: Retrieve N Record. Pin
Mycroft Holmes20-Feb-11 18:59
professionalMycroft Holmes20-Feb-11 18:59 
GeneralRe: Retrieve N Record. Pin
Nanda_MR20-Feb-11 19:26
Nanda_MR20-Feb-11 19:26 
GeneralRe: Retrieve N Record. Pin
Mycroft Holmes20-Feb-11 20:20
professionalMycroft Holmes20-Feb-11 20:20 

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.