Skip to main content

Oracle 19c: Data Guard Physical Standby Setup Guide

In this blog post, we’ll walk through the process of creating a Data Guard Physical Standby database in Oracle Database 19c, where ASM (Automatic Storage Management) and OMF (Oracle Managed Files) are used for storage management. 

Setting up a standby database with Data Guard enhances the high availability, disaster recovery, and data protection capabilities of your Oracle environment. 

By leveraging ASM and OMF, we simplify file management and ensure optimal performance and flexibility. This guide provides a step-by-step approach, from preparing the primary database to configuring the standby environment, ensuring a smooth and reliable setup.

Environment Overview

In this setup, we have two database servers configured for a Data Guard Physical Standby environment:

  • Primary Server: server-graz – This server hosts the primary database named graz.

  • Standby Server: server-salzburg – This server will act as the physical standby.

Both servers are configured to use ASM (Automatic Storage Management) and OMF (Oracle Managed Files) for storage management.

 
OS & Software Prerequisites
  • Check that the IPs and hostnames are correctly listed in /etc/hosts.

  • Check that the hosts can ping each other by hostname.

  • Grid Infrastructure (GI) must be installed and properly configured on both the primary and standby server.

  • Database Software has to be installed on the standby (We are assuming that we have already a fully working primary database).

  •  The Database Software should be installed on the standby server as well.
    (We’re assuming the primary database is already operational.) 


