<?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>topic Re: How do I change the default schema for the attrep_changes files? in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/How-do-I-change-the-default-schema-for-the-attrep-changes-files/m-p/2046267#M5248</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/152845"&gt;@iPipeline&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also,&amp;nbsp; for controlling the Replicate special Tables, you can go to Task settings, Metadata, and then Control Tables. There is a field there that allows you to put a Schema name&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Create target control tables in the schema:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you put something in there,&amp;nbsp; it will force a Schema name in the name. For example:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I typed in BARB&amp;nbsp; and in my DB2 z/OS task it created the&amp;nbsp; attrep_changes ( and my attrep_apply_exceptions tables) as the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; 2023-03-07T09:57:51:604305 [TARGET_APPLY ]T: Create table statement: CREATE TABLE [BARB].[attrep_changes14426005A56DB539] ( [seq] INT NOT NULL, [col1] NVARCHAR(260), [col2] NVARCHAR(128), [col3] NVARCHAR(40), [col4] NVARCHAR(37), [col5] NVARCHAR(35), [col6] NVARCHAR(32), [col7] NVARCHAR(25), [col8] NVARCHAR(20), [col9] NVARCHAR(20), [col10] NVARCHAR(20), [col11] NVARCHAR(20), [col12] NVARCHAR(20), [col13] NVARCHAR(20), [col14] NVARCHAR(20), [seg1] NVARCHAR(35), [seg2] NVARCHAR(20) ) (provider_syntax_manager.c:1774)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and eventually, my changes came across from the BARB.attrep_changes.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[TARGET_APPLY ]V: Execute: 'INSERT INTO [BARBARA].[CUSTOMER__ct] ([BARBHDR__change_mask],[BARBHDR__stream_position],[ADDRESS],[BARBHDR__timestamp],[BARBHDR__change_seq],[BARBHDR__transaction_id],[NAME],[PHONE],[BARBHDR__operation],[CUSTKEY],[NATIONKEY],[BARB],[JEFF],[BARBHDR__change_oper]) SELECT CONVERT ( varbinary(128) , [BARB].[attrep_changes14426005A56DB539].[col1] , 1 ) , CAST ( [BARB].[attrep_changes14426005A56DB539].[col2] as varchar(128)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col3] as varchar(40)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col4] as datetime2(6)) , CAST ( [BARB].[attrep_changes14426005A56DB539].[col5] as varchar(35)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col6] as varchar(32)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col7] as varchar(25)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col8] as varchar(15)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col9] as varchar(12)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col10] as int) , CAST ( [BARB].[attrep_changes14426005A56DB539].[col11] as int) , CAST ( [BARB].[attrep_changes14426005A56DB539].[col12] as varchar(4)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col13] as varchar(2)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col14] as varchar(1)) COLLATE SQL_Latin1_General_CP1_CI_AS FROM [BARB].[attrep_changes14426005A56DB539] WHERE [BARB].[attrep_changes14426005A56DB539].[seq] &amp;gt;= ? and [BARB].[attrep_changes14426005A56DB539].[seq] &amp;lt;= ?' (ar_odbc_stmt.c:2729)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps and please feel free to try it out.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Barb&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 15:07:20 GMT</pubDate>
    <dc:creator>Barb_Fill21</dc:creator>
    <dc:date>2023-03-07T15:07:20Z</dc:date>
    <item>
      <title>How do I change the default schema for the attrep_changes files?</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-do-I-change-the-default-schema-for-the-attrep-changes-files/m-p/2045341#M5219</link>
      <description>&lt;P&gt;I would like to move the attrep_changes files out of the schema where the data is stored.&amp;nbsp; Where do I make this change?&amp;nbsp; Can I make the change in one place and have it affect all of the many tasks at the same time?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 16:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-do-I-change-the-default-schema-for-the-attrep-changes-files/m-p/2045341#M5219</guid>
      <dc:creator>iPipeline</dc:creator>
      <dc:date>2023-03-04T16:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the default schema for the attrep_changes files?</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-do-I-change-the-default-schema-for-the-attrep-changes-files/m-p/2045360#M5222</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/152845"&gt;@iPipeline&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out.&lt;/P&gt;
