Enterprise Manager Generic (MOSC)

MOSC Banner

Running 'tar -cf" command to backup OEM AGENT_HOME results in perm denied on nmo.new.bak

RHEL 7

19c DB used for repository

Attempting to patch OEM 13cR5 with the latest set of JUL2023 RUs for OEM.


Trying to backup the OMS, OH, and agent Homes first. When backing up AGENT_HOME via

"tar -cf" command, getting the following errors:

tar: /oracle/product/app/oracle/agent/agent_13.5.0.0.0/sbin/nmo.new.bak: Cannot open: Permission denied"

tar: /oracle/product/app/oracle/agent/agent_13.5.0.0.0/sbin/nmr.new.bak: Cannot open: Permission denied"

tar: Exiting with failure status due to previous errors.

----------------------------------------------------------------

I am running the tar command as Linux user "oracle" and when it hits these 2 files, I see that they have root:root ownership with perms of 711 so it makes sense that my tar cannot read them. Additionally, since they are backups of the executables for nmo and nmr (which have root:oinstall ownership), respectively, I am just wondering if my tar backup is ok as-is without the 2 *.bak files in question such that I would have all I needed to recover the $AGENT_HOME if my patching failed. THAT is my question.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center