Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7812523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:32:09+00:00 2026-06-02T04:32:09+00:00

Is there a difference between pg and table lock in Oracle Does select *

  • 0

Is there a difference between pg and table lock in Oracle

Does

select * from emp for update;

results in Table lock?

And

select * from emp where deptno=10 for update;

result in page lock?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T04:32:11+00:00Added an answer on June 2, 2026 at 4:32 am

    There is no such thing as a page lock in Oracle. Oracle has row-level locks and table-level locks.

    Both of these statements create row-level locks on all the rows that the query returns. The first creates a row-level lock on every row that was in the EMP table as of the SCN where the query was executed. The second creates a row-level lock on every row that was in the EMP table with a DEPTNO of 10 as of the SCN where the query was executed. Both queries will also create a shared lock on the table that prevents other sessions from doing DDL on the table but that is rarely what people are talking about when they are talking about table locks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there a performance difference between $a = mysql_query(SELECT * FROM table WHERE id
is there any performance difference between: SELECT * FROM table WHERE id IN (1,2,3)
Is there a difference between: SELECT DATE_ADD('2005-01-01', INTERVAL 3 MONTH); and SELECT '2005-01-01' +
Is there any difference between these two LINQ statements: var query = from a
What is the difference between: <asp:GridView CssClass=someclass and <table class=someclass> And how does it
What's the difference between table-valued functions and views? Is there something you can do
Quick question, I was curious if there is any difference between a database table
Both these joins will give me the same results: SELECT * FROM table JOIN
Is there any difference between statements ALTER TABLE xxx DEFAULT CHARACTER SET utf8 and
Is there a difference between these two create table snippets? One includes CONSTRAINT keyword,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.