&lt;P&gt;If a task's "Change Processing Mode" set to "&lt;SPAN&gt;Batch optimized apply", Replicate utilize Net Change Tables if possible (tables name looks like "attrep_changes&lt;EM&gt;25A4554C056FC322&lt;/EM&gt;") during CDC apply stage, it used to improve the apply performance. In general its schema is as same as the target table schema to avoid spanning out of target DBs which may lead extra cost.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Would you please let us know&amp;nbsp;what's the target DB type and the reason? We'd love to look deeper into it for you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 02:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-do-I-change-the-default-schema-for-the-attrep-changes-files/m-p/2045360#M5222</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2023-03-05T02:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the default schema for the attrep_changes files?</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-do-I-change-the-default-schema-for-the-attrep-changes-files/m-p/2046267#M5248</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/152845"&gt;@iPipeline&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also,&amp;nbsp; for controlling the Replicate special Tables, you can go to Task settings, Metadata, and then Control Tables. There is a field there that allows you to put a Schema name&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Create target control tables in the schema:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you put something in there,&amp;nbsp; it will force a Schema name in the name. For example:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I typed in BARB&amp;nbsp; and in my DB2 z/OS task it created the&amp;nbsp; attrep_changes ( and my attrep_apply_exceptions tables) as the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; 2023-03-07T09:57:51:604305 [TARGET_APPLY ]T: Create table statement: CREATE TABLE [BARB].[attrep_changes14426005A56DB539] ( [seq] INT NOT NULL, [col1] NVARCHAR(260), [col2] NVARCHAR(128), [col3] NVARCHAR(40), [col4] NVARCHAR(37), [col5] NVARCHAR(35), [col6] NVARCHAR(32), [col7] NVARCHAR(25), [col8] NVARCHAR(20), [col9] NVARCHAR(20), [col10] NVARCHAR(20), [col11] NVARCHAR(20), [col12] NVARCHAR(20), [col13] NVARCHAR(20), [col14] NVARCHAR(20), [seg1] NVARCHAR(35), [seg2] NVARCHAR(20) ) (provider_syntax_manager.c:1774)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and eventually, my changes came across from the BARB.attrep_changes.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[TARGET_APPLY ]V: Execute: 'INSERT INTO [BARBARA].[CUSTOMER__ct] ([BARBHDR__change_mask],[BARBHDR__stream_position],[ADDRESS],[BARBHDR__timestamp],[BARBHDR__change_seq],[BARBHDR__transaction_id],[NAME],[PHONE],[BARBHDR__operation],[CUSTKEY],[NATIONKEY],[BARB],[JEFF],[BARBHDR__change_oper]) SELECT CONVERT ( varbinary(128) , [BARB].[attrep_changes14426005A56DB539].[col1] , 1 ) , CAST ( [BARB].[attrep_changes14426005A56DB539].[col2] as varchar(128)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col3] as varchar(40)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col4] as datetime2(6)) , CAST ( [BARB].[attrep_changes14426005A56DB539].[col5] as varchar(35)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col6] as varchar(32)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col7] as varchar(25)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col8] as varchar(15)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col9] as varchar(12)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col10] as int) , CAST ( [BARB].[attrep_changes14426005A56DB539].[col11] as int) , CAST ( [BARB].[attrep_changes14426005A56DB539].[col12] as varchar(4)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col13] as varchar(2)) COLLATE SQL_Latin1_General_CP1_CI_AS , CAST ( [BARB].[attrep_changes14426005A56DB539].[col14] as varchar(1)) COLLATE SQL_Latin1_General_CP1_CI_AS FROM [BARB].[attrep_changes14426005A56DB539] WHERE [BARB].[attrep_changes14426005A56DB539].[seq] &amp;gt;= ? and [BARB].[attrep_changes14426005A56DB539].[seq] &amp;lt;= ?' (ar_odbc_stmt.c:2729)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps and please feel free to try it out.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Barb&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 15:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-do-I-change-the-default-schema-for-the-attrep-changes-files/m-p/2046267#M5248</guid>
      <dc:creator>Barb_Fill21</dc:creator>
      <dc:date>2023-03-07T15:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the default schema for the attrep_changes files?</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-do-I-change-the-default-schema-for-the-attrep-changes-files/m-p/2046276#M5249</link>
      <description>&lt;P&gt;Thanks. &amp;nbsp;That is what I needed.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 15:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-do-I-change-the-default-schema-for-the-attrep-changes-files/m-p/2046276#M5249</guid>
      <dc:creator>iPipeline</dc:creator>
      <dc:date>2023-03-07T15:23:01Z</dc:date>
    </item>
  </channel>
</rss>

