Oracle Data Guard 19c Masterclass – part 8 : Data Guard Initialization Parameters

In the previous parts, we built the physical standby, configured Standby Redo Logs, configured redo transport, and enabled Redo Apply / Real-Time Apply.

Now we need to understand the initialization parameters that make the whole Data Guard architecture work.

This is one of those areas where an experienced DBA doesn’t just memorize parameters. The important question is:

What does each parameter control, and what happens during startup, switchover, failover, and troubleshooting?

1. The Data Guard Parameter Landscape

The main parameters we’ll work with are:

DB_NAME
DB_UNIQUE_NAME
INSTANCE_NAME
LOG_ARCHIVE_CONFIG
LOG_ARCHIVE_DEST_n
LOG_ARCHIVE_DEST_STATE_n
LOG_ARCHIVE_MAX_PROCESSES
LOG_ARCHIVE_FORMAT
REMOTE_LOGIN_PASSWORDFILE
FAL_SERVER
FAL_CLIENT
STANDBY_FILE_MANAGEMENT
DB_FILE_NAME_CONVERT
LOG_FILE_NAME_CONVERT
CONTROL_FILES

Some are essential.

Some are legacy or situation-dependent.

Some should not be configured blindly.

2. Our Architecture

We’ll continue with:

Primary RAC
----------------
DB_NAME        = PRODDB
DB_UNIQUE_NAME = PRODDB

Standby RAC
----------------
DB_NAME        = PRODDB
DB_UNIQUE_NAME = PRODDB_DR

Notice:

DB_NAME
   |
   +---- SAME

DB_UNIQUE_NAME
   |
   +---- DIFFERENT

This is fundamental.

3. DB_NAME

Check:

SHOW PARAMETER db_name;

Expected:

NAME     TYPE   VALUE
-------- ------ -------
db_name  string PRODDB

For a physical standby:

Primary:
DB_NAME = PRODDB

Standby:
DB_NAME = PRODDB

The physical standby represents the same database at the database level.

4. DB_UNIQUE_NAME

Check:

SHOW PARAMETER db_unique_name;

Primary:

PRODDB

Standby:

PRODDB_DR

This identifies each database uniquely within the Data Guard configuration.

Think:

DB_NAME
    = database identity

DB_UNIQUE_NAME
    = site/database identity inside Data Guard

5. Why DB_UNIQUE_NAME Is So Important

Suppose we have:

PRODDB
   |
   +---- PRODDB_DR1
   |
   +---- PRODDB_DR2

All three databases have:

DB_NAME = PRODDB

but:

DB_UNIQUE_NAME

PRODDB
PRODDB_DR1
PRODDB_DR2

Without DB_UNIQUE_NAME, Data Guard couldn’t properly distinguish the databases.

6. Verify Both Sides

Primary:

SELECT
    name,
    db_unique_name,
    database_role
FROM v$database;

Expected:

NAME     DB_UNIQUE_NAME  DATABASE_ROLE
-------- --------------- ----------------
PRODDB   PRODDB          PRIMARY

Standby:

NAME     DB_UNIQUE_NAME  DATABASE_ROLE
-------- --------------- ----------------
PRODDB   PRODDB_DR       PHYSICAL STANDBY

This should be one of your first Data Guard checks.

7. LOG_ARCHIVE_CONFIG

This parameter defines the Data Guard configuration members.

Example:

ALTER SYSTEM SET
LOG_ARCHIVE_CONFIG='DG_CONFIG=(PRODDB,PRODDB_DR)'
SCOPE=BOTH SID='*';

Check:

SHOW PARAMETER log_archive_config;

Expected:

DG_CONFIG=(PRODDB,PRODDB_DR)

8. Multiple Standbys

For multiple standby databases:

ALTER SYSTEM SET
LOG_ARCHIVE_CONFIG=
'DG_CONFIG=(PRODDB,PRODDB_DR1,PRODDB_DR2)'
SCOPE=BOTH SID='*';

Architecture:

                 PRODDB
                /      \
               /        \
              v          v
        PRODDB_DR1   PRODDB_DR2

Every database should know the members relevant to its Data Guard configuration.

9. LOG_ARCHIVE_DEST_n

This is arguably the most important Data Guard parameter family.

For example:

ALTER SYSTEM SET
LOG_ARCHIVE_DEST_2=
'SERVICE=PRODDB_DR
 ASYNC
 NOAFFIRM
 VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
 DB_UNIQUE_NAME=PRODDB_DR'
