<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: switch to MSA subscription in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaa-p/12576878#M4716205</link>
    <description>&lt;P&gt;MSA replication (aka whole database repdef subscription replication) is a different thing from warm standby replication.&lt;/P&gt;&lt;P&gt;First you need to setup warm standby replication with a logical connection, active (primary) ASE server and a standby ASE server.  For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[100] TEST_RS.-12:27:41-1&amp;gt; admin logical_status; -mvert
Logical Connection Name:        [102] LOGICAL_CONN.test_db
Active Connection Name:         [104] PRIMARYASE.test_db
Active Conn State:              Active/
Standby Connection Name:        [105] STANDBYASE.test_db
Standby Conn State:             Active/
Controller RS :                 [16777317] TEST_RS&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then setup a &lt;A href="http://help.sap.com/docs/SAP_REPLICATION_SERVER/075940003f1549159206fcc89d020515/fe6f1b8abd1c1014b53996e822dcb17b.html?q=create%20database%20replication%20definition"&gt;database replication definition&lt;/A&gt; specifying "with primary at LOGICAL_CONN.test_db"&lt;/P&gt;&lt;P&gt;Then setup a &lt;A href="https://help.sap.com/docs/SAP_REPLICATION_SERVER/075940003f1549159206fcc89d020515/fe716bc9bd1c10148e90a9b932cfe5f1.html?q=create%20subscription"&gt;MSA database subscription&lt;/A&gt;.  This works if the MSA subscription replicate is already setup and in sync with the primary and the primary is quiesced (no data or schema changes)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;create subscription SUB_REPLICATE_ASE_test_db&lt;BR /&gt;for database replication definition test_db_repdef with primary at LOGICAL_CONN.test_db&lt;BR /&gt;with replicate at SUB_REPLICATE_ASE.test_db&lt;BR /&gt;without materialization  -- only if the MSA replicate db is already loaded and primary is quiesced &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you want to setup the MSA subscription replicate using a dump from the primary, without having to quiesce the primary, you'll have to use &lt;A href="https://help.sap.com/docs/SAP_REPLICATION_SERVER/075940003f1549159206fcc89d020515/fe71c494bd1c1014b1dec65facb565eb.html?q=define%20subscription"&gt;define subscription&lt;/A&gt; with the "use dump marker" option.  Make sure there are no triggers in the new MSA replicate db accidentally copied from the primary.  Also remember to disable warm standby secondary truncation point options in the loaded-from-primary MSA replicate (use sp_config_rep_agent with the "disable" option)&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 16:50:13 GMT</pubDate>
    <dc:creator>sladebe</dc:creator>
    <dc:date>2022-09-06T16:50:13Z</dc:date>
    <item>
      <title>switch to MSA subscription</title>
      <link>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaq-p/12576877</link>
      <description>&lt;P&gt;Dears, &lt;/P&gt;
  &lt;P&gt;what are the steps should we do to switch over our active database in MSA replication, we set MSA replication between active database (replication definition) and a standby database (replication subscription) , but we didn't found tutorials to help us how to make that subscription the new active database, if this is the case, should we drop MSA replication and keep only one active database or we cane switch role between definition and subscription as we do by using active switch command in WS pair?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 11:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaq-p/12576877</guid>
      <dc:creator>suznCB</dc:creator>
      <dc:date>2022-09-04T11:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: switch to MSA subscription</title>
      <link>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaa-p/12576878#M4716205</link>
      <description>&lt;P&gt;MSA replication (aka whole database repdef subscription replication) is a different thing from warm standby replication.&lt;/P&gt;&lt;P&gt;First you need to setup warm standby replication with a logical connection, active (primary) ASE server and a standby ASE server.  For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[100] TEST_RS.-12:27:41-1&amp;gt; admin logical_status; -mvert
