Unix Technical Forum

lock table

This is a discussion on lock table within the Oracle Database forums, part of the Database Server Software category; --> Hi, I am confused why I can't lock a particular table. The table is not in my schema, but ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2008, 04:45 AM
lark047@gmail.com
 
Posts: n/a
Default lock table

Hi,

I am confused why I can't lock a particular table. The table is not in
my schema, but I do have some object privileges on it (insert, delete).
Everything I've seen says that's all I need:

One of 3
- LOCK ANY TABLE
- owner of table
- object privileges on table

Help?

Andrew

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-25-2008, 04:45 AM
bdbafh@gmail.com
 
Posts: n/a
Default Re: lock table


lark047@gmail.com wrote:
> Hi,
>
> I am confused why I can't lock a particular table. The table is not in
> my schema, but I do have some object privileges on it (insert, delete).
> Everything I've seen says that's all I need:
>
> One of 3
> - LOCK ANY TABLE
> - owner of table
> - object privileges on table
>
> Help?
>
> Andrew


what is the statement that you are attempting to execute? (include it)
what is the error message? (include it)
what version of oracle? (include it).

-bdbafh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-25-2008, 04:45 AM
Mark D Powell
 
Posts: n/a
Default Re: lock table


bdbafh@gmail.com wrote:
> lark047@gmail.com wrote:
> > Hi,
> >
> > I am confused why I can't lock a particular table. The table is not in
> > my schema, but I do have some object privileges on it (insert, delete).
> > Everything I've seen says that's all I need:
> >
> > One of 3
> > - LOCK ANY TABLE
> > - owner of table
> > - object privileges on table
> >
> > Help?
> >
> > Andrew

>
> what is the statement that you are attempting to execute? (include it)
> what is the error message? (include it)
> what version of oracle? (include it).
>
> -bdbafh


Why are you trying to lock a table to begin with? The lock table
commands should only be used in certain processing situations. Every
DML statement will acquire the row level locks and object enqueues that
it needs.

The information bdbafh requested should be in most every post.

HTH -- Mark D Powell --

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-25-2008, 04:46 AM
Andrew Clark
 
Posts: n/a
Default Re: lock table

Actually, it's my error. I do not seem to have the necessary
privileges. From user_tab_privs I can't see any privileges on that
table. I was told the DBA did the grants for me, but I guess not!

Thanks,
Andrew


bdbafh@gmail.com wrote:
> lark047@gmail.com wrote:
> > Hi,
> >
> > I am confused why I can't lock a particular table. The table is not in
> > my schema, but I do have some object privileges on it (insert, delete).
> > Everything I've seen says that's all I need:
> >
> > One of 3
> > - LOCK ANY TABLE
> > - owner of table
> > - object privileges on table
> >
> > Help?
> >
> > Andrew

>
> what is the statement that you are attempting to execute? (include it)
> what is the error message? (include it)
> what version of oracle? (include it).
>
> -bdbafh


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-25-2008, 04:46 AM
Mladen Gogala
 
Posts: n/a
Default Re: lock table

Mark D Powell wrote:
> The information bdbafh requested should be in most every post.
>
> HTH -- Mark D Powell --
>


Together with SSN, valid credit card number and expiry date. He is,
after all, Bastard DBA From Hell.

--
Mladen Gogala
http://www.mgogala.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:18 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com