{"slug": "automatic-standby-pdb-instantiation-and-standby-redo-log-creation-in-oracle-ai-2", "title": "Automatic Standby PDB Instantiation and Standby Redo Log Creation in Oracle AI Database 26ai(23.26.2)", "summary": "Oracle's AI Database Release Update 23.26.2 automates standby PDB instantiation and standby redo log creation in Data Guard per Pluggable Database environments. Previously manual steps such as RMAN restore, file copy, and log file creation are now handled automatically by Data Guard Broker. The enhancement reduces configuration errors and simplifies deployment, as demonstrated by a successful test creating a standby PDB named AMOL.", "body_md": "Oracle AI Database Release Update 23.26.2 introduces an important enhancement for Data Guard per Pluggable Database (PDB) environments. When a protected PDB is added through Data Guard Broker, Oracle automatically performs several tasks that previously required manual intervention.\n\nPrior to **Release Update 23.26.2**, creating a standby PDB typically involved multiple manual steps, such as:\n\nStarting with **23.26.2**, Data Guard Broker automates these operations, simplifying the deployment process and reducing the risk of configuration errors.\n\nTo demonstrate this enhancement, I created a standby PDB named AMOL on the standby database CDB2 using the following Broker command:\n\n```\nDGMGRL>  ADD PLUGGABLE DATABASE 'amol' AT cdb2 SOURCE is 'amol' AT cdb1 PDBFileNameConvert is \"'/CDB1/','/CDB2/'\";\nPluggable Database \"AMOL\" added\n```\n\nNotice that no RMAN restore, manual file copy, or standby redo log creation commands are required.\n\nThe new PDB initially appears in the MOUNTED state.\n\n```\nSQL> show pdbs\n\n    CON_ID CON_NAME                       OPEN MODE  RESTRICTED\n---------- ------------------------------ ---------- ----------\n         2 PDB$SEED                       READ ONLY  NO\n         3 BABOL                          READ WRITE NO\n         4 AMOL                           MOUNTED\n```\n\nAfter opening the PDB,\n\n```\nSQL> alter pluggable database AMOL open;\nPluggable database altered.\n```\n\nit becomes available in READ ONLY mode, which is the expected state for a physical standby PDB.\n\n```\nSQL>  show pdbs\n\n    CON_ID CON_NAME                       OPEN MODE  RESTRICTED\n---------- ------------------------------ ---------- ----------\n         2 PDB$SEED                       READ ONLY  NO\n         3 BABOL                          READ WRITE NO\n         4 AMOL                           READ ONLY  NO\n```\n\nNext, I switched to the AMOL container and verified that the datafiles had already been created.\n\n```\nSQL> alter session set container=amol;\nSession altered.\nSQL> select name from v$datafile;\nNAME\n-------------------------------------------------\n/oracle/base/oradata/CDB2/568CEB400DB29D03E0630488200A65CB/datafile/o1_mf_system_o5cv72qp_.dbf\n/oracle/base/oradata/CDB2/568CEB400DB29D03E0630488200A65CB/datafile/o1_mf_sysaux_o5cv71nb_.dbf\n/oracle/base/oradata/CDB2/568CEB400DB29D03E0630488200A65CB/datafile/o1_mf_undotbs1_o5cv716w_.dbf\n/oracle/base/oradata/CDB2/568CEB400DB29D03E0630488200A65CB/datafile/o1_mf_users_o5cv710h_.dbf\n```\n\nThis confirms that Oracle automatically copied the datafiles from the primary database during standby PDB instantiation.\n\nAnother enhancement introduced in Release Update 23.26.2 is the automatic creation of Standby Redo Logs.\n\n```\nSQL> select group# from v$standby_log;\n\n    GROUP#\n----------\n         4\n         5\n         6\n```\n\nNo manual ALTER DATABASE ADD STANDBY LOGFILE commands were necessary.\n\nFinally, I validated the standby PDB configuration.\n\n```\nDGMGRL>  VALIDATE PLUGGABLE DATABASE amol AT cdb2;\n\n  Ready for Switchover:    YES\n\n  Data Guard Role:         Physical Standby\n  Apply State:             Running\n  Standby Redo Log Files:  3\n  Source:                  AMOL (con_id 3) at cdb1\n```\n\nThe validation confirms that redo apply is running successfully, the standby redo logs are configured correctly, and the standby PDB is ready for switchover.\n\nThe following alert log excerpt shows the internal operations performed automatically during standby PDB instantiation.\n\n```\ncreate pluggable database AMOL as standby from AMOL at cdb1 file_name_convert=('/CDB1/','/CDB2/')\n2026-07-14T11:31:34.047911+03:30\nAMOL(4):ALTER SYSTEM SET _dgpdb_file_name_convert='/CDB1/','/CDB2/' SCOPE=SPFILE PDB='AMOL';\n2026-07-14T11:31:34.116071+03:30\n****************************************************************\nPluggable Database AMOL with pdb id - 4 is created as UNUSABLE.\nIf any errors are encountered before the pdb is marked as NEW,\nthen the pdb must be dropped\nlocal undo-1, localundoscn-0x0000000000000132\n****************************************************************\nCompleted: create pluggable database AMOL as standby from AMOL at cdb1 file_name_convert=('/CDB1/','/CDB2/')\n2026-07-14T11:31:34.533442+03:30\n rfs (PID:809423): krsr_rfs_atc: DBROLE:PRIMARY Client is ASYNC DB: (PID:240147) [krsr.c:6137]\n rfs (PID:809423): Foreign redo connection for cdb1(DBID:1212295561), Client is ASYNC (PID:240147) [krsr.c:6918]\n rfs (PID:809423): Disable RFS client RFS LogMiner Client [krsr.c:7033]\n rfs (PID:809423): No SRLs created [krsk.c:5084]\n2026-07-14T11:31:34.562849+03:30\n rfs (PID:809423): Opened log for DBID:1212295561 B-1238578121.T-1.S-2.C-0 [krsr.c:19571]\n2026-07-14T11:31:35.430667+03:30\n rfs (PID:809423): Archived Log entry 1 added for B-1238578121.T-1.S-2 LOS:0x0000000000200744 NXS:0x0000000000203102 NAB:75800 ID 0x4842e589 LAD:1 [krsp.c:952]\n2026-07-14T11:31:36.546432+03:30\n rfs (PID:809435): krsr_rfs_atc: DBROLE:PRIMARY Client is ASYNC DB: (PID:240145) [krsr.c:6137]\n rfs (PID:809435): Foreign redo connection for cdb1(DBID:1212295561), Client is ASYNC (PID:240145) [krsr.c:6918]\n2026-07-14T11:31:36.564502+03:30\n rfs (PID:809435): Opened LNO:4 for DBID:1212295561 B-1238578121.T-1.S-3.C-0 [krsr.c:19561]\n2026-07-14T11:31:36.954106+03:30\nAMOL(4):Restore from backup piece network\nAMOL(4):Full restore complete of  datafile 15 /oracle/base/oradata/CDB2/568CEB400DB29D03E0630488200A65CB/datafile/o1_mf_users_o5cv710h_.dbf.  Elapsed time: 0:00:00\nAMOL(4):   checkpoint is SCN 2109708 time 07/14/2026 11:30:48 on PDB incarnation 0\nAMOL(4):2071166\nAMOL(4):Restore from backup piece network\nAMOL(4):Full restore complete of  datafile 14 /oracle/base/oradata/CDB2/568CEB400DB29D03E0630488200A65CB/datafile/o1_mf_undotbs1_o5cv716w_.dbf.  Elapsed time: 0:00:00\nAMOL(4):   checkpoint is SCN 2109713 time 07/14/2026 11:30:48 on PDB incarnation 0\nAMOL(4):2108839\nAMOL(4):2107197\nAMOL(4):Restore from backup piece network\n2026-07-14T11:31:38.597999+03:30\nAMOL(4):Full restore complete of  datafile 13 /oracle/base/oradata/CDB2/568CEB400DB29D03E0630488200A65CB/datafile/o1_mf_sysaux_o5cv71nb_.dbf.  Elapsed time: 0:00:01\nAMOL(4):   checkpoint is SCN 2109718 time 07/14/2026 11:30:49 on PDB incarnation 0\nAMOL(4):2081853\nAMOL(4):Restore from backup piece network\nAMOL(4):Full restore complete of  datafile 12 /oracle/base/oradata/CDB2/568CEB400DB29D03E0630488200A65CB/datafile/o1_mf_system_o5cv72qp_.dbf.  Elapsed time: 0:00:01\nAMOL(4):   checkpoint is SCN 2109723 time 07/14/2026 11:30:50 on PDB incarnation 0\nAMOL(4):2085977\nAMOL(4):2107197\n```\n\n", "url": "https://wpnews.pro/news/automatic-standby-pdb-instantiation-and-standby-redo-log-creation-in-oracle-ai-2", "canonical_source": "https://dev.to/vahidusefzadeh/automatic-standby-pdb-instantiation-and-standby-redo-log-creation-in-oracle-ai-database-1dg9", "published_at": "2026-07-15 06:12:38+00:00", "updated_at": "2026-07-15 06:29:05.623489+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["Oracle", "Data Guard", "Data Guard Broker", "AMOL"], "alternates": {"html": "https://wpnews.pro/news/automatic-standby-pdb-instantiation-and-standby-redo-log-creation-in-oracle-ai-2", "markdown": "https://wpnews.pro/news/automatic-standby-pdb-instantiation-and-standby-redo-log-creation-in-oracle-ai-2.md", "text": "https://wpnews.pro/news/automatic-standby-pdb-instantiation-and-standby-redo-log-creation-in-oracle-ai-2.txt", "jsonld": "https://wpnews.pro/news/automatic-standby-pdb-instantiation-and-standby-redo-log-creation-in-oracle-ai-2.jsonld"}}