SQL Always On: not accessible for queries

Hi forum!
I'm monitoring SQL 2012 Always On Groups with the latest SQL MP. A couple of the database replicas are configured to not allow access. This is to avoid additional license costs for those minor important databases.
However, I get the following events in the SQL log:
Error 976, Severity 14
The target database, '%.*ls', is participating in an availability group and is currently not accessible for queries. Either data movement is suspended
or the availability replica is not enabled for read access. To allow read-only access to this and other ...
Of course, as soon as I configure read-only for those databases the events disappear.
Is there any other solution?
Has anyone identified already (all) the accessing workflows?
Thanks in advance,
Patrick
http://www.syliance.com | http://www.systemcenterrocks.com

Hi All, I am also experiencing this issue.  Having a look at the statements SCOM is issuing, it's actually checking whether the AG secondary allows connections but it ignores the value and tries to connect anyway.  I believe this is a minor bug. 
See below for these queries. 
You can vote to correct it through Microsoft Connect on: https://connect.microsoft.com/WindowsServer/feedback/details/1121330
--SCOM/MP: is this database a replica and does it allow connections?
SELECT d.name, d.database_id, CASE WHEN d.replica_id IS NULL THEN 0 ELSE 1 END AS is_replica, ar.secondary_role_allow_connections
FROM sys.databases d JOIN sys.availability_replicas ar on d.replica_id = ar.replica_id JOIN sys.servers s ON s.name = ar.replica_server_name AND s.server_id = 0 /*local server*/
WHERE d.database_id = x --current db id in sys.databases loop
--SCOM/MP: let's look into that db (regardless of whether it allows connections)
--EXCEPTION: The target database, 'x', is participating in an availability group and is currently not accessible for queries. Either data movement is suspended or the availability replica is not enabled for read access. To allow read-only access to this and other databases in the availability group, enable read access to one or more secondary availability replicas in the group. For more information, see the ALTER AVAILABILITY GROUP statement in SQL Server Books Online.

