Are you the publisher? Claim or contact us about this channel


Embed this content in your HTML

Search

Report adult content:

click to rate:

Account: (login)

More Channels


Showcase


Channel Catalog


Channel Description:

Discussions on SQL Server Replication

older | 1 | .... | 64 | 65 | (Page 66) | 67 | 68 | .... | 181 | newer

    0 0
  • 09/02/13--09:31: Query to check replication
  • Hi,

    I created the query below to check if every transaction was already sent to the subscriber. Is this query correct ?

    At this moment the query show a difference of 150 transactions between one publisher/subscriber, but the synchronization status says "No replicated transactions available".

    What's wrong ?

    The query :

    select count(*) Diferenca from distribution..MSlogreader_history where
    xact_seqno > (select max(xact_seqno) from distribution..MSdistribution_history)

    Thank you !


    Dennes - Se resolveu, classifique a mensagem, por favor - [http://www.bufaloinfo.com.br] NOVO DVD Segurança no ASP.NET : http://www.bufaloinfo.com.br/LearingSeriesSegurancaASPNET2.asp


    0 0

    Hello,

    Please provide the more Knowledge on How to configure replication in sql server 2012.

    Regards

    sambasivarao


    0 0

    Hi All,

    I am able to successfully launch replication monitor, but I couldn't see the publications under the publisher. As i already mentioned in the subject line , it shows up up small red mark crossed. My Colleagues are able to see the publications of the same publisher . I am a 'SysAdmin' , but still i am not sure , what is the problem . Please help me to resolve this issue.

    Regards

    Chaithanya M


    Regards Chaithu.. If it is usefull,Mark this as Answer.


    0 0

    I'm trying to schedule a replication job, manually it runs fine, and it ran as scheduled when I'm logged on the server, but it doesn't otherwise.

    I check the logs and there are no error messages.

    This was a SQL Server 2012 Express instance upgraded to Standard.


    0 0

    Hi,

    We've merge replication configured in our environment(4 SQL servers 2008R2). As we know merge replication is bidirectional, its working fine in case of inserts i.e, if a row is inserted at publisher it's getting updated at subscriber and vice-versa. The Issue is, if row gets deleted at publisher its getting deleted at subscriber but, if a row gets deleted in any of 3 subscribers its not getting deleted at publisher. I've checked delete_tracking option in sp_helpmergearticle and its set to '1'.

    Please help me out. Thank you in advance.

    Regards,
    Wilshere


    0 0

    Hi,

    we have a situation where a publisher hosted on server which has 45 subscriptions is required to be moved to a new server. We do not want to reinitialize the subscriptions as a test for this has shown 8 hours of time required for each subscription. can you please let us know the steps we have to follow to do a server switch.

    This is merge replication with push subscription.


    Regards,
    Roy


    0 0
  • 09/05/13--01:45: SQL Replication 2000 to 2012
  • Hi are there any successful cases ??

    0 0

    Hi,

    I have a transactional continuos replication, but some subscriptions are stopping with this error.

    First I thinked it was humam error, someone dropped rows at the subscriber, but it's not.

    It's happening every two days, more or less. 

    I'm thinking about change the delete stored procedure in subscriber to stop to generate errors when the record isn't found, but I'm not sure about the consequences.

    Any suggestions ?

    Thank you !


    Dennes - Se resolveu, classifique a mensagem, por favor - [http://www.bufaloinfo.com.br] NOVO DVD Segurança no ASP.NET : http://www.bufaloinfo.com.br/LearingSeriesSegurancaASPNET2.asp


    0 0

    Hi,

    Could any one help me out in the below thing?

    I have a data with ID's as primary key in database but now have to change the ID to GUID is it suggestable?

    what are the pros and cons of doing this?

    Thanks


    0 0

    We are trying the SQL Replication and the step need us to add account into SQLServer2005SQLAgentUser. However, I cannot find this group in my server although we have SQL Server Agent in our server. I am not sure whether any thing missing when we install SQL Server 2005. How can we add this group back to the server? What is this group doing for?

    Thanks


    0 0

    Hi-

    We have no problems replicating the snapshot data now to the subscriber - row counts are exact - distrib/publish(source) and subscriber(destination) appear to be the same in all tables.

    However - being a beginner and still learning replication...we've recreated the distrib/publisher DB's and subscribers multiple times taking up much time as we are not sure what options we have to speed up the process.

    We knwo we could backup a copy of our distrib/Publisher DB and then restore to the subscriber server and start replicating...but, would we be able to replicate (table, etc.) only changes from that full bkp copy without any issue/errors?

    We have not used validation yet but appreciate any advice.

    Thx for any help.

    -SP


    0 0

    Hi All,

    how can i change the default location of the repldata folder in sql server 2008r2?

    Thanks,



    rup


    0 0

    Hi All,

    I'm playing with a Peer to Peer configuration in SQL 2008 with the following setup Site A (Primary Site) has A Publisher, a remote distributor and multiple subscribers. Same setup at site B. The plan with this setup is to only update site A. I got it up and running, but now I want to test the loss of the primary site. Actually there are two scenarios that I want to test.

    1) The loss of the distributor.

    2) The loss of the Primary publisher.

    For Test Scenario 1 I was planning to stop the SQL Server Agent to simulate the loss of the distributor at site A. Is this a sufficient test?

    For Test 2 I was going to try to delete the Primary database and see if replication still works between the publisher and subscribers at Site B.

    Do these sound like viable tests or am I a moron :-)

    TIA

    Mike

    PS The reason I'm asking (rahter than just going ahead and try it) is because right now for some reason I when I right click on the SQL Agent Start, Stop, and Restart are greyed out and I don't have the access to RDP to the server to shut services down that way. I have to put arequest in to have the service stopped. LOL


    MikeG


    0 0

    Hi,

    I have 26 publishers with transactional replication to a central subscriber.

    All the distributor properties and publication properties in these publishers are the same.

    5 of these 26 publishers (publisher/distributor in the same server) have huge distribution log files (up to 100GB) and the log space used is over 90%, even using recovery model simple.

    I already tried to configure the distribution retention and the publication retention, already checked the cleanup jobs and even executed the cleanup procedures myself, but the % space used in the huge logs are still over 90%.

    I can understand a log retention in the publication database because the log reader agent needs to read the log and send the information to the distributor, but I can't understant this retention in the distributor database. As far I know, the information in the distributor database is inside the system tables, the cleanup jobs delete old information in these tables, but why I still have this problem in the distribution log and only 5 of 26 distributors with this problem ?

    How can I shrink the distribution log in this case ? The database is already in simple recovery model, I'm not understanding the log retention.

    Thank you !


    Dennes - Se resolveu, classifique a mensagem, por favor - [http://www.bufaloinfo.com.br] NOVO DVD Segurança no ASP.NET : http://www.bufaloinfo.com.br/LearingSeriesSegurancaASPNET2.asp


    0 0

    we have :
    sql server 2008 r2

    oracle 11g release  2

    we will like to do two way replication from sql server database to the Oracle Database ?? we are able to do one way replication ! how to do two way replication  (Bi-Directional replication)    


    0 0

    Hi,

    We use snapshot replication.

    In order to reduce the down time of the snapshot, we are replicating it with a temporary name and at the end of the replication we rename the table to the original name.

    The rename is done with the paramaneter  @post_snapshot_script of sp_addpublication

    because of security reasons I can't put any file on the SQLServer machine.

    Is there any other way to reduce the snapshot time without placing file on the SQLServer machine.



    Regards, Asi Pesa


    0 0

    We've merge replication configured in our environment(1 Publisher, 3 Subscribers) and We know by default merge replication is bi-directional. Its working fine in case of inserts i.e, if a row is inserted at publisher then it's getting updated at subscriber and vice versa. The real issue is, if row gets deleted at publisher then its getting deleted at subscriber but, if a row gets deleted in any of 3 subscribers then its not getting deleted at publisher.

    When a row is deleted at publisher then it's getting updated in MSmerge_tombstone(Publisher). But, in case of subscriber, the corresponding row(rowguid) is not getting updated in MSmerge_tombstone(Subscriber). I think that might be the issue, even merge delete trigger exist on these tables(Subscriber). Please help me out, as it is a production issue.

    Note: delete_tracking is enabled(set to '1')

    Publisher(2008R2 sp1-Enterprise), Subscribers(2008R2 sp1-Standard)


    0 0

    hello all,

    I am getting an error while I am trying to replicate data. below is the output from the error dmp.i am unable to figure out what is happening. any help would be highly appreciated. this error is off and on. Merge job is scheduled to run every 5 min. sometimes it is successful sometimes it is not.

     

    SQL server 2005 version with SP4.

    windows server 2003 enterprise edition

    ___________________________

    Below is the error from the sql server log

    Source  spid66

    Message
    Replication-agentclassname: agent eClaims-eClaimsDR_Merge-4 failed. The replication agent encountered a failure. See the previous job step history message or Replication Monitor for more information.  The step failed.

    Error: 14151, Severity: 18, State: 1.

    ___________________________

    below is the output of the file opened in windbg.

     

    Microsoft (R) Windows Debugger Version 6.12.0002.633 AMD64
    Copyright (c) Microsoft Corporation. All rights reserved.


    Loading Dump File [ReplAgent20130908161007_0.mdmp]
    User Mini Dump File: Only registers, stack and portions of memory are available

    WARNING: Inaccessible path: 'C:\Program Files\Microsoft SQL Server\MSSQL\Binn'
    Symbol search path is: srv*c:\debuggers\symbols*http://msdl.microsoft.com/download/symbols;C:\Program Files\Microsoft SQL Server\MSSQL\Binn
    Executable search path is:
    Windows Server 2003 Version 3790 (Service Pack 2) MP (4 procs) Free x86 compatible
    Product: Server, suite: Enterprise TerminalServer SingleUserTS
    Machine Name:
    Debug session time: Sun Sep  8 16:10:07.000 2013 (UTC + 4:00)
    System Uptime: not available
    Process Uptime: 0 days 0:00:07.000
    ................................................................
    ......
    Loading unloaded module list
    ......
    This dump file has an exception of interest stored in it.
    The stored exception information can be accessed via .ecxr.
    (bb4.980): Access violation - code c0000005 (first/second chance not available)
    eax=00000000 ebx=00000001 ecx=0390d8c4 edx=7c82845c esi=000003a4 edi=00000000
    eip=7c82845c esp=0390e2a0 ebp=0390e310 iopl=0         nv up ei ng nz ac pe cy
    cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000297
    ntdll!KiFastSystemCallRet:
    7c82845c c3              ret
    0:017> !analyse -v
    No export analyse found
    0:017> !analyze -v
    *******************************************************************************
    *                                                                             *
    *                        Exception Analysis                                   *
    *                                                                             *
    *******************************************************************************

    *** WARNING: Unable to verify timestamp for replmerg.exe
    Unable to load image C:\WINDOWS\system32\sqlncli.dll, Win32 error 0n2
    *** WARNING: Unable to verify timestamp for sqlncli.dll
    GetPageUrlData failed, server returned HTTP status 404
    URL requested:

    FAULTING_IP:
    replrec!CDatabaseReconciler::AddRetry+eed
    4e6a093d 8b420c          mov     eax,dword ptr [edx+0Ch]

    EXCEPTION_RECORD:  ffffffff -- (.exr 0xffffffffffffffff)
    ExceptionAddress: 4e6a093d (replrec!CDatabaseReconciler::AddRetry+0x00000eed)
       ExceptionCode: c0000005 (Access violation)
      ExceptionFlags: 00000000
    NumberParameters: 2
       Parameter[0]: 00000000
       Parameter[1]: 2030000c
    Attempt to read from address 2030000c

    DEFAULT_BUCKET_ID:  INVALID_POINTER_READ

    PROCESS_NAME:  replmerg.exe

    ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.

    EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.

    EXCEPTION_PARAMETER1:  00000000

    EXCEPTION_PARAMETER2:  2030000c

    READ_ADDRESS:  2030000c

    FOLLOWUP_IP:
    replrec!CDatabaseReconciler::AddRetry+eed
    4e6a093d 8b420c          mov     eax,dword ptr [edx+0Ch]

    MOD_LIST: <ANALYSIS/>

    NTGLOBALFLAG:  0

    FAULTING_THREAD:  00000980

    PRIMARY_PROBLEM_CLASS:  INVALID_POINTER_READ

    BUGCHECK_STR:  APPLICATION_FAULT_INVALID_POINTER_READ

    LAST_CONTROL_TRANSFER:  from 4ca208c7 to 4e6a093d

    STACK_TEXT: 
    0390f6d0 4ca208c7 0114b6b8 02111eec 029c6e74 replrec!CDatabaseReconciler::AddRetry+0xeed
    0390fcf0 4ca21c93 00000000 00000000 0390fd84 replprov!CMergeDatasource::CommitBatchInternal+0x3837
    0390fd00 4ca0ca01 02c41538 00000000 00000000 replprov!CMergeDatasource::CommitBatch+0x13
    0390fd84 4e6afcbb 02c41538 01b596b0 029c6e74 replprov!CMergeDatasource::InsertRow+0xe1
    0390fdc8 4e6ac183 02c41538 62cbab5b 02cf2db0 replrec!CReplRowChange::CopyRowFromSource+0x68b
    0390fdf4 4e6b3cc7 00000000 02c52a88 00000000 replrec!CCustomResolver::Reconcile+0xc3
    0390fea4 4e6784c8 02c52a88 0390fef8 0390ff28 replrec!CReplRowChange::Reconcile+0xde7
    0390fed4 4e69b131 0210ddf4 029c55b4 029ff6ec replrec!CDatabaseReconciler::DoArticleLoopDest+0x108
    0390ff44 4e69e3cd 00000000 02cbb668 00000000 replrec!CDatabaseReconciler::DestThreadProcessQueue+0x431
    0390ff78 781329bb 00000000 7dfd64d6 00000000 replrec!DestThreadProc+0xdd
    0390ffb0 78132a47 00000000 77e6481f 01b891b8 msvcr80!_endthreadex+0x3b
    0390ffb8 77e6481f 01b891b8 00000000 00000000 msvcr80!_endthreadex+0xc7
    0390ffec 00000000 781329e1 01b891b8 00000000 kernel32!BaseThreadStart+0x34


    SYMBOL_STACK_INDEX:  0

    SYMBOL_NAME:  replrec!CDatabaseReconciler::AddRetry+eed

    FOLLOWUP_NAME:  MachineOwner

    MODULE_NAME: replrec

    IMAGE_NAME:  replrec.dll

    DEBUG_FLR_IMAGE_TIMESTAMP:  4d027f6a

    STACK_COMMAND:  dt ntdll!LdrpLastDllInitializer BaseDllName ; dt ntdll!LdrpFailureData ; ~17s; .ecxr ; kb

    FAILURE_BUCKET_ID:  INVALID_POINTER_READ_c0000005_replrec.dll!CDatabaseReconciler::AddRetry

    BUCKET_ID:  APPLICATION_FAULT_INVALID_POINTER_READ_replrec!CDatabaseReconciler::AddRetry+eed

    WATSON_STAGEONE_URL: 

    Followup: MachineOwner
    ---------

     

    0:017> lmvm replrec
    start    end        module name
    4e650000 4e712000   replrec  T (pdb symbols)          c:\debuggers\symbols\replrec.pdb\FA32405ED24C4F6F966C1F15563420641\replrec.pdb
        Loaded symbol image file: replrec.dll
        Image path: C:\Program Files\Microsoft SQL Server\90\COM\replrec.dll
        Image name: replrec.dll
        Timestamp:        Fri Dec 10 23:28:42 2010 (4D027F6A)
        CheckSum:         000CF255
        ImageSize:        000C2000
        File version:     2005.90.5000.0
        Product version:  9.0.5000.0
        File flags:       0 (Mask 3F)
        File OS:          40000 NT Base
        File type:        2.0 Dll
        File date:        00000000.00000000
        Translations:     0000.04b0 0000.04e4 0409.04b0 0409.04e4

    thanks.


    0 0

    Hello,

    We received the following error on a subscribers agent

    "The Merge Agent failed after detecting that retention-based metadata cleanup has deleted metadata at the Subscriber for changes not yet sent to the Publisher. You must reinitialize the subscription (without upload)."

    On the support site it mentioned we might be able to fix this problem without a complete reinitialization. Does anyone know how to fix this? I can't find any documentation how to execute a partial initialization.

    The subscriber has a high latency connection to the publisher and a complete initialization might take a few days which we need to avoid if all possible.

    Thanks for the help!

    Jeremy


    0 0
  • 09/09/13--14:07: immediate_sync_ready flag
  • Hi,

    Can anyone tell me what the publication setting immediate_sync_ready does?  I tried finding information about it but all I found were some unexplained references to  it and much more information on immediate_sync and allow_anonymous.  Thanks!


older | 1 | .... | 64 | 65 | (Page 66) | 67 | 68 | .... | 181 | newer