Close Menu
  • Home
  • Oracle
    • ASM
    • Data Guard
    • RAC
  • Performance
  • Tools
  • Troubleshooting
  • Python
  • Shell Script
Search

Oracle RAC 12.2 on VMware Workstation – Post 3: Grid Infrastructure Installation

2026-04-05 Oracle By Henrique

Oracle RAC 12.2 on VMware Workstation — Post 1: VMware Networking and Openfiler Setup

2026-04-05 Oracle By Henrique

Oracle RAC 12.2 on VMware Workstation – Post 2: Oracle Linux Configuration and iSCSI

2026-04-05 Oracle By Henrique
YouTube LinkedIn RSS
  • About
  • Contact
  • Legal
    • Cookie Policy
    • Disclaimer
    • Privacy Policy
    • Terms of Use
  • RSS
  • English
    • Portuguese (Brazil)
Execute StepExecute Step
YouTube LinkedIn RSS
  • Home
  • Oracle
    • ASM
    • Data Guard
    • RAC
  • Performance
  • Tools
  • Troubleshooting
  • Python
  • Shell Script
Execute StepExecute Step
Home » PRVG-2002 — How to Fix “Encountered Error in Copying File” in Oracle RAC

PRVG-2002 — How to Fix “Encountered Error in Copying File” in Oracle RAC

HenriqueBy Henrique2026-03-07Updated:2026-04-045 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email Telegram WhatsApp

This post is also available in: Português (Portuguese (Brazil))

While running runcluvfy.sh or installing Oracle Grid Infrastructure, you may encounter the following error:

PRVG-2002 : Encountered error in copying file "/etc/resolv.conf"
            from node "node1" to node "node2"
            protocol error: filename does not match request

PRVG-2002 : Encountered error in copying file "/etc/nsswitch.conf"
            from node "node1" to node "node2"
            protocol error: filename does not match request

This error prevents the CVU from validating DNS and Name Service configuration between nodes. The revealing detail is the message “protocol error: filename does not match request” — it indicates the problem is not with Oracle, but with the operating system’s SCP.

In this article, I’ll explain the root cause, why this specifically affects RHEL 8, OL 8, Rocky Linux 8 and distributions with OpenSSH 8.0+, and walk through both the quick workaround and the definitive solution.

💡 In practice: I encountered this error in a RHEL 8 environment during Grid Infrastructure 19c installation. The MOS solution (Doc ID 2761745.1) mentioned only Oracle Solaris, but the same fix works on Linux — the issue is with OpenSSH, not the operating system.


Why the PRVG-2002 Error Occurs

The Cluster Verification Utility (CVU) uses the scp command internally to copy files between nodes during validation checks. The CVU builds scp commands with single quotes around the remote file path:

scp -p node2:'/etc/resolv.conf' /tmp/local_copy

The problem with OpenSSH 8.0+

Starting with OpenSSH 8.0 (released April 2019), scp gained an additional security check: it validates that the filename sent by the remote server matches exactly what was requested.

When the CVU sends the path with single quotes, the new scp interprets it differently and rejects the copy with the message:

protocol error: filename does not match request

The -T flag for scp disables this filename verification, resolving the conflict.

Affected distributions

Any distribution with OpenSSH 8.0 or later:

  • RHEL 8 / Oracle Linux 8 (OpenSSH 8.0p1)
  • RHEL 9 / Oracle Linux 9 (OpenSSH 8.7p1+)
  • Rocky Linux 8/9
  • AlmaLinux 8/9
  • CentOS 8

To check your version:

ssh -V

Diagnosis

Before fixing, confirm the issue is actually with SCP.

Test SCP between nodes manually

scp -p node2:'/etc/resolv.conf' /tmp/test_resolv.conf

scp -T -p node2:'/etc/resolv.conf' /tmp/test_resolv.conf

If the first fails with “protocol error” and the second works, it’s confirmed — the problem is OpenSSH 8.0+’s filename validation.

Check OpenSSH version

ssh -V

rpm -qa | grep openssh

Solution 1: SCP Wrapper with -T Flag (Quick Workaround)

This solution temporarily replaces the scp binary with a wrapper script that automatically adds the -T flag.

Apply on ALL nodes (as root)

cp -p /usr/bin/scp /usr/bin/scp.orig

echo '#!/bin/bash' > /usr/bin/scp

echo '/usr/bin/scp.orig -T "$@"' >> /usr/bin/scp

chmod 755 /usr/bin/scp

cat /usr/bin/scp

Expected wrapper content:

#!/bin/bash
/usr/bin/scp.orig -T "$@"

Validate

scp -p node2:/etc/resolv.conf /tmp/test_resolv.conf

./runcluvfy.sh stage -pre crsinst -n node1,node2 -verbose | grep -i "resolv\|nsswitch\|PRVG-2002"