Similar Messages

  • Sql Monitor is not working for forms10g

    Hi All,
    Sql Monitor is not working for forms10g.How can i solve this problems.
    Regards
    Gopinath M

    using sqlmonitor i have traced the forms 6i (.fmx),in this case toad additional
    software sql monitor is automatically added the frmbld.exe in application.
    whatever i am doing in forms runtime the sqlmonitor provide the sql query.
    for examble i am opening the lov with the help of F9.Now the sqlmonitor trace
    the sql query for that lov item.so its very helpful to see the query without
    the source(.fmb).
    Now the problem is the sqlmonitor is not added the iexplore.exe in application.
    because it added frmbld.exe only not for iexplore.exe.but the 10g forms are
    running from the explorer.is there any other forms trace method is available
    pls kindly guide to me.

  • SP1 to R2 Upgrade - The installed Version of SQL Server is not supported for the operational database

    Hello, 
    Am trying to upgrade a SCOM SP1 environment to SCOM R2( 3 MGT servers, 1 GW and 2 Web console boxes )
    The prerequisites are failing and it is stating the following ; 
    Operational Database SQL Version Check - The installed Version of SQL Server is not supported for the operational database
    Data Warehouse  SQL Version Check - The installed Version of SQL Server is not supported for the data warehouse
    The SQL servers are running SQL 2012 SP1 64 Enterprise, which is compatible.
    All other pre-upgrade tasks have been done. 
    Help appreciated! 

    I'm having the exact same issue, I believe. I think that Tubble has problem with SCOM 2012. Not 2007.
    I've checked the compatibility list for both SCOM 2012 SP1 and R2. All newer Windows Server and SQL versions are supported. We're running the SQL 2012 SP1 x64 Standard edition on a Windows Server 2012 Standard.
    I even tried to move the database from SQL 2012 to an older SQL 2008 R2, but that's not supported either. Only upgrading. Not downgrading.
    So, I started checking the opsMgrSetupWizard.log file for clues. And the error message was there as well. But the reason why it says not supported is that it can't get the info about the OS version, so I guess it assumes the OS version is to low. The RPC
    service can not be reached.
    [10:29:11]: Error: :GetRemoteOSVersion(): Threw Exception.Type: System.Runtime.InteropServices.COMException, Exception Error Code: 0x800706BA, Exception.Message: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
    [10:29:11]: Error: :StackTrace: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
    at System.Management.ManagementScope.InitializeGuts(Object o)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObjectSearcher.Initialize()
    at System.Management.ManagementObjectSearcher.Get()
    at Microsoft.EnterpriseManagement.OperationsManager.Setup.Common.SetupValidationHelpers.GetRemoteOSVersion(String remoteComputer)
    [10:29:11]: Debug: :IsSQLOnAValidComputer: remote OS version string was null or empty.
    [10:29:11]: Error: :Error:IsValidSQLVersionCheck: SqlServer OS version is too low.
    [10:29:11]: Debug: :**************************************************
    [10:29:11]: Error: :<![CDATA[CheckPrerequisites: Logic Type:and IsValidOMDBSQLVersionCheck: 2]]>
    [10:29:11]: Error: :
    [10:29:11]: Error: :CheckPrerequisites: OMDBSqlVersionCheckTitle: Failed
    [10:29:11]: Error: :
    [10:29:11]: Debug: :**************************************************
    [10:29:33]: Error: :GetRemoteOSVersion(): Threw Exception.Type: System.Runtime.InteropServices.COMException, Exception Error Code: 0x800706BA, Exception.Message: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
    [10:29:33]: Error: :StackTrace: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
    at System.Management.ManagementScope.InitializeGuts(Object o)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObjectSearcher.Initialize()
    at System.Management.ManagementObjectSearcher.Get()
    at Microsoft.EnterpriseManagement.OperationsManager.Setup.Common.SetupValidationHelpers.GetRemoteOSVersion(String remoteComputer)
    [10:29:33]: Debug: :IsSQLOnAValidComputer: remote OS version string was null or empty.
    [10:29:33]: Error: :Error:IsValidSQLVersionCheck: SqlServer OS version is too low.
    [10:29:33]: Debug: :**************************************************
    So, in our case this was just a FW that was blocking some high ports between management server and SQL. I believe TCP port 135 also needs to be open.
    Let's hope this fixes your issue as well, Tubble.
    Have a great day!

  • Statement Not Accessible for a FM

    Hi i am getting Statement not accessible syntax error at the Call Function Statement,(bold line) for the following code. Can somebody clarify me why this is happening. Thanks in advance.
    PROGRAM ZHR_FEATURE_RLPGR .
    TABLES : PERNR.
    TABLES : T74HG,  PSKEY, T5UB3, T5UB9, T5UBT, T5UBA .
    infotypes:0001,0021.
    CALL FUNCTION 'EXIT_SAPLHRBEN00FEATURE_029'    
      EXPORTING
        _PERNR                 = PSKEY-PERNR
        _BEGDA                 = PSKEY-BEGDA
        _ENDDA                 = PSKEY-ENDDA
        _BAREA                 = T5UB3-BAREA
        _BENGR                 = T5UBT-BENGR
        _BSTAT                 = T5UB9-BSTAT
        _BPLAN                 = T5UBA-BPLAN
        _SUBTY                 = PSKEY-SUBTY
        _OBJPS                 = PSKEY-OBJPS
    IMPORTING
       _RLPGR                  = T74HG-RLPGR
       EXCEPTIONS
       EVALUATE_FEATURE       = 1
       CUSTOMER_ERROR         = 2
       OTHERS                 = 3

    Hi,
    Try with as below.
    CALL FUNCTION 'EXIT_SAPLHRBEN00FEATURE_029'
      EXPORTING
        _pernr                 =
        _begda                 =
        _endda                 =
        _barea                 =
        _bengr                 =
        _bstat                 =
        _bplan                 =
        _subty                 =
        _objps                 =
        iscobra              =
        _nontx                 =
    IMPORTING
      _RLPGR                 =
    EXCEPTIONS
      EVALUATE_FEATURE       = 1
      CUSTOMER_ERROR         = 2
      OTHERS                 = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Ram.

  • Photos visible in iPhoto application but not accessible for upload

    Any help anyone can provide with this is greatly appreciated. I took pictures of a friends wedding and have been trying to order a photobook as a gift. I decided to try to use iPhoto to make the book. I don't use iPhoto very often and at the start of this, my iMac was running on the Tiger OS and an old version of iPhoto (I think 5 or 6). After completing the  first version of my photobook, I tried to place an order, but got a message that my version of iPhoto wasn't supported any longer and I'd  have to upgrade.
    I called the Apple store and ordered the Mac Box Set to upgrade my operating system to Snow Leopard and my iLife to version 11. The woman at the Apple store had me check my system info., available space, etc. and she assured me that my system should be able to handle the upgrade. I went ahead with the upgrade, loading the new operating system first and then iLife. The install seemed to go just fine, I never got any error messages and all the applications appear to function properly. So, I used the new version of iPhoto to create a photobook. I then placed the order the first time. On my end the process went smoothly and the upload completed without interruption. However, I got an e-mail message 4 days later saying my order couldn't be completed because files did not upload properly. So, I tried to place the order again, following the instructions to make sure that all my other applications were closed, etc. Once again the process seemed to be completed without any issues. However, now a week later, I once  again got the error message that my order could not be completed because files did not upload properly.
    So, I decided to try to place an order through a different vendor. Now I have discovered that all my recent photos (despite appearing in the iPhoto) are not accessible when I try to access them for upload to the vendor's site. The icon for iPhoto library is grayed out and there is no longer an option to access my photo rolls through finder. So, now I am unable to place the order for the photobook.
    Can anyone help me figure out how to fix this? Any help you can provide is greatly appreciated.

    Nothing to be fixed. Just a little learning for you.
    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.

  • Public content not accessible for guest user

    Hi,
    I have 2 environments with having Guest role (read on Public SecurityGroup).
    Ideally public content should be accesible by any guest/annonomous users.
    Environment 1)
    UCM with SSO(kerbarose based)
    When i access public content with any guest/annonomous user its not accessible
    Environment 2)
    UCM with out SSO
    When i access public content with any guest/annonomous user its accessible
    Did any one faced this problem.
    Any help is highly appreciable.
    Note: Accounts not enabled
    Thanks,
    Vijay

    It seems like your Kerberos SSO reject anonymous users, rather than give the 'Guest' role. Not sure if anything can be done about it at UCM side.

  • Pl/sql Clob code not works for database table but works for collection!

    Dear friends
    I modified pl/sql code to insert large data for clob column ın ORACLE APEX , It works for collection (I modified it to work for both)
    the modified code is blod
    declare
    aClob1 clob := empty_clob;
    aClob2 clob ;
    begin
    dbms_lob.createtemporary( aClob1, false, dbms_lob.SESSION );
    for i in 1..wwv_flow.g_f01.count loop
    dbms_lob.writeappend(aClob1,length(wwv_flow.g_f01(i)),wwv_flow.g_f01(i));
    end loop;
         apex_collection.create_or_truncate_collection(p_collection_name => 'CLOB_CONTENT');
         apex_collection.add_member(p_collection_name => 'CLOB_CONTENT',p_clob001 => aClob1);
         htmldb_application.g_unrecoverable_error := TRUE;
    select cc into aClob2 from tt where id = 21 for update ;
    dbms_lob.write(aClob2,Length(aClob1),1,aClob1); commit;
    end;
    but the charcters more than 8100 not be saved to database clob column !
    regards
    Edited by: Siyavus on Jan 30, 2009 5:26 PM
    Edited by: Siyavus on Jan 30, 2009 5:29 PM

    Dear Thomas
    dbms_lob.write(aClob2,*dbms_lob.getlength*(aClob1),1,aClob1); commit;
    I tried it ( dbms_lob.getlength(aClob1) ) but the result is the same
    regards

  • EA1 - SQL DDL Tab not working for 10.2.0.3 Oracle Apps DB

    I just downloaded the EA1 SQL Developer 1.5.0.51.70 for evaluation purposes. I am connecting to various types of databases - all databases are version 10.2.0.3.
    When I am connected to an Oracle Applications 11i database (10.2.0.3 version) as the apps user, then select a table, and then click on the SQL tab - I get a message Generating DDL and then the errors:
    o.d.db.DBUtil No more data to read from socket
    o.d.r.utils.DBObject Could not get schema Object:java.sql.SQLException:OALL8 is in an inconsistent state
    When I connect to one of our other in-house (non Oracle Apps) Oracle database 10.2.0.3 I am able to view the tables and the DDL in the SQL tab.
    Is there a reason why I am unable to view the DDL from the SQL tab for Oracle Apps databases
    Message was edited by:
    user571286
    Message was edited by:
    user571286

    If you get the same error when running the equivalent DBMS_METADATA through SQL*Plus (rather than through SQL Developer), I would assume that it is a problem with DBMS_METADATA in the database - this can be fixed (based on earlier posts, such as Re: ORA-06502 error on SQL tab by reinstalling DBMS_METADATA by running $ORACLE_HOME/rdbms/admin/catmeta.sql.
    If it works in SQL*Plus, then I would say it sounds like an issue with how SQL Developer is connecting to the database - simply based on the "no more data to read from socket".
    theFurryOne

  • SQL*LOADER example not working for REF

    I was working on the Oracle bulk load scripts using SQL*LOADER utility .
    I have encountered an error while using the REF column option to resolve the parent-child referential integrity .
    The example given in the URL http://www.csee.umbc.edu/help/oracle8/server.815/a67792/ch05.htm Example 5-9 Loading Primary Key REF Columns
    does not work . and generates errors : 'SQL*Loader-418: Bad datafile datatype for column DEPT_MGR'
    example :
    Control File
    LOAD DATA
    INFILE `sample.dat'
    INTO TABLE departments_alt
    FIELDS TERMINATED BY `,' OPTIONALLY ENCLOSED BY `"'
    (dept_no CHAR(5),
    dept_name CHAR(30),
    dept_mgr REF(CONSTANT `EMPLOYEES', emp_id),
    emp_id FILLER CHAR(32))
    Data file (sample.dat)
    22345, QuestWorld, 007,
    23423, Geography, 000,
    Could you please suggest any solutions for this ?

    Some of the quotes are wrong
    Try the sample from the 10.2 documentation
    LOAD DATA
    INFILE 'sample.dat'
    INTO TABLE departments_alt
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    (dept_no       CHAR(5),
    dept_name      CHAR(30),
    dept_mgr       REF(CONSTANT 'EMPLOYEES', emp_id),
    emp_id         FILLER CHAR(32))

  • User account is not accessible for login, but remains in Users folder. Can it be re-activated?

    My 18 mo old grandson hit a few keys on my wife's mid 2010 MbPro while she was logged in and eliminated her user login from the startup/login screen. I used resetpassword utility to reset p/w for System Administrator to access the machine and the user folder is intact. (The account also does not appear in the resetpassword pulldown list of users.) I have copied all of the folders except Library in her original account into a newly created account. Is there a procedure to (1) re-activate/re-access her original account, or (2) migrate her original Library information/settings to the new account?

    User Account - Rebuild
    User Account – Migrate Data
    User Account – Combine Two

  • Properties file not accessible for older requests

    Hi
    With use of jar file as external resource, we are making use of some properties from properties file.
    Whenever we update the properties file with new properties, after deploying the project - it is observed that for old requests the newly added property is not available.
    And in the code, we are accessing the new property which is producing exception when an older request refer to this piece of code.
    does it make sense or there might be some other problem that is causing the exception??
    (missingresourceexception is the exception thrown - it is referring to the new property entry in the logs as it cannot find a property for that)

    Hi Anuj,
    We are putting it in jar file itself. This jar file is added in external resources.
    The current situation is - the change is getting reflected for new (request) instances getting created. For already existing instances, it is not.
    by the way, on enterprise server, where can we locate the contents of jar - so that we may modify at run-time... or no such provision is there.
    Thanks for your quick response.
    Regds,
    Sharma

  • Unknown podcasts category created by itunes 7 not accessible for deletion

    I have been using Audio Hijack Pro to record "podcasts" and add them to itunes. After upgrading to itunes 7, these podcasts have been put in :podcasts:unknown podcast: where they can be found by smart playlists, but they do not appear anywhere in the library, so I cannot delete them through itunes.
    Any way to access them in the library, or do I have to wait for 7.0.1?
    Malcolm

    I am having the exact same problem. I'm chiming in to add my voice to the complaint list. Are you listening, Apple????

  • Fetching SQL statements is not supported for this report.

    Post Author: Adam20002
    CA Forum: .NET
    I am using the following code to try and get the SQL string of a report in code. This works for all our reports apart from one which gives us the above error message. The code we are using is as follows:-
    rptDoc.ReportClientDocument.RowsetController.GetSQLStatement(Nothing)
    Can anyone give me any clues as to why this works for all the other reports and what i might need to check for this one particular report. There is noting special about the report it just gets detials from a few tables, no supreports, fancy formulas or anything.

    Post Author: Adam20002
    CA Forum: .NET
    I am using the following code to try and get the SQL string of a report in code. This works for all our reports apart from one which gives us the above error message. The code we are using is as follows:-
    rptDoc.ReportClientDocument.RowsetController.GetSQLStatement(Nothing)
    Can anyone give me any clues as to why this works for all the other reports and what i might need to check for this one particular report. There is noting special about the report it just gets detials from a few tables, no supreports, fancy formulas or anything.

  • ESS Busness Package Content Not Accessible For Delta Copy Role

    We are implementing EP 6.0 connected to an ECC 5.0 backend System. We have imported ESS Business Package 60.2 into the portal. If I assign the ESS role "out of the box" (PCD folder structure: CONTENT PROVIDED BY SAP => END USER CONTENT => com.sap.pct.ess.employee => com.sap.pct.ess.roles => Employee Self-Service) to the Everyone Group, the content displays correctly. I had to set the Web Dynpro System Permissions for the End User to get this to work (Everyone Group => Administrator None, End-User Enabled) but did NOT have to set any Permissions on the role or its parent folders. I made a delta copy of the ESS User Role and placed it in a customization folder in the PCD and then deleted some of the worksets from the delta copy. The remaining worksets, roles, iviews, etc in the delta copy role are located in the PCD in folder structure: CONTENT PROVIDED BY SAP => END USER CONTENT => com.sap.pct.ess.employee. The Web Dynpro System Permissions for the End User are set(Everyone Group => Administrator None, End-User Enabled). The ESS navigation tabs are visible as well as the Overview page but none of the area group pages or services will display. I have tried setting End-User permissions on the PCD folder that contains the delta copy role but it still will not work. Any ideas?

    HI,
          Please send me the best practice you use to create ESS role and workset.
    thanks,

  • EA4500 router web page not accessible for use.

    I cannot login, web page pops up but its only a blue screen with help icon and privacy icon at bottom nothing is interactive. Have tried mylocalrouter.com, linksyssmartwifi.com. When uninstall software, hard reset router then reinstall software I get to the the login icon but when try to login it shows blue screen as previously mentioned in message. Router works but at a reduce speed and cannot manage any options. Tried updating firmware but once I unzip there is no way to install the .ssa firmware file

    Hi mtebaldi, have you tried using another browser and computer? If you're using a wireless computer, you may also try to turn the wireless computer WiFi switch to off then connect it directly to the router using an Ethernet cable. Once done, reaccess UI again. You may also try to access UI using "myrouter.local". 

Maybe you are looking for

  • How to access a specific font in a TrueType font collection (TTC) file

    I am trying to create a Font as follows: InputStream is = new FileInputStream("myname.ttc"); Font font = Font.createFont(Font.TRUETYPE_FONT,is); This works fine but I need to get a specific font from the collection. How does one go about creating a f

  • HELP!  I must go back to iWeb 1.2 from iWeb 2.0.1

    The latest version of iWeb doesn't work for me and I must go back. I know how to uninstall and reinstall my previous iWeb (I guess that means I have to go back to iLife 6.0 totally) but I do not know if there is a way to get my website back to the iW

  • How can I input stereo audio to a iMac late 2012?

    I can't wee where I can input stereo audio to my iMac (lat 2012) so that I can save the digitized audio to the music library.

  • Download display quality

    When I download an image from the internet and view the image and then compare it to the original, the downloaded picture file lacks the same quality (color & tone) of the original. Help!

  • No body try to help me

    No body try to help me no body in oracle support try to help me ...........why? I thik my questions are not complecated issues any one can help me please ?