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:
GOAL
SOLUTION
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
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
2 de 2 03/10/2017 12:49