Increase access to sudo user oracle

Increase zgy users can access the database
[root @ dbdata ~] #  useradd  zgy
- password
[root @ dbdata ~] #  passwd  zgy
- set group
[root @ dbdata ~] #  the usermod -G oinstall, dba zgy
- Environment Variables
[root @ dbdata ~] #  cp ~ the Oracle / ZGY .bash_profile ~ / .bash_profile 
--yes
- entered into force
[root @ dbdata ~] #  Source ZGY ~ / .bash_profile

[dbdata the root @ ~] # SU - ZGY
[ZGY dbdata @ ~] $ sqlplus / AS SYSDBA 
...
- increased as follows oracle, zgy two users
sudo vi / etc / sudoers

May have have at The COMMANDS Section ## OTHER Options added to IT.
##
## the Allow root to the any RUN Commands Anywhere
root ALL = (ALL) ALL
ZGY ALL = (ALL) ALL - give this permission relatively larger

[zgy@DBDATA ~]$ sql

SQL*Plus: Release 11.2.0.3.0 Production on Wed Dec 18 15:04:19 2019
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> SELECT STATUS FROM GV$INSTANCE ;

STATUS
------------------------------------
OPEN

Elapsed: 00:00:00.00

Guess you like

Origin www.cnblogs.com/ritchy/p/12094255.html
Recommended