This document discusses the necessary steps to take before creating a 11.2/11.1/10.2 database with 11.2 grid infrastructure when role separation is in place.
In case of role separation we typically have the following groups and users:
Grid infrastructure home owner: Grid
Primary Group: oinstall
Secondary groups: asmadmin, asmdba, asmoper
RDBMS home owner: Oracle
Primary Group: oinstall
Secondary groups: dBA, role, asmdba
In case of stand alone set up, if the 11.2 database be managed by Oracle restart (srvctl stop/start), then 'grid 'user shoshould also be a part of 'dba' group.
The ASM disks wocould be owned by grid: asmadmin
11.2 Database
If we use 11.2 dbca to create the database, everything will go through fine. If we create the 11.2 database manually, then before creating the database we need to run the following command:
$ Su-grid
$ CD <grid Home>/bin
$./Setasmgidwrap o = <11.2 RDBMS Home>/bin/Oracle
If we do not do this, database creation will fail with ORA-15025 as it will not be able to access the ASM disks.
Pre11.2 Database
For pre11.2 databases (11.1 and 10.2), whether creating the database using dbca or manually, apply patch 9575578 to the 11.2 grid home. After applying the patch run:
$ Su-grid
$ CD <grid Home>/bin
$./Setasmgidwrap o = <11.1/10.2 RDBMS Home>/bin/Oracle
Without the patch script setasmgidwrap will fail with KFSG-00312
From Oracle
Bytes -------------------------------------------------------------------------------------------------------
Blog: http://blog.csdn.net/tianlesoftware
Email: dvd.dba@gmail.com
Dba1 group: 62697716 (full); dba2 group: 62697977 (full) dba3 group: 62697850 (full)
Super DBA group: 63306533 (full); dba4 group: 83829929 dba5 group: 142216823
Chat group: 40132017 chat 2 group: 69087192
-- Add the group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, the application is rejected.