A 13c AGENT DEPLOYMENT ERROR : THE “VISIBLEPW” IS NOT SET THE SUDOERS FILE
Enterprise Manager
ISSUE
The remote prerequisite check fails during a 13c agent deployment process in Enterprise Manager Cloud Control 13c Console.
RELATED
A 13c AGENT DEPLOYMENT PROCESS CRASHES ON REDHAT/OEL 7.X TARGET HOSTS
A 13c AGENT DEPLOYMENT ERROR : THE USER “ORACLE” DOES NOT HAVE THE PRIVILEGES TO RUN COMMANDS AS USER “ROOT”
A 13c AGENT DEPLOYMENT ERROR : THE USER “ORACLE” DOES NOT HAVE THE PRIVILEGES TO RUN COMMANDS AS USER “ROOT”
SYMPTOMS
A 13c agent deployment stops on the following prerequisite check
Prerequisite Check Name: Do you have the privileges to run as root using the Privilege Delegation tool? Status: Warning Error: The "visiblepw" is not set the sudoers file and as a result, the user will not be able to run sudo over ssh. Recommendation: You can either set the "oracle.sysman.prov.agentpush.enablePty" property to true in the "/orastage/oem13100/middleware/sysman/prov/agentpush/agentpush.properties" file, which is present on the OMS host, pass -S argument to the sudo command, or enable the "visiblepw" flag in the sudoers file. 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
Modify the following parameter in the /etc/sudoers file and retry the deployment
## Backup the file
[oracle@dbpilot ~] cp /etc/sudoers /etc/sudoers.orig.$(date +%d%b%y_%H%M%S)
## Before
[oracle@dbpilot ~] egrep visible /etc/sudoers
Defaults !visiblepw
## After
[oracle@dbpilot ~] egrep visible /etc/sudoers
Defaults visiblepw
NOTE: After a 13c agent is deployed successfully, restore the original /etc/sudoers file.
Version : 13:08 03.05.2018
Platform : OEL 7.3
OEM : 13.1.0.0.0
Platform : OEL 7.3
OEM : 13.1.0.0.0
Categories
- Linux (8)
- Iptables (2)
- Memory Usage (1)
- Postfix (1)
- Yum (4)
- Networker (2)
- Oracle (65)
- Account (2)
- AWR (2)
- Database Errors (6)
- Database Performance (9)
- Datapump (4)
- Enterprise Manager (24)
- Enterprise Manager Metrics (4)
- Environments (4)
- High CPU Usage (2)
- High IO Load (4)
- Initialization Parameters (5)
- job_queue_processes (1)
- Processes (3)
- NLS (1)
- Objects (1)
- Objects DDL (2)
- OJVM/PSU/DRU Patches (1)
- PL/SQL (5)
- UTL_FILE (4)
- Prerequisites (1)
- Privileges (1)
- Profile (1)
- Queries (2)
- Redologs (1)
- Resource Limits (1)
- Segment Shrink (1)
- Session (6)
- Spfile (3)
- SQL PLUS (1)
- Spooling (1)
- Standard Queries (7)
- Statistics (2)
- Tablespaces (1)
- Temporary Tablespace (2)
Tags
/etc/sudoers
Account
Agent
Agent 12c Deinstall
Agent 13c Deployment
Automated Maintenance Tasks
AWR
BLOCKING SESSION
Database Auditing
Database Directory
Database Performance
Datapump
DBMS_SYSTEM
Enterprise Manager
Enterprise Manager Metrics
Failed Logins (Historical) Metric
Failed Logins Metric
Gather Statistics Job
GET_ENV
High IO Load
Idle Sessions
Initialization Parameters
LOCKED(TIMED)
OEM
OEM 12.1.0.4
OEM 13.1.0.0.0
OMS
Processes
Repository
Retrieve Object DDL
ROW LOCK
Scheduler
Schema Statistics
Scripts
Sessions
spfile
SQL_ID
Standard Query
TRANSACTION
User Grants
UTL_FILE
WAITING SESSION
Window Group
Window Name
Yum