[root@server-graz ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.10 server-graz
192.168.56.20 server-salzburg
[root@server-graz ~]# ping server-salzburg
PING server-salzburg (192.168.56.20) 56(84) bytes of data.
64 bytes from server-salzburg (192.168.56.20): icmp_seq=1 ttl=64 time=0.400 ms
64 bytes from server-salzburg (192.168.56.20): icmp_seq=2 ttl=64 time=0.213 ms
64 bytes from server-salzburg (192.168.56.20): icmp_seq=3 ttl=64 time=0.202 ms
64 bytes from server-salzburg (192.168.56.20): icmp_seq=4 ttl=64 time=0.178 ms
^C
--- server-salzburg ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3068ms
rtt min/avg/max/mdev = 0.178/0.248/0.400/0.089 ms
Database Prerequisites

Before setting up the standby database, ensure the following configurations are in place on the primary database:

  • The database is running in ARCHIVELOG mode
  • FORCE LOGGING is enabled.

  • Flashback Database is enabled — this will be required for reinstating the primary in case of a failover. 

  • On the primary database set STANDBY_FILE_MANAGEMENT=AUTO.


[oracle@server-graz ~]$ . oraenv <<< graz
ORACLE_SID = [oracle] ? The Oracle base has been set to /u01/app/oracle
[oracle@server-graz ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Mon Jun 9 12:17:11 2025
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> select force_logging,log_mode,flashback_on from v$database;

FORCE_LOGGING                           LOG_MODE     FLASHBACK_ON
--------------------------------------- ------------ ------------------
NO                                      ARCHIVELOG   NO

SQL> alter database force logging;

Database altered.

SQL> alter database flashback on;

Database altered.

SQL> select force_logging,log_mode,flashback_on from v$database;

FORCE_LOGGING                           LOG_MODE     FLASHBACK_ON
--------------------------------------- ------------ ------------------
YES                                     ARCHIVELOG   YES

SQL> show parameter STANDBY_FILE_MANAGEMENT

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
standby_file_management              string      MANUAL

SQL> alter system set STANDBY_FILE_MANAGEMENT=AUTO scope=both;

System altered.

SQL> show parameter STANDBY_FILE_MANAGEMENT

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
standby_file_management              string      AUTO

alter system set db_file_name_convert = '+DG_DATA/GRAZ','+DG_DATA/SALZBURG' scope=both;
alter system set log_file_name_convert = '+DG_DATA/GRAZ','+DG_DATA/SALZBURG','+DG_FRA/GRAZ','+DG_FRA/SALZBURG' scope=both;

Standby Redo Logs on Primary

Before creating the standby database, create Standby Redo Logs (SRLs) on the primary database. These should be the same size as the existing online redo logs.

Creating the SRLs on the primary in advance ensures they are automatically created on the standby during the setup process. It also prepares the current primary to act as a standby in the future.

Oracle recommends having one more SRL group than the number of online redo log groups per thread. In our case, the primary has 3 online redo log groups per thread, so we need to create 4 standby redo log groups per thread.

SQL> set lines 400 pages 200
SQL> col logfile_name form a60
SQL> SELECT
    l.thread#,
    l.group#,
    lf.member AS logfile_name,
    l.bytes / 1024 / 1024 AS size_mb,
    l.status
FROM
    v$log l
JOIN
    v$logfile lf ON l.group# = lf.group#
ORDER BY
    l.thread#, l.group#; 

   THREAD#     GROUP# LOGFILE_NAME                                                    SIZE_MB STATUS
---------- ---------- ------------------------------------------------------------ ---------- ----------------
         1          1 +DG_DATA/GRAZ/ONLINELOG/group_1.258.1203340061                      200 CURRENT
         1          1 +DG_FRA/GRAZ/ONLINELOG/group_1.257.1203340061                       200 CURRENT
         1          2 +DG_DATA/GRAZ/ONLINELOG/group_2.259.1203340061                      200 INACTIVE
         1          2 +DG_FRA/GRAZ/ONLINELOG/group_2.256.1203340061                       200 INACTIVE
         1          3 +DG_DATA/GRAZ/ONLINELOG/group_3.260.1203340061                      200 INACTIVE
         1          3 +DG_FRA/GRAZ/ONLINELOG/group_3.272.1203340061                       200 INACTIVE

6 rows selected.

SQL> select sl.group#, sl.thread#, v$logfile.member, sl.bytes/1024/1024 size_mb
from v$logfile, v$standby_log sl
where v$logfile.group# = sl.group#
order by sl.thread#, sl.group#, member;  

no rows selected
SQL> alter database add standby logfile thread 1 size 200M; Database altered. SQL> r 1* alter database add standby logfile thread 1 size 200M Database altered. SQL> r 1* alter database add standby logfile thread 1 size 200M Database altered. SQL> r 1* alter database add standby logfile thread 1 size 200M Database altered. SQL> col member form a60 SQL> r 1 select sl.group#, sl.thread#, v$logfile.member, sl.bytes/1024/1024 size_mb 2 from v$logfile, v$standby_log sl 3 where v$logfile.group# = sl.group# 4* order by sl.thread#, sl.group#, member GROUP# THREAD# MEMBER SIZE_MB ---------- ---------- ------------------------------------------------------------ ---------- 4 1 +DG_DATA/GRAZ/ONLINELOG/group_4.267.1203357795 200 4 1 +DG_FRA/GRAZ/ONLINELOG/group_4.280.1203357795 200 5 1 +DG_DATA/GRAZ/ONLINELOG/group_5.268.1203357795 200 5 1 +DG_FRA/GRAZ/ONLINELOG/group_5.279.1203357795 200 6 1 +DG_DATA/GRAZ/ONLINELOG/group_6.269.1203357797 200 6 1 +DG_FRA/GRAZ/ONLINELOG/group_6.278.1203357797 200 7 1 +DG_DATA/GRAZ/ONLINELOG/group_7.270.1203357797 200 7 1 +DG_FRA/GRAZ/ONLINELOG/group_7.277.1203357797 200 8 rows selected.

Create Network Aliases for Primary and Standby Database 

Add the listener.ora and tnsnames.ora entries on the both servers. 

listener.ora

[oracle@server-graz ~]$ cat /u01/app/19/grid/network/admin/listener.ora
#Backup file is  /u01/app/oracle/crsdata/server-graz/output/listener.ora.bak.server-graz.oracle line added by Agent
# listener.ora Network Configuration File: /u01/app/19/grid/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = server-graz)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

SID_LIST_LISTENER=
   (SID_LIST=
        (SID_DESC=
          (GLOBAL_DBNAME=graz_DGMGRL)
          (SID_NAME=graz)
          (ORACLE_HOME=/u01/app/oracle/product/19/dbhome_1)
        )
        (SID_DESC=
          (GLOBAL_DBNAME=salzburg_DGMGRL)
          (SID_NAME=salzburg)
          (ORACLE_HOME=/u01/app/oracle/product/19/dbhome_1)
        )
      )

ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON              # line added by Agent
VALID_NODE_CHECKING_REGISTRATION_LISTENER=ON            # line added by Agent
[oracle@server-graz ~]$ srvctl stop listener
[oracle@server-graz ~]$ srvctl start listener
[oracle@server-graz ~]$ lsnrctl status

LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 09-JUN-2025 18:22:17

Copyright (c) 1991, 2019, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date                09-JUN-2025 18:15:36
Uptime                    0 days 0 hr. 6 min. 41 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/19/grid/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/server-graz/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=server-graz)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "+ASM_DG_DATA" has 1 instance(s).
  Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "+ASM_DG_FRA" has 1 instance(s).
  Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "graz" has 1 instance(s).
  Instance "graz", status READY, has 1 handler(s) for this service...
Service "grazXDB" has 1 instance(s).
  Instance "graz", status READY, has 1 handler(s) for this service...
Service "graz_DGMGRL" has 1 instance(s).
  Instance "graz", status UNKNOWN, has 1 handler(s) for this service...
Service "salzburg_DGMGRL" has 1 instance(s).
  Instance "salzburg", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
tnsnames.ora

[oracle@server-graz ~]$ cat /u01/app/oracle/product/19/dbhome_1/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/19/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

GRAZ =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server-graz)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = graz)
    )
  )
  
