So, i'm feeling particularly pleased last week when I finally get
ASM up and running last week on a new reporting server. It's an IBM AIX box, with a 600GB disk group (DGROUP1), using the usual "+ASM" instance name. Also note that I used my
10gR2 (10.2.0.1 EE) home as my ASM home, since i'm only using ASM for a single database on this box.
Once i verify that
ASM is working and that it's hooked into EM Grid Control, I cd to my Oracle 10gR2 home, setup my environment by using oraenv, and then run
dbca.
Everything is going great until I get to the storage page, where I select "ASM" and click Next. Within a couple of seconds, I see this gem of an error message:
"DBCA could not startup the ASM instance configured on this node. To proceed with the database creation using ASM, ASM instance needs to be up and running. Do you want to recreate ASM instance on this node?"
Hmm. Not what I wanted to see, that's for sure. :-(
So it's off to Metalink to see what Oracle has to say. In no short order, I find about 6 separate issues (some with their own accompanying bug numbers) all reporting the exact same issue, and all with existing ASM
instances.
The only note that had a real work-around involved changing some
OAS (Oracle Advanced Security) settings as ODBC did not work well with them. That's all well-and-good, but i'm not using OAS. My sqlnet.ora file has one line!
Next, I did what all good DBA's do when faced with this type of situation: go to Google. Unfortunately, I was still unable to find a solution. The OTN forums were not much help either. Oddly enough, some of my searches even resulted in
googlewhacks.
The one interesting result I found on Metalink said something like, "I managed to use dbca to setup a database with ASM before, but now that I try it a second time, it does not work!" Interesting. To me, that meant there HAD TO BE a solution here. There's just no way that dbca is unable to create a database with ASM. Common!!
Here's what i'm doing: I have 2 terminal windows open - one was running dbca, the other was my working terminal. The working one being the terminal I used to change listener settings, tnsping, etc.
After 2 hours of a hapless tango between clicking Next> and seeing the same error, then changing settings ...
, I finally throw in the towel at 4:30 and close the term window running dbca.
Just for fun, I run dbca from the OTHER term window where i've been continually futzing with settings. I get to Storage, select ASM and click Next... NOW IT WORKS!!! WTF?!
That's why it works for some people sometimes and then stops the next time. We've got some env variable or something set wrong!
SOLUTION: If you get this error, check your settings, open another window, re-run oraenv, keep trying!
As soon as dbca completed, I catpured my 'env' output - here's the items of interest:
- ORACLE_SID=+ASM
- ORACLE_HOME=/orabase/product/ora10g
- LIBPATH=/orabase/product/ora10g/lib:/orabase/product/ora10g/lib32:/usr/lib:/lib
- JAVA_HOME=/usr/java5/bin