Can create 52 publication, but creating 53rd leads to problems

Hello,
My apologies in advance for a long post, but I was really trying to make sure I do my due diligence before turning to the community for help, so here it goes.
I am working on a proof of concept with the purpose of using transactional replication to maintain a "reporting" copy of our databases. 
The setup will include a "Publisher" server and a separate "Subscriber" server.  The replication will be a "Pull" transactional replication with a distributor running on the Subscriber server. Once again: Publisher =>
pull => (Distributor + Subscriber)
We expect to have a lot of databases on each of our servers, so, in order to mimic this scenario, I restored 100 databases (about 1 GB each) on
the publisher.  All of the databases are identical.
I wrote a script, which enables me to setup replication in an automated fashion (since obviously I don't want to do it manually dozens of times). 
The script performs the following steps:
1. Enable replication for a database (if not enabled already):
2. Create logreader agent for a database
3. Create publication for a database (if doesn't exist)
4. Create snapshot agent for a database (don't run it yet)
5. Add articles to the publication
6. Run snapshot agent job (and wait for it to finish)
7. Create subscription database (if it doesn't exist)
8. Add subscription in the subscription database (if it doesn't exist)
9. Create distribution agent
I am able to successfully setup replication for about 52 of my databases and everything is running fine. 
When I get to #53 things start to go wrong.  The snapshot creation is successful, but the logreader and the distribution agents fail.  Moving on to #54 everything is now completely broken.  The snapshot does not get created and none of the agents
are running.  I have carefully reviewed replication monitor and SQL Agent jobs looking for error messages, but didn't find anything helpful.  The replication monitor simply says: "Agent Shutdown. 
For more information see the SQL Server Agent job history for job ‘….correct job name here…’". 
In the details it says: "The replication agent encountered a failure. 
See the previous job step history message or Replication Monitor for more information". 
Next I go to the SQL Agent Jobs and review the output. 
In the job history the failed step says: "Message : The replication agent encountered a failure. See the previous job step history message or Replication Monitor for more information".
 In turn, the previous step has no info at all. 
Just the word “Message” with nothing after that.  I have also reviewed the windows application log for any errors, but it simply repeats the same messages I see in the replication monitor and agent job history. 
I added “–output” parameter to the agent command (in the job step properties) hoping that the output file would provide me with more information, but no output file gets created, which leads me to believe that the agents don’t even start.
I was thinking that I might have hit some hardware limit, so I checked the disk space and there is plenty of it available.  I have also checked RAM and it's not even 50%
used.
Finally, what really gets me is that I am able to run all of the agents manually from the command line. 
For example, I can copy paste parameters from the SQL Agent snapshot job and run snapshot.exe from the command line with these parameters – the snapshot gets created successfully. 
The same goes for logreader and distribution agents.
I am completely confused here and appreciate any pointers in the right direction.
Final note (and maybe the only silver lining): The problem is fully re-producible. 
I can successfully setup my 50+ subscription and then the issues will always start around subscription number 52-53.
Thank you!

Answering my own question here.  The solution was given to me by Brandon Williams of http://www.sqlrepl.com.  I was hitting a Windows limitation related to the use of "desktop heap".  The problem is described here: http://support.microsoft.com/kb/949296
and the work-around is given here: support.microsoft.com/kb/824422. 
Note that while the KB articles refers to WindowsNT and SQL Server 7.0/2000, it certainly applies to the latest versions as well. In my case I am running Windows 2008R2 Server and SQL Server 2012

Similar Messages

  • How can I pass value in status and reason for rejection using BAPI_LEAD_CREATEMULTI when creating multiple lead

    Hello,
    I want pass value in STATUS and Reason for rejection according to requirement when i am creating multiple lead using BAPI_LEAD_CREATEMULTI. Please help me how can i pass value. Please give some sample code that in which table i have to pass values and please also tell me INPUT_FIELDS values. Please help me
    Regards,
    Kshitij Rathore

    Hello,
    Please help me for solve this problem. I am trying to solve problem from last 4 days but i didn't get any solution.
    Regards,
    Kshitij Rathore

  • I created my Apple ID in Ireland, but would now like to switch to a German Apple ID, keeping the same email address. How do I delete my old Irish Apple ID, so I can create a new German one with the same email?

    I created my Apple ID in Ireland, but would now like to switch to a German Apple ID, keeping the same email address. How do I delete my old Irish Apple ID, so I can create a new German one with the same email?

    Welcome to the Apple Community.
    Click on your account name in the top right corner of the iTunes store in the iTunes application on your computer, enter your password and click the "view account" button. Navigate to the Apple ID summary where you have the option to "change country or region".
    In order to change your location, you will need a credit card registered to an address in the location you are trying to change to.
    You cannot change your location if you have credit on your account, if you are unable to spend your credit and leave a balance of zero, contact Apple, which you can do through iTunes Store Support.

  • When I updated to iOS 8.3 I lost all shared photo albums on my iPad Air. Other devises which I shared to still have access to photo albums but my iPad does not, therefore I can no longer add or delete to shared albums. I can create new shared albums.

    When I updated to iOS 8.3 I lost all shared photo albums on my iPad Air. Other devises which I shared to still have access to photo albums but my iPad does not, therefore I can no longer add or delete to shared albums. I can create new shared albums.

    Hello JimS19,
    I'm sorry to hear you are having these issues with your iPad. If you are having issues accessing your Shared Albums from your iPad (but not from your other devices), you may want to double-check your iCloud Photo Sharing configuration as outlined in the following articles, just to make sure it hasn't changed:
    iCloud Photo Sharing FAQ - Apple Support
    Get help using iCloud Photo Sharing and shared albums - Apple Support
    Sincerely,
    - Brenden

  • HT201269 My iphone contacts are not updating to Icloud, I can create a contact in Icloud and it will update to my phone but I cannot create a contact on my phone to have it update in the cloud, I am using Itunes as the bridge

    My iphone contacts are not updating to Icloud or Outlook, I can create a contact in Icloud/Outlook and it will update to my Iphone but I cannot create a contact on my Iphone to have it update in the Cloud/Outlook, I am using Itunes as the bridge. I originally installed the Icloud manager to sync my contacts to Cloud/Outlook, but I did not like the functionality, when I uninstalled the Cloud manager and and installed Itunes I noticed that the none of my contacts in the phone updated to Outlook.
    Thanks in advance.

    Hi Cyclops12,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    iCloud: Troubleshooting iCloud Contacts
    http://support.apple.com/kb/ts3998
    Cheers,
    - Judy

  • Since I upgraded to iTunes 11.01 the "Smart" playlists feature no longer works.  I can CREATE the list but, the songs that I have played don't accumulate in the list.  I haven't changed the steps that worked for me previous to the upgrade.  I have no idea

    Since I upgraded to iTunes 11.01 the "Smart" playlists feature no longer works.
    I can CREATE the list but, the songs that I have played don't accumulate in the list.
    I haven't changed the steps that worked for me previous to the upgrade.
    I have no idea how to fix this and can't find mention of anyone else having a similar problem.
    Any suggestions?

    Click on a station and drag to the left. The playlists sidebar will open up. Drop on the playlist you want to add to.
    tt2

  • I try to create my Account ID....and i don't understand why i have to put payment? before my friend create Account ID don't have to put payment they still can create account ID... and now i buy iphone but i don't have credit card that mind i can't not do

    Dear
    I try to create my Account ID....and i don't understand why i have to put payment? before my friend create Account ID don't have to put payment they still can create account ID... and now i buy iphone but i don't have credit card that mind i can't not do it

    Hi,
    This Link explains how to Set Up an Account ID...  without a credit card...
    http://support.apple.com/kb/HT2534
    Hope it helps,
    Cheers,

  • My itunes cannot be update on my windows xp. so i delete my itunes and install new, but now i got new problems, it says "The file itune.library.itl cannot be read because it was created by newer version of itunes." so how can it be solved?

    my itunes cannot be update on my windows xp. so i delete my itunes and install new, but now i got new problems, it says "The file itune.library.itl cannot be read because it was created by newer version of itunes." so how can it be solved?

    Hello Bebyida,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    http://www.apple.com/itunes/download/
    Best of luck,
    Mario

  • I can create an action but the droplet doesn't do anything when I drop a file on it.  I am running Adobe Photoshop CC 2014 on a 64bit Windows7 PC.

    I can create an action but the droplet doesn't do anything when I drop a file on it.  I am running Adobe Photoshop CC 2014 on a 64 bit Windows7 PC.  I exactly followed the steps on a youtube video on how to create an action and how to create a droplet.

    Thanks for the reply, I tried that but i wasn't able to get it to work. I also tried to see if l could using the
    function functionName()
    and I was still unable to.
    Silkrooster wrote:
    I haven't tried it yet, so i could be way off. But since you assigned it to a variable I would say it won't do anything until to call that variable. I would assume there must be a show command or similar that is needed for it to display.
    My experience is with actionscript and javascript but still I lean towards basic. I don't feel comfortable enough to say I am any higher yet as more experience is needed in my opinion.
    So feel free to take my advice with a grain of salt.

  • Itunes will not launch, it shows  message of "itunes library .itl" can not be read because it was created by a newer version of itunes. I tried opene it in save mode but I had the same problem.

    Itunes will not launch, it shows  message of "itunes library .itl" can not be read because it was created by a newer version of itunes. I tried opene it in save mode but I had the same problem.

    If you still have an issue you may have to see about using the iTunes version (application) included with Snow Leopard 10.6 from the installer or an another one if available online, and see if that will install.
    Sometimes you may have uninstall the bits left in your system by the earlier (or later) iTunes installers; as they all leave a trace and these can stop a different version of iTunes from being installed.
    Not sure if the following site/link will tell the method...
    •Apple - Support - iTunes - install & update:
    http://www.apple.com/support/itunes/install/
    •Troubleshooting iTunes installation on Mac OS X:
    http://support.apple.com/kb/HT2311
    Good luck & happy computing!
    ps: i see you resolved this issue. it's magic!

  • I can create a bookmark but when I tap on it the website does not appear only a blank page with horizontal lines

    I can create a bookmark and it appears as favourite but when I tap to open only a blank page appears with horizontal lines

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".
    :[[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Studio 2 can create/see remote servers but not in remote deployment

    In Sun Studio Creator 2, I can create and see my remote servers but when I try to remote deploy my web app from "Deploy to Remote Server", my remote servers do not show up on the list (Only Add Remote Server is there).
    On my laptop with the same version of SSC, this is not a problem (I can see the remote servers in the deployment list) so I suspect that the problem is just on my desktop machine. The remote server settings are the same on both machines.
    I have tried reinstalling SSC with no success. If anyone has run into this or have any suggestions on how to fix this, I would appreciate it.
    -Rick

    Further update looking through the Creator log I found that I was getting the following error message below. Would a 503 error indicate an out of resource condition in my Sun Web Server?
    java.io.IOException: Server returned HTTP response code: 503 for URL: http://myserver:8888/https-admserv/bin/status
    at sun.reflect.GeneratedConstructorAccessor131.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1202)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1196)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:885)
    at org.netbeans.modules.j2ee.sun.ws61.ManagerImpl.syncRun(ManagerImpl.java:1509)
    at org.netbeans.modules.j2ee.sun.ws61.ManagerImpl.getTargets(ManagerImpl.java:198)
    at org.netbeans.modules.j2ee.sun.ws61.SunWebDeploymentManager.getTargets(SunWebDeploymentManager.java:274)
    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargetMap(ServerInstance.java:398)
    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargets(ServerInstance.java:356)
    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.initCoTarget(ServerInstance.java:1277)
    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.refresh(ServerInstance.java:293)
    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.isRunningWithinMillis(ServerInstance.java:494)
    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.isRunning(ServerInstance.java:484)
    at org.netbeans.modules.j2ee.deployment.impl.ui.InstanceNode$2.run(InstanceNode.java:86)
    at org.openide.util.Task.run(Task.java:189)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)
    Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://myserver:8888/https-admserv/bin/status
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1149)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
    at org.netbeans.modules.j2ee.sun.ws61.ManagerImpl.syncRun(ManagerImpl.java:1492)

  • HT1904 how i can create apple ID. i tried my best but get failed, bec it asking for Payment method again and again

    how i can create apple ID. i tried my best but get failed, bec it asking for Payment method again and again

    If you don't want to give payment details then there are instructions on this page for how to create one (the instructions don't work for existing accounts) : http://support.apple.com/kb/HT2534 i.e. select a free app in the store and click on 'Create Apple ID' when 'buying' it

  • I can create material using inbound Idoc of type MATMAS01, but not MATMAS05

    I can create material using inbound Idoc of type MATMAS01 in WE19, but MATMAS05 failed. In fact I used same data ( different material number), and same inbound function, but got different result.
    What is different between MATMAS01 and MATMAS05? Is there some configuation need for MATMAS05?
    My system is ECC5.0. Thanks.

    Hi, nagaraj
    this is inbound IDoc, not outbound IDoc, so we can't assign Basic type in WE20, only can assign Message type.
    In WE82, there are 5 records about Messagetype MATMAS:
         Message type   Basic type     Release
          MATMAS         MATMAS01        30A
          MATMAS         MATMAS02        30D
          MATMAS         MATMAS03        40A
          MATMAS         MATMAS04        46C
          MATMAS         MATMAS05        470
       I think it should be ok.
    In WE57, there 2 records are exist:
       FM_name                 BasicType       MessageType
      IDOC_INPUT_MATMAS01       MATMAS01         MATMAS
      IDOC_INPUT_MATMAS01       MATMAS05         MATMAS
    so I think all configurations should be ok.
    Message was edited by:
            liu bin

  • Can create view, but cannot create table / materialized view: Xpath is null

    Hi all,
    We recently moved some XML documents into the database in an XMLType column and want to query the data. I've been writing some queries and turning them into materialized views. I got to one query, and something really strange is happening. My query returns the expected results, but I am getting an error when I try to create a materialized view out of it. Even stranger, I can create a view out of it, and I can manually insert its data into an existing table, but I cannot create a materialized view out of it and I cannot create a table out of it. Here is a brief summary, please let me know if anyone has suggestions.
    Issuing the following commands fails in SQLDeveloper
    -- Creating a materialized view out of the query fails:
    create materialized view element REFRESH COMPLETE ON DEMAND as [query];
    Error at Command Line:1 Column:1 SQL Error: ORA-31063: XPath compilation failed: Xpath is null.
    -- Creating a table out of the query with the following shortcut fails:
    create table element as [query];
    Error at Command Line:1 Column:1 SQL Error: ORA-31063: XPath compilation failed: Xpath is null.
    Issuing the following commands in SQLDeveloper works fine:
    -- Creating a view out of the query works:
    create or replace view element as [query];
    -- Creating a blank table from the query and then inserting data works:
    create table element as select * from [query] where 1 = 2;
    insert into element select * from [query];
    Here is a simplified version of the query...
    I have changed the names around, and cut the query down so maybe it will be a little easier to understand. I did confirm that this query is also having the same symptoms described above. Since I changed the names, executing the query returns no results. However creating a materialized view out of the query still fails with the 'Xpath is null' error.
    create materialized view element REFRESH COMPLETE ON DEMAND as
    select
    m.resource_id,
    xml.*
    from metadata_sources m,
    xmltable(
    'for $i in /metadata/app//*[(self::elem1 or self::elem2) and (parent::form or parent::subform)]
    let $formName := if($i/parent::subform) then $i/../../@name else $i/../@name
    let $subformName := if($i/parent::subform) then $i/../@name else ""
    return <data
    appId="{$i/ancestor::app[1]/idField}"
    formName="{$formName}"
    subformName="{$subformName}"
    elemName="{$i/@name}"></data>' passing m.xml_content
    columns
    app_id NUMBER path '@appId',
    form_name VARCHAR2(50 char) path '@formName',
    subform_name VARCHAR2(50 char) path '@subformName',
    elem_name VARCHAR2(50 char) path '@elemName'
    ) xml;
    Edited by: user11949534 on Feb 22, 2013 1:55 PM

    As far as creating a structured index, I was under the impression that I would need to then register an XSD. No, you can use it without an XML schema.
    How about a regular relational view, with an underlying xml index?
    That way you also eliminate the need for an explicit refresh step as you would then be querying real-time data, as if it were relational data.
    For example :
    Connected to:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    SQL> create table tmp_xml of xmltype ;
    Table created.
    SQL> insert into tmp_xml values (
      2    xmlparse(document '<root><item id="1">ABC</item><item id="2">DEF</item></root>')
      3  ) ;
    1 row created.
    SQL> insert into tmp_xml values (
      2    xmlparse(document '<root><item id="3">GHI</item><item id="4">JKL</item></root>')
      3  ) ;
    1 row created.
    SQL> create or replace view tmp_xml_v as
      2  select x.item_id, x.item_val
      3  from tmp_xml
      4     , xmltable(
      5         '/root/item' passing object_value
      6         columns item_id  number      path '@id'
      7               , item_val varchar2(3) path '.'
      8       ) x
      9  ;
    View created.
    SQL> create index tmp_xml_sxi on tmp_xml (object_value)
      2  indextype is xdb.xmlindex
      3  parameters (q'#
      4  XMLTABLE tmp_xml_xtb '/root/item'
      5  COLUMNS item_id  number      path '@id'
      6        , item_val varchar2(3) path '.' #'
      7  ) ;
    Index created.
    SQL> exec dbms_stats.gather_table_stats(user, 'TMP_XML');
    PL/SQL procedure successfully completed.
    SQL> set autotrace on explain
    SQL> set lines 200
    SQL> select * from tmp_xml_v ;
       ITEM_ID ITE
             3 GHI
             4 JKL
             1 ABC
             2 DEF
    Execution Plan
    Plan hash value: 4168126828
    | Id  | Operation                    | Name                   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |                        |     4 |   164 |     3   (0)| 00:00:01 |
    |   1 |  NESTED LOOPS                |                        |       |       |            |          |
    |   2 |   NESTED LOOPS               |                        |     4 |   164 |     3   (0)| 00:00:01 |
    |   3 |    INDEX FULL SCAN           | SYS_C009273            |     2 |    34 |     1   (0)| 00:00:01 |
    |*  4 |    INDEX RANGE SCAN          | SYS30366_30367_OID_IDX |     2 |       |     0   (0)| 00:00:01 |
    |   5 |   TABLE ACCESS BY INDEX ROWID| TMP_XML_XTB            |     2 |    48 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       4 - access("TMP_XML"."SYS_NC_OID$"="SYS_SXI_0"."OID")

Maybe you are looking for