EM 13C AGENT DEPLOYMENT FAILS BECAUSE THE USER ORACLE DOES NOT HAVE THE PRIVILEGES TO RUN COMMANDS AS USER ROOT
Oracle Enterprise Manager
Management Agent installation fails on a target host with RedHat 7 cause an agent installation user does not have sufficient privileges.
RELATED
EM 13C AGENT DEPLOYMENT FAILS BECAUSE THE VISIBLEPW IS NOT SET THE SUDOERS FILE
EM 13C AGENT DEPLOYMENT FAILS ON REDHAT/OEL 7.X TARGET HOSTS
SYMPTOMS
EM 13c agent deployment crashes on the remote prerequisite checks
The error stack is
Prerequisite Check Name: Do you have the privileges to run as root using the Privilege Delegation tool? Status: Warning Error: The user "oracle" does not have the privileges to run commands as user "root" using the Privilege Delegation tool "/usr/bin/sudo". Recommendation: Ensure user "oracle" has privileges to run commands as user "root" using the Privilege Delegation tool "/usr/bin/sudo". If the Privilege Delegation tool "/usr/bin/sudo" requires a terminal for execution over ssh then set the "oracle.sysman.prov.agentpush.enablePty" property to true in the "*/agentpush.properties" file, which is present on the OMS host. You can also ignore this warning and continue in which case the root.sh, any preinstallation or postinstallation scripts specified with run as root enabled will not be run and you have to run them manually after installation.
SOLUTION
Add an agent installation user (eg oracle) to the /etc/sudoers file and retry an agent deployment
## Before
[oracle@dbpilot ~] egrep oracle /etc/sudoers
[oracle@dbpilot ~]
## Backup the sudoers file
[oracle@dbpilot ~] cp /etc/sudoers /etc/sudoers.orig.$(date +%d%b%y_%H%M%S)
## After
[oracle@dbpilot ~] egrep oracle /etc/sudoers
oracle ALL=(ALL) ALL
NOTE
When EM 13c agent is deployed successfully, restore the original /etc/sudoers file.
Written At
19 FEB 201910:00
Red Hat Release
7.x x64
Enterprise Manager
13.1.0.0.0 - 13.3.0.0.0
Share
- Accounts
- Auditing
- AWR
- Bash Scripts
- Datapump
- Default Category
- Demos
- Directory Objects
- Environment Variables
- Initialization Parameters
- Iptables
- Java Program
- Memory Usage
- Metadata API
- Networker
- NLS Settings
- Optimizer Statistics
- ORA-00942
- ORA-01031
- ORA-01720
- ORA-28001
- ORA-31671
- Oracle Database
- Oracle Enterprise Manager
- Performance Tunning
- Postfix
- Privilegies
- Processes
- Queries
- Red Hat Enterprise Linux
- Redo Logs
- Session Tracing
- Sessions
- SQL Trace
- SQLPlus
- Statspack
- Tablespaces
- UTL_FILE
- UTL_FILE_DIR
- Wait Events
- Yum