{"id":6422,"date":"2015-12-04T15:44:36","date_gmt":"2015-12-04T14:44:36","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/"},"modified":"2015-12-04T15:44:36","modified_gmt":"2015-12-04T14:44:36","slug":"goldengate-12-2-new-parameter-allowoutputdir","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/","title":{"rendered":"GoldenGate 12.2 new parameter ALLOWOUTPUTDIR"},"content":{"rendered":"<p>I will start a series of blog posts about the new features of GoldenGate 12.2.<\/p>\n<p>This first blog will be concerned by the new parameter ALLOWOUTPUTDIR.<\/p>\n<p>When I tried GoldenGate 12.2 for the first time, I reused the same configuration as with GoldenGate 12.1. It means two virtual machines with OEL 6.5 and Oracle Database 12.1.0.2.4 Enterprise Edition.<\/p>\n<p>First I configured my SCOTT extract process without problems. It was the same for the REPSCOTT replicat process. But when I tried to configure the Data Pump extract process to transfer trail files, I faced an error.<\/p>\n<h2>1. Configure Data Pump Extract process<\/h2>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">GGSCI (goldengate122) 1&gt; dblogin useridalias ggadmin\nSuccessfully logged into database.\n\nGGSCI (goldengate122 as ggadmin@DB1) 2&gt; add extract DPSCOTT, EXTTRAILSOURCE \/u04\/app\/goldengate\/trail\/DB1\/sc\nEXTRACT added.\n\n\nGGSCI (goldengate122 as ggadmin@DB1) 3&gt; add rmttrail \/u05\/ggtrail\/DB2\/tc, extract DPSCOTT\nRMTTRAIL added.\n\nGGSCI (goldengate122 as ggadmin@DB1) 4&gt; edit params DPSCOTT\n\n\n\nGGSCI (goldengate122 as ggadmin@DB1) 5&gt; view params DPSCOTT\n\nextract dpscott\nuseridalias ggadmin\nDBOPTIONS ALLOWUNUSEDCOLUMN\nrmthost 192.168.56.109, MGRPORT 7809\nRMTTRAIL \/u05\/ggtrail\/DB2\/tc\nTABLE scott.emp;\n\n\nGGSCI (goldengate122 as ggadmin@DB1) 6&gt; info all\n\nProgram     Status      Group       Lag at Chkpt  Time Since Chkpt\n\nMANAGER     RUNNING\nEXTRACT     STOPPED     DPSCOTT     00:00:00      00:01:25\nEXTRACT     RUNNING     SCOTT       00:00:10      00:00:03\n\n\nGGSCI (goldengate122 as ggadmin@DB1) 7&gt; start extract DPSCOTT\n\nSending START request to MANAGER ...\nEXTRACT DPSCOTT starting\n\n\nGGSCI (goldengate122 as ggadmin@DB1) 8&gt;<\/pre>\n<p>It is a standard Data Pump extract.<\/p>\n<p>But when I started it, it always was in status &#8220;abended&#8221;.<\/p>\n<p>So I checked the error log (ggserr.log) to find the issue and this was reported there:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">2015-12-02 09:40:42  INFO    OGG-00993  Oracle GoldenGate Capture for Oracle, dpscott.prm:  EXTRACT DPSCOTT started.\n2015-12-02 09:40:44  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): info all.\n2015-12-02 09:40:46  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): info all.\n2015-12-02 09:40:47  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): info all.\n2015-12-02 09:40:47  INFO    OGG-01226  Oracle GoldenGate Capture for Oracle, dpscott.prm:  Socket buffer size set to 27985 (flush size 27985).\n2015-12-02 09:40:47  WARNING OGG-06591  Oracle GoldenGate Capture for Oracle, dpscott.prm:  Reading the output trail file \/u05\/ggtrail\/DB2\/tb000000 encounters an error from position 0, rescan from the file header to recover.\n2015-12-02 09:40:47  ERROR   OGG-01031  Oracle GoldenGate Capture for Oracle, dpscott.prm:  There is a problem in network communication, a remote file problem, encryption keys for target and source do not match (if using ENCRYPT) or an unknown error. (Reply received is Output file \/u05\/ggtrail\/DB2\/tc000000 is not in any allowed output directories.).\n2015-12-02 09:40:47  ERROR   OGG-01668  Oracle GoldenGate Capture for Oracle, dpscott.prm:  PROCESS ABENDING.<\/pre>\n<p>After some tests and checks with my colleagues I tried to put the remote trail file in the directory .\/dirdat\/. It is one directory of the GoldenGate home. And oddly now it was good for it.<\/p>\n<p>So the problem is the directory where I tried to put the remote trail files. In the official GoldenGate 12.2 documentation, we found this new parameter <a href=\"http:\/\/docs.oracle.com\/goldengate\/c1221\/gg-winux\/GWURF\/gg_parameters008.htm#GWURF1251\" target=\"_blank\" rel=\"noopener\">ALLOWOUTPUTDIR<\/a>.<\/p>\n<h2>2. Modify the GLOBALS parameter file<\/h2>\n<p>Take care, this parameter must be set on the target and not on the source.<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1\">GGSCI (goldengate1222) 1&gt; dblogin useridalias ggadmin\nSuccessfully logged into database.\n\nGGSCI (goldengate1222 as ggadmin@DB2) 3&gt; view params .\/GLOBALS\n\nGGSCHEMA ggadmin\nCHECKPOINTTABLE ggadmin.checkpoint\nALLOWOUTPUTDIR \/u05\/ggtrail\/DB2\/\n\n\nGGSCI (goldengate1222 as ggadmin@DB2) 4&gt;<\/pre>\n<p>With this parameter, we can authorize GoldenGate to use a different location than its home to store trail files. If you need different directories for your trails either you use the same root because this parameter includes the sub-directories or you provide the parameter ALLOWOUTPUTDIR several times.<\/p>\n<p>Once the parameter setting is done, I can restart my Data Pump extract and now it works fine.<\/p>\n<h2>Conclusion<\/h2>\n<p>So we can see that GoldenGate 12.2 doesn&#8217;t allow to use all the directories per default like in previous version. Now we must allow GoldenGate explicitly where it is allowed to store the trails.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I will start a series of blog posts about the new features of GoldenGate 12.2. This first blog will be concerned by the new parameter ALLOWOUTPUTDIR. When I tried GoldenGate 12.2 for the first time, I reused the same configuration as with GoldenGate 12.1. It means two virtual machines with OEL 6.5 and Oracle Database [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229],"tags":[],"type_dbi":[],"class_list":["post-6422","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>GoldenGate 12.2 new parameter ALLOWOUTPUTDIR - dbi Blog<\/title>\n<meta name=\"description\" content=\"GoldenGate, 12.2, New parameter, ALLOWOUTPUTDIR\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GoldenGate 12.2 new parameter ALLOWOUTPUTDIR\" \/>\n<meta property=\"og:description\" content=\"GoldenGate, 12.2, New parameter, ALLOWOUTPUTDIR\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-04T14:44:36+00:00\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"headline\":\"GoldenGate 12.2 new parameter ALLOWOUTPUTDIR\",\"datePublished\":\"2015-12-04T14:44:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/\"},\"wordCount\":321,\"commentCount\":0,\"articleSection\":[\"Database Administration &amp; Monitoring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/\",\"name\":\"GoldenGate 12.2 new parameter ALLOWOUTPUTDIR - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2015-12-04T14:44:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"description\":\"GoldenGate, 12.2, New parameter, ALLOWOUTPUTDIR\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GoldenGate 12.2 new parameter ALLOWOUTPUTDIR\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"caption\":\"Oracle Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"GoldenGate 12.2 new parameter ALLOWOUTPUTDIR - dbi Blog","description":"GoldenGate, 12.2, New parameter, ALLOWOUTPUTDIR","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/","og_locale":"en_US","og_type":"article","og_title":"GoldenGate 12.2 new parameter ALLOWOUTPUTDIR","og_description":"GoldenGate, 12.2, New parameter, ALLOWOUTPUTDIR","og_url":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/","og_site_name":"dbi Blog","article_published_time":"2015-12-04T14:44:36+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"headline":"GoldenGate 12.2 new parameter ALLOWOUTPUTDIR","datePublished":"2015-12-04T14:44:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/"},"wordCount":321,"commentCount":0,"articleSection":["Database Administration &amp; Monitoring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/","url":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/","name":"GoldenGate 12.2 new parameter ALLOWOUTPUTDIR - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2015-12-04T14:44:36+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"description":"GoldenGate, 12.2, New parameter, ALLOWOUTPUTDIR","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"GoldenGate 12.2 new parameter ALLOWOUTPUTDIR"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","caption":"Oracle Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/6422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=6422"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/6422\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=6422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=6422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=6422"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=6422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}