Expected result:

Verifying resolv.conf Integrity ...PASSED
Verifying DNS/NIS name service ...PASSED

⚠ Important: Revert the workaround after Grid Infrastructure installation.

Revert after installation

mv /usr/bin/scp.orig /usr/bin/scp

Workaround risks

  • Replacing system binaries can trigger security audit alerts
  • Package updates (yum update openssh) can overwrite the wrapper
  • Compliance tools (AIDE, Tripwire, OSSEC) may report the change
  • Never leave the wrapper permanently — always revert after installation

Solution 2: Install with Release Update (Recommended for Production)

Oracle fixed the CVU in later Release Updates to handle OpenSSH 8.0+. Applying an RU during installation eliminates the problem without modifying the system’s scp.

Install with -applyRU

mv $GRID_HOME/OPatch $GRID_HOME/OPatch.bkp
unzip p6880880_190000_Linux-x86-64.zip -d $GRID_HOME/
cd $GRID_HOME
./gridSetup.sh -applyRU /u01/stage/<RU_PATCH_NUMBER>

The installer applies the RU during installation, and the updated CVU knows how to handle OpenSSH 8.0+’s scp.

Note: Always use the most recent available RU. The newer it is, the more fixes are included.


Solution 3: Apply CVU-Specific Patch

If you can’t apply a full RU, there’s a one-off patch that fixes only the CVU:

  • MOS Patch 30159782 — Fixes CVU behavior with OpenSSH 8.0+
cd $GRID_HOME/OPatch
./opatch apply /u01/stage/30159782/

See MOS Doc ID 2555697.1 for details on this patch.


Quick Diagnostic Checklist

ssh -V

scp -p node2:/etc/resolv.conf /tmp/test_resolv.conf

scp -T -p node2:/etc/resolv.conf /tmp/test_resolv.conf

file /usr/bin/scp
cat /usr/bin/scp

./runcluvfy.sh stage -pre crsinst -n node1,node2 -verbose | grep -i "resolv\|nsswitch\|PRVG-2002"

Conclusion

The PRVG-2002 error with “protocol error: filename does not match request” is caused by an incompatibility between Oracle’s CVU and OpenSSH 8.0+’s SCP — it’s not a network, SSH, or permissions issue.

The diagnosis is straightforward:

  1. Check OpenSSH version — if it’s 8.0+, the environment is affected
  2. Test SCP manually — with and without the -T flag
  3. Apply the appropriate fix:
  4. Lab/urgency: SCP wrapper with -T flag (revert after installation)
  5. Production: install with -applyRU or apply patch 30159782
  6. Validate with runcluvfy.sh

The most important point: always revert the SCP workaround after Grid installation. System binary modifications should never be permanent.


References:
– MOS Doc ID 2761745.1 — PRVG-2002 Encountered Error in Copying File
– MOS Doc ID 2555697.1 — INS-06006 GI RunInstaller Fails If OpenSSH Is Upgraded to 8.x
– OpenSSH 8.0 Release Notes — SCP filename validation

openssh prvg-2002 runcluvfy scp
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
Previous ArticleORA-29548 — How to Fix “Java System Class Reported” in Oracle Database
Next Article ORA-01400 – How to Fix “Cannot Insert NULL into DVSYS.REALM_OBJECT$” in Datapatch

Related Posts

Oracle

PRVG-01017 – How to Fix “NTP Configuration File” in Oracle RAC

2026-02-27
Read More
Add A Comment
Leave A Reply Cancel Reply

Demo
Follow Me
  • Email
  • GitHub
  • LinkedIn
  • RSS
  • YouTube

INS-06006 – Passwordless SSH Connectivity Not Set Up

2026-02-2614 Views

ORA-29548 — How to Fix “Java System Class Reported” in Oracle Database

2026-03-0510 Views

PRVG-2002 — How to Fix “Encountered Error in Copying File” in Oracle RAC

2026-03-078 Views
Demo
Tags
alter-sequence asm clusterware create sequence datapatch grid-infrastructure Grid Infrastructure how-to identity-column identity column ins-08101 installation inventory iSCSI lab listener opatch opatchauto Openfiler openssh ora-01031 ORA-12547 ora-12777 orabasetab oracle oracle oracle-database oracle-home oracle-linux oracle-rac Oracle Database Oracle Linux Oracle RAC out-of-place passwordless-ssh patching patching prvg-2002 RAC Installation redo-log runcluvfy scp tns troubleshooting VMware
Execute Step
YouTube LinkedIn RSS
  • Home
  • About
  • Contact
  • RSS
  • English
    • Português (Portuguese (Brazil))
© 2026 ExecuteStep. Designed by ThemeSphere.

Type above and press Enter to search. Press Esc to cancel.

Ad Blocker Enabled!
Ad Blocker Enabled!
Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.