Oracle Course archive, day 12th

Source: Internet
Author: User

The deadlock is due to the fact that two objects request another resource with one resource,

Another resource happens to be holding the two objects, causing the two objects to be unable to complete the operation, and the resources held cannot be freed.

Blocking is a queued wait phenomenon caused by insufficient resources.

UNSO: Undo

Commit: Submit

Contents: Content

Management: Management

Session: A connection is a conversation
Represents a scope.
That is, some modifications can be limited to this session, not in other sessions

AM: 11:59

PM: 12:00

Global support

Unset: Not set

Profile: Contour

Deadlock:
Session1:
Sql> select * from T1;

X
----------
1
2
sql> Update T1 set x=11 where x=1;
Session2:
sql> Update T1 set x=22 where x=2;
Session1:
sql> Update T1 set x=222 where x=2; blocking
Session2:
sql> Update T1 set x=111 where x=1; deadlock
ERROR at line 1:
Ora-00060:deadlock detected while waiting for resource
$ vi/u01/app/oracle/diag/rdbms/orcl/orcl/trace/alert_orcl.log

Locks and foreign keys
Select ... for update


Global support
$ VI. bash_profile
#export Nls_lang=american_america. Al32utf8
#export nls_date_format= ' Yyyy-mm-dd hh24:mi:ss '
$ unset Nls_lang
$ unset Nls_date_format
Sql> select Sysdate from dual;

Oracle Course archive, day 12th

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.