When creating a database on a new or seldom used version of Oracle I always like to use the “Generate Database Creation Scripts” option of DBCA so I can have a look at what it’s going to do for me before I decide which scripts I want to run. I recently saw the following line in one of these scripts generated by an 11.2 DBCA:
host /u01/grid/11.2.0/bin/setasmgidwrap o=/u01/app/oracle/product/11.2.0/db_1/bin/oracle
The name is pretty self explanatory (it’s the step that changes the group ownership of the oracle binary from the software owner’s primary group (probably OINSTALL) to the OSASM group) but I thought I’d have a quick search on My Oracle Support to find out more…
No results found.
Nothing unusual there, since Metalink was downgraded to its present state I’ve become accustomed to this message . Let’s try the Oracle documentation:
Your search term oracle setasmgidwrap did not match any topics.
Surely Google will hit something…
Your search – oracle setasmgidwrap – did not match any documents
No hits again. So I’ve created this post purely to create an illegitimate Oracle Google Whack. At least once this post is indexed by the search engines. It’s illegitimate by the way because:
A Googlewhack must consist of two actual words found in a dictionary.
Below is a demonstration of SETASMGIDWRAP in action (watch the group ownership on the oracle binary):
%*> ls -l $ORACLE_HOME/bin/oracle -rwsr-s--x 1 oracle oinstall 260199063 Jan 12 15:15 /u01/app/oracle/product/11.2.0/db_1/bin/oracle %*> $CRS_HOME/bin/setasmgidwrap o=$ORACLE_HOME/bin/oracle %*> ls -l $ORACLE_HOME/bin/oracle -r-sr-s--x 1 oracle asmadmin 260199063 Jan 12 15:15 /u01/app/oracle/product/11.2.0/db_1/bin/oracle