SALZBURG =
 (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = server-salzburg)(PORT = 1521))
   (CONNECT_DATA =
     (SERVER = DEDICATED)
     (SERVICE_NAME = salzburg)
   )
 )


graz_DGMGRL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server-graz)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = graz_DGMGRL)
    )
  )


salzburg_DGMGRL =
(DESCRIPTION =
  (ADDRESS = (PROTOCOL = TCP)(HOST = server-salzburg)(PORT = 1521))
  (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = salzburg_DGMGRL)
  )
)


LISTENER_GRAZ =
  (ADDRESS = (PROTOCOL = TCP)(HOST = server-graz)(PORT = 1521))

Test the connection using tnsping.
If the connection fails, check the firewall settings on both servers. You can temporarily disable the firewall to determine if it's blocking the connection.

[oracle@server-graz ~]$ tnsping salzburg_DGMGRL

TNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 09-JUN-2025 18:25:18

Copyright (c) 1997, 2019, Oracle.  All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server-salzburg)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = salzburg)))
OK (0 msec)

Create and modify PFILE parameters on standby, furthermore, copy the existing Password-File and recreate the audit directory. 

The database parameter db_name must be the same between primary and all standby database.
Databases with the same DB_NAME within the same DB_DOMAIN (for example, copies of a database created for reporting or a physical standby) must have a unique DB_UNIQUE_NAME.



[oracle@server-graz dbs]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Sun Jun 15 18:42:00 2025
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> create pfile='$ORACLE_HOME/dbs/stby.ora' from spfile;

File created.


[oracle@server-graz dbs]$ scp orapwgraz oracle@192.168.56.20:/u01/app/oracle/product/19/dbhome_1/dbs/orapwsalzburg
oracle@192.168.56.20's password:
orapwgraz                                                                                                                                                                   100% 2048     5.0MB/s   00:00
[oracle@server-graz dbs]$ scp stby.ora oracle@192.168.56.20:/u01/app/oracle/product/19/dbhome_1/dbs/initsalzburg.ora
oracle@192.168.56.20's password:
stby.ora                                                                                                                                                                    100% 1189     2.7MB/s   00:00
[oracle@server-salzburg ~]$ mkdir -p /u01/app/oracle/admin/salzburg/adump
[oracle@server-salzburg ~]$ cat /u01/app/oracle/product/19/dbhome_1/dbs/initsalzburg.ora
*.audit_file_dest='/u01/app/oracle/admin/salzburg/adump'
*.audit_trail='db'
*.compatible='19.0.0'
*.db_block_size=8192
*.db_create_file_dest='+DG_DATA'
*.db_name='graz'
*.db_unique_name='salzburg'
*.db_recovery_file_dest='+DG_FRA'
*.db_recovery_file_dest_size=7851m
*.diagnostic_dest='/u01/app/oracle'
*.log_archive_format='%t_%s_%r.dbf'
*.nls_language='AMERICAN'
*.nls_territory='AMERICA'
*.open_cursors=300
*.pga_aggregate_target=1637m
*.processes=720
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=4908m
*.standby_file_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.log_file_name_convert='+DG_DATA/SALZBURG','+DG_DATA/GRAZ','+DG_FRA/SALZBURG','+DG_FRA/GRAZ'
*.db_file_name_convert='+DG_DATA/SALZBURG','+DG_DATA/GRAZ'

