Service Broker in the database cannot be enabled because a service broker with the same ID is enabled.

Source: Internet
Author: User

Scenario:

For MySQL database, if the name is db1, the service broker is enabled, db1 is backed up, and then restored to DB2 (that is, DB2 is a full backup image of db1), and then used

Use master
Alter database DB2 set enable_broker

The following error occurs when you want to enable the broker:

Service Broker in Database "DB2" cannot be enabled because a service broker with the same ID is enabled.

Solution:

Use master
Alter database DB2 set new_broker

Then run

Use master
Alter database DB2 set enable_broker

-- Verify whether the feature can be enabled
Go
Select databasepropertyex ('db2 ', 'isbrokerenabled ')

OK!

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.