GeekInterview.com
Series: Subject:
Question: 6 of 18

If we have a table which is accessed by multiple users and two or more user's are simultaniously trying to modify the table. Then what happens and how can we manage such situations?

Asked by: techmind | Member Since Nov-2006 | Asked on: Nov 27th, 2006

View all questions by techmind

Showing Answers 1 - 4 of 4 Answers
praveen

Answered On : Dec 7th, 2006

if one user is going to modify the table he will be aquired lock on that particular row of that table and it will be released to the other user whose is trying ot modify the same table after the modifications are commited by the first user. or else, we can handle the situations using no wait option

  
Login to rate this answer.
techmind

Answered On : Dec 7th, 2006

Could you please elaborate how can we do it with no wait option.

  
Login to rate this answer.
Gajanan

Answered On : Jul 13th, 2007

There are two ways of changing the rows in particular table.
One to delete the row
Second to modify/Change the data of row in table.
In every case we opt for exclusive locks

So when one user has exclusive lock then another user can’t share that information unless first user releases that locks.

Another type of lock is shared lock, which is used when two or more users share the same information for reading purpose (No change in the database).


Yes  1 User has rated as useful.
  
Login to rate this answer.
dj_dj_dj

Answered On : Mar 18th, 2010

View all answers by dj_dj_dj

Simultaneously modification of same table by two or more users cause Oracle server to go into hang state, to avoid such a state first user who used dml statement should issue commit or rollback comand.

Possible solutions also consist of that the Oracle DBA could create procedure which states ''''' for update of column_name nowait ''' command.

Regards
Dharmendra Jaiswal

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.