{"id":1537,"date":"2010-04-16T10:06:32","date_gmt":"2010-04-16T15:06:32","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=1537"},"modified":"2011-02-16T11:14:21","modified_gmt":"2011-02-16T16:14:21","slug":"goldengate-parameter-files","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=1537","title":{"rendered":"GoldenGate Parameter Files"},"content":{"rendered":"<span id=\"Two_Types_of_Parameter_Files\"><h2>Two Types of Parameter Files<\/h2><\/span>\n<span id=\"GLOBALS_File_Parameters\"><h3>GLOBALS File Parameters<\/h3><\/span>\n<p>* Stored in GG root directory with the fiel name &#8216;GLOBALS&#8217;.<br \/>\n* Applies to whole instance.<br \/>\n* Can be overridden by process parameters.<br \/>\n* Created with command &#8216;EDIT PARAMS .\/GLOBALS&#8217;<\/p>\n<pre>\r\nGGSCI 26> EDIT PARAMS .\/GLOBALS\r\n\r\nMGRSERVNAME gg_demo_src\r\n<\/pre>\n<span id=\"Process_Specific_Parameters\"><h3>Process Specific Parameters<\/h3><\/span>\n<p>* Applies to a specific process such as extract or replicat.<br \/>\n* One parameter file per process (use obey command to include other files).<\/p>\n<span id=\"Two_types:\"><h4>Two types:<\/h4><\/span>\n<p>* Global parameters: apply to all db objects.<br \/>\n* Object specific parameters: apply to specific db objects.<\/p>\n<span id=\"Create_a_parameter_file\"><h4>Create a parameter file<\/h4><\/span>\n<p>* Created with command &#8216;EDIT PARAMS <group name>&#8216; and stored in &#8216;dirprm&#8217; directory.<\/p>\n<pre>\r\nextract e_cust\r\nuserid system, password orcl\r\nexttrail C:\\prog\\GoldenGate\\GoldenGate_Src\\dirdat\\cu\r\nTABLE GG_TEST_SRC.CUSTOMERS;\r\n<\/pre>\n<span id=\"Verify_a_parameter_file\"><h4>Verify a parameter file<\/h4><\/span>\n<p>* Add to parameter file: CHECKPARAMS<br \/>\n* Start process.<br \/>\n* View report for results.<br \/>\n* Remove &#8216;CHECKPARAMS&#8217; if verified.<\/p>\n<span id=\"Use_Parameter_Substitution\"><h4>Use Parameter Substitution<\/h4><\/span>\n<p>* Prefix parameter name to be substituted with ?<\/p>\n<pre>\r\nSOURCEISFILE\r\nEXTFILE ?EXTFILE\r\nMAP ?TABNAME, TARGET account_targ;\r\n<\/pre>\n<p>* Set env var with the same name without ?<\/p>\n<pre>\r\nrem Windows\r\nset EXTFILE=C:\\ggs\\extfile\r\nset TABNAME=prod.accounts\r\n\r\n# Unix\r\nEXTFILE=\/ggs\/extfile\r\nexport EXTFILE\r\nTABNAME=prod.accounts\r\nexport TABNAME<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Two Types of Parameter Files GLOBALS File Parameters * Stored in GG root directory with the fiel name &#8216;GLOBALS&#8217;. * Applies to whole instance. * Can be overridden by process parameters. * Created with command &#8216;EDIT PARAMS .\/GLOBALS&#8217; GGSCI 26> &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=1537\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[88],"tags":[],"class_list":["post-1537","post","type-post","status-publish","format-standard","hentry","category-goldengate"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-oN","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1537"}],"version-history":[{"count":2,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1537\/revisions"}],"predecessor-version":[{"id":1947,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1537\/revisions\/1947"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}