CRS-4995: The command ‘Setperm resource’ is invalid in crsctl. Use srvctl for this command.

Trying to run “crsctl setperm”, but got CRS-4995 error.

The environment is  as below:

12.1.0.2 GI

11.2.0.4 RAC

  1. Run the command as grid user :
    $crsctl getperm resource ora.testdb.test.svc
    Name: ora.testdb.test.svc
    owner:oracle:rwx,pgrp:oinstall:r--,other::r--,group:dba:r-x,user:grid:r-x
    
    $crsctl setperm resource ora.testdb.test.svc -u 'pgrp:oinstall:r-x'
    CRS-4995: The command 'Setperm resource' is invalid in crsctl. Use srvctl for this command.

2. Add “-unsupported” at the end.

$ crsctl setperm resource ora.testdb.test.svc -u 'pgrp:oinstall:r-x' -unsupported
CRS-0245: User doesn't have enough privilege to perform the operation
CRS-4000: Command Setperm failed, or completed with errors.

3. Run as root.

$ which crsctl
/u01/app/12.1.0.2/grid/bin/crsctl
$ su -
Password:
# /u01/app/12.1.0.2/grid/bin/crsctl setperm resource ora.testdb.test.svc -u 'pgrp:oinstall:r-x' -unsupported

$ crsctl getperm resource ora.testdb.test.svc
Name: ora.testdb.test.svc
owner:oracle:rwx,pgrp:oinstall:r-x,other::r--,group:dba:r-x,user:grid:r-x

So “-unsupported” is needed in this situation.

Advertisements
This entry was posted in 12c new features, GI and RAC and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s