Note:
Before database creation, you must set up user equivalency with SSH for the
root user on each server. If you do not set up user equivalency and configure
SSH on each server, then you are prompted to provide the root password for
each server during database creation.
After you configure the
sudoer
file with the user, the user jdoe can run the set of
oakcli
commands configured with the command alias
OAKCLI_CMDS
. For example:
$ sudo oakcli create database -db newdb
INFO: 2015-08-05 14:40:55: Look at the logfile '/opt/oracle/oak/log/
scaoda1011/tools/12.1.2.4.0/createdb_newdb_91715.log' for more details
INFO: 2015-08-05 14:40:59: Database parameter file is not provided. Will
be using default parameters for DB creation
Please enter the 'SYSASM' password:
Please re-enter the 'SYSASM' password:
INFO: 2015-08-05 14:41:10: Installing a new home: OraDb12102_home3
at /u01/app/oracle/product/12.1.0.2/dbhome_3
Please select one of the following for Database type [1 .. 3]:
1 => OLTP
2 => DSS
3 => In-Memory
SUDO Example 2: Allow a User to Perform Only Selected OAKCLI Operations
To configure SUDO to allow a user to perform only selected OAKCLI operations, add
lines to the commands section in the
/etc/sudoers
file as follows:
## oakcli commands
Cmnd_Alias OAKENV = /opt/oracle/oak/bin/oakcli show env_hw
Cmnd_Alias OAKVER = /opt/oracle/oak/bin/oakcli show version
oracle ALL= OAKENV,OAKVER
The following are sample outputs for the commands:
$ sudo /opt/oracle/oak/bin/oakcli show env_hw
VM-ODA_BASE ODA X6-2-HA
$ sudo /opt/oracle/oak/bin/oakcli show version
Version
-------
12.2.1.2.0
Chapter 14
Managing OAKCLI Privileges and Security with SUDO
14-6
Содержание Database Appliance X6-2-HA
Страница 15: ...Index xv...