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

Oracle home is already provisioned for the target – Fleet Maintenance

2026-04-16 Oracle By Henrique

OEM PAM Authentication Failure — Fix with SSH Key Named Credentials

2026-04-16 Tools By Henrique

PRCD-1229 — srvctl Refuses Database Access After Manual Upgrade in Oracle RAC

2026-04-16 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 » OEM PAM Authentication Failure — Fix with SSH Key Named Credentials
Tools

OEM PAM Authentication Failure — Fix with SSH Key Named Credentials

HenriqueBy Henrique2026-04-163 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email Telegram WhatsApp

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

Scheduled jobs in Oracle Enterprise Manager were failing across multiple hosts with the following error:

LOG: Local Authentication Failed...Attempt PAM authentication...PAM failed with error: Authentication failure

This happens in environments where the oracle user has different passwords on each server — a common situation in companies without a centralized credential management policy.

The fix removes the password dependency entirely: a single SSH Key Named Credential works across all monitored hosts.


Root Cause

OEM authenticates via PAM (Pluggable Authentication Module) using the password stored in the Named Credential. When the oracle user’s password on the target host doesn’t match the stored credential, authentication fails.

In environments with dozens of hosts and inconsistent password rotation history, password-based Named Credentials are simply unmaintainable.


Solution: SSH Key Named Credential

Public/private key authentication eliminates the problem. The OMS uses its private key to authenticate, and each target host only needs the public key in the corresponding user’s authorized_keys.

Step 1 — Generate the key pair on the OMS

Run this as the oracle user on the OMS server:

ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa -N ""

If a key pair already exists, confirm it’s there:

ls ~/.ssh/id_rsa ~/.ssh/id_rsa.pub

Step 2 — Distribute the public key to target hosts

ssh-copy-id -i ~/.ssh/id_rsa.pub oracle@<hostname>

ssh-copy-id -i ~/.ssh/id_rsa.pub root@<hostname>

Repeat for every host monitored by OEM.

Step 3 — Review ~/.ssh/config on the OMS

If you have entries in ~/.ssh/config, make sure IdentityFile points to the right key:

Host *.example.com
    IdentityFile ~/.ssh/id_rsa
    IdentitiesOnly yes

⚠️ IdentitiesOnly yes is important. Without it, SSH tries all available keys before failing, which can trigger Too many authentication failures on hosts with a low MaxAuthTries setting — often seen during agent deployments.

Step 4 — Create Named Credential for oracle

Navigate to: Setup → Security → Named Credentials → Create

FieldValue
Credential NameORACLE\_SSH\_KEY
Authenticating Target TypeHost
Credential TypeSSH Key Credentials
ScopeGlobal
UserNameoracle
SSH Private Keycontents of ~/.ssh/id_rsa
SSH Public Keycontents of ~/.ssh/id_rsa.pub
Run PrivilegeNone

⚠️ Always use Scope: Global. Credentials scoped to Target will not appear in the selection list for multi-host jobs.

Step 5 — Create Named Credential for root

Repeat the process with:

FieldValue
Credential NameROOT\_SSH\_KEY
UserNameroot
SSH Private Keycontents of ~/.ssh/id_rsa
SSH Public Keycontents of ~/.ssh/id_rsa.pub

💡 Both credentials share the same key pair. What controls access is the presence of the public key in the correct user’s authorized_keys on each host.

Step 6 — Set as Preferred Credential

Setup → Security → Preferred Credentials → Target Type: Host → Default Preferred Credentials → Set Credentials → select Named → ORACLE_SSH_KEY → Save

Step 7 — Test

Setup → Security → Named Credentials → select ORACLE_SSH_KEY → Test → pick a target host.

Expected result: Succeeded


Before and After

BeforeAfter
PAM authentication failure on every jobSSH key-based authentication
Different password per server caused failuresPassword-independent
Individual credential per hostOne Global credential for all hosts
Jobs failing across multiple targetsJobs running successfully on all hosts

✅ Compatibility: tested on OEM 13c and OEM 13.5. The Named Credentials workflow is equivalent across both versions.


References

  • Oracle Documentation — Managing Named Credentials
  • Oracle Support — Doc ID 1585459.1 (Named Credentials with SSH Key)

authentication named-credentials oem ssh troubleshooting
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
Previous ArticlePRCD-1229 — srvctl Refuses Database Access After Manual Upgrade in Oracle RAC
Next Article Oracle home is already provisioned for the target – Fleet Maintenance

Related Posts

Oracle

Oracle home is already provisioned for the target – Fleet Maintenance

2026-04-16
Read More
OEM

EMD runCollection Error – OEM Agent Running but Not Collecting Metrics

2026-04-14
Read More
Oracle

ORA-01031 — Insufficient Privileges When Creating an IDENTITY Column

2026-04-03
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
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.