Oracle 10g Database Locking Session Issue
I have a problem with locking and not timing out in one of my Oracle databases. This session locks occur on certain transactions that come from Oracle Forms users. For instance, when some user requests to make a change on a locked object the transaction waits for the locked object to be released, but it waits indefinetely until killed by alter session
.
I've tried the same in my testing database and it does kill the locked session after 60s, so I thought it has to be a configuration issue.
I've checked the v$parameters
DISTRIBUTED_LOCK_TIMEOUT
and it is set to 60s in both databases.
Does anyone know where is the "locking session/transaction timeout" set?
Any help is greatly appreciated.
deadlock oracle-10g timeout
migrated from superuser.com Jan 22 at 15:39
This question came from our site for computer enthusiasts and power users.
add a comment |
I have a problem with locking and not timing out in one of my Oracle databases. This session locks occur on certain transactions that come from Oracle Forms users. For instance, when some user requests to make a change on a locked object the transaction waits for the locked object to be released, but it waits indefinetely until killed by alter session
.
I've tried the same in my testing database and it does kill the locked session after 60s, so I thought it has to be a configuration issue.
I've checked the v$parameters
DISTRIBUTED_LOCK_TIMEOUT
and it is set to 60s in both databases.
Does anyone know where is the "locking session/transaction timeout" set?
Any help is greatly appreciated.
deadlock oracle-10g timeout
migrated from superuser.com Jan 22 at 15:39
This question came from our site for computer enthusiasts and power users.
have you identified the code that is locking? Is it a table or row lock? Table locks might indicate that the coding can be improved
– kevinsky
Jan 22 at 15:43
Hi, it is a row lock. The Oracle Forms data blocks have a "locking mode" property which can be set to different locking options. One of them (the one I'm using) locks the row whenever it detects that someone is changing its value on the form (I need it to work this way).
– ArnauVJ
Jan 22 at 15:56
add a comment |
I have a problem with locking and not timing out in one of my Oracle databases. This session locks occur on certain transactions that come from Oracle Forms users. For instance, when some user requests to make a change on a locked object the transaction waits for the locked object to be released, but it waits indefinetely until killed by alter session
.
I've tried the same in my testing database and it does kill the locked session after 60s, so I thought it has to be a configuration issue.
I've checked the v$parameters
DISTRIBUTED_LOCK_TIMEOUT
and it is set to 60s in both databases.
Does anyone know where is the "locking session/transaction timeout" set?
Any help is greatly appreciated.
deadlock oracle-10g timeout
I have a problem with locking and not timing out in one of my Oracle databases. This session locks occur on certain transactions that come from Oracle Forms users. For instance, when some user requests to make a change on a locked object the transaction waits for the locked object to be released, but it waits indefinetely until killed by alter session
.
I've tried the same in my testing database and it does kill the locked session after 60s, so I thought it has to be a configuration issue.
I've checked the v$parameters
DISTRIBUTED_LOCK_TIMEOUT
and it is set to 60s in both databases.
Does anyone know where is the "locking session/transaction timeout" set?
Any help is greatly appreciated.
deadlock oracle-10g timeout
deadlock oracle-10g timeout
edited Jan 23 at 16:32
ArnauVJ
asked Jan 22 at 15:17
ArnauVJArnauVJ
61
61
migrated from superuser.com Jan 22 at 15:39
This question came from our site for computer enthusiasts and power users.
migrated from superuser.com Jan 22 at 15:39
This question came from our site for computer enthusiasts and power users.
have you identified the code that is locking? Is it a table or row lock? Table locks might indicate that the coding can be improved
– kevinsky
Jan 22 at 15:43
Hi, it is a row lock. The Oracle Forms data blocks have a "locking mode" property which can be set to different locking options. One of them (the one I'm using) locks the row whenever it detects that someone is changing its value on the form (I need it to work this way).
– ArnauVJ
Jan 22 at 15:56
add a comment |
have you identified the code that is locking? Is it a table or row lock? Table locks might indicate that the coding can be improved
– kevinsky
Jan 22 at 15:43
Hi, it is a row lock. The Oracle Forms data blocks have a "locking mode" property which can be set to different locking options. One of them (the one I'm using) locks the row whenever it detects that someone is changing its value on the form (I need it to work this way).
– ArnauVJ
Jan 22 at 15:56
have you identified the code that is locking? Is it a table or row lock? Table locks might indicate that the coding can be improved
– kevinsky
Jan 22 at 15:43
have you identified the code that is locking? Is it a table or row lock? Table locks might indicate that the coding can be improved
– kevinsky
Jan 22 at 15:43
Hi, it is a row lock. The Oracle Forms data blocks have a "locking mode" property which can be set to different locking options. One of them (the one I'm using) locks the row whenever it detects that someone is changing its value on the form (I need it to work this way).
– ArnauVJ
Jan 22 at 15:56
Hi, it is a row lock. The Oracle Forms data blocks have a "locking mode" property which can be set to different locking options. One of them (the one I'm using) locks the row whenever it detects that someone is changing its value on the form (I need it to work this way).
– ArnauVJ
Jan 22 at 15:56
add a comment |
1 Answer
1
active
oldest
votes
You can change distributed_lock_timeout at the instance level alter system set distributed_lock_timeout=<sec> scope=spfile;
But what you are describing is a session modifiable parameter in 11g called ddl_lock_timeout
and I’m not aware of anything that replicates that in 10g. The fact that it runs as expected in one environment and not the other means you might want to pull a list of parameter settings between the two and see what’s different.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f227773%2foracle-10g-database-locking-session-issue%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can change distributed_lock_timeout at the instance level alter system set distributed_lock_timeout=<sec> scope=spfile;
But what you are describing is a session modifiable parameter in 11g called ddl_lock_timeout
and I’m not aware of anything that replicates that in 10g. The fact that it runs as expected in one environment and not the other means you might want to pull a list of parameter settings between the two and see what’s different.
add a comment |
You can change distributed_lock_timeout at the instance level alter system set distributed_lock_timeout=<sec> scope=spfile;
But what you are describing is a session modifiable parameter in 11g called ddl_lock_timeout
and I’m not aware of anything that replicates that in 10g. The fact that it runs as expected in one environment and not the other means you might want to pull a list of parameter settings between the two and see what’s different.
add a comment |
You can change distributed_lock_timeout at the instance level alter system set distributed_lock_timeout=<sec> scope=spfile;
But what you are describing is a session modifiable parameter in 11g called ddl_lock_timeout
and I’m not aware of anything that replicates that in 10g. The fact that it runs as expected in one environment and not the other means you might want to pull a list of parameter settings between the two and see what’s different.
You can change distributed_lock_timeout at the instance level alter system set distributed_lock_timeout=<sec> scope=spfile;
But what you are describing is a session modifiable parameter in 11g called ddl_lock_timeout
and I’m not aware of anything that replicates that in 10g. The fact that it runs as expected in one environment and not the other means you might want to pull a list of parameter settings between the two and see what’s different.
answered Jan 23 at 18:20
gbourasgbouras
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Database Administrators Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f227773%2foracle-10g-database-locking-session-issue%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
have you identified the code that is locking? Is it a table or row lock? Table locks might indicate that the coding can be improved
– kevinsky
Jan 22 at 15:43
Hi, it is a row lock. The Oracle Forms data blocks have a "locking mode" property which can be set to different locking options. One of them (the one I'm using) locks the row whenever it detects that someone is changing its value on the form (I need it to work this way).
– ArnauVJ
Jan 22 at 15:56