{"id":6608,"date":"2016-02-17T09:17:36","date_gmt":"2016-02-17T08:17:36","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/"},"modified":"2016-02-17T09:17:36","modified_gmt":"2016-02-17T08:17:36","slug":"goldengate-12-2-parameter-file-check","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/","title":{"rendered":"GoldenGate 12.2 parameter file check"},"content":{"rendered":"<p>Today I will talk about the new parameter file checks available to continue the series of blog posts about the new features of GoldenGate 12.2.<\/p>\n<p>There are three themes that I will present you:<\/p>\n<ul>\n<li>Checkprm utility<\/li>\n<li>Info param<\/li>\n<li>Getparaminfo<\/li>\n<\/ul>\n<h2>Checkprm utility<\/h2>\n<p>This utility can be used to validate a parameter file (.prm).<\/p>\n<p>It is located in the home of the GoldenGate installation.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">oracle@goldengate122:\/u04\/app\/goldengate\/product\/12.2.0.0\/DB1\/ [DB1] ll | grep check\n-rwxrwxr-x  1 oracle oinstall 11216170 Nov 10 17:30 checkprm<\/pre>\n<p>All the prm files are located in the dirprm folder in the Goldengate home.<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">oracle@goldengate122:\/u04\/app\/goldengate\/product\/12.2.0.0\/DB1\/ [DB1] find -name *.prm\n.\/dirprm\/scott.prm\n.\/dirprm\/dscotti.prm\n.\/dirprm\/dpscott.prm\n.\/dirprm\/mgr.prm\n.\/dirprm\/scottint.prm<\/pre>\n<p>The command to use this tool is very simple : checkprm file.prm.<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">oracle@goldengate122:\/u04\/app\/goldengate\/product\/12.2.0.0\/DB1\/ [DB1] checkprm dirprm\/scott.prm\n\n2016-01-19 15:56:18  INFO    OGG-10139  Parameter file dirprm\/scott.prm:  Validity check: PASS.\n\nRuntime parameter validation is not reflected in the above check.<\/pre>\n<p>In the above example, the tool tells that the prm file is fine.<\/p>\n<p>Now we will look at a bad file. For doing this, I removed one letter in useridalias and the character &#8220;;&#8221; at the end.<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">oracle@goldengate122:\/u04\/app\/goldengate\/product\/12.2.0.0\/DB1\/ [DB1] checkprm dirprm\/scott_bad.prm\n\n(scott_bad.prm) line 1: Fatal error in parser [Command 'TABLE' not terminated by semi-colon].\n\n(scott_bad.prm) line 2: Parameter [userdalias] is unrecognized and will be ignored.  No parameter definition with that name could be found.\n\n2016-01-19 16:38:39  INFO    OGG-10139  Parameter file dirprm\/scott_bad.prm:  Validity check: FAIL.<\/pre>\n<p>The two first lines explain why the file fails the check. The explanation is very clear.<\/p>\n<p>This utility can be used before a deployment.<\/p>\n<p>Another important thing is that the tool can validate a parameter file for an another system. (Example : On Linux for a Windows system)<\/p>\n<h2>Info param<\/h2>\n<p>Unlike checkprm, it is not a new utility. It&#8217;s a gsci command.<\/p>\n<p>In fact, this command can be used only for the manager process and globals file. It permits to see all details of a parameter file.<\/p>\n<p>Below, an example for the port parameter :<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">GGSCI (goldengate122) 1&gt; info param port\n\nparam name  : port\ndescription : TCP IP port number for the Manager process\nargument    : integer\ndefault     : 7809\n      range : 1 - 65535\noptions     :\ncomponent(s): MGR\nmode(s)     : none\nplatform(s) : all platforms\nversions    :\ndatabase(s) : all supported databases (on the supported platforms).\nstatus      : current\nmandatory   : false\ndynamic     : false\nrelations   : none<\/pre>\n<p>The above example shows the usage for the manager process. Now we will do an example for the GLOBALS parameter file.<\/p>\n<p>To do this, I will use the new parameter that I presented at the end of last year <a title=\"ALLOWOUTPUTDIR\" href=\"http:\/\/dbi-services.com\/blog\/goldengate-12-2-new-parameter-allowoutputdir\/\" target=\"_blank\" rel=\"noopener\">ALLOWOUTPUTDIR<\/a>.<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">GGSCI (goldengate122) 2&gt; info param ALLOWOUTPUTDIR\n\nparam name  : allowoutputdir\ndescription : Allow the output trail files to be saved in the given directory or its sub directories.\nargument    : string\ndefault     : no default\noptions     :\ncomponent(s): GLOBALS\nmode(s)     : none\nplatform(s) : all platforms\nversions    :\n    min ver : 12.2.0.1\ndatabase(s) : all supported databases (on the supported platforms).\nstatus      : current\nmandatory   : false\ndynamic     : false\nrelations   : none<\/pre>\n<h2>Getparaminfo<\/h2>\n<p>The last chapter will be on the gsci command : Getparaminfo.<\/p>\n<p>In contrast to the two other chapters this command can be only use when the process works.<\/p>\n<p>Getparaminfo allows to see all the parameters used by a process. Below a little example with the manager process.<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">GGSCI (goldengate122) 13&gt; send mgr getparaminfo\n\nSending GETPARAMINFO request to MANAGER ...\n\nGLOBALS\n\nggschema                             : ggadmin\ncheckpointtable                      : ggadmin.checkpoint\nallowoutputdir                       : \/u05\/ggtrail\/DB2\/\n\n\/u04\/app\/goldengate\/product\/12.2.0.0\/DB1\/dirprm\/mgr.prm\n\nport                                 : 7809\n\nDefault Values\n\ncheckminutes                         : 10<\/pre>\n<p>We can specify this command with the parameter desired.<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">GGSCI (goldengate122) 14&gt; send mgr getparaminfo port\n\nSending getparaminfo request to MANAGER ...\n\n\/u04\/app\/goldengate\/product\/12.2.0.0\/DB1\/dirprm\/mgr.prm\n\nport                                 : 7809\n\nDefault Values<\/pre>\n<p>This command has a last option available : file. This option allows to save the output to a file instead of the screen.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">GGSCI (goldengate122) 15&gt; send mgr getparaminfo file mgrfile.out\n\nSending getparaminfo request to MANAGER ...\n\nGLOBALS\n\nggschema                             : ggadmin\ncheckpointtable                      : ggadmin.checkpoint\nallowoutputdir                       : \/u05\/ggtrail\/DB2\/\n\n\/u04\/app\/goldengate\/product\/12.2.0.0\/DB1\/dirprm\/mgr.prm\n\nport                                 : 7809\n\nDefault Values\n\ncheckminutes                         : 10<\/pre>\n<p>The file generated is in the GoldenGate home.<\/p>\n<pre class=\"brush: shell; gutter: true; first-line: 1\">oracle@goldengate122:\/u04\/app\/goldengate\/product\/12.2.0.0\/DB1\/ [DB1] ll mgrfile.out\n-rw-r----- 1 oracle oinstall 333 Jan 25 12:31 mgrfile.out<\/pre>\n<h2>\u00a0Conclusion<\/h2>\n<p>Oracle provides us good tools to check the installed configuration at every time.<\/p>\n<p>Times are over when we needed to check all configuration files by hand. Some problems can be identified more quickly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I will talk about the new parameter file checks available to continue the series of blog posts about the new features of GoldenGate 12.2. There are three themes that I will present you: Checkprm utility Info param Getparaminfo Checkprm utility This utility can be used to validate a parameter file (.prm). It is located [&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-6608","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 parameter file check - dbi Blog<\/title>\n<meta name=\"description\" content=\"GoldenGate 12.2, checkprm utility, info param command, getparaminfo command, parameter file check, Oracle,\" \/>\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-parameter-file-check\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GoldenGate 12.2 parameter file check\" \/>\n<meta property=\"og:description\" content=\"GoldenGate 12.2, checkprm utility, info param command, getparaminfo command, parameter file check, Oracle,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-17T08:17: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=\"4 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-parameter-file-check\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"headline\":\"GoldenGate 12.2 parameter file check\",\"datePublished\":\"2016-02-17T08:17:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/\"},\"wordCount\":382,\"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-parameter-file-check\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/\",\"name\":\"GoldenGate 12.2 parameter file check - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2016-02-17T08:17:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"description\":\"GoldenGate 12.2, checkprm utility, info param command, getparaminfo command, parameter file check, Oracle,\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GoldenGate 12.2 parameter file check\"}]},{\"@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 parameter file check - dbi Blog","description":"GoldenGate 12.2, checkprm utility, info param command, getparaminfo command, parameter file check, Oracle,","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-parameter-file-check\/","og_locale":"en_US","og_type":"article","og_title":"GoldenGate 12.2 parameter file check","og_description":"GoldenGate 12.2, checkprm utility, info param command, getparaminfo command, parameter file check, Oracle,","og_url":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/","og_site_name":"dbi Blog","article_published_time":"2016-02-17T08:17:36+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"headline":"GoldenGate 12.2 parameter file check","datePublished":"2016-02-17T08:17:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/"},"wordCount":382,"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-parameter-file-check\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/","url":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/","name":"GoldenGate 12.2 parameter file check - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2016-02-17T08:17:36+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"description":"GoldenGate 12.2, checkprm utility, info param command, getparaminfo command, parameter file check, Oracle,","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/goldengate-12-2-parameter-file-check\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"GoldenGate 12.2 parameter file check"}]},{"@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\/6608","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=6608"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/6608\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=6608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=6608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=6608"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=6608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}