SCOPE=BOTH SID='*';

This defines:

WHERE
HOW
WHEN

redo is transported.

10. Breaking Down LOG_ARCHIVE_DEST_2

Our parameter:

SERVICE=PRODDB_DR
ASYNC
NOAFFIRM
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
DB_UNIQUE_NAME=PRODDB_DR

means:

SERVICE

Oracle Net service used to connect to the standby.

SERVICE=PRODDB_DR
ASYNC

Redo is transported asynchronously.

NOAFFIRM

Don’t require the stronger acknowledgment semantics of AFFIRM.

VALID_FOR

Specifies the redo source and database role in which the destination is valid.

DB_UNIQUE_NAME

Identifies the remote Data Guard database.

11. LOG_ARCHIVE_DEST_STATE_n

The destination can be enabled or disabled.

Enable:

ALTER SYSTEM SET
LOG_ARCHIVE_DEST_STATE_2=ENABLE
SCOPE=BOTH SID='*';

Disable:

ALTER SYSTEM SET
LOG_ARCHIVE_DEST_STATE_2=DEFER
SCOPE=BOTH SID='*';

This is useful during maintenance.

For example:

DR maintenance
      ↓
DEFER transport
      ↓
Perform maintenance
      ↓
ENABLE transport

12. Never Confuse DEFER and REMOVE

If you want to temporarily stop transport:

ALTER SYSTEM SET
LOG_ARCHIVE_DEST_STATE_2=DEFER
SCOPE=BOTH SID='*';

You don’t need to remove the entire destination.

That’s much safer operationally.

13. STANDBY_FILE_MANAGEMENT

This parameter is extremely important.

Recommended:

ALTER SYSTEM SET
STANDBY_FILE_MANAGEMENT=AUTO
SCOPE=BOTH SID='*';

Check:

SHOW PARAMETER standby_file_management;

Expected:

AUTO

14. What Does AUTO Do?

Suppose you create a new datafile on the primary:

ALTER TABLESPACE USERS
ADD DATAFILE SIZE 10G;

With:

STANDBY_FILE_MANAGEMENT=AUTO

Oracle can automatically create the corresponding datafile on the standby.

Without it:

Primary:
new datafile

Standby:
missing datafile

which can cause recovery problems.

15. Why This Is Important

Imagine production adds:

+DATA/PRODDB/DATAFILE/USERS.123

The standby must also have the corresponding file.

With:

STANDBY_FILE_MANAGEMENT=AUTO

Oracle handles this automatically when the environment is correctly configured.

This is one of the reasons I strongly recommend:

AUTO

for a properly designed physical standby.

16. Important Warning

STANDBY_FILE_MANAGEMENT=AUTO does not mean:

“Oracle will magically solve every file-name problem.”

If primary and standby storage layouts differ, you still need appropriate file-name handling.

This brings us to:

DB_FILE_NAME_CONVERT

17. DB_FILE_NAME_CONVERT

This parameter maps primary datafile paths to standby paths.

Example:

Primary:

/u02/oradata/PRODDB/

Standby:

/u03/oradata/PRODDB_DR/

You could define:

ALTER SYSTEM SET
DB_FILE_NAME_CONVERT=
('/u02/oradata/PRODDB/','/u03/oradata/PRODDB_DR/')
SCOPE=SPFILE;

But…

In ASM environments, don’t automatically configure this.

If both databases use ASM and Oracle Managed Files, this parameter may be unnecessary.

18. ASM Example

Our environment uses:

+DATA
+RECO

If both primary and standby use ASM with compatible disk-group structures, Oracle can manage file creation without manually mapping every filename.

Therefore:

ASM + OMF

often means:

DB_FILE_NAME_CONVERT
not required

Don’t configure it simply because a tutorial tells you to.

19. LOG_FILE_NAME_CONVERT

This parameter maps online redo log file paths between primary and standby.

Example:

Primary:
/u02/oradata/PRODDB/redo/

Standby:
/u03/oradata/PRODDB_DR/redo/

You could use:

ALTER SYSTEM SET
LOG_FILE_NAME_CONVERT=
('/u02/oradata/PRODDB/redo/',
 '/u03/oradata/PRODDB_DR/redo/')
SCOPE=SPFILE;

Again:

