How to query latency with HistoryVerbose 0

We're using Transactional Replication in SQL 2008R2 SP2
I'm trying to evaluate whether using a HistoryVerbose setting of 0 on the Log Reader and Distribution agents is a worthwhile modification to make, but still need to know Latency in these agents at periods of time.
I know it's possible to use Windows Performance Monitor and enable a couple of replication counters but I have reason to want to do this in T-SQL.
Tracer Tokens don't give you the answer until the token has finished replicating - it tells you about the problem AFTER the problem's happened.
It's also possible to get Current Latency from the MSDistribution_History and MSLogReader_History tables, but this information isn't recorded when the HistoryVerbose setting is 0.
It's possible to calculate what the latency is going to be based on the agent's transactions per second and the number of pending transactions, but querying these values can be costly on the Distribution database.
So there may not be an answer to this other than Windows Performance Monitor, but has anyone managed to query Latency in a light-weight query which isn't reliant on the logging in MSDistribution_History and MSLogReader_History?
Thank you if anyone can help!
Tim Johnstone Senior Technical Consultant Computacenter (UK) Ltd

Hi Tim,
Does Replication Monitor meet your requirement? For transactional replication, Replication Monitor displays information about the number of transactions in the distribution database that have not yet been distributed to a Subscriber and the estimated time
for distributing these transactions.
If not, I suggest you looking into below links.
They are related to the tracer tokens technology for monitoring replication latency.
How to: Measure Latency and Validate Connections for Transactional Replication (Replication Transact-SQL Programming)
http://technet.microsoft.com/en-us/library/ms147309(v=sql.105).aspx
SQL Server Transactional Replication Latency Monitoring Tool
http://gallery.technet.microsoft.com/scriptcenter/SQL-Server-Transactional-e34ed1e8
Cheers,
Ying

