How to find out the value for Timeout in Oracle

Hi,

I want know where the parameter is stored in the oracle database for  - the maximum time for which the oracle server waits for obtaining a lock (incase of dead locks etc).

Can I modify this parameter?
(I think the param is TIMEOUT_ON_RESOURCE)

Thanks in advace.
Sarma
bssarnmaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tbcoxCommented:
For SQL Statements there isn't one.  You either request the lock with NOWAIT, in which case you either succeed or get an error indicating you couldn't get the lock immediately, or else you wait forever.

Local deadlocks do not time out, they are proactively discovered and one requestor is rolled back.

The only timeouts are for distributed queries, and for certain PL/SQL operations, i.e. CREATE OR REPLACE PACKAGE BODY.  (And for SQL*Net connections.)

 -Tom
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bssarnmaAuthor Commented:
Hi,

Thanks.

How do I see where the time out value is specified?? (for distributed queries / PL/sql operations).

Can I modify this value??

bye
Sarma
0
tbcoxCommented:
The parameter

   DISTRIBUTED_LOCK_TIMEOUT

controls distributed timeouts -- any transaction that needs to lock remote resources will give up if no lock is obtained after this many seconds.  

You set it in your INIT.ORA file.  Inspect its current setting in the table

   V$PARAMETER

PL/SQL uses a named exception, TIMEOUT_ON_RESOURCE, which maps to ORA-00051, that is as far as I know not configurable.

0
bssarnmaAuthor Commented:
Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.