{"id":1180,"date":"2016-05-07T22:16:41","date_gmt":"2016-05-07T22:16:41","guid":{"rendered":"http:\/\/www.theSQLReport.com\/?p=1180"},"modified":"2016-05-07T22:18:26","modified_gmt":"2016-05-07T22:18:26","slug":"how-to-turn-off-the-logging-online-archive-in-arcmain","status":"publish","type":"post","link":"http:\/\/www.theSQLReport.com\/?p=1180","title":{"rendered":"How to Turn Off the Logging Online Archive in Arcmain"},"content":{"rendered":"<p>The issue was a job failed that left Logging Online Archive on a number of tables on one of the Teradata databases.<\/p>\n<p>First step was to identify the tables affected, which can be found one of two ways.<\/p>\n<p>One way is to query the DBC.ArchiveLoggingObjsV view in Teradata SQL Assistant.<\/p>\n<pre>select * from DBC.ArchiveLoggingObjsV;<\/pre>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/DBC.ArchiveLoggingObjsV.jpg\" target=\"_blank\" rel=\"attachment wp-att-1182\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1182 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/DBC.ArchiveLoggingObjsV.jpg\" alt=\"DBC.ArchiveLoggingObjsV\" width=\"916\" height=\"404\" \/><\/a><\/p>\n<p>The other way is to find the tables by running the CheckTables utility.\u00a0 Click <span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"http:\/\/www.thesqlreport.com\/?p=1121\" target=\"_blank\">HERE<\/a><\/span> to go to a post on how to run the check table utility.\u00a0 The results displayed show three tables have Logging Online Archive on.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/CheckTable_Results.jpg\" target=\"_blank\" rel=\"attachment wp-att-1188\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1188 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/CheckTable_Results.jpg\" alt=\"CheckTable Results\" width=\"515\" height=\"202\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/CheckTable_Results.jpg 515w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/CheckTable_Results-300x118.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/CheckTable_Results-210x82.jpg 210w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/a><\/p>\n<p><strong>RESOLUTION:<\/strong><\/p>\n<p>Start a <strong>vi<\/strong> session to create a script that will remove Online Archive Logging found on tables.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/vi_arcmain_script.jpg\" target=\"_blank\" rel=\"attachment wp-att-1185\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1185 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/vi_arcmain_script.jpg\" alt=\"vi arcmain script\" width=\"474\" height=\"88\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/vi_arcmain_script.jpg 474w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/vi_arcmain_script-300x56.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/vi_arcmain_script-210x39.jpg 210w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/><\/a><\/p>\n<p>The script is going to need user &amp; password with enough access to log on to the Arcmain utility.\u00a0 Teradata Express is used in this example, so the dbc account is being used.\u00a0 Recommended using another account with enough permissions.<\/p>\n<p>A line for each table will be need to remove Online Archive Logging.\u00a0 The OVERRIDE parameter will be needed in each statement.<\/p>\n<p>Paste or write the script in the vi session, then save &amp; close.<\/p>\n<pre>.LOGON 127.0.0.1\/dbc,dbc ;\r\nLOGGING ONLINE ARCHIVE OFF FOR (RETAIL.CLIENT), OVERRIDE;\r\nLOGGING ONLINE ARCHIVE OFF FOR (RETAIL.ITEM), OVERRIDE;\r\nLOGGING ONLINE ARCHIVE OFF FOR (RETAIL.PRODUCT), OVERRIDE;\r\n.LOGOFF;<\/pre>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/pasted_arcmain_script.jpg\" target=\"_blank\" rel=\"attachment wp-att-1183\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1183 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/pasted_arcmain_script.jpg\" alt=\"pasted arcmain script\" width=\"488\" height=\"123\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/pasted_arcmain_script.jpg 488w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/pasted_arcmain_script-300x76.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/pasted_arcmain_script-210x53.jpg 210w\" sizes=\"(max-width: 488px) 100vw, 488px\" \/><\/a><\/p>\n<p>To execute the arcmain script, type <strong>arcmain<\/strong> then the <strong>less then sign<\/strong> then the <strong>script name <\/strong>(no double quotes).\u00a0 In testing adding spaces did not hurt the execution.<\/p>\n<pre>arcmain &lt; \"script name\"\r\n\r\nexample: arcmain &lt; stop_archive_logging.arc<\/pre>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/start_arcmain.jpg\" target=\"_blank\" rel=\"attachment wp-att-1184\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1184 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/start_arcmain.jpg\" alt=\"start arcmain\" width=\"509\" height=\"79\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/start_arcmain.jpg 509w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/start_arcmain-300x47.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/start_arcmain-210x33.jpg 210w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/><\/a><\/p>\n<p>Arcmain may take a minute to get started.\u00a0 When successful, arcmain will display severity of 0 when completed.\u00a0 Requery DBC.ArchiveLoggingObjsV or rerun CheckTable to verify.\u00a0 Then as a security precaution, remove the password from the script, if planned to be saved &amp; reused.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/ArcmainResults.jpg\" target=\"_blank\" rel=\"attachment wp-att-1186\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1186 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/ArcmainResults.jpg\" alt=\"Arcmain Results\" width=\"695\" height=\"741\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/ArcmainResults.jpg 695w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/ArcmainResults-281x300.jpg 281w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/04\/ArcmainResults-197x210.jpg 197w\" sizes=\"(max-width: 695px) 100vw, 695px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The issue was a job failed that left Logging Online Archive on a number of tables on one of the Teradata databases. First step was to identify the tables affected, &hellip; <a class=\"readmore\" href=\"http:\/\/www.theSQLReport.com\/?p=1180\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1182,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[76,77,66],"class_list":["post-1180","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-teradata","tag-arcmain","tag-logging-online-archive","tag-teradata"],"_links":{"self":[{"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/1180"}],"collection":[{"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1180"}],"version-history":[{"count":11,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/1180\/revisions"}],"predecessor-version":[{"id":1205,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/1180\/revisions\/1205"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/media\/1182"}],"wp:attachment":[{"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1180"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}