Vous êtes sur la page 1sur 5

Author: Joshua Ehiguese

Date: May 16th - 2014


Title: RAC 12c Sudo permissions

Document Change Control.

Revision

Date

Author

Description of
change

1.0

2014-05-16

Joshua Ehiguese

Document Creation.

LIST ROOT PREVELIGES FOR SUDO ON RAC cluster nodes (NODE1, NODE2)
Grid User
{NODE1:+ASM1} $ sudo -l

1.
Need to be able to run crsctl as sudo done.
Note: This needed to be able to shut down and restart the cluster.

Below demonstrates that sudo privileges has been given on crsctl.


$GRID_HOME/bin/crsctl

{NODE1:+ASM1} $ which crsctl


/oracle/grid/12.1.0.1/grid/bin/crsctl
{NODE1:+ASM1} $

{NODE2:+ASM2} $ which crsctl


/oracle/grid/12.1.0.1/grid/bin/crsctl
{NODE2:+ASM2} $

{NODE1:+ASM1} $ which crsctl


/oracle/grid/12.1.0.1/grid/bin/crsctl
{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/crsctl check cluster -all
**************************************************************
NODE1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
NODE2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************

2. Need to be able to run ocrcheck as sudo -- done

{NODE1:+ASM1} $ which ocrcheck


/oracle/grid/12.1.0.1/grid/bin/ocrcheck
{NODE1:+ASM1} $

/oracle/grid/12.1.0.1/grid/bin/ocrcheck
{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/ocrcheck -local
Status of Oracle Local Registry is as follows :
Version
:
4
Total space (kbytes) : 409568
Used space (kbytes)
:
968
Available space (kbytes) : 408600
ID
: 1657502975
Device/File Name
: /oracle/grid/12.1.0.1/grid/cdata/NODE1.olr
Device/File integrity check succeeded
Local registry integrity check succeeded
Logical corruption check succeeded
{NODE1:+ASM1} $

{NODE1:+ASM1} $ which ocrcheck


/oracle/grid/12.1.0.1/grid/bin/ocrcheck
{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version
:
4
Total space (kbytes) : 409568
Used space (kbytes)
:
1564
Available space (kbytes) : 408004
ID
: 136626433
Device/File Name
: +DATA
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded

4. . Need to be able to run ocrdump as sudo --- done


{NODE1:+ASM1} $ which ocrdump
/oracle/grid/12.1.0.1/grid/bin/ocrdump
{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/ocrdump
{NODE1:+ASM1} $ ls
bin GI_files logs OCRDUMPFILE oradiag_grid raccheck RAC_tools
{NODE1:+ASM1} $

5. Need to be able to run diacollection.pl as sudo --- done

{NODE1:+ASM1} $ pwd
/oracle/grid/12.1.0.1/grid/bin
{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/diagcollection.pl -collect -chmos -incidenttime
"05/09/201422:15:00" -incidentduration "02:00"

Production Copyright 2004, 2010, Oracle. All rights reserved


Cluster Ready Services (CRS) diagnostic collection tool
Collecting Cluster Health Monitor (OS) data
Version: 12.1.0.1.0
Collecting OS logs
Collecting sysconfig data
{NODE1:+ASM1} $

Vous aimerez peut-être aussi