Register the standby database with clusterware

[oracle@server-salzburg ~]$ export ORACLE_HOME=/u01/app/oracle/product/19/dbhome_1
[oracle@server-salzburg ~]$ export ORACLE_SID=salzburg
[oracle@server-salzburg ~]$ export PATH=$ORACLE_HOME/bin:$PATH
[oracle@server-salzburg ~]$ srvctl add database -db salzburg -oraclehome $ORACLE_HOME -instance $ORACLE_SID -dbname $ORACLE_SID -diskgroup DG_DATA,DG_FRA -role physical_standby -startoption mount

[oracle@server-salzburg ~]$ srvctl config database -db salzburg
Database unique name: salzburg
Database name: salzburg
Oracle home: /u01/app/oracle/product/19/dbhome_1
Oracle user: oracle
Spfile: 
Password file: 
Domain:
Start options: mount
Stop options: immediate
Database role: PHYSICAL_STANDBY
Management policy: AUTOMATIC
Disk Groups: DG_DATA,DG_FRA
Services:
OSDBA group:
OSOPER group:
Database instance: salzburg

Start the database in nomount


[oracle@server-salzburg ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Mon Jun 9 22:48:59 2025
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> startup nomount;
ORACLE instance started.

Total System Global Area 5150603736 bytes
Fixed Size                  8907224 bytes
Variable Size             939524096 bytes
Database Buffers         4194304000 bytes
Redo Buffers                7868416 bytes

[oracle@server-salzburg ~]$ ps -ef | grep smon
oracle      3391       1  0 17:58 ?        00:00:00 asm_smon_+ASM
oracle     11825       1  0 19:39 ?        00:00:00 ora_smon_salzburg
oracle     13175   12038  0 19:42 pts/0    00:00:00 grep --color=auto smon

Create spfile from pfile and modify the database


SQL> create spfile from pfile;

File created.

ASMCMD> lsdg
State    Type    Rebal  Sector  Logical_Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
MOUNTED  EXTERN  N         512             512   4096  4194304     51196    48608                0           48608              0             N  DG_DATA/
MOUNTED  EXTERN  N         512             512   4096  4194304     51196    51100                0           51100              0             N  DG_FRA/
ASMCMD> cd dg_data
ASMCMD> ls
ASM/
SALZBURG/
orapwasm
spfilesalzburg.ora
ASMCMD> ls -l spfilesalzburg.ora
Type           Redund  Striped  Time             Sys  Name
PARAMETERFILE  UNPROT  COARSE   JUN 09 22:00:00  N    spfilesalzburg.ora => +DG_DATA/SALZBURG/PARAMETERFILE/spfile.261.1203374813

[oracle@server-salzburg ~]$ srvctl modify database -db salzburg -spfile +DG_DATA/SALZBURG/PARAMETERFILE/spfile.261.1203374813

SQL> startup nomount force;
ORACLE instance started.

Total System Global Area 5150603736 bytes
Fixed Size                  8907224 bytes
Variable Size             939524096 bytes
Database Buffers         4194304000 bytes
Redo Buffers                7868416 bytes

Duplicate standby from active database

When working with the NOFILENAMECHECK option in Oracle, it's important to proceed with care, as improper usage can lead to unintended consequences. For detailed guidance, refer to the official Oracle documentation.

[oracle@server-salzburg ~]$ rman target sys/*******@graz_DGMGRL auxiliary sys/*******@salzburg_DGMGRL

Recovery Manager: Release 19.0.0.0.0 - Production on Mon Jun 9 22:53:31 2025
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

connected to target database: GRAZ (DBID=3282927897)
connected to auxiliary database: GRAZ (not mounted)

RMAN> duplicate target database for standby from active database nofilenamecheck;

Starting Duplicate Db at 09-JUN-25
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=743 device type=DISK

contents of Memory Script:
{
   backup as copy reuse
   passwordfile auxiliary format  '/u01/app/oracle/product/19/dbhome_1/dbs/orapwsalzburg'   ;
}
executing Memory Script

Starting backup at 09-JUN-25
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=747 device type=DISK
Finished backup at 09-JUN-25

contents of Memory Script:
{
   sql clone "create spfile from memory";
   shutdown clone immediate;
   startup clone nomount;
   restore clone from service  'graz_DGMGRL' standby controlfile;
}
executing Memory Script

sql statement: create spfile from memory

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area    5150603736 bytes

Fixed Size                     8907224 bytes
Variable Size                939524096 bytes
Database Buffers            4194304000 bytes
Redo Buffers                   7868416 bytes

Starting restore at 09-JUN-25
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=743 device type=DISK

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service graz_DGMGRL
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:02
output file name=+DG_DATA/SALZBURG/CONTROLFILE/current.261.1203375263
output file name=+DG_FRA/SALZBURG/CONTROLFILE/current.259.1203375263
Finished restore at 09-JUN-25

contents of Memory Script:
{
   sql clone 'alter database mount standby database';
}
executing Memory Script

sql statement: alter database mount standby database
RMAN-05158: WARNING: auxiliary (datafile) file name +DG_DATA/GRAZ/DATAFILE/system.261.1203340061 conflicts with a file used by the target database
RMAN-05529: warning: DB_FILE_NAME_CONVERT resulted in invalid ASM names; names changed to disk group only.
RMAN-05158: WARNING: auxiliary (datafile) file name +DG_DATA/GRAZ/DATAFILE/sysaux.262.1203340063 conflicts with a file used by the target database
RMAN-05158: WARNING: auxiliary (datafile) file name +DG_DATA/GRAZ/DATAFILE/undotbs1.263.1203340065 conflicts with a file used by the target database
RMAN-05158: WARNING: auxiliary (datafile) file name +DG_DATA/GRAZ/DATAFILE/users.265.1203340067 conflicts with a file used by the target database
RMAN-05158: WARNING: auxiliary (tempfile) file name +DG_DATA/GRAZ/TEMPFILE/temp.264.1203340065 conflicts with a file used by the target database

contents of Memory Script:
{
   set newname for tempfile  1 to
 "+DG_DATA";
   switch clone tempfile all;
   set newname for datafile  1 to
 "+DG_DATA";
   set newname for datafile  2 to
 "+DG_DATA";
   set newname for datafile  3 to
 "+DG_DATA";
   set newname for datafile  4 to
 "+DG_DATA";
   restore
   from  nonsparse   from service
 'graz_DGMGRL'   clone database
   ;
   sql 'alter system archive log current';
}
executing Memory Script

executing command: SET NEWNAME

renamed tempfile 1 to +DG_DATA in control file

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting restore at 09-JUN-25
using channel ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service graz_DGMGRL
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00001 to +DG_DATA
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:07
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service graz_DGMGRL
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00002 to +DG_DATA
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service graz_DGMGRL
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00003 to +DG_DATA
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service graz_DGMGRL
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00004 to +DG_DATA
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 09-JUN-25

sql statement: alter system archive log current

contents of Memory Script:
{
   switch clone datafile all;
}
executing Memory Script

datafile 1 switched to datafile copy
input datafile copy RECID=5 STAMP=1203375281 file name=+DG_DATA/SALZBURG/DATAFILE/system.262.1203375269
datafile 2 switched to datafile copy
input datafile copy RECID=6 STAMP=1203375281 file name=+DG_DATA/SALZBURG/DATAFILE/sysaux.263.1203375275
datafile 3 switched to datafile copy
input datafile copy RECID=7 STAMP=1203375281 file name=+DG_DATA/SALZBURG/DATAFILE/undotbs1.264.1203375279
datafile 4 switched to datafile copy
input datafile copy RECID=8 STAMP=1203375281 file name=+DG_DATA/SALZBURG/DATAFILE/users.265.1203375279
Finished Duplicate Db at 09-JUN-25

Create DataGuard Broker configuration

In this step, we'll create the Data Guard Broker configuration using the default settings. By default, the configuration will be stored in the Oracle Home. While it's possible to specify ASM as the storage location, we'll keep things simple and stick with the default setup for now.

Enable the broker on both primary and standby databases.


SQL> alter system set dg_broker_start=true scope=both;

System altered.

Connect to DGMGRL on primary and create the configuration for both sides (primary and standby).


[oracle@server-graz ~]$ dgmgrl sys/**********
DGMGRL for Linux: Release 19.0.0.0.0 - Production on Sun Jun 15 16:01:26 2025
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

Welcome to DGMGRL, type "help" for information.
Connected to "graz"
Connected as SYSDBA.
DGMGRL> create configuration 'stbyconf' as primary database is 'graz' connect identifier is graz;
Configuration "stbycong" created with primary database "graz"
DGMGRL> add database 'salzburg' as connect identifier is salzburg maintained as physical;
Database "salzburg" added

Enable configuration

If you execute immediatly show configuration, it might show few warnings, therefore give it a couple of seconds and rerun the command.

DGMGRL> show configuration;

Configuration - stbyconf

  Protection Mode: MaxPerformance
  Members:
  graz     - Primary database
    salzburg - Physical standby database

Fast-Start Failover:  Disabled

Configuration Status:
DISABLED

DGMGRL> enable configuration;
Enabled.
DGMGRL> show configuration;

Configuration - stbyconf

  Protection Mode: MaxPerformance
  Members:
  graz     - Primary database
    salzburg - Physical standby database
      Warning: ORA-16809: multiple warnings detected for the member

Fast-Start Failover:  Disabled

Configuration Status:
WARNING   (status updated 31 seconds ago)

DGMGRL>
DGMGRL> show configuration;

Configuration - stbyconf

  Protection Mode: MaxPerformance
  Members:
  graz     - Primary database
    salzburg - Physical standby database

Fast-Start Failover:  Disabled

Configuration Status:
SUCCESS   (status updated 34 seconds ago)

Comments

Popular posts from this blog

In-Place Upgrade from Oracle Linux 7 to 8 Using LEAPP

Upgrading from Oracle Linux 7 to Oracle Linux 8 is important to keep your system secure, stable, and supported. Oracle Linux 7 is now out of support, which means it no longer receives updates, security patches, or fixes. Moving to Oracle Linux 8 ensures you continue getting updates, new features, and better performance. The LEAPP tool makes this upgrade easier by allowing an in-place upgrade, so you don’t need to reinstall the system from scratch. It checks if your system is ready, identifies potential issues, and helps guide you through the upgrade process. This guide will walk you through the basic steps and requirements to successfully upgrade Oracle Linux 7 to Oracle Linux 8 using LEAPP. Oracle Lifetime Support Policy Regarding upgrading Oracle Linux 7 to Oracle Linux 8, here are a few key points to consider: Review the official documentation thoroughly before starting the upgrade process Ensure you have a complete backup in place, as this is an in-place upgrade and you may n...

Step-by-Step Guide to Renewing OLVM Certificates in Version 4.3

Managing certificates is a critical administrative task in Oracle Linux Virtualization Manager (OLVM) environments, as expired certificates can result in host disconnections, authentication failures, and service disruptions. In this article, we will cover the process of renewing certificates in OLVM version 4.3 before they expire, ensuring secure communication between the engine and managed KVM hosts. For this procedure, we will use the OlvmKvmCerts utility provided by Oracle to renew the required certificates. In OLVM 4.3, although some engine-related certificates can be renewed using the engine-setup command, not all certificates are automatically refreshed. Certain components require manual renewal because the certificate renewal process in this version is not fully automated. It is important to note that this limitation has been addressed in  OLVM 4.4.10.7-1.0.24 and later.  Additionally, OLVM 4.3 has been unsupported since October 2022, and OLVM 4.4 reached end of su...