In ASM/OMF environments, don’t configure this unnecessarily.

20. Why You Shouldn’t Blindly Use Convert Parameters

A common old-style Data Guard tutorial gives you:

DB_FILE_NAME_CONVERT
LOG_FILE_NAME_CONVERT

as mandatory parameters.

That’s not a good expert approach.

First ask:

Are we using ASM?
Are we using OMF?
Are storage layouts identical?
Does Oracle already know where to create files?

If yes, unnecessary conversion parameters can add complexity.

21. REMOTE_LOGIN_PASSWORDFILE

Data Guard remote administration relies heavily on password-file authentication.

Check:

SHOW PARAMETER remote_login_passwordfile;

Typically:

EXCLUSIVE

is used.

The password file must be correctly synchronized between primary and standby when required.

22. Why Password Files Matter

When the primary connects to the standby for redo transport:

Primary
   |
   | SYS authentication
   v
Standby

Oracle needs compatible authentication credentials.

If the password files don’t match appropriately, you can see errors such as:

ORA-16191

This is one of the first things to check when redo transport suddenly stops.

23. FAL_SERVER

Now we enter the gap-resolution parameters.

FAL means:

Fetch Archive Log

Historically, FAL_SERVER tells the standby where it can request missing archive logs.

Example:

ALTER SYSTEM SET
FAL_SERVER=PRODDB
SCOPE=BOTH;

The standby can use the specified Oracle Net service to request missing redo.

24. FAL_CLIENT

You may see configurations such as:

ALTER SYSTEM SET
FAL_CLIENT=PRODDB_DR
SCOPE=BOTH;

However, this parameter is generally associated with older/manual FAL configurations and is not something I recommend adding blindly to every 19c environment.

Modern Data Guard configurations can resolve gaps without requiring you to rely on an old-style FAL_CLIENT setup.

This is an important distinction between:

"parameters you may see in old documentation"

and:

"parameters you actually need in a modern 19c architecture."

25. FAL Concept

Suppose:

Primary:
100
101
102
103
104

Standby:
100
101
104

The standby is missing:

102
103

That’s an archive gap.

Conceptually:

Standby
   |
   | "I need 102-103"
   v
Primary
   |
   v
Missing archive logs
   |
   v
Standby

We’ll cover this in depth in the dedicated gap-management part.

26. LOG_ARCHIVE_MAX_PROCESSES

Check:

SHOW PARAMETER log_archive_max_processes;

This controls the number of ARCn processes Oracle can use for archiving.

For modern Data Guard systems, don’t blindly increase it.

If you have:

High redo generation
Multiple destinations
RAC
Heavy archiving

you should evaluate whether archiving processes are actually a bottleneck before changing the parameter.

27. LOG_ARCHIVE_FORMAT

Check:

SHOW PARAMETER log_archive_format;

This controls the naming format of archived redo logs.

Example:

%t
%s
%r

A common format might include:

thread
sequence
resetlogs ID

For RAC, thread information is particularly important.

28. RAC and Archive Naming

With RAC:

Thread 1
Thread 2

you need to distinguish archive sequences belonging to different threads.

For example:

thread 1 → sequence 500
thread 2 → sequence 500

The sequence number alone is not globally unique across RAC threads.

Therefore:

THREAD + SEQUENCE

is the important combination.

29. CONTROL_FILES

The standby has its own control files.

Check:

SHOW PARAMETER control_files;

The control file contains critical Data Guard metadata such as:

redo information
archive history
datafile information
checkpoint information

The standby control file must represent the correct physical standby state.

30. Standby Control File

When creating the standby using RMAN:

RMAN DUPLICATE TARGET DATABASE
FOR STANDBY

RMAN creates the appropriate standby database structure.

This is one reason RMAN is strongly preferred over manually building every component.

31. COMPATIBLE

Check:

SHOW PARAMETER compatible;

For Oracle 19c:

19.0.0

or an appropriate compatible setting for your environment.

Don’t change COMPATIBLE casually.

Once advanced to a higher value, downgrading can be problematic.

For Data Guard, primary and standby compatibility must be considered carefully.

32. REMOTE_LOGIN_PASSWORDFILE + RAC

In RAC:

PROD1
PROD2

must have consistent authentication infrastructure.

If password files differ between nodes, you can get confusing Data Guard failures.

Always validate:

password file
Oracle Net
SYS credentials

across all RAC nodes.

