{"id":17181,"date":"2022-04-23T12:42:35","date_gmt":"2022-04-23T10:42:35","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/"},"modified":"2022-04-23T12:42:35","modified_gmt":"2022-04-23T10:42:35","slug":"how-to-create-an-oracle-goldengate-extract-in-multitenant","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/","title":{"rendered":"How to create an Oracle GoldenGate EXTRACT in Multitenant"},"content":{"rendered":"<p>Create an EXTRACT process into container database has some specificity :<\/p>\n<p>From the CDB$ROOT, create a common user and configure the database to be ready to extract data via GoldenGate:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">SQL&gt; create user c##gg_admin identified by \"*****\" default tablespace goldengate temporary tablespace temp;\n\nUser created.\n\nSQL&gt;\n\nSQL&gt; alter user c##gg_admin quota unlimited on goldengate;\n\nUser altered.\n\nSQL&gt;\n\n\nSQL&gt; grant create session, connect,resource,alter system, select any dictionary, flashback any table to c##gg_admin container=all;\n\nGrant succeeded.\n\nSQL&gt;\n\nSQL&gt; exec dbms_goldengate_auth.grant_admin_privilege(grantee =&gt; 'c##gg_admin',container=&gt;'all');\n\nPL\/SQL procedure successfully completed.\n\nSQL&gt; alter user c##gg_admin set container_data=all container=current;\n\nUser altered.\n\nSQL&gt;\n\nSQL&gt; grant alter any table to c##gg_admin container=ALL;\n\nGrant succeeded.\n\nSQL&gt;\n\nalter system set enable_goldengate_replication=true scope=both;\n\n\nSQL&gt; alter database force logging;\n\n\nSQL&gt; alter pluggable database add supplemental log data;\n\nPluggable database altered.\n\nSQL&gt;\n\n<\/pre>\n<p>Add the schematrandata for the schema concerned:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">GGSCI (vmld-01726 as c##gg_admin@MYCDB) 3&gt; add schematrandata schema_source\n\n2022-04-13 18:06:55  INFO    OGG-01788  SCHEMATRANDATA has been added on schema \"schema_source\".\n\n2022-04-13 18:06:55  INFO    OGG-01976  SCHEMATRANDATA for scheduling columns has been added on schema \"schema_source\".\n\n2022-04-13 18:06:55  INFO    OGG-10154  Schema level PREPARECSN set to mode NOWAIT on schema \"schema_source\".\n\n2022-04-13 18:07:00  INFO    OGG-10471  ***** Oracle Goldengate support information on table schema_source.ZZ_DUMMY *****\nOracle Goldengate support native capture on table schema_source.ZZ_DUMMY.\nOracle Goldengate marked following column as key columns on table schema_source.ZZ_DUMMY: SCN, D, COMMENT_TXT\nNo unique key is defined for table schema_source.ZZ_DUMMY.\n\n2022-04-13 18:07:00  INFO    OGG-10471  ***** Oracle Goldengate support information on table schema_source.ZZ_DUMMY2 *****\nOracle Goldengate support native capture on table schema_source.ZZ_DUMMY2.\nOracle Goldengate marked following column as key columns on table schema_source.ZZ_DUMMY2: SCN, D, COMMENT_TXT\nNo unique key is defined for table schema_source.ZZ_DUMMY2.\n\n2022-04-13 18:07:00  INFO    OGG-10471  ***** Oracle Goldengate support information on table schema_source.ZZ_SURVEILLANCE *****\nOracle Goldengate support native capture on table schema_source.ZZ_SURVEILLANCE.\nOracle Goldengate marked following column as key columns on table schema_source.ZZ_SURVEILLANCE: I.\n\n2022-04-13 18:07:00  INFO    OGG-10471  ***** Oracle Goldengate support information on table schema_source.ZZ_SURVEILLANCE_COPY *****\nOracle Goldengate support native capture on table schema_source.ZZ_SURVEILLANCE_COPY.\nOracle Goldengate marked following column as key columns on table schema_source.ZZ_SURVEILLANCE_COPY: I, SURV_DATE, ELLAPSED_1, ELLAPSED_2, CLIENT_HOST, CLIENT_TERMINAL, OS_USER, CLIENT_PROGRAM, INFO\nNo unique key is defined for table schema_source.ZZ_SURVEILLANCE_COPY.\n\nGGSCI (vmld-01726 as c##gg_admin@MYCDB\/CDB$ROOT) 3&gt; dblogin userid c##gg_admin@MYPDB password xxxx\nSuccessfully logged into database.\n\nGGSCI (vmld-01726 as c##gg_admin@MYCDB) 4&gt; info schematrandata schema_source\n\n2022-04-13 18:32:43  INFO    OGG-06480  Schema level supplemental logging, excluding non-validated keys, is enabled on schema \"schema_source\".\n\n2022-04-13 18:32:43  INFO    OGG-01980  Schema level supplemental logging is enabled on schema \"schema_source\" for all scheduling columns.\n\n2022-04-13 18:32:43  INFO    OGG-10462  Schema \"schema_source\" have 4 prepared tables for instantiation.\n\nGGSCI (vmld-01726 as c##gg_admin@MYCDB) 5&gt;\n<\/pre>\n<p>Create a new alias connection to the container database and register the extract, the extract must be registered into the root container (CDB$ROOT) even the data to capture are from the PDB:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">GGSCI (myserver) 10&gt; alter credentialstore add user c##gg_admin@MYCDB_X1 alias ggadmin_exacc\nPassword:\n\nCredential store altered.\n\nGGSCI (myserver) 11&gt; dblogin useridalias ggadmin\nSuccessfully logged into database CDB$ROOT.\n\nGGSCI (myserver as c##gg_admin@MYCDB\/CDB$ROOT) 2&gt;\n\nGGSCI (myserver as c##gg_admin@MYCDB\/CDB$ROOT) 2&gt; register extract E3 database container (MYPDB)\n\n2022-04-13 18:31:19  INFO    OGG-02003  Extract E3 successfully registered with database at SCN 3386436450080\n\n\nGGSCI (myserver as c##gg_admin@MYCDB\/CDB$ROOT) 3&gt;\n<\/pre>\n<p>Save the SCN &#8211;&gt; 3386436450080<\/p>\n<p>Create the EXTRACT, connected on the CDB:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">[oracle@myserver:\/u01\/app\/oracle\/product\/19.1.0.0.4\/gg_1]$ mkdir -p \/u01\/gs_x\/ogg\/\n\nGGSCI (myserver) 7&gt; add extract E3, integrated tranlog, begin now\nEXTRACT (Integrated) added.\n\n\nGGSCI (myserver) 8&gt; INFO ALL\n\nProgram     Status      Group       Lag at Chkpt  Time Since Chkpt\n\nMANAGER     RUNNING\nEXTRACT     STOPPED     E3\t\t    00:00:00      00:00:06\n\n\nGGSCI (myserver) 9&gt;\n\n\nGGSCI (myserver) 9&gt; add exttrail \/u01\/gs_x\/ogg\/gz, extract E3\nEXTTRAIL added.\n\n\nGGSCI (myserver) 2&gt; edit param E3\n\n\nGGSCI (myserver as c##gg_admin@MYCDB\/CDB$ROOT) 13&gt; edit param E3\nExtract E3\nuseridalias ggadmin\nExttrail \/u01\/gs_x\/ogg\/gz\nLOGALLSUPCOLS\nUPDATERECORDFORMAT COMPACT\nDDL  &amp;\nINCLUDE MAPPED OBJNAME MYPDB.SCHEMA.*\nSequence MYPDB.SCHEMA.*;\nTable MYPDB.SCHEMA.* ;\n<\/pre>\n<p>The parameter Table must be prefixed by the Pdb Name<\/p>\n<p>&nbsp;<\/p>\n<p>Start the Extract always from the CDB$ROOT:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">GGSCI (myserver as c##gg_admin@MY_CDB\/CDB$ROOT) 12&gt; START EXTRACT E3 atcsn 3386436450080\n\nSending START request to MANAGER ...\nEXTRACT E3 starting\n\n\nGGSCI (myserver as c##gg_admin@MYCDB\/CDB$ROOT) 15&gt; info all\n\nProgram     Status      Group       Lag at Chkpt  Time Since Chkpt\n\nMANAGER     RUNNING\nEXTRACT     RUNNING     E3      00:00:05      00:00:03\n<\/pre>\n<p>Check the extract is running.<br \/>\nNow you are ready to create the Pump process, do the Initial Load and create the replicat process on the target.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create an EXTRACT process into container database has some specificity : From the CDB$ROOT, create a common user and configure the database to be ready to extract data via GoldenGate: SQL&gt; create user c##gg_admin identified by &#8220;*****&#8221; default tablespace goldengate temporary tablespace temp; User created. SQL&gt; SQL&gt; alter user c##gg_admin quota unlimited on goldengate; User [&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,198,59],"tags":[616,96,875],"type_dbi":[],"class_list":["post-17181","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring","category-database-management","category-oracle","tag-golden-gate","tag-oracle","tag-oracle-multitenant"],"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>How to create an Oracle GoldenGate EXTRACT in Multitenant - dbi Blog<\/title>\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\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create an Oracle GoldenGate EXTRACT in Multitenant\" \/>\n<meta property=\"og:description\" content=\"Create an EXTRACT process into container database has some specificity : From the CDB$ROOT, create a common user and configure the database to be ready to extract data via GoldenGate: SQL&gt; create user c##gg_admin identified by &quot;*****&quot; default tablespace goldengate temporary tablespace temp; User created. SQL&gt; SQL&gt; alter user c##gg_admin quota unlimited on goldengate; User [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-23T10:42:35+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\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"headline\":\"How to create an Oracle GoldenGate EXTRACT in Multitenant\",\"datePublished\":\"2022-04-23T10:42:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/\"},\"wordCount\":136,\"commentCount\":0,\"keywords\":[\"golden gate\",\"Oracle\",\"Oracle Multitenant\"],\"articleSection\":[\"Database Administration &amp; Monitoring\",\"Database management\",\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/\",\"name\":\"How to create an Oracle GoldenGate EXTRACT in Multitenant - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2022-04-23T10:42:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create an Oracle GoldenGate EXTRACT in Multitenant\"}]},{\"@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":"How to create an Oracle GoldenGate EXTRACT in Multitenant - dbi Blog","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\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/","og_locale":"en_US","og_type":"article","og_title":"How to create an Oracle GoldenGate EXTRACT in Multitenant","og_description":"Create an EXTRACT process into container database has some specificity : From the CDB$ROOT, create a common user and configure the database to be ready to extract data via GoldenGate: SQL&gt; create user c##gg_admin identified by \"*****\" default tablespace goldengate temporary tablespace temp; User created. SQL&gt; SQL&gt; alter user c##gg_admin quota unlimited on goldengate; User [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/","og_site_name":"dbi Blog","article_published_time":"2022-04-23T10:42:35+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\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"headline":"How to create an Oracle GoldenGate EXTRACT in Multitenant","datePublished":"2022-04-23T10:42:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/"},"wordCount":136,"commentCount":0,"keywords":["golden gate","Oracle","Oracle Multitenant"],"articleSection":["Database Administration &amp; Monitoring","Database management","Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/","url":"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/","name":"How to create an Oracle GoldenGate EXTRACT in Multitenant - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2022-04-23T10:42:35+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-create-an-oracle-goldengate-extract-in-multitenant\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create an Oracle GoldenGate EXTRACT in Multitenant"}]},{"@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\/17181","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=17181"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/17181\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=17181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=17181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=17181"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=17181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}