Logical Connection Name:        [102] LOGICAL_CONN.test_db
Active Connection Name:         [104] PRIMARYASE.test_db
Active Conn State:              Active/
Standby Connection Name:        [105] STANDBYASE.test_db
Standby Conn State:             Active/
Controller RS :                 [16777317] TEST_RS&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then setup a &lt;A href="http://help.sap.com/docs/SAP_REPLICATION_SERVER/075940003f1549159206fcc89d020515/fe6f1b8abd1c1014b53996e822dcb17b.html?q=create%20database%20replication%20definition"&gt;database replication definition&lt;/A&gt; specifying "with primary at LOGICAL_CONN.test_db"&lt;/P&gt;&lt;P&gt;Then setup a &lt;A href="https://help.sap.com/docs/SAP_REPLICATION_SERVER/075940003f1549159206fcc89d020515/fe716bc9bd1c10148e90a9b932cfe5f1.html?q=create%20subscription"&gt;MSA database subscription&lt;/A&gt;.  This works if the MSA subscription replicate is already setup and in sync with the primary and the primary is quiesced (no data or schema changes)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;create subscription SUB_REPLICATE_ASE_test_db&lt;BR /&gt;for database replication definition test_db_repdef with primary at LOGICAL_CONN.test_db&lt;BR /&gt;with replicate at SUB_REPLICATE_ASE.test_db&lt;BR /&gt;without materialization  -- only if the MSA replicate db is already loaded and primary is quiesced &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you want to setup the MSA subscription replicate using a dump from the primary, without having to quiesce the primary, you'll have to use &lt;A href="https://help.sap.com/docs/SAP_REPLICATION_SERVER/075940003f1549159206fcc89d020515/fe71c494bd1c1014b1dec65facb565eb.html?q=define%20subscription"&gt;define subscription&lt;/A&gt; with the "use dump marker" option.  Make sure there are no triggers in the new MSA replicate db accidentally copied from the primary.  Also remember to disable warm standby secondary truncation point options in the loaded-from-primary MSA replicate (use sp_config_rep_agent with the "disable" option)&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 16:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaa-p/12576878#M4716205</guid>
      <dc:creator>sladebe</dc:creator>
      <dc:date>2022-09-06T16:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: switch to MSA subscription</title>
      <link>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaa-p/12576879#M4716206</link>
      <description>&lt;P&gt;thanks for replying&lt;/P&gt;&lt;P&gt;so, in the scenario above, how to switch the primary database to SUB_REPLICATE_ASE.test_db?  and connect the clients to it?&lt;/P&gt;&lt;P&gt; let's say that WS pair (PRIMRYASE.test_db, STANDBYASE.test_db) in the same location, and some disaster is occurred, so we want to move the work to the SUB_REPLICATE_ASE.test_db which is in a far location.&lt;/P&gt;&lt;P&gt;in another scenario:&lt;/P&gt;&lt;P&gt;if PRIMRYASE.test_db is down, and we switch to STANDBYASE.test_db, and broke the WS pair,&lt;/P&gt;&lt;P&gt; here we should re-setup the subscription as &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;create subscription SUB_REPLICATE_ASE_test_db&lt;BR /&gt;for database replication definition test_db_repdef with primary at &lt;STRONG&gt;STANDBYASE&lt;/STRONG&gt;&lt;STRONG&gt;.test_db&lt;/STRONG&gt;&lt;BR /&gt;with replicate at SUB_REPLICATE_ASE.test_db&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;here, we want to test the switch work from STANDBYASE.test_db (which is the only active database) to a SUB_REPLICATE_ASE.test_db  (this case will be required when STANDBYASE.test_db is down )&lt;/P&gt;&lt;P&gt;so, what are the steps here to do this switching?&lt;/P&gt;&lt;P&gt;in both scenarios,should we drop MSA replication and connect clients to SUB_REPLICATE_ASE.test_db ?? &lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 07:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaa-p/12576879#M4716206</guid>
      <dc:creator>suznCB</dc:creator>
      <dc:date>2022-09-07T07:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: switch to MSA subscription</title>
      <link>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaa-p/12576880#M4716207</link>
      <description>&lt;P&gt;Re: let's say that WS pair (PRIMRYASE.test_db, STANDBYASE.test_db) in the same location, and some disaster is occurred, so we want to move the work to the SUB_REPLICATE_ASE.test_db which is in a far location.&lt;/P&gt;&lt;P&gt;Basically, you would then have to re-setup replication from the beginning with SUB_REPLICATE_ASE.test_db as the new primary (err.. "active").  Remember that you can setup the new warm standby via dump load without quiescing the new primary if you use the dump marker.   Also, you can setup the new subscription replicate (where ever that might be) using define subscription and the dump marker without quiescing the new primary.&lt;/P&gt;&lt;P&gt;Re: if PRIMRYASE.test_db is down, and we switch to STANDBYASE.test_db, and broke the WS pair,&lt;/P&gt;&lt;P&gt;If PRIMRYASE.test_db goes down and you run "switch active" to make STANDBYASE.test_db the new primary/active, you can then drop the (now standby) PRIMRYASE.test_db connection.   You'll have a warm standby logical connection without an actual warm standby ASE server (that's allowed).  If your MSA whole database repdef/subscription was setup to use the logical connection as the source (LOGICAL_CONN.test_db), it won't care.  It will just keep replicating off the logical connection.  You don't have to re-setup the MSA subscription.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 15:48:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaa-p/12576880#M4716207</guid>
      <dc:creator>sladebe</dc:creator>
      <dc:date>2022-09-07T15:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: switch to MSA subscription</title>
      <link>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaa-p/12576881#M4716208</link>
      <description>&lt;P&gt;Thanks for help&lt;/P&gt;&lt;P&gt;Re: Basically, you would then have to re-setup replication from the beginning with SUB_REPLICATE_ASE.test_db as the new primary&lt;/P&gt;&lt;P&gt;

&lt;/P&gt;&lt;P&gt;actually  here we will
face one of two cases:&lt;/P&gt;

&lt;P&gt;the first one is to re-setup the MSA as:  &lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;create  replication definition  repdef   with primary at SUB_REPLICATE_ASE.test_db&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but &lt;STRONG&gt;how define subscription with replicate at that logical
connection&lt;/STRONG&gt;? Is it possible?&lt;/P&gt;&lt;P&gt;The second case, when a disaster is occurred in the first location
where WS pair is, we will move to SUB_REPLICATE_ASE.test_db which will be the
only database that we have, here at the replication server , we should drop the
subscription that is replicated to SUB_REPLICATE_ASE.test_db, and drop the
physical connection to it, and connect clients to the SUB_REPLICATE_ASE.test_db,
&lt;/P&gt;

&lt;P&gt; &lt;/P&gt;

&lt;P&gt;Then we can plan to rebuild our replication system as fail back procedure, do I miss something in those scenarios?&lt;/P&gt;&lt;P&gt;Re: You'll have a warm standby logical connection without an actual warm standby ASE server (that's allowed)...&lt;/P&gt;&lt;P&gt;but after a while the Replication server stable queues will be full and the size of active database transaction log will be increased because of truncation point, here we need to drop the whole WS, drop connections to both standby and active databases, also drop logical connection, and as a result we will have just one active database STANDBYASE.test_db which is not belong to any replication system, Here we want to re-setup a new MSA between it and the SUB_REPLICATE_ASE.test_db in far location.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 06:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaa-p/12576881#M4716208</guid>
      <dc:creator>suznCB</dc:creator>
      <dc:date>2022-09-08T06:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: switch to MSA subscription</title>
      <link>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaa-p/12576882#M4716209</link>
      <description>&lt;P&gt;"the first one is to re-setup the MSA as:&lt;BR /&gt;create  replication definition  repdef   with primary at SUB_REPLICATE_ASE.test_db"&lt;/P&gt;&lt;P&gt;I'm not sure I understand what you're trying to do.&lt;/P&gt;&lt;P&gt;You have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Warm standby logical connection LOGICAL_CONN.test_db&lt;/LI&gt;&lt;LI&gt;For that warm standby logical connection you have PRIMARYASE.test_db as the primary/active and STANDBYASE.test_db as the warm standby&lt;/LI&gt;&lt;LI&gt;You have the database replication definition test_db_repdef with primary at LOGICAL_CONN.test_db&lt;/LI&gt;&lt;LI&gt;You have the subscription SUB_REPLICATE_ASE_test_db replicating from LOGICAL_CONN.test_db to SUB_REPLICATE_ASE.test_db&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Are you trying to make SUB_REPLICATE_ASE.test_db the new active/primary?  Which server would then be the new warm standby and which server would be the new subscription replicate?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 13:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/switch-to-msa-subscription/qaa-p/12576882#M4716209</guid>
      <dc:creator>sladebe</dc:creator>
      <dc:date>2022-09-28T13:49:32Z</dc:date>
    </item>
  </channel>
</rss>