33. LOG_ARCHIVE_DEST_1

Usually the local archive destination is:

LOG_ARCHIVE_DEST_1

Example:

ALTER SYSTEM SET
LOG_ARCHIVE_DEST_1=
'LOCATION=USE_DB_RECOVERY_FILE_DEST
 VALID_FOR=(ALL_LOGFILES,ALL_ROLES)'
SCOPE=BOTH SID='*';

This tells Oracle where local archived redo should go.

For a production environment using FRA:

USE_DB_RECOVERY_FILE_DEST

is often convenient.

34. Why VALID_FOR=(ALL_LOGFILES,ALL_ROLES)?

This is useful for role transitions.

It tells Oracle that the destination is valid for:

all redo log types
+
all database roles

This can simplify configurations that need to survive:

PRIMARY → STANDBY
STANDBY → PRIMARY

during a switchover.

35. Role-Aware Configuration

A strong Data Guard configuration should be designed with role transitions in mind.

For example:

Primary:
DEST_2 → DR

Standby:
DEST_2 → Primary

After switchover:

Old Primary → Standby
Old Standby → Primary

The parameters should naturally support this transition.

That’s why:

DB_UNIQUE_NAME
VALID_FOR
LOG_ARCHIVE_DEST_n

are so important.

36. Example Primary Configuration

Let’s create a clean example.

ALTER SYSTEM SET
LOG_ARCHIVE_CONFIG='DG_CONFIG=(PRODDB,PRODDB_DR)'
SCOPE=BOTH SID='*';

ALTER SYSTEM SET
LOG_ARCHIVE_DEST_1=
'LOCATION=USE_DB_RECOVERY_FILE_DEST
 VALID_FOR=(ALL_LOGFILES,ALL_ROLES)'
SCOPE=BOTH SID='*';

ALTER SYSTEM SET
LOG_ARCHIVE_DEST_2=
'SERVICE=PRODDB_DR
 ASYNC
 NOAFFIRM
 REOPEN=60
 VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
 DB_UNIQUE_NAME=PRODDB_DR'
SCOPE=BOTH SID='*';

ALTER SYSTEM SET
LOG_ARCHIVE_DEST_STATE_2=ENABLE
SCOPE=BOTH SID='*';

37. Example Standby Configuration

On the standby:

ALTER SYSTEM SET
LOG_ARCHIVE_CONFIG='DG_CONFIG=(PRODDB,PRODDB_DR)'
SCOPE=BOTH SID='*';

ALTER SYSTEM SET
LOG_ARCHIVE_DEST_1=
'LOCATION=USE_DB_RECOVERY_FILE_DEST
 VALID_FOR=(ALL_LOGFILES,ALL_ROLES)'
SCOPE=BOTH SID='*';

ALTER SYSTEM SET
STANDBY_FILE_MANAGEMENT=AUTO
SCOPE=BOTH SID='*';

Then configure the appropriate transport destination for the reverse role if your architecture requires role-aware transport.

38. Verify Everything

Run:

SELECT name,
       value
FROM v$parameter
WHERE name IN
(
    'db_name',
    'db_unique_name',
    'log_archive_config',
    'log_archive_dest_1',
    'log_archive_dest_2',
    'log_archive_dest_state_2',
    'standby_file_management',
    'remote_login_passwordfile',
    'fal_server',
    'fal_client'
)
ORDER BY name;

This gives you a quick Data Guard parameter inventory.

39. Better: Use SHOW PARAMETER

For troubleshooting, I often prefer:

SHOW PARAMETER db_unique_name;
SHOW PARAMETER log_archive;
SHOW PARAMETER standby_file;
SHOW PARAMETER fal;
SHOW PARAMETER remote_login;

This is fast when working interactively.

40. Expert Validation Matrix

For our environment:

ParameterPrimaryStandby
DB_NAMEPRODDBPRODDB
DB_UNIQUE_NAMEPRODDBPRODDB_DR
LOG_ARCHIVE_CONFIGDG_CONFIGDG_CONFIG
STANDBY_FILE_MANAGEMENT—AUTO
REMOTE_LOGIN_PASSWORDFILEEXCLUSIVEEXCLUSIVE
LOG_ARCHIVE_DEST_1LocalLocal
LOG_ARCHIVE_DEST_2DRRole-dependent
LOG_ARCHIVE_DEST_STATE_2ENABLERole-dependent