Similar Messages

  • How to query attributes with namespace in xmltable? thanks

    sample schema:
    <xsd:schema elementFormDefault="qualified" targetNamespace="http://www.tse.or.jp/jp/br/tdnet/ed/pt/2006-03-31">
    <xsd:element name="LocationOfHeadOffice" id="tse-ed-pt_LocationOfHeadOffice" type="xbrli:stringItemType" substitutionGroup="xbrli:item" abstract="false" nillable="true" xbrli:periodType="instant"/>
    <xsd:schema>
    My question is how to query the attribute xbrli:periodType using function xmltable.
    My query statement(it's just a part of it and it does not work):
    xmltable(XMLNamespaces('http://www.w3.org/2001/XMLSchema' as xs,
    'http://www.xbrl.org/2003/instance' as xbrli),
    '/xs:schema/xs:element'
    passing a.schema
    columns periodType varchar2(1000) path '@xbrli:periodType') b
    And the error message:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in: '/*/@xs:nillable'
    In fact, with standard xpath "doc("taxonomy.xsd")/xs:schema/xs:element/@xbrli:periodType", we can use the namespace with attributes, but why the xmltable function does not support it?
    And, how can I query this attribute?
    Thanks a lot.

    sorry for the mistake, the error message:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in: '/*/@xbrli:periodType'

  • How to query Database with Parameters  and configure null value response?

    Hi,
    1.When capture attributes from forms & after applying several logics, passing to a DB table using an API, how to get relevant values for a given parameter in another DB table ?
    2.When a DB table is queried, if the value does not exist, how to configure the response message ?
    Thanks.

    Okay, you've provided exactly what John S. asked for - and no more. This is helpful, but not enough. I think we're going to need a use case to understand exactly what you are asking. What should the user see? What does the user do next? What should happen in the database and in the application when the user does this?
    However, I'll try to read between the lines a bit, and get you part of the way there. To query the database with parameters in ADF BC, you need a View Object (VO). The simplest thing to do is create the SELECT command behind the VO with some bind variables and add the bind variables to your VO. At that point, you will get an ExecuteWithParameters operation in the Data Control. You can drag that operation onto a JSF page and it will give you an option to create a parameter form to let the user fill in the parameters to set the bind variables, and a button to execute the query with these values. Any table or form based on that same VO will show the selected data.
    A Trinidad or ADF Rich Faces table will have an attribute to let you define some text to show the user if no data was retrieved by the query. But there are other ways to determine if data was retrieved which you can use to control other ways to display this information. For instance, I have a page that has an outputText component that has a "rendered" attribute to show the text only when there was no data retrieved by a query.

  • How to join GRPO with AP invoice thru query ?

    hi all,
    How to join GRPO with AP invoice in sql query ?
    Jeyakanthan

    Hi Jeyakanthan
    Are you using query in SAP Business One or outside the system? If you select the tables in SAP Business One as OPCH and OPDN then no inner join will appear, as the links sit on the line level. You will need PCH1 and PDN1. The link can be found in both directions, but bear in mind that 1 AP Invoice could be based on more than 1 Goods Receipt PO. For this reason the best approach is to start at the AP Invoice line level and use the BaseType and BaseRef fields to view which lines were pulled from which Goods Receipt PO's.
    Kind regards
    Peter Juby

  • How to use ADF Query search with EJB 3.0

    Hi,
    In ADF guide http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_search_bc.htm#CIHIJABA
    The steps to create query search with ADF Business Components says:
    "+From the Data Controls panel, select the data collection and expand the Named Criteria node to display a list of named view criteria.+"
    But with EJB, I'm not able to find Named Criteria node. Can we use ADF query search component with EJB? If yes, can you please show me some example, tutorial etc.?
    Thanks
    BJ

    For EJBs you'll need to implement the query model on your own.
    An example of how the model should look like is in the ADF Faces components demo.
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/query.jspx
    Code here:
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/demo/adf_faces_rc_demo.html

  • How to numberformat when using sql:query alogn with c:forEach JSTL tags

    Is there anyway to format the numeric values returned from the database when using <sql:query> alogn with <c:forEach> tags
    Here is my jsp code
    <sql:query..../>
    <c:forEach var="row" items="${queryResults.rows}">
    <tr>
    <td><c:out value="${row.COL1}" /></td>
    <td><c:out value="${row.COL2}" /></td>
    </tr>
    </c:forEach>
    Col1 values are numeric without any formats Eg: 1000, 10000, 1000000 etc.
    how can i format them to 1,000 , 10,1000 , 100,000 etc

    It is polite to mention what your answer was. These posts are not just here for you to ask questions, but to be used as a resource for other people to find answers. Saying "I solved it" with no details helps noone.
    I presume you discovered the JSTL <fmt:formatNumber> tag?

  • How to create parameter with multiple selection in a query (SQ02) ?

    Hi Exports
    Do you know how to create parameter with multiple selection in a query (transaction SQ02)?
    thanks.

    Hi
    i know how to create user parameter at SQ02,
    the question is how to create multiple selection parameter?

  • How to add docentry with some num.?can you solve below query   Declare @a as Numeric SET @a=14900000; SELECT (@a+($[@MAINTDCHEAD.DocEntry])as 'series no'

    how to add docentry with some num.?
    can you solve below query
    Declare @a as Numeric
    SET @a=14900000;
    SELECT (@a+($[@MAINTDCHEAD.DocEntry])as 'series no'

    Hi,
    Yes possible.
    Try this:
    Declare @a as INT
    SET @a=14900000;
    SELECT (@a+($[ORDR.DocEntry]))
    Thanks & Regards,
    Nagarajan

  • How to query which Tcodes specified user used with one day?

    Hi guys:
      How to query which Tcodes specified user used with one day?

    Hi
    You can use transaction code ST03N.
    1. Go to tx code - ST03N
    2. Under "Workload" you can select your "Instance or Total" so that it expands and shows you Days, Week, Month.
    3. If you want to look at the transactions executed for a particular day, lets say, then double click on any day.
    4. At the bottom left you get "Analysis Views"
    5. Select & expand "User and Settlement Statistics"
    6. Double click on "User Profile"
    7. On the right side of the window you get a list of all the users
    8. Double click on a particular user you want to view the details of.
    9. The new screen will display the "Transactions/Reports Utilized by User XXX"
    If you wanna track which users executed a particular transacation then follow this:
    10. In "Analysis Views" expand "Transaction Profile"
    11. Double click on "Standard"
    You can view the list of Transactions and Reports.
    12. Double click on the Tx Code or Report you wanna check and it will show the Use of it.
    This will help you.
    Regards
    Sumit Jain
    [reward with points if the answer is useful]

  • Query folding available datasources and how does it work with HDInsight

    Hi everyone,
    is there anywhere official list of data sources that support query folding? I searched for quite a long time and the only list I got is in post by Matt Masson from 2013 http://www.mattmasson.com/2013/07/filtering-in-data-explorer/ 
    Especially I'm curious how it works together with HDInsight. Ability to analyze Big Data from Excel sounds cool. But analyzing Big Data client side in Excel doesn't sound that cool at all. I'm afraid I already know the answer, that query folding isn't supported
    against HDInsight in terms of analyzing data (not HDFS paths).
    Thanks for any helpful comments
    Jiri
    Jiri Neoral -------------------------------------------------------------- Please mark as helpful if it helped to point you in direction. Mark as answer if it answered your question.

    Correct. We don't currently have any native support for executing queries in Hive or with Map-Reduce when accessing data in HDFS or HDInsight-compatible blob storage. If the data and queries are Hive-compatible, you could try using a Hive ODBC driver for
    this purpose.

  • How to query a table and result together with autonumber

    Hi all
    How to query a table and the result return autonumber for each row together with the table values.
    I have tried rowid but it provide me with characters.
    Tj

    What is your exact requirement?
    If you want the number of rows selected, you can use rownum.
    select rownum, a.* from <table> a;
    Cheers
    Deepak

  • How can I related Query name with Query elements?

    Hello gurus!
    I am working with BI7, content technical, well I need to find out a solution where I can related Query name with query elements (KYF, CKY, Restricted Key Figures, var, etc)
    In master data 0tctquery, exist the query element, but, I can not related with object are from what query...
    Do you know how I can do it??? some solution???
    Best Regards

    "it is impossible to relate both tables" ???
    hmmm... these are exactly the tables the Query Designer uses to "build" up the query... so trust me, they do relate
    now to get this information in an InfoCube is a totally different thing... how do you expect to report on this if you should get it in an InfoCube? let's take a simple example... assume you have a query (QUERY_1) which looks like:
                                      Sales  Sales
    Sales Org Customer    Qty      Value
    1000         ABC           10 PC  500 €
    1000         DEF             5 PC  250 €
    in your Cube you would get:
    QueryName  QueryElement
    QUERY_1    0SALESORG
    QUERY_1    0CUSTOMER
    QUERY_1    ZSLSQTY
    QUERY_1    ZSLSVAL
    if you have free characteristics, you'll add more lines... same for variables, CKFs, RKFs, conditions, ...
    I guess it would be better to create a little ABAP report using the above tables (oh, you'll be needing a lot more tables if you wish more detail)

  • How to query for XML-attribute with XPATH

    Hi,
    Isn't there somebody, who can tell me how to query an Attribut of an XML-element correctly ?
    All my trials lead to empty rows. What's worng in my XPATH-expresion ?
    XML-file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <xmlexport>
    <itsystem guid="e51b91d1-ab0f-11db-2cd7-001641105333">
    <field fieldidentifier="currentVersion" />
    <field fieldidentifier="marketdatacosts">0</field>
    I can query fine the elements and sub-elements, but not attribute 'guid' of /xmlexport/itsystem. Here some trials, all lead
    SELECT t.* FROM CORIA."xmlexport156_TAB", xmltable ('/xmlexport/itsystem ' passing object_value COLUMNS
    GUID     VARCHAR2(1000) path '[@guid=*]') t
    various versions for Xpath:
    path '[@guid="*"]'
    path '/[@guid=*]'
    path '[@guid=*]'
    xmltable ('/xmlexport' ...
    path '/itsystem/[@guid=*]'
    ... combinations of part 1 and 2
    thanks for any hint, LaoDe

    You can either get them directly, or fetch the attribute in your xquery and put them in returning xml fragment, then get them like normal element.
    Method #1:
    path '@guid'
    Method #2:
    xmltable(
    let $is := /xmlexport/itsystem
    return <r><guid>{$is/@guid}</guid></r>
    passing object_value
    columns guid varchar2(1000) path '/r/guid')

  • How to query with wild card

    hi friends
    we have a requirement where if the user enters a letter in a field of selection-screen, he is supposed to get the fields details with its prefix entered in the selection-screen
    eg: if user enters P and give execute
    he needs to get the details of the particular field starting with P
    how to code this
    with regards
    s.janagar

    Hi,
    Here wildcard character '%' can be used as pattern code. Character and then the '%' sign signifies that all values with character as first letter will be searched upon.
    In your case use of like 'P%' in the where clause of the select statementr should solve the issue. e.g.,
    select * from <tabname> into table <internal table> where <fieldname> like 'P%'.
    searches all entries from table <tabname> and places them in internal table <internal table> where the field <fieldame> begin with P.
    Thanks and Regards,
    Sachin

  • How to link bindvariable with ViewAccessor to make it ADF Input with LOV

    I have create a view object by sql query in which i have two bind variables. I want to create a search form by these two bind variables as search criteria so i drag "Execute with Params" operation from Viewobject Data Control to a jspx page as a ADF Search Form. Now i want to create these two parameters as a ADF Input LOV so i changed control type in view Object for these two bind variables but i am not able to fine how to attach viewaccessor with it for data source. Kindly help me.

    Hi,
    in this case - if th ebind variables are not based on an attribute that has a LOV defined - you replace the components in the input form. To do this, remove the input text field and drag the attribute (the argument) onto the form again. Choose select one choice to create a drop down and then map it to the VO that providesthe values. Note that this doesn't create a LOV binding so you use lists for this.
    Frank

Maybe you are looking for

  • Slow performance since going to Mavericks on aging iMac

    hi & thanks in advance: Wondering if my newly sluggish performance, SPODs etc since upgrading to Mavs (10.9.2) from 10.6.8  =  its time to upgrade my machine (late '07 iMac i think). I'd just install more RAM but seems my 4gig is its ceiling? Activit

  • A7666IMS.148 bios issues/questions

    (1)  Has anyone experienced an issue with the rear panel e-sata connections not working after the 1.4 bios update? The "front panel" connection still works, but not those on the rear panel.  (2)  Why does the English language site only show bios vers

  • How do i stop Tesco Bank saving my 3 digit security code online

    It may have something to do with a firefox update but I've just noticed that Tesco Bank are saving my 3 digit security number (CVV) online. It appears as 3 dots and I just click submit. Tesco customer services advise it has to do with my browser? Can

  • Calculating over time

    Hi I am making up a time sheet calculator (example below), and need help figuring out how to calculate overtime. I figured out how to calculate total time for the day ( SUM=(B2-A2)+(D2-C2) ) and calculating over time is simple if the total time is gr

  • The Mac Pro Retina download for Creative Suite 5.5 Master Collect (Already have serial code)

    The Mac Pro Retina doesn't have a disc drive, I have the serial number and disc for the Creative Suite 5.5 Master Collection (Student & Teacher Edition) Where can I download this so I don't have to buy a disc drive