0% found this document useful (0 votes)
1K views2 pages

How To Change Ownership and Group Memberships of Grid Home in 11.2 Standalone

This document provides steps to change the ownership and group membership of the Grid home directory in an Oracle Database 11g Release 2 standalone installation. The steps include stopping ASMLIB if used, changing the group membership of ASM disks, modifying and relinking the Grid home, backing up and replacing binaries, and running commands to change the group membership of binaries. Completely reinstalling is required for changing ownership on RAC installations.

Uploaded by

baraka08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views2 pages

How To Change Ownership and Group Memberships of Grid Home in 11.2 Standalone

This document provides steps to change the ownership and group membership of the Grid home directory in an Oracle Database 11g Release 2 standalone installation. The steps include stopping ASMLIB if used, changing the group membership of ASM disks, modifying and relinking the Grid home, backing up and replacing binaries, and running commands to change the group membership of binaries. Completely reinstalling is required for changing ownership on RAC installations.

Uploaded by

baraka08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Document Display https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-st...

How to change ownership and group memberships of Grid home in 11.2 Standalone (Doc ID 1171674.1)

In this Document

Goal
Solution
References

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later


Information in this document applies to any platform.

***Checked for relevance on 21-Jan-2014***

GOAL

How to change ownership and group memberships of Grid Home in 11.2 ?


This is usually needed when adding or removing job role separation for Grid Infrastructure home with ASM.

SOLUTION

ASM disks should be with <Grid home owner>:<sysasm group> 660.

Depending on what you would like to change, the procedures are different.

=)>If you want to change Grid home owner, then a deinstall and reinstall using the new user are needed.

=)>If you want to change sysasm group, then the following steps should be done

1. If using ASMLIB,
-- stop ASMLIB with oracleasm. This requires ASM instance downtime as well.
-- reconfigure ASMLIB with "oracleasm configure" then set the new group at the prompt.
-- restart ASMLIB and make sure the new group is used in /dev/oracleasm/disks/*

2. If NOT using ASMLIB, change the group membership of ASM disks to the new sysasm group.

3. Use Grid home owner to modify the sysasm group in the file $Grid_HOME/rdbms/lib/config.c or config.s

4. Relink the Grid home with "relink all" command with Grid home owner. Please make sure Oracle Restart is completely down first.

a) As root, execute:
# $GRID_HOME/crs/install/roothas.pl -unlock
b) As Grid home owner, rename config.o file to force a regeneration of the file then relink the Grid home with "relink all" command:
$ export ORACLE_HOME=<Grid_home>
$ cd $ORACLE_HOME/rdbms/lib
$ mv config.o config.bck
$ $ORACLE_HOME/bin/relink all
c) As root, execute:
# $GRID_HOME/crs/install/roothas.pl -patch

5. Backup and replace the setasmgid binary in /opt/oracle/bin directory.


# cp /opt/oracle/bin/setasmgid /opt/oracle/bin/setasmgid.backup
# cp $GRID_HOME/bin/setasmgid /opt/oracle/bin/setasmgid

6. Run the setasmgidwrap command as in Note.1084186.1. This will change the group membership of 'oracle' binary in DB home to new
sysasm group.
$ su - grid
$ cd <Grid Home>/bin
$ ./setasmgidwrap o=<RDBMS Home>/bin/oracle

Please note that this approach only works in non-RAC environment. For RAC, a complete reinstall is needed.

1 de 2 03/10/2017 12:49
Document Display https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-st...

Starting from 11.2.0.3, the setasmgid is located in /etc/oracle due to Bug 10362257.

REFERENCES

BUG:10362257 - PERMISSION PROBLEMS RUNNING ROOT SCRIPT IF ORACLE_BASE IS IN /OPT/ORACLE


Didn't find what you are looking for?

2 de 2 03/10/2017 12:49

You might also like