Unable to enable service broker

Dear all,
I tried to create DBMail in one of our prod server, i did the following operation at start getting error. Kindly help me how to avoid this problem
alter database msdb set enable_broker with no_wait
Error: Database state can't be changed while other users are using the database 'msdb'
Alter database statement failed
Note: I just verified may be anyone using the database but i'm the only user working on that.
DBA

Try this:
use master;
go
ALTER Database msdb set ENABLE_BROKER WITH ROLLBACK IMMEDIATE;
go
Satish Kartan http://www.sqlfood.com/

Similar Messages

  • Remove and add database in AG to enable service broker

    Hi All,
    Right now am testing in AG, I have a scenario where I created AG without enabling service broker, As per experts Service broker should be enabled first before AOAG since I did not, I remove the DB from AG enabled back service broker and the add back the DB
    it worked fine also as a point to make when i remove the DB I did not perform any backups in primary DB.
    I have 2 questions ->
    1) Is this above method correct
    2) Will removing and add a DB will affect the AG setup (though no backup will be performed)
    Thanks
    Best Regards Moug

    1. Yes you need to remove the database from the AG in order to enable service broker, so the process you've followed is fine
    2. That's no problem. If you remove the database from AG you can add it back in on the primary, then do a "Join Only" (no need for another backup and restore) and it should work fine. If it complains about the log chain not being recent enough
    you could take another tlog backup and apply it to the secondary and attempt to join again.

  • HP Photosmart Plus B210 unable to enable web service

    I just moved this printer from one location to another. I have the printer connected to the network - but I am unable to enable web services. I just keep getting a Service Connection Error that says "There was a problem connecting to the Server."
    I've looked for solutions on the HP site - but none of them have worked for me.
    Any help is greatly appreciated!
    LuAnn
    This question was solved.
    View Solution.

    Hi again LuAnn_Freund,
    Try the same steps that eunicerocksify suggested, but try these DNS settings;
    Primary DNS Server = 209.244.0.3
    Secondary DNS Server = 209.244.0.4
    If those do not work, I would suggest speaking with HP's Cloud Support Team to get this issue looked at first hand by an agent that can log onto your computer. I understand that you are posting on the Forums for a reason, but since you only have today remaining to work on a resolution, speaking with them would be best.
    Please call HP’s Cloud Services at 855-785-2777. If you live outside the US/Canada Region, please click the link below to get the support number for your region, click HERE to find the Technical Support number for your country/region.
    Cheers,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Unable to enable in web services using direct cable from my router

    LaserJet Pro printer is working.  Unable to enable in web tab error message: Connection error. Check Internet connection.
    I have internet connection and don't  use proxy server.  I have powered off both printer and router.  Thank you.

    Hello! Could you please provide more information regarding the issue, such as which laserjet you are using? Any additional information will be helpful in resolving your issue. Thanks!
    Help the community by marking this post as a solution if it solved your issue!.
    If my post helped you in any way, please click the blue KUDOS star under my name! It would mean a great deal.

  • Service Broker Disabled but it comes back showing its Enabled.

    Used to disable SERVICE BROKER in single user mode :
    ALTER DATABASE [Database_name] SET DISABLE_BROKER;
    SELECT is_broker_enabled FROM sys.databases WHERE name = 'Database_name';
    when i checked the database after disabling, it shows 'is_broker_enabled'=1
    wht can be problem.
    Naveen| Press Yes if the post is useful.

    Interestingly the broker is disabled but i see the receive_wait messages on 'Activity monitor' for the database where service broker is disabled.
    Any thoughts
    Naveen| Press Yes if the post is useful.

  • Log files full of service broker errors, but it works OK

    We have a C# web application that is using SQL dependency to expire cached query data. Although everything is working okay we are seeing a lot of errors being generated particularly in our production environment.
    The first error messages is this:
    Service Broker needs to access the master key in the database 'SubscriberManager'. Error code:32. The master key has to exist and the service master key encryption is required.
    It shows up in both the server event log and the SQL server log files. I believe the actual content of the messages something of a red herring as I have created a database master key.
    I have also tried
    Recreating both the service master key and the database master key.
    Made sure the database owner is sa.
    Made sure the user account has permissions to create services, queues, procedures and subscribe query notifications
    Made sure the broker is enabled
    I have seen other people with similar errors whilst researching the issue but the error code almost always seems to be 25 or 26 not 32. I have been unable to find anything that tells me what these error codes mean so I'm not sure of the significance.
    Also I am seeing a lot of errors like this:
    The query notification dialog on conversation handle '{2FA2445B-1667-E311-943C-02C798B618C6}.' closed due to the following error: '-8490Cannot find the remote service 'SqlQueryNotificationService-7303d251-1eb2-4f3a-9e08-d5d17c28b6cf' because
    it does not exist.'.
    I understand that a certain number of these are normal due to the way that SqlDependency.Stop doesn't clean everything up in the database, but we are seeing thousands of these on one of our production servers.
    What is frustrating as we have been using SQL notifications for several years now without issue so something must have changed in either our application or the server setups to cause this but at this point I have no idea what.
    The applications are .net 4.0 MVC and WCF running on Windows 2012 servers calling SQL 2012 servers also running on Windows 2012.

    Hi Mark,
    1. for your question about possible memory pressure, if the used memory is below the Max Server Memory, then it's OK. If you have not set Max Server Memory, you should at least leave 4GB for your x64 system.
    2. for your original question, I suggest you can check my actions below:
    a. run this statement:
    Select name, is_master_key_encrypted_by_server
    from sys.databases
    Where name =
    'your_database_name'
    if the value of "is_master_key_encrypted_by_server" equals to "0", it means the database does not have a encrypted master key.
    b.if there is no encrypted master key, then the error may be hit by the "begin dialog conversation" statement (you can check your sql profiler trace to check".
    "Service Broker dialog security lets your application use authentication, authorization, or encryption for an individual dialog conversation (or dialog). By default,
    all dialog conversations use dialog security. When you begin a dialog, you can explicitly allow a dialog to proceed without dialog security by including the ENCRYPTION = OFF clause on the BEGIN DIALOG CONVERSATION statement. However, if a remote service binding
    exists for the service that the conversation targets, the dialog uses security even when ENCRYPTION = OFF."
    (http://msdn.microsoft.com/en-us/library/ms166036.aspx)
    Workarounds can be disabling the dialog security (using encryption = off) or create a master key. You can find more information in about URL.

  • Behaviour of Service Broker during clustered SQL Server failover

    Hi, 
    I have 3 instances of SQL Server 2005 hosted on a 3-node cluster, using Polyserve clustering.  Each instance is nominally hosted on its own node in the cluster.
    I have configured Service Broker to route messages from INST-A (on NODE-1) to INST-C (on NODE-3), using TCP and a NetBIOS name.  This NetBIOS name obviously uses the machine name of the node, rather than the virtual machine name of the instance.
    Under normal conditions, this works, messages sent from INST-A to INST-C are received and processed.
    However, should INST-C failover (for example to NODE-1), the route created to INST-C from INST-A is no longer valid; INST-C is now on a different node to that specified in the route.
    Service Broker stops, unable to put messages onto the queue on INST-C, so backing them up in sys.transmission_queue on INST-A.  To fix, I have to update the route as appropriate.
    We have thousands of messages being sent every minute.  While a delay in sending them during an actual failover is expected, would it not also be expected to recover itself and process any backlog without manual intervention?
    Is there something I'm missing in my configuration?  Or do I need to set up some other means to automatically update the route upon failover?  In which case, how can I programmatically determine the node to which it has failed-over?
    Configuration scripts:
    Target Endpoint:
    CREATE ENDPOINT ServiceBrokerTargetEndpoint
    STATE = STARTED
    AS TCP(LISTENER_PORT = xxxx)
    FOR SERVICE_BROKER(AUTHENTICATION = WINDOWS, ENCRYPTION = REQUIRED)
    CREATE ROUTE RouteToTargetService
    WITH SERVICE_NAME = 'ServiceBrokerTargetService', ADDRESS = 'TCP://INST-C:xxxx'
    INST-A and INST-C are both SQL 2005 Enterprise edition.
    Thanks for any assistance.
    Simon

    Hi David, 
    Thanks for correctly guessing our longer term plans.  It's good to know this won't be a problem in the future.
    However, that doesn't answer my original question, which is a bit more pressing than waiting until we have migrated.  If it can't be done, it can't be done, and we'll just bear that in mind when responding to failover events.  But I would prefer
    a definitive "no, it can't" rather than a speculative "no".  
    Regards, 
    Simon

  • Unable to start service IfsDefaultService

    Hello,
    I am having a problem with HTTP DAV access of IFS. This is a new install of IFS on a SuSe 7.2 Linux box.
    When starting Apache and JServ, the jserv.log shows an error complaining that the IfsDefaultService cannot be started, followed by other errors.
    According the OEM Console, I have successfully started the IFS Domain, and related nodes/services.
    I have enabled IFS_DAV_DEBUG but that did not provide the answers.
    Can someone help me interpret the error below?
    Thanks,
    Chuck
    29/08/2001 15:18:43:412 EDT] files/oracle.ifs.protocols.dav.impl.IfsDavServlet: NodeGuardian: Node manager registered
    [29/08/2001 15:18:43:413 EDT] files/oracle.ifs.protocols.dav.impl.IfsDavServlet: NodeManager: Ready
    [29/08/2001 15:18:43:414 EDT] files/oracle.ifs.protocols.dav.impl.IfsDavServlet: NodeManager: Initialize: determining default services and servers
    [29/08/2001 15:18:43:475 EDT] files/oracle.ifs.protocols.dav.impl.IfsDavServlet: NodeManager: Initialize: starting service IfsDefaultService
    [29/08/2001 15:18:44:205 EDT] files/oracle.ifs.protocols.dav.impl.IfsDavServlet: NodeManager: Initialize: unable to start service IfsDefaultService
    oracle.ifs.common.IfsException: IFS-45083: Unable to start service (IfsDefaultService)
    oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefaultService)
    oracle.ifs.common.IfsException: IFS-20122: Unable to construct service
    oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
    oracle.ifs.common.IfsException: IFS-10633: Unable to create library connection
    oracle.ifs.common.IfsException: IFS-10600: Unable to construct library connection
    java.sql.SQLException: ~`@
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:1759)
    at oracle.jdbc.oci8.OCIEnv.getEnvHandle(OCIEnv.java:69)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:452)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:287)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at oracle.ifs.server.LibraryConnection.<init>(LibraryConnection.java:245)
    at oracle.ifs.server.ConnectionPool.constructLibraryConnection(ConnectionPool.java:712)
    at oracle.ifs.server.ConnectionPool.createLibraryConnection(ConnectionPool.java:673)
    at oracle.ifs.server.ConnectionPool.<init>(ConnectionPool.java:311)
    at oracle.ifs.server.S_LibraryService.resetConnectionPools(S_LibraryService.java:3195)
    at oracle.ifs.server.S_LibraryService.<init>(S_LibraryService.java:1042)
    at oracle.ifs.server.S_LibraryService.startService(S_LibraryService.java:1399)
    at oracle.ifs.beans.LibraryService.startService(LibraryService.java:255)
    at oracle.ifs.management.domain.NodeManager.startService(NodeManager.java:917)
    at oracle.ifs.management.domain.NodeManager.bootstrap(NodeManager.java:1329)
    at oracle.ifs.management.domain.NodeManager.access$300(NodeManager.java:83)
    at oracle.ifs.management.domain.NodeManager$3.run(NodeManager.java:562)

    Hi Charles.
    Several points:
    - Look at the appendix of the 1.1 Developer's Guide for details on this error message. http://technet.oracle.com/docs/products/ifs/doc_library/ifs_1_1/Developers%20Guide/Errormessages.html#1011023
    - In the appendix of the 1.1 Developer's Guide, it indicates "...can also occur if the DatabaseUrl setting in the service properties file is invalid."
    - I think the DatabaseUrl is found in the $ORACLE_HOME/ifs1.1/settings/oracle/ifs/server/properties/HttpServer.properties file.
    - Could it be that you didn't re-run IfsConfig after changing something about your connection? I believe IfsConfig sets the DatabaseUrl for you.
    Hope that helps.
    Alan

  • Could not start Service Broker for database

    Problem:
    Could not start Service Broker for database id: 9. A problem is preventing SQL Server from starting Service Broker. Check the SQL Server error log for additional messages.
    The windows and application logs do not give me any for information. I have checked the database instance and found that Database ID 9 does not exist in the sys.databases table. Could this be the reason?
    How do I resolve it so that SQL Server does not try and start Service broker for a database ID that does not exist?
    Any help will be greatly appreciated.
    Thanks.

    Hello Affy
    Solution/Fix: To avoid this alert, I have set the "Enable Disaster Recovery File Updates" parameter to 0 in the regedit at the below location.
    MY Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\Backup Exec For Windows\Backup Exec\Engine\SQL Server
    For furher details you can refer my blog.
    Regards,
    Naveen Kumar Thandra

  • Unable to start service jms:

    Hi,
    When running imqbrokerd.bat I get the following error. Please can you help out.
    I am running this on windows 2000 server SP4.
    Thanks
    [27/Aug/2004:16:30:55 BST]
    ==================================================================
    Sun ONE Message Queue Copyright 2002
    Version: 3.0 (Build 203-a) Sun Microsystems, Inc.
    Compile: Mon 05/20/2002 All Rights Reserved
    Use is subject to license terms. Third party software, including
    font technology, is copyrighted and licensed from Sun suppliers.
    Sun, Sun Microsystems, the Sun logo, Java, Solaris and iPlanet are
    trademarks or registered trademarks of Sun Microsystems, Inc. in
    the U.S. and other countries. All SPARC trademarks are used under
    license and are trademarks or registered trademarks of SPARC
    International, Inc. in the U.S. and other countries. Federal
    Acquisitions: Commercial Software - Government Users Subject to
    Standard License Terms and Conditions.
    This product includes code licensed from RSA Data Security.
    ==================================================================
    Java Runtime: 1.4.0 Sun Microsystems Inc. e:\MQBroker\jre
    [27/Aug/2004:16:30:55 BST] [B1060]: Loading persistent data...
    [27/Aug/2004:16:30:55 BST] ERROR [B3009]: Unable to start service jms: [B4001]:
    Unable to open protocol tcp for jms service using com.sun.messaging.jmq.jmsserve
    r.net.tcp.TcpProtocol: Address already in use: JVM_Bind
    [27/Aug/2004:16:30:55 BST] [B1039]: Broker "imqbroker@mybroker:7676" ready
    .

    By default the system is configured to use dynamic ports for the
    individual services. I.e.
    imq.jms.tcp.port=0This should result in the system allocating a dynamic port for the
    jms service and therefore avoid port conflicts. Setting a fixed port
    should be unecessary (unless you need to for firewall reasons).

  • [HELP] About Sql Service Broker ==True ?

    i coding in other project, need copy oitm data to project, so sql set service broker ==>true,
    and use of ado.net sqlDependency to implement this function
    but company db service broker is false. if i change true,will cause problems in sap business one data???
    or other better solution to replicate sap data in real time???

    Hi
    I have 'Broker enabled' option set to True and SAP B1 works as usual so I presume that it's safe.
    Kind regards,
    Radek

  • [HELP] About SAP Business one DB SET Sql Service Broker ==True ?

    i coding in other project, need copy oitm data to project, so sql set service broker ==>true,
    and use of ado.net sqlDependency to implement this function
    but company db service broker is false. if i change true,will cause problems in sap business one data???
    or other better solution to replicate sap data in real time???

    Hi
    I have 'Broker enabled' option set to True and SAP B1 works as usual so I presume that it's safe.
    Kind regards,
    Radek

  • Unable to enable Core Server

    Following the documented steps to enable CIFS acceleration, but for some reason I am unable to enable the "enable core server" option (same applies to "edge server".
    Am I missing something ?
    Please advise,
    Sijbren

    Sijbren,
    If you are using WAAS 4.1.x and using CIFS AO, you don't need core and edge services, just enable the AO for CIFS acceleration.
    If you are using WAAS 4.0, then enable the CIFS edge/core services via the GUI. If you are using legacy mode in 4.1, then you need to have the CIFS AO disabled before you can enable the edge or core services. Once edge and core services are enabled, then you can create connectivity directives.
    However, I recommend you use the transparent cifs acceleration in the new CIFS AO in 4.1, it's easier to setup and takes advantage of bi-directional acceleration.
    Hope that helps,
    Dan

  • The Service Broker endpoint is in disabled or stopped state.

    Hi All,
     I am getting too many errors  messages like "The Service Broker endpoint is in disabled or stopped state." in my sql server error logs. I have two instance with SQL server 2012 along with SP1 (Enterprises Edition) and
    enabled Always On features b/w the server for more than 10 users database to meet HADR . My SQL Server log is getting fulled because of this error messages.
    I tried below query to identified  Service Broker is enabled or disalbed on all user databases.
    SELECTis_broker_enabled FROMsys.databases
    WHEREname= 'Database_Name'
    Output was 0
    I can't alter the database statement to enable Service since its configured in database mirroing.
    Does it affects the performanc of the database/instance/with database mirroirng or should Ignore the error message.
    Any Idea how to troubleshoot the issue
    Thanks
    Raghu

    Hi,
    It’s a default behavior. The message will show when AlwaysOn availability group Listener is created and SQL Server binds the Listener’s IP dynamically.
    There is no method to suppress the message. These messages are informational message and do not cause any harm and can safely be ignored.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Error while checking in a document: Unable to execute service

    Hi,
    I am using oracle UCM 11g. When i am checking in a document, i am getting error as "Unable to execute service CHECKIN_NEW_SUB and function validateCheckinData."
    In stacktrace found this is caused by:
    "Unable to find query or idc data source with 'DdeletedRows'. "
    How to resolve this?
    Thanks in advance

    Please refer to this thread ...may be u get ur answer out of it...........................
    Error while checking in and storing: C:\ ..... (Message no. 26253)
    regards,
    Tushar Dave

Maybe you are looking for