The exact final configuration depends on whether you’re using:

Data Guard Broker
RAC
ASM
Active Data Guard
multiple standbys

41. What Should NOT Be Blindly Configured?

This is an important expert-level lesson.

Don’t automatically add:

DB_FILE_NAME_CONVERT
LOG_FILE_NAME_CONVERT
FAL_CLIENT
FAL_SERVER

just because you found them in an old Data Guard script.

Instead ask:

Why do I need this parameter?
What problem does it solve?
Is it still required in Oracle 19c?
Does Broker manage this?
Does ASM/OMF eliminate the need?

That mindset is much more valuable for the OCM-level exam and real production work.

42. Common Mistake — Wrong DB_UNIQUE_NAME

Primary:

DB_UNIQUE_NAME=PRODDB

Standby:

DB_UNIQUE_NAME=PRODDB

Wrong.

It should be:

Primary → PRODDB
Standby → PRODDB_DR

43. Common Mistake — Wrong SERVICE

Example:

SERVICE=PRODDB

but the service doesn’t point to the standby listener.

Test:

tnsping PRODDB_DR

and:

sqlplus sys@PRODDB_DR as sysdba

before blaming Data Guard.

44. Common Mistake — STANDBY_FILE_MANAGEMENT=MANUAL

If you have:

STANDBY_FILE_MANAGEMENT=MANUAL

and create new datafiles on the primary, the standby may require manual intervention.

For a normal physical standby:

AUTO

is generally the appropriate choice.

45. Common Mistake — Ignoring VALID_FOR

A destination that works today may behave badly after switchover if it isn’t role-aware.

Always think about:

What happens after switchover?
What happens after failover?

before finalizing your parameter design.

46. A Production Parameter Audit

I recommend keeping a simple script:

SET LINESIZE 250
SET PAGESIZE 100

COLUMN name FORMAT A35
COLUMN value FORMAT A150

SELECT name,
       value
FROM v$parameter
WHERE name IN
(
    'db_name',
    'db_unique_name',
    'log_archive_config',
    'log_archive_dest_1',
    'log_archive_dest_2',
    'log_archive_dest_state_1',
    'log_archive_dest_state_2',
    'standby_file_management',
    'remote_login_passwordfile',
    'fal_server',
    'fal_client',
    'compatible'
)
ORDER BY name;

Save the output from:

PRIMARY
STANDBY

and compare them.

47. The Expert Mental Model

Don’t memorize 20 parameters individually.

Group them:

Identity
DB_NAME
DB_UNIQUE_NAME
Redo transport
LOG_ARCHIVE_CONFIG
LOG_ARCHIVE_DEST_n
LOG_ARCHIVE_DEST_STATE_n
VALID_FOR
Authentication
REMOTE_LOGIN_PASSWORDFILE
File management
STANDBY_FILE_MANAGEMENT
DB_FILE_NAME_CONVERT
LOG_FILE_NAME_CONVERT
Gap resolution
FAL_SERVER
FAL_CLIENT
Local redo/archive management
LOG_ARCHIVE_DEST_1
LOG_ARCHIVE_MAX_PROCESSES
LOG_ARCHIVE_FORMAT

This makes the architecture much easier to understand.

48. Part 8 — Final Checklist

Before continuing, verify that you can explain:

✓ DB_NAME
✓ DB_UNIQUE_NAME
✓ LOG_ARCHIVE_CONFIG
✓ LOG_ARCHIVE_DEST_n
✓ LOG_ARCHIVE_DEST_STATE_n
✓ VALID_FOR
✓ DB_UNIQUE_NAME in LOG_ARCHIVE_DEST_n
✓ STANDBY_FILE_MANAGEMENT
✓ DB_FILE_NAME_CONVERT
✓ LOG_FILE_NAME_CONVERT
✓ REMOTE_LOGIN_PASSWORDFILE
✓ FAL_SERVER
✓ FAL_CLIENT
✓ LOG_ARCHIVE_DEST_1
✓ Role-aware Data Guard configuration
✓ RAC implications
✓ ASM/OMF implications

More importantly, you should be able to answer:

Which parameters are actually necessary in my Oracle 19c architecture, and which ones am I configuring only because an old tutorial told me to?

That’s the mindset we’re aiming for in this Masterclass.

Bookmark the permalink.
Loading Facebook Comments ...

Leave a Reply