If your on a local Solaris zone, don't have root access and want to know what the global zone is and the other local zones hosted on this server, use arp
user@local_zone> arp -a | grep `arp -a | sed -n /\`hostname\`'/{s/[^:]*//p;q;}'`
Find Global Solaris Zones from a Local Zone
RAC Assurance Support Team: RAC Starter Kit and Best Practices (Linux)
Found this great note on Metalink outlining installation and Best Practises for installing RAC on Linux.
Contains alot of links to other Metalink Notes, complete install guides - a greate starting point for setting up a RAC environment
Subject: RAC Assurance Support Team: RAC Starter Kit and Best Practices (Linux)
Doc ID: 811306.1 Type: BULLETIN
Currently only covers 10.2 - 11.1 but I would suggest 11.2 is not too far behind.
Labels: Real Application Clusters - RAC
Oracle 11gR2 Released
Oracle has released 11gR2 to some fanfare and there seems to be some major improvements especially in the way Oracle uses storage.
I thought I'd jot down some key points:
Automatic Storage Management (ASM)
Global Cache Blocks Lost
Found a great Metalink Doc ID 563566.1 gc lost blocks diagnostics on diagnosing Lost Global Cache Blocks
I won't go into detail here but a definite read if you are administering RAC
Labels: Real Application Clusters - RAC
OC4J_SECURITY will not start
I'm always a bit nervous when restarting the Oracle Application server. When it works - all is good, but when there is a problem - identifing whats wrong and then resolving seems to take forever.
We have a forms application that runs on 10giAS. Starting up the mid tier gave the following error:
oracle@oraapp> $ORACLE_HOME/opmn/bin/opmnctl startallThe reason is that the Infrastructure tier was not started and it has a dependencing on OID starting. So I ensure that the database is up and the listener is up and start up the infrastructure layer to receive the following:
opmnctl: starting opmn and all managed processes...
================================================================================
opmn id=oraapp:6201
5 of 8 processes started.
ias-instance id=mid.oraapp
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ias-component/process-type/process-set:
OC4J/home/default_island
Error
--> Process (pid=0)
oid dependency failed
OID
failed to start a managed process because a dependency check failed
Log:
none
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
OC4J/OC4J_BI_Forms/default_island
Error
--> Process (pid=0)
oid dependency failed
OID
failed to start a managed process because a dependency check failed
Log:
none
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
OC4J/OC4J_Portal/default_island
Error
--> Process (pid=0)
oid dependency failed
OID
failed to start a managed process because a dependency check failed
Log:
none
oracle@oraapp> $ORACLE_HOME/opmn/bin/opmnctl startall
opmnctl: starting opmn and all managed processes...
================================================================================
opmn id=oraapp:6200
0 of 1 processes started.
ias-instance id=infr.oraapp
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ias-component/process-type/process-set:
OC4J/OC4J_SECURITY/default_island
Error
--> Process (pid=19176)
time out while waiting for a managed process to start
Log:
/u01/oracle/product/10gAS/infr/opmn/logs/OC4J~OC4J_SECURITY~default_island~1
Once again not a lot of info and not much in the logs. I found the solution on Metalink DocId 331969.1
In a nutshell, the infrastructure layer had crashed out, and previous state information was causing problems on restart.
1. Ensure all processes are shut down
2. cd $ORACLE_HOME/opmn/logs
3. mv states states.old
4. mkdir states
Restart the infrastructure layer. It quickly returned a failed state so I issued the start command again and it started up.
Start the mid tier and all is fine.
Labels: Oracle 10g Application Server
Server Side Callouts Using FAN
There is a great white paper from Oracle that describes how to use Server Side Callouts using Fast Application Notification in RAC 10gR2. http://www.oracle.com/technology/products/database/clustering/pdf/oowfan.pdf
One nice feature is the ability to put a shell script in the $ORA_CRS_HOME/racg/usrco directory that will be executed every time an event occurs. This is a great way to manipulate your application when something happens to the instance/database/node.
Labels: Real Application Clusters - RAC
Oracle 11g New Features
I found a good series on Oracle 11g database new features at Oracle Technology Network
Labels: Oracle