Thursday, January 15, 2009
Oracle Critical Patch Update - January 2009
CPU Patch released for January 2009. For details,
http://www.oracle.com/technology/deploy/security/alerts.htm?msgid=7301948
Oracle 11g: oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
I was asked to check with this error which was generated at the time of Database creation on Windows XP SP2 failed at 86% showing the below error.

Jan 15, 2009 7:44:08 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error starting Database Control
Refer to the log file at D:\Oracle11g\app\Acer-5670\cfgtoollogs\dbca\db11g\emConfig.log for more details.
Jan 15, 2009 7:44:08 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:869)
at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:250)
at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:213)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:235)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:460)
at java.lang.Thread.run(Thread.java:595)
Jan 15, 2009 7:44:08 PM oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to D:\Oracle11g\app\Acer-5670\product\11.1.0\db_1\oui
1. I created a loop back adapter and disabled all the remaining Network connections which did not work.
To create a Loop Back Adapter in Windows XP ->
http://dba-onweb.blogspot.com/2008/01/microsoft-loopback-adapter.html
2. Second Approach – Installed JAVA (http://www.java.com/) and rebooted the laptop to start the DBCA once again to do a fresh setup which in turn worked.

Saturday, January 10, 2009
Re-Synchronize/Refresh a Table in Oracle Streams
Example:
Schema:SCOTT
Table:EMP
Steps for Refreshing a Table in Streams:
If one of the tables on the Target site is out of Sync with Source site then follow below steps to re-synchronize both:
1. Stop Capture Process on Source(S)
2. Stop Propagation Process on Source(S)
3. Stop Apply Process on Target(T)
4. Delete the apply errors on Target(T)
5. Truncate the problem table on Target(T)
6. Re-instantiate the problem table on Source(S)
7. Synchronize the problem table through exp/imp
8. Start the apply Process on Target(T)
9. Start the propagation Process on the Source(S)
10. Start the Capture Process on the Source(S)
read the full post...
Wednesday, January 07, 2009
RAC CRS - crs_unregister
How to remove CRS entries using crs_unregister?
1. Before using crs_unregister, it's always recommended to backup OCR and voting disks. Make sure that you have a documented version to restore, if things go wild.
2. Nodeapps needs to be stopped on all the nodes (In my case I have 2 nodes).
3. You can use crs_unregister to remove the entries which are not required, here in my example I did with listener which I configured wrongly and I want this entry to be removed from CRS.
crs_unregister ora.testrac1p.LISTENER_RACDB_TESTRAC1P.lsnr
crs_unregister ora.testrac2p.LISTENER_RACDB_ TESTRAC1P.lsnr
4. Once you have removed the entries using crs_unregister, use srvctl to reflect the removed entries.
$ srvctl config listener -n testrac1p
$ srvctl config listener -n testrac2p
$ crs_stat -v
5. Once the listener entries are removed, you can use netca (NETCA) to configure the Listeners.
6. Start the Nodeapps on all the nodes
