RMAN – install_driver(Oracle) failed: Attempt to reload DBD/Oracle.pm aborted

Recently I came across this issue while migrating our metrics and targets from Enterprise Manager 12c to Enterprise Manager 13c.

Pretty much every backup jobs schedule from EM13c console for this particular node is failing with following error message.

install_driver(Oracle) failed: Attempt to reload DBD/Oracle.pm aborted.
Compilation failed in require at (eval 15) line 3.

SELINUX was disabled per MOS Document. That doesn’t help.

Workaround!

oracle – Management Agent owner
oraaudit – Database owner

As oraaudit user
id
uid=10712(oraaudit) gid=1055(dba) groups=1055(dba)

As oracle user
id
uid=510(oracle) gid=510(oracle) groups=510(oracle),1055(dba)

usermod -a -G oracle oratest   (as root or sudo)

Added oraaudit user to group oracle which is own by oracle who is the owner of EM13c Management agent.

Sanity check (oraaudit)
id
uid=10712(oraaudit) gid=1055(dba) groups=1055(dba),510(oracle)

Once oracle and oraaudit user are in the group “oracle”, which is own by the EM13c Agent owner “oracle”, backup from EM console will succeed.

Leave a comment