Answer Mr. Cotton Candy's question about the auto-increment index of my DB

Source: Internet
Author: User

I have previously mentioned in many articles the problem of logstdby status: ORA-01418, logical standby may be that the database automatically increases the index, causing logical standby to fail to apply. the reason was accidentally discovered today, because the AP staff did not specify a name when adding unique constraints, Oracle automatically assigned one, and this SQL specifies another name when standby applies. the test is as follows:

Create Table kevinsun

(

ID number,

Ename varchar2 (20 byte ),

Cname varchar2 (20 byte)

)

;

 

Alter table kevinsun add (

Unique (ID)

Using Index

;

An index named sys_c0013150 is generated on the master database, and an index named sys_c0014150 is generated on the slave database.

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.