<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-21118863</id><updated>2011-09-23T12:12:45.647-07:00</updated><title type='text'>My Oracle World</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-21118863.post-7883159824091478466</id><published>2009-01-25T21:09:00.000-08:00</published><updated>2009-01-25T21:36:18.342-08:00</updated><title type='text'>Review: uCertify PrepKit 1Z0-047</title><content type='html'>&lt;p&gt;I was asked by &lt;a href="http://www.ucertify.com/"&gt;uCertify&lt;/a&gt; to review their preparation kit product.&lt;p&gt;&lt;p&gt;I am currently preparing myself for &lt;a href="http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&amp;p_org_id=1001&amp;lang=US&amp;p_exam_id=1Z0_047"&gt;Oracle 1Z0-047 Oracle Database: SQL Certified Expert Exam&lt;/a&gt; and I thought this could be a good chance for me test my current knowledge and chose to review their preparation kit for exactly this exam. (&lt;a href="http://www.ucertify.com/exams/Oracle/1Z0-047.html"&gt;Link&lt;/a&gt;)&lt;/p&gt;&lt;p&gt;To be honest, this is my first GUI based prep kit I’ve ever tried. So far I was using the Oracle official documentation as my primary source, and some of the books (Exam Study Guides) that were available.&lt;/p&gt;&lt;p&gt;My study strategy is read the official documentation and practice, practice, practice.&lt;/p&gt;&lt;p&gt;From my experience, the toughest part during preparation for an exam is when it comes to answer the question: “Am I ready enough?”&lt;/p&gt;&lt;p&gt;Usually I go through the questions available in some of the preparation books plus making even more questions based on different scenarios. I also use &lt;a href="http://forums.oracle.com/forums/main.jspa?categoryID=84"&gt;OTN forums&lt;/a&gt; to find discussions with challenging topics where I can test my knowledge.&lt;/p&gt;&lt;p&gt;With the last in mind, the uCertify Prep Kit is just another handy resource that one can use to test his/her knowledge before he/she actually takes the exam.&lt;/p&gt;&lt;p&gt;It is a solid product that provides more than three hundred questions combined into one diagnostic, one final, four practice tests and a quiz. The user also has an ability to create custom tests using those questions he/she finds interesting.&lt;/p&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_TxH_Rv11IoU/SX1GkjMoXdI/AAAAAAAAA2A/P5GZCdqNIXg/s1600-h/ucert1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 197px;" src="http://2.bp.blogspot.com/_TxH_Rv11IoU/SX1GkjMoXdI/AAAAAAAAA2A/P5GZCdqNIXg/s320/ucert1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5295466330595024338" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;There are also number of questions that are pretty challenging. For all questions, the users have an option to read explanations about the answers including references to the Oracle documentation or other resources.&lt;/p&gt;&lt;p&gt;For each question, there is an option to start a discussion with other users, to send feedback to uCertify and to write personal notes and tags.&lt;/p&gt;&lt;p&gt;The feedback and discussion features are really nice. I found some answers that I did not agree with and used this feature to provide feedback to uCertify. I tested the discussion feature as well and it works nice.&lt;/p&gt;&lt;p&gt;The exam objectives are well covered. There are also questions specific to 11g version of the database.&lt;/p&gt;&lt;p&gt;The software has an update option so the user can download the latest updates and fixes.&lt;/p&gt;&lt;p&gt;The Graphic User Interface is very nice and the navigation is great. Each of the test results can be saved and used for later reference.  Also there are features like Flash cards, a Quiz, Study notes and Articles. There are number of notes and articles available.&lt;/p&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_TxH_Rv11IoU/SX1GxGXYiEI/AAAAAAAAA2I/VC9QGszvRFQ/s1600-h/ucert2.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 189px;" src="http://4.bp.blogspot.com/_TxH_Rv11IoU/SX1GxGXYiEI/AAAAAAAAA2I/VC9QGszvRFQ/s320/ucert2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5295466546193795138" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;Finally there is a readiness report that can help the user to find the answer to the question: “Am I ready for the real thing?”&lt;/p&gt;&lt;p&gt;In general, this is a nice product that can be very helpful for one to prepare for an exam (they have various prep kits available (&lt;a href="http://www.ucertify.com/vendors/Oracle.html"&gt;Link&lt;/a&gt;)). However, I don’t want anybody to get an impression that I think this is the only resource that one could use to prepare and pass an exam. Whenever I was asked for an advice on what resources should (must) one use to prepare for an exam, my answer was always straight, The Official Documentation, period. (The official trainings are also very valuable, but sometimes they are a must-do regardless of someone’s recommendations :-))&lt;/p&gt;&lt;p&gt;This product and all the other available out there (books, prep kits, study guides) are just another resource for learning and practicing that one may consider to use when preparing for an exam.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-7883159824091478466?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/7883159824091478466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=7883159824091478466' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/7883159824091478466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/7883159824091478466'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2009/01/review-ucertify-prepkit-1z0-047.html' title='Review: uCertify PrepKit 1Z0-047'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_TxH_Rv11IoU/SX1GkjMoXdI/AAAAAAAAA2A/P5GZCdqNIXg/s72-c/ucert1.jpg' height='72' width='72'/><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-4800406907141855768</id><published>2009-01-16T22:13:00.000-08:00</published><updated>2009-01-16T22:43:51.635-08:00</updated><title type='text'>Save some disk space - One Reminder and a Cool Windows Command</title><content type='html'>&lt;b&gt;CPU Reminder&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;It’s the time of the year when the January CPU is released. I’d like to remind you to think about cleaning up your obsolete backups from $ORACLE_HOME/.patch_storage directory (the ones that are not needed anymore for rollback purposes).&lt;br /&gt;&lt;br /&gt;Starting from 10g R2 Oracle backs up the affected libraries along with the rest of the affected files. Some of the libraries can be pretty big and thus after several CPUs the amount of disk space consumed by can be significant.&lt;br /&gt;&lt;br /&gt;In order to prevent from unnecessary wasting the disk space, you could use &lt;code&gt;Opatch&lt;/code&gt; utility using &lt;code&gt; util cleanup &lt;/code&gt; option to remove those backups that are not needed anymore.&lt;br /&gt;&lt;br /&gt;Below is the syntax and the options available when using Opatch tool to clean up old backups:&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;font size="1"&gt;&lt;br /&gt;&lt;br /&gt;SYNTAX&lt;br /&gt;opatch util cleanup  [-invPtrLoc &lt;Path to oraInst.loc&gt; ]&lt;br /&gt;                     [-jre &lt;LOC&gt; ] [-oh &lt;ORACLE_HOME&gt; ]&lt;br /&gt;                     [-silent] [-report]&lt;br /&gt;                     [-ps &lt;patch ID with time stamp&gt;, this will&lt;br /&gt;                       be located under ORACLE_HOME/.patch_storage/]&lt;br /&gt;&lt;br /&gt;OPTIONS&lt;br /&gt;       -invPtrLoc&lt;br /&gt;              Used to locate the oraInst.loc file. Needed when the&lt;br /&gt;              installation used the -invPtrLoc flag. This should be&lt;br /&gt;              the path to the oraInst.loc file.&lt;br /&gt;&lt;br /&gt;       -jre&lt;br /&gt;              This option tells OPatch to use JRE (java) from the&lt;br /&gt;              specified location instead of the default location&lt;br /&gt;              under Oracle Home. Both -jdk and -jre options cannot&lt;br /&gt;              be specified together. OPatch will display error in&lt;br /&gt;              that case.&lt;br /&gt;&lt;br /&gt;       -oh&lt;br /&gt;              The oracle home to work on. This takes precedence over&lt;br /&gt;              the environment variable ORACLE_HOME.&lt;br /&gt;&lt;br /&gt;       -ps&lt;br /&gt;              This option is used to specify the Patch ID with timestamp.&lt;br /&gt;              This Patch ID with timestamp should be the same as in&lt;br /&gt;              .patch_storage directory.&lt;br /&gt;&lt;br /&gt;              A directory by this name will be present under&lt;br /&gt;              ORACLE_HOME/.patch_storage. If this directory is specified&lt;br /&gt;              and is valid, then the contents specified in the description&lt;br /&gt;              will be cleaned up only for this patch. Otherwise, all patch&lt;br /&gt;              related directories will be acted upon by this utility.&lt;br /&gt;&lt;br /&gt;      -silent&lt;br /&gt;              In silent mode, the cleanup always takes place.&lt;br /&gt;&lt;br /&gt;      -report&lt;br /&gt;              Prints the operations without actually executing them.&lt;br /&gt;&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Make sure you specify the patch id (ps parameter) of the patch you want to remove. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cool Windows Command&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Few days ago I learned about &lt;code&gt;forfiles&lt;/code&gt; command that can be used to select a set of files using some criteria (like date modified) and run command against each of them (like delete). (Something like find –exec in Unix)&lt;br /&gt;&lt;br /&gt;I found this very useful for cleaning up the trace and log files that are not needed anymore. &lt;br /&gt;&lt;br /&gt;It is very handy and I am really surprised that Microsoft finally came up with something like this. Before I used to write batch scripts to implement the logic that &lt;code&gt;forfiles&lt;/code&gt; provides.&lt;br /&gt;&lt;br /&gt;It is available on Windows Vista, Windows 2003 Server and Windows 2008 Server.  &lt;br /&gt;&lt;br /&gt;You should really take a look if you didn’t know about this one already.&lt;br /&gt;Find more (the syntax and few examples) about &lt;code&gt;forfiles&lt;/code&gt; from this &lt;a href=" http://technet.microsoft.com/en-us/library/cc753551.aspx"&gt;TechNet Note&lt;/a&gt; .&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;Task: Delete all the trace files that are older more than 30 days&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;font size=1&gt;&lt;br /&gt;c:\app\oracle\diag\rdbms\db11g\db11g\trace&gt;forfiles /s /m *.trc /d -30 /c "cmd /c&lt;br /&gt;echo @FILE @FDATE"&lt;br /&gt;&lt;br /&gt;"db11g_ora_13200.trc" 12/18/2008&lt;br /&gt;"db11g_ora_18716.trc" 12/18/2008&lt;br /&gt;"db11g_ora_18768.trc" 12/18/2008&lt;br /&gt;"db11g_ora_18892.trc" 12/18/2008&lt;br /&gt;"db11g_ora_3004.trc" 12/18/2008&lt;br /&gt;"db11g_ora_4428.trc" 12/18/2008&lt;br /&gt;"db11g_ora_6256.trc" 12/18/2008&lt;br /&gt;"db11g_ora_6444.trc" 12/18/2008&lt;br /&gt;"db11g_ora_6480.trc" 12/18/2008&lt;br /&gt;"db11g_ora_6504.trc" 12/18/2008&lt;br /&gt;"db11g_ora_6844.trc" 12/18/2008&lt;br /&gt;"db11g_ora_6912.trc" 12/18/2008&lt;br /&gt;"db11g_ora_6928.trc" 12/18/2008&lt;br /&gt;"db11g_ora_7044.trc" 12/18/2008&lt;br /&gt;&lt;br /&gt;c:\app\oracle\diag\rdbms\db11g\db11g\trace&gt;forfiles /s /m *.trc /d -30 /c "cmd /c&lt;br /&gt;del @FILE"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;c:\app\oracle\diag\rdbms\db11g\db11g\trace&gt;forfiles /s /m *.trc /d -30 /c "cmd /c&lt;br /&gt;echo @FILE @FDATE"&lt;br /&gt;ERROR: No files found with the specified search criteria.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Pretty handy, isn’t it?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-4800406907141855768?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/4800406907141855768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=4800406907141855768' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/4800406907141855768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/4800406907141855768'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2009/01/save-some-disk-space-one-reminder-and.html' title='Save some disk space - One Reminder and a Cool Windows Command'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-7559983798139120670</id><published>2009-01-14T20:45:00.000-08:00</published><updated>2009-01-14T21:01:48.089-08:00</updated><title type='text'>ORA-12514 during switchover using Data Guard Broker</title><content type='html'>I’ve seen, on several occasions, questions being asked about data guard broker being unable to automatically start the databases during a switchover, failing with ORA-12514 - TNS:listener does not currently know of service requested in connect descriptor?&lt;br /&gt;&lt;br /&gt;This is most likely because the special service db_unique_name_DGMGRL has not been registered properly with the listener.&lt;br /&gt;&lt;br /&gt;This is one of the requirements when configuring Data Guard broker.&lt;br /&gt;&lt;br /&gt;From the Oracle documentation (Reference &lt;a href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/install.htm#BABECEJC"&gt;Oracle® Data Guard Broker 10g Release 2 (10.2)&lt;/a&gt;):&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="font-family: arial;"&gt;To enable DGMGRL to restart instances during the course of broker operations, a service with a specific name must be statically registered with the local listener of each instance. The value for the GLOBAL_DBNAME attribute must be set to a concatenation of db_unique_name_DGMGRL.db_domain. For example, in the LISTENER.ORA file:&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;LISTENER = (DESCRIPTION =&lt;br /&gt;   (ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=host_name)&lt;br /&gt;   (PO1RT=port_num))))&lt;br /&gt;SID_LIST_LISTENER=(SID_LIST=(SID_DESC=(SID_NAME=sid_name)&lt;br /&gt;   (GLOBAL_DBNAME=db_unique_name_DGMGRL.db_domain)&lt;br /&gt;   (ORACLE_HOME=oracle_home)))&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I think the main reason for overlooking this prerequisite is because nothing about this is mentioned in &lt;a href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#i72105"&gt;Oracle 10g Data Guard Concepts and Administration Guide&lt;/a&gt;, the chapters for standby databases configuration.&lt;br /&gt;&lt;br /&gt;So once the initial configuration is set up and works fine, the listener prerequisites for setting up Data Guard Broker are probably overlooked.&lt;br /&gt;&lt;br /&gt;Of course, this applies only if Data Guard Broker is configured manually. If one uses OEM Grid Control to set up and configure the Data Guard Configuration, OEM will make the necessary changes.&lt;br /&gt;&lt;br /&gt;Another point I want to make here is the importance of practicing various switchover and failover scenarios. It is not only that you will gain more experience and fill more comfortable doing the same thing in real situation, but you also will learn about any hidden configuration wholes that you may have overlooked or missed in your configuration steps.&lt;br /&gt;&lt;br /&gt;Here is an example of this problem and its solution:&lt;br /&gt;&lt;br /&gt;For this example I used two Oracle 10.2.0.1 databases, dg1db running as a primary database and dg2db running as a physical standby database.&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;br /&gt;[oracle@dg1 ~]$ dgmgrl&lt;br /&gt;DGMGRL for Linux: Version 10.2.0.1.0 - Production&lt;br /&gt;&lt;br /&gt;Copyright (c) 2000, 2005, Oracle. All rights reserved.&lt;br /&gt;&lt;br /&gt;Welcome to DGMGRL, type "help" for information.&lt;br /&gt;DGMGRL&gt; connect sys/***&lt;br /&gt;Connected.&lt;br /&gt;DGMGRL&gt; show configuration&lt;br /&gt;&lt;br /&gt;Configuration&lt;br /&gt;  Name:                dg-test&lt;br /&gt;  Enabled:             YES&lt;br /&gt;  Protection Mode:     MaxPerformance&lt;br /&gt;  Fast-Start Failover: DISABLED&lt;br /&gt;  Databases:&lt;br /&gt;    dg1db - Primary database&lt;br /&gt;    dg2db - Physical standby database&lt;br /&gt;&lt;br /&gt;Current status for "dg-test":&lt;br /&gt;SUCCESS&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now lets try the switchover. As you can see the role transition was done successfully, but  the database startup that should happened at the end failed with ORA-12514: TNS:listener does not currently know of service requested in connect descriptor.&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;br /&gt;DGMGRL&gt; switchover to dg2db;&lt;br /&gt;Performing switchover NOW, please wait...&lt;br /&gt;Operation requires shutdown of instance "dg1db" on database "dg1db"&lt;br /&gt;Shutting down instance "dg1db"...&lt;br /&gt;ORA-01109: database not open&lt;br /&gt;&lt;br /&gt;Database dismounted.&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;Operation requires shutdown of instance "dg2db" on database "dg2db"&lt;br /&gt;Shutting down instance "dg2db"...&lt;br /&gt;ORA-01109: database not open&lt;br /&gt;&lt;br /&gt;Database dismounted.&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;Operation requires startup of instance "dg1db" on database "dg1db"&lt;br /&gt;Starting instance "dg1db"...&lt;br /&gt;Unable to connect to database&lt;br /&gt;ORA-12514: TNS:listener does not currently know of service requested in connect descriptor&lt;br /&gt;&lt;br /&gt;Failed.&lt;br /&gt;You are no longer connected to ORACLE&lt;br /&gt;Please connect again.&lt;br /&gt;Unable to start instance "dg1db"&lt;br /&gt;You must start instance "dg1db" manually&lt;br /&gt;Operation requires startup of instance "dg2db" on database "dg2db"&lt;br /&gt;You must start instance "dg2db" manually&lt;br /&gt;Switchover succeeded, new primary is "dg2db"&lt;br /&gt;DGMGRL&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;After starting the databases manually, I checked the status of the Data Guard configuration and it was SUCCESS.&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;br /&gt;DGMGRL&gt; show configuration&lt;br /&gt;&lt;br /&gt;Configuration&lt;br /&gt;Name:                dg-test&lt;br /&gt;Enabled:             YES&lt;br /&gt;Protection Mode:     MaxPerformance&lt;br /&gt;Fast-Start Failover: DISABLED&lt;br /&gt;Databases:&lt;br /&gt;  dg1db - Physical standby database&lt;br /&gt;  dg2db - Primary database&lt;br /&gt;&lt;br /&gt;Current status for "dg-test":&lt;br /&gt;SUCCESS&lt;br /&gt;&lt;br /&gt;DGMGRL&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now I will make the necessary changes to the listeners and try the switchover in the opposite direction. After the change listener.ora should look like (pay attention to &lt;code&gt;GLOBAL_NAME=dg1db_DGMGRL.localdomain&lt;/code&gt;).&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;br /&gt;[oracle@dg1 admin]$ more listener.ora&lt;br /&gt;# listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/ora10g/network/admin/listener.ora&lt;br /&gt;# Generated by Oracle configuration tools.&lt;br /&gt;&lt;br /&gt;SID_LIST_LISTENER =&lt;br /&gt;(SID_LIST =&lt;br /&gt;  (SID_DESC =&lt;br /&gt;    &lt;b&gt;(GLOBAL_DBNAME = dg1db_DGMGRL.localdomain)&lt;/b&gt;&lt;br /&gt;    (ORACLE_HOME = /u01/app/oracle/product/ora10g)&lt;br /&gt;    (SID_NAME= dg1db)&lt;br /&gt;  )&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;LISTENER =&lt;br /&gt;(DESCRIPTION =&lt;br /&gt;  (ADDRESS = (PROTOCOL = TCP)(HOST = dg1.localdomain)(PORT = 1521))&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;[oracle@dg1 admin]$ lsnrctl reload&lt;br /&gt;[oracle@dg1 admin]$ lsnrctl status&lt;br /&gt;&lt;br /&gt;LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 13-JAN-2009 17:02:35&lt;br /&gt;&lt;br /&gt;Copyright (c) 1991, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dg1.localdomain)(PORT=1521)))&lt;br /&gt;STATUS of the LISTENER&lt;br /&gt;------------------------&lt;br /&gt;Alias                     LISTENER&lt;br /&gt;Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production&lt;br /&gt;Start Date                13-JAN-2009 08:08:17&lt;br /&gt;Uptime                    0 days 8 hr. 54 min. 18 sec&lt;br /&gt;Trace Level               off&lt;br /&gt;Security                  ON: Local OS Authentication&lt;br /&gt;SNMP                      OFF&lt;br /&gt;Listener Parameter File   /u01/app/oracle/product/10.2.0/ora10g/network/admin/listener.ora&lt;br /&gt;Listener Log File         /u01/app/oracle/product/10.2.0/ora10g/network/log/listener.log&lt;br /&gt;Listening Endpoints Summary...&lt;br /&gt;(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dg1.localdomain)(PORT=1521)))&lt;br /&gt;Services Summary...&lt;br /&gt;Service "dg1db.localdomain" has 1 instance(s).&lt;br /&gt;Instance "dg1db", status READY, has 1 handler(s) for this service...&lt;br /&gt;Service "dg1db_DGB.localdomain" has 1 instance(s).&lt;br /&gt;Instance "dg1db", status READY, has 1 handler(s) for this service...&lt;br /&gt;Service "dg1db_DGMGRL.localdomain" has 1 instance(s).&lt;br /&gt;Instance "dg1db", status UNKNOWN, has 1 handler(s) for this service...&lt;br /&gt;Service "dg1db_XPT.localdomain" has 1 instance(s).&lt;br /&gt;Instance "dg1db", status READY, has 1 handler(s) for this service...&lt;br /&gt;The command completed successfully&lt;br /&gt;&lt;br /&gt;I did the same thing with the second listener.&lt;br /&gt;Now the switchover will complete without any problems.&lt;br /&gt;DGMGRL&gt; show configuration&lt;br /&gt;&lt;br /&gt;Configuration&lt;br /&gt;Name:                dg-test&lt;br /&gt;Enabled:             YES&lt;br /&gt;Protection Mode:     MaxPerformance&lt;br /&gt;Fast-Start Failover: DISABLED&lt;br /&gt;Databases:&lt;br /&gt;  dg1db - Physical standby database&lt;br /&gt;  dg2db - Primary database&lt;br /&gt;&lt;br /&gt;Current status for "dg-test":&lt;br /&gt;SUCCESS&lt;br /&gt;&lt;br /&gt;DGMGRL&gt; switchover to dg1db&lt;br /&gt;Performing switchover NOW, please wait...&lt;br /&gt;Operation requires shutdown of instance "dg2db" on database "dg2db"&lt;br /&gt;Shutting down instance "dg2db"...&lt;br /&gt;ORA-01109: database not open&lt;br /&gt;&lt;br /&gt;Database dismounted.&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;Operation requires shutdown of instance "dg1db" on database "dg1db"&lt;br /&gt;Shutting down instance "dg1db"...&lt;br /&gt;ORA-01109: database not open&lt;br /&gt;&lt;br /&gt;Database dismounted.&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;Operation requires startup of instance "dg2db" on database "dg2db"&lt;br /&gt;Starting instance "dg2db"...&lt;br /&gt;ORACLE instance started.&lt;br /&gt;Database mounted.&lt;br /&gt;Operation requires startup of instance "dg1db" on database "dg1db"&lt;br /&gt;Starting instance "dg1db"...&lt;br /&gt;ORACLE instance started.&lt;br /&gt;Database mounted.&lt;br /&gt;Switchover succeeded, new primary is "dg1db"&lt;br /&gt;DGMGRL&gt;&lt;br /&gt;&lt;br /&gt;DGMGRL&gt; show configuration&lt;br /&gt;&lt;br /&gt;Configuration&lt;br /&gt;Name:                dg-test&lt;br /&gt;Enabled:             YES&lt;br /&gt;Protection Mode:     MaxPerformance&lt;br /&gt;Fast-Start Failover: DISABLED&lt;br /&gt;Databases:&lt;br /&gt;  dg1db - Primary database&lt;br /&gt;  dg2db - Physical standby database&lt;br /&gt;&lt;br /&gt;Current status for "dg-test":&lt;br /&gt;SUCCESS&lt;br /&gt;&lt;br /&gt;DGMGRL&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mihajlo Tekic&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-7559983798139120670?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/7559983798139120670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=7559983798139120670' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/7559983798139120670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/7559983798139120670'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2009/01/ora-12514-during-switchover-using-data.html' title='ORA-12514 during switchover using Data Guard Broker'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-4647221841057696083</id><published>2009-01-01T14:31:00.000-08:00</published><updated>2009-01-01T14:38:02.679-08:00</updated><title type='text'>HAPPY NEW YEAR !!!</title><content type='html'>HAPPY NEW YEAR TO EVERYONE !!!&lt;br /&gt;&lt;br /&gt;I WISH YOU AND YOUR FAMILIES HEALTHY, HAPPY AND SUCCESSFUL NEW YEAR !!!&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_TxH_Rv11IoU/SV1FgoF5AtI/AAAAAAAAAy4/rkBXBY6oATA/s1600-h/PB280068.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_TxH_Rv11IoU/SV1FgoF5AtI/AAAAAAAAAy4/rkBXBY6oATA/s320/PB280068.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5286457964423086802" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The Picture above is of my daughter Monika. &lt;br /&gt;&lt;br /&gt;She is four months old and is the best thing that happened to me in 2008.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-4647221841057696083?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/4647221841057696083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=4647221841057696083' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/4647221841057696083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/4647221841057696083'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2009/01/happy-new-year.html' title='HAPPY NEW YEAR !!!'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_TxH_Rv11IoU/SV1FgoF5AtI/AAAAAAAAAy4/rkBXBY6oATA/s72-c/PB280068.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-5818055724368349202</id><published>2008-08-31T15:58:00.000-07:00</published><updated>2008-08-31T16:10:11.936-07:00</updated><title type='text'>ORA-23375 when adding new master site in multi-master environment</title><content type='html'>If your database global name contains a word that belongs to the list of Oracle Database Reserved Words and you are planning to add this database as a new master site in multi-master environment, you may want to consider changing the database global name so you can avoid ORA-23375 when executing DBMS_REPCAT.ADD_MASTER_DATABASE procedure.&lt;br /&gt;&lt;br /&gt;This is especially important for those databases that have their global name containing country internet code of any of the following countries: Austria (AT), Belarus (BY), India (IN), Iceland (IS), etc. AT, BY, IN, IS are among the database reserved words.&lt;br /&gt;&lt;br /&gt;You may experience problems even before you try to add the new master site. The creation of the database link to the new master site may fail with: &lt;pre class=”code”&gt;ORA-02084: database name is missing a component&lt;/pre&gt;However, you may not get this error in some cases, for instance when AT keyword is used; or if you put the database link name in double-quotes.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;(the environment used in the examples below is DB1.MYDOMAIN.COM(master definition site, release 10.2.0.2) and DB11G.MYDOMAIN.IN (master site, release 11.1.0.6))&lt;/i&gt;&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;SQL&gt;  create database link DB11G.MYDOMAIN.IN &lt;br /&gt;  2  connect to rep_admin&lt;br /&gt;  3  identified by “rep_password”&lt;br /&gt;  4  using 'DB11G'; &lt;br /&gt; create database link DB11G.MYDOMAIN.IN &lt;br /&gt;                      * &lt;br /&gt;ERROR at line 1: &lt;br /&gt;ORA-02084: database name is missing a component&lt;br /&gt;&lt;br /&gt;SQL&gt;  create database link "DB11G.MYDOMAIN.IN" &lt;br /&gt;  2  connect to rep_admin&lt;br /&gt;  3  identified by "rep_password" &lt;br /&gt;  4  using 'db11g'; &lt;br /&gt;&lt;br /&gt;Database link created.&lt;br /&gt;&lt;br /&gt;SQL&gt; create database link DB11G.MYDOMAIN.AT             &lt;br /&gt;  2  connect to rep_admin&lt;br /&gt;  3  identified by "rep_password" &lt;br /&gt;  4  using 'DB11G'; &lt;br /&gt;&lt;br /&gt;Database link created. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;But, even if the database link creation succeeds, the attempt to add the new master site would definitely fail with: &lt;pre class=”code”&gt;ORA-23375: feature is incompatible with database version at &lt;i&gt;global database name&lt;/i&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;SQL&gt; begin &lt;br /&gt;  2    dbms_repcat.add_master_database( &lt;br /&gt;  3    gname=&gt;'TEST_GROUP', &lt;br /&gt;  4    master=&gt;'"DB11G.MYDOMAIN.IN"', &lt;br /&gt;  5    use_existing_objects =&gt;true, &lt;br /&gt;  6    copy_rows =&gt;false, &lt;br /&gt;  7    propagation_mode=&gt;'ASYNCHRONOUS'); &lt;br /&gt;  8  end;  &lt;br /&gt;  9  / &lt;br /&gt;begin &lt;br /&gt;* &lt;br /&gt;ERROR at line 1: &lt;br /&gt;ORA-23375: feature is incompatible with database version at DB11G.MYDOMAIN.IN &lt;br /&gt;ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86 &lt;br /&gt;ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2159 &lt;br /&gt;ORA-06512: at "SYS.DBMS_REPCAT", line 146 &lt;br /&gt;ORA-06512: at line 2 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt;     &lt;br /&gt;&lt;br /&gt;SQL&gt; begin &lt;br /&gt;  2 dbms_repcat.add_master_database( &lt;br /&gt;  3 gname=&gt;'TEST_GROUP', &lt;br /&gt;  4 master=&gt;'DB11G.MYDOMAIN.AT', &lt;br /&gt;  5 use_existing_objects =&gt;true, &lt;br /&gt;  6 copy_rows =&gt;false, &lt;br /&gt;  7 propagation_mode=&gt;'ASYNCHRONOUS'); &lt;br /&gt;  8 end; &lt;br /&gt;  9  / &lt;br /&gt;&lt;br /&gt;begin &lt;br /&gt;* &lt;br /&gt;ERROR at line 1: &lt;br /&gt;ORA-23375: feature is incompatible with database version at DB11G.MYDOMAIN.AT &lt;br /&gt;ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86 &lt;br /&gt;ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2159 &lt;br /&gt;ORA-06512: at "SYS.DBMS_REPCAT", line 146 &lt;br /&gt;ORA-06512: at line 2 &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;If you turn 10046 trace event you can notice that the error occurs when DBMS_REPCAT_RPC.REPLICATION_VERSION_RC and DBMS_REPCAT_UTL2.REPLICATION_VERSION procedures are invoked against the new master database. &lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;PARSE ERROR #39:len=73 dep=1 uid=61 oct=47 lid=61 tim=1191209094695404 err=6550 &lt;br /&gt;BEGIN sys.dbms_repcat_rpc.replication_version_rc@DB11G.MYDOMAIN.IN (:rv);END; &lt;br /&gt;===================== &lt;br /&gt;PARSE ERROR #39:len=72 dep=1 uid=61 oct=47 lid=61 tim=1191209094702737 err=6550 &lt;br /&gt;BEGIN  sys.dbms_repcat_utl2.replication_version@DB11G.MYDOMAIN.IN (:rv);END; &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;To solve this problem the global name of the new master database should be changed. Once the global name is changed to value that does not contain any reserved word, you should be able to add the database to the replication environment.&lt;br /&gt;&lt;br /&gt;In the example below, I will try to add a new master site which global name was changed to DB11G.FOO.BAR&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;SQL&gt;conn sys/***@DB11G as sysdba&lt;br /&gt;Connected.&lt;br /&gt;SQL&gt; alter database rename global_name to DB11G.FOO.BAR; &lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; conn rep_admin/rep_password@DB1&lt;br /&gt;Connected.&lt;br /&gt;SQL&gt;&lt;br /&gt;SQL&gt; create database link DB11G.FOO.BAR &lt;br /&gt;  2  connect to rep_admin&lt;br /&gt;  3  identified by "rep_password" &lt;br /&gt;  4  using 'DB11G'; &lt;br /&gt;&lt;br /&gt;Database link created.&lt;br /&gt;&lt;br /&gt;SQL&gt; begin &lt;br /&gt;  2    dbms_repcat.add_master_database( &lt;br /&gt;  3    gname=&gt;'TEST_GROUP', &lt;br /&gt;  4    master=&gt;'DB11G.FOO.BAR', &lt;br /&gt;  5    use_existing_objects =&gt;true, &lt;br /&gt;  6    copy_rows =&gt;false, &lt;br /&gt;  7    propagation_mode=&gt;'ASYNCHRONOUS'); &lt;br /&gt;  8  end; &lt;br /&gt;  9  / &lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; column dblink format a30 &lt;br /&gt;SQL&gt; select DBLINK, MASTERDEF, MASTER             &lt;br /&gt;  2  from dba_repsites; &lt;br /&gt;&lt;br /&gt;DBLINK                         M M &lt;br /&gt;------------------------------ - - &lt;br /&gt;DB1.MYDOMAIN.COM               Y Y &lt;br /&gt;DB11G.FOO.BAR                  N Y&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;There are few ways to find Oracle PL/SQL reserved words:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=”http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2048.htm#REFRN30204”&gt;V$RESERVED_WORDS&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Oracle documentation (&lt;a href=”http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/reservewords.htm#LNPLS019”&gt;PL/SQL Reserved Words and Keywords&lt;/a&gt;). Check your version specific documentation available on &lt;a href=”http://tahiti.oracle.com”&gt;http://tahiti.oracle.com&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Issue HELP RESERVED WORDS (PL/SQL) from Sql*Plus (if Sql*Plus help is installed).&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-5818055724368349202?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/5818055724368349202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=5818055724368349202' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/5818055724368349202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/5818055724368349202'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2008/08/ora-23375-when-adding-new-master-site.html' title='ORA-23375 when adding new master site in multi-master environment'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-9073755798076084825</id><published>2008-08-10T18:45:00.000-07:00</published><updated>2008-08-10T19:27:44.654-07:00</updated><title type='text'>Fast-Start Failover - It is reliable</title><content type='html'>Last Friday there was one &lt;a href=”http://forums.oracle.com/forums/thread.jspa?threadID=692679&amp;start=0&amp;tstart=0”&gt;post&lt;/a&gt; on &lt;a href=”http://forums.oracle.com/forums/categoryHome.jspa?categoryID=84”&gt;OTN forums&lt;/a&gt; that brought my attention. The OP was wondering “Is Data Guard Buggy” with attention to Fast-Start Failover (FSFO) feature that provides an ability of automatic failover to the standby database if the primary database is not available for certain time.&lt;br /&gt;&lt;br /&gt;He had some concerns about FSFO being unreliable, very difficult to be implemented and actually doesn't work properly. &lt;br /&gt;&lt;br /&gt;The OP got some immediate response from the OTN users. I couldn't agree more with Joseph Meeks's comment on the topic.&lt;br /&gt;&lt;br /&gt;In my opinion, FSFO is very nice feature that plays big role in Oracle's &lt;a href=”http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm”&gt;Maximum Availability Architecture&lt;/a&gt;. There might be some valid reasons not to implemented it, but if the automatic failover is a requirement, FSFO is the way to go.  Should one have any problems implementing it, the best way to go is to get Oracle Support involved.&lt;br /&gt;&lt;br /&gt;In this post, I'd like to show that implementation of the FSFO should not be a difficult task once you have the Data Guard environment set up.&lt;br /&gt;&lt;br /&gt;I configured data guard physical standby environment on my laptop. Due to hardware limitations, I'll have the observer running on the same machine with the standby databases. Keep in mind this is just an example. In practice, the primary database, the standby database and the observer should run on different hosts. This example also answers one of the questions OP asked: Will it be possible to set it up on one machine? The answer would be it is possible, as shown in the example :-), but it is not the right way to go.&lt;br /&gt;&lt;br /&gt;I use DGMGRL utility in the example..&lt;br /&gt;&lt;br /&gt;So, I configured a Data Guard environment where DB1.MYDOMAIN.COM is primary database and STDB.MYDOMAIN.COM is physical standby. Both databases are 10.2.x&lt;br /&gt;By default, protection mode of the Data Guard configuration is set to MAXIMUM PERFORMANCE&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;DGMGRL&gt; connect sys/***@db1 &lt;br /&gt;Connected. &lt;br /&gt;DGMGRL&gt; show configuration &lt;br /&gt;&lt;br /&gt;Configuration &lt;br /&gt;  Name:                DRTest &lt;br /&gt;  Enabled:             YES &lt;br /&gt;  Protection Mode:     MaxPerformance &lt;br /&gt;  Fast-Start Failover: DISABLED &lt;br /&gt;  Databases: &lt;br /&gt;    db1  - Primary database &lt;br /&gt;    stdb - Physical standby database &lt;br /&gt;&lt;br /&gt;Current status for "DRTest": &lt;br /&gt;SUCCESS &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Enabling Fast-Start Failover requires the following pre-requisites to be met:&lt;br /&gt;Flashback Database feature is enabled on both the primary and the standby database.&lt;br /&gt;The protection mode of the configuration must be set to MAXIMUM AVAILABILITY&lt;br /&gt;tnsnames.ora in the ORACLE_HOME where the observer runs must be set to see both databases, the primary and the standby.&lt;br /&gt;DGMGRL must be available on the observer host.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;Enable Flashback Database&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;I will enable flashback database feature on both databases. This assumes that the flash recovery area is configured. &lt;br /&gt;The flashback database feature provides an ability for an easy reinstatement of the failed primary database to new standby database.&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;SQL&gt; shutdown immediate &lt;br /&gt;Database closed. &lt;br /&gt;Database dismounted. &lt;br /&gt;ORACLE instance shut down. &lt;br /&gt;SQL&gt; &lt;br /&gt;&lt;br /&gt;SQL&gt; startup mount &lt;br /&gt;ORACLE instance started. &lt;br /&gt;&lt;br /&gt;Total System Global Area  285212672 bytes &lt;br /&gt;Fixed Size                  1261348 bytes &lt;br /&gt;Variable Size             100663516 bytes &lt;br /&gt;Database Buffers          176160768 bytes &lt;br /&gt;Redo Buffers                7127040 bytes &lt;br /&gt;Database mounted. &lt;br /&gt;SQL&gt; alter database flashback on; &lt;br /&gt;&lt;br /&gt;Database altered. &lt;br /&gt;&lt;br /&gt;SQL&gt; alter database open; &lt;br /&gt;&lt;br /&gt;Database altered. &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;Set the protection mode to MAXIMUM AVAILABILITY&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;The Fast-Start Failover can be enabled only if the protection mode is set to MAXIMUM AVAILABILITY.&lt;br /&gt;LogXptMode has to be set to 'SYNC'&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;DGMGRL&gt; edit database 'db1' &lt;br /&gt;&gt; set property LogXptMode='SYNC'; &lt;br /&gt;Property "logxptmode" updated &lt;br /&gt;DGMGRL&gt; edit database 'stdb' &lt;br /&gt;&gt; set property LogXptMode='SYNC'; &lt;br /&gt;Property "logxptmode" updated &lt;br /&gt;&lt;br /&gt;DGMGRL&gt; edit configuration set protection mode as MaxAvailability; &lt;br /&gt;Succeeded. &lt;br /&gt;DGMGRL&gt; show configuration &lt;br /&gt;&lt;br /&gt;Configuration &lt;br /&gt;  Name:                DRTest &lt;br /&gt;  Enabled:             YES &lt;br /&gt;  Protection Mode:     MaxAvailability &lt;br /&gt;  Fast-Start Failover: DISABLED &lt;br /&gt;  Databases: &lt;br /&gt;    db1  - Primary database &lt;br /&gt;    stdb - Physical standby database &lt;br /&gt;&lt;br /&gt;Current status for "DRTest": &lt;br /&gt;SUCCESS&lt;br /&gt;&lt;br /&gt;SQL&gt; conn sys/***@db1 as sysdba &lt;br /&gt;Connected. &lt;br /&gt;SQL&gt; select protection_mode, protection_level from v$database; &lt;br /&gt;&lt;br /&gt;PROTECTION_MODE      PROTECTION_LEVEL &lt;br /&gt;-------------------- -------------------- &lt;br /&gt;MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY &lt;br /&gt;&lt;br /&gt;SQL&gt; conn sys/***@stdb as sysdba &lt;br /&gt;Connected. &lt;br /&gt;SQL&gt; select protection_mode, protection_level from v$database; &lt;br /&gt;&lt;br /&gt;PROTECTION_MODE      PROTECTION_LEVEL &lt;br /&gt;-------------------- -------------------- &lt;br /&gt;MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY &lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I ensured that tnsnames.ora are set correctly as well DGMGRL is installed.&lt;br /&gt;&lt;br /&gt;Now, since all the prerequisites are met, lets move forward and enable the FSFO.&lt;br /&gt;Before enabling it, make sure each of the databases in the configuration has set a fast start failover target. This is achieved by setting the FastStartFailoverTarget parameter.&lt;br /&gt;&lt;br /&gt;&lt;pre class=”code&gt;&lt;br /&gt;DGMGRL&gt; edit database 'db1' set property faststartfailovertarget='stdb'; &lt;br /&gt;Property "faststartfailovertarget" updated &lt;br /&gt;DGMGRL&gt; edit database 'stdb' set property faststartfailovertarget='db1'; &lt;br /&gt;Property "faststartfailovertarget" updated&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Another important parameter that has to be set is FastStartFailoverThreshold. This parameter specifies the amount of time (in seconds) the observers attempts to reconnect to the primary database before starting the fast-start failover to the standby database. The default value is set to 30 seconds. In the example I set this parameter to 120 seconds.&lt;br /&gt;&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;DGMGRL&gt; edit configuration set property FastStartFailoverThreshold=120; &lt;br /&gt;Property "faststartfailoverthreshold" updated &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now lets enable the fast start failover:&lt;br /&gt;&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;DGMGRL&gt; ENABLE FAST_START FAILOVER; &lt;br /&gt;Enabled. &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;If you check the configuration at this moment you may find the following warning: ORA-16608: one or more databases have warnings.&lt;br /&gt;If you check the status of one of the databases, you can see this warning: ORA-16819: Fast-Start Failover observer not started&lt;br /&gt;&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;DGMGRL&gt; show configuration &lt;br /&gt;&lt;br /&gt;Configuration &lt;br /&gt;  Name:                DRTest &lt;br /&gt;  Enabled:             YES &lt;br /&gt;  Protection Mode:     MaxAvailability &lt;br /&gt;  Fast-Start Failover: ENABLED &lt;br /&gt;  Databases: &lt;br /&gt;    db1  - Primary database &lt;br /&gt;    stdb - Physical standby database &lt;br /&gt;         - Fast-Start Failover target &lt;br /&gt;&lt;br /&gt;Current status for "DRTest": &lt;br /&gt;Warning: ORA-16608: one or more databases have warnings &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DGMGRL&gt; show database verbose 'db1' &lt;br /&gt;&lt;br /&gt;Database &lt;br /&gt;  Name:            db1 &lt;br /&gt;  Role:            PRIMARY &lt;br /&gt;  Enabled:         YES &lt;br /&gt;  Intended State:  ONLINE &lt;br /&gt;  Instance(s): &lt;br /&gt;    db1 &lt;br /&gt;&lt;br /&gt;  Properties: &lt;br /&gt;    InitialConnectIdentifier        = 'db1.mydomain.com' &lt;br /&gt;    LogXptMode                      = 'SYNC' &lt;br /&gt;    Dependency                      = '' &lt;br /&gt;    DelayMins                       = '0' &lt;br /&gt;    Binding                         = 'OPTIONAL' &lt;br /&gt;    MaxFailure                      = '0' &lt;br /&gt;    MaxConnections                  = '1' &lt;br /&gt;    ReopenSecs                      = '300' &lt;br /&gt;    NetTimeout                      = '180' &lt;br /&gt;    LogShipping                     = 'ON' &lt;br /&gt;    PreferredApplyInstance          = '' &lt;br /&gt;    ApplyInstanceTimeout            = '0' &lt;br /&gt;    ApplyParallel                   = 'AUTO' &lt;br /&gt;    StandbyFileManagement           = 'auto' &lt;br /&gt;    ArchiveLagTarget                = '0' &lt;br /&gt;    LogArchiveMaxProcesses          = '2' &lt;br /&gt;    LogArchiveMinSucceedDest        = '1' &lt;br /&gt;    DbFileNameConvert               = 'stdb, db1' &lt;br /&gt;    LogFileNameConvert              = 'stdb, db1' &lt;br /&gt;    FastStartFailoverTarget         = 'stdb' &lt;br /&gt;    StatusReport                    = '(monitor)' &lt;br /&gt;    InconsistentProperties          = '(monitor)' &lt;br /&gt;    InconsistentLogXptProps         = '(monitor)' &lt;br /&gt;    SendQEntries                    = '(monitor)' &lt;br /&gt;    LogXptStatus                    = '(monitor)' &lt;br /&gt;    RecvQEntries                    = '(monitor)' &lt;br /&gt;    HostName                        = 'miki-laptop' &lt;br /&gt;    SidName                         = 'db1' &lt;br /&gt;    LocalListenerAddress            = '(ADDRESS=(PROTOCOL=tcp)(HOST=miki-laptop)(PORT=1521))' &lt;br /&gt;    StandbyArchiveLocation          = 'dgsby_db1' &lt;br /&gt;    AlternateLocation               = '' &lt;br /&gt;    LogArchiveTrace                 = '0' &lt;br /&gt;    LogArchiveFormat                = '%t_%s_%r.dbf' &lt;br /&gt;    LatestLog                       = '(monitor)' &lt;br /&gt;    TopWaitEvents                   = '(monitor)' &lt;br /&gt;&lt;br /&gt;Current status for "db1": &lt;br /&gt;Warning: ORA-16819: Fast-Start Failover observer not started &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;So lets start the observer. I will repeat again, the observer should run on a different host, however for the sake of this example it will run on the same machine as the databases.&lt;br /&gt;In order to start the observer one should start DGMGRL utility and login to the data guard configuration.&lt;br /&gt;Once logged in, issue START OBSERVER command. This will start the observer.&lt;br /&gt;Optionally you can set a log file destination while invoking DGMGRL utility and specify name for the observer configuration file (for more information check &lt;a href=”http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/dgmgrl.htm#DGBKR732”&gt;Data Guard Command-Line Interface Reference&lt;/a&gt;).&lt;br /&gt;Once the observer is started, the control is not returned to the user until the observer is stopped.&lt;br /&gt;&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;DGMGRL for Linux: Version 10.2.0.3.0 - Production &lt;br /&gt;&lt;br /&gt;Copyright (c) 2000, 2005, Oracle. All rights reserved. &lt;br /&gt;&lt;br /&gt;Welcome to DGMGRL, type "help" for information. &lt;br /&gt;DGMGRL&gt; connect sys/***@db1 &lt;br /&gt;Connected. &lt;br /&gt;DGMGRL&gt; start observer; &lt;br /&gt;Observer started &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;So lets check the configuration now.&lt;br /&gt;&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;$ dgmgrl &lt;br /&gt;DGMGRL for Linux: Version 10.2.0.3.0 - Production &lt;br /&gt;&lt;br /&gt;Copyright (c) 2000, 2005, Oracle. All rights reserved. &lt;br /&gt;&lt;br /&gt;Welcome to DGMGRL, type "help" for information. &lt;br /&gt;DGMGRL&gt; connect sys/***@db1 &lt;br /&gt;Connected.&lt;br /&gt;DGMGRL&gt; show configuration verbose; &lt;br /&gt;&lt;br /&gt;Configuration &lt;br /&gt;  Name:                DRTest &lt;br /&gt;  Enabled:             YES &lt;br /&gt;  Protection Mode:     MaxAvailability &lt;br /&gt;  Fast-Start Failover: ENABLED &lt;br /&gt;  Databases: &lt;br /&gt;    db1  - Primary database &lt;br /&gt;    stdb - Physical standby database &lt;br /&gt;         - Fast-Start Failover target &lt;br /&gt;&lt;br /&gt;Fast-Start Failover &lt;br /&gt;  Threshold: 120 seconds &lt;br /&gt;  Observer:  miki-laptop &lt;br /&gt;&lt;br /&gt;Current status for "DRTest": &lt;br /&gt;SUCCESS &lt;br /&gt;&lt;br /&gt;DGMGRL&gt; &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;As of this moment my configuration has FSFO enabled.&lt;br /&gt;&lt;br /&gt;Now lets test if the FSFO really works.&lt;br /&gt;One should be aware of the conditions that must be satisfied for the observer to attempt FSFO.&lt;br /&gt;The full list of conditions can be found in &lt;a href=”http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/sofo.htm#BCGHEJFH”&gt;Data Guard Broker user guide&lt;/a&gt; under 5.5.2.1 What Happens When Fast-Start Failover and the Observer Are Running?&lt;br /&gt;&lt;br /&gt;I will issue SHUTDOWN ABORT to the primary database (SHUTDOWN NORMAL/IMMEDIATE/TRANSACTIONAL would not trigger the failover).&lt;br /&gt;Once I crash the database, the status of the configuration will return Error: ORA-16625: cannot reach the database. Be aware that since the primary database is down, the only way to check the configuration is to connect using the standby database credentials.&lt;br /&gt;&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;SQL&gt; conn sys/***@db1 as sysdba &lt;br /&gt;Connected. &lt;br /&gt;SQL&gt; shutdown abort &lt;br /&gt;ORACLE instance shut down. &lt;br /&gt;SQL&gt; &lt;br /&gt;&lt;br /&gt;DGMGRL&gt; connect sys/***@stdb &lt;br /&gt;Connected. &lt;br /&gt;DGMGRL&gt; show configuration &lt;br /&gt;&lt;br /&gt;Configuration &lt;br /&gt;  Name:                DRTest &lt;br /&gt;  Enabled:             YES &lt;br /&gt;  Protection Mode:     MaxAvailability &lt;br /&gt;  Fast-Start Failover: ENABLED &lt;br /&gt;  Databases: &lt;br /&gt;    db1  - Primary database &lt;br /&gt;    stdb - Physical standby database &lt;br /&gt;         - Fast-Start Failover target &lt;br /&gt;&lt;br /&gt;Current status for "DRTest": &lt;br /&gt;Error: ORA-16625: cannot reach the database &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;After waiting for two minutes (FSFO threshold was set to 120 seconds), I checked the observer log file and found out that it started the failover.&lt;br /&gt;&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;[W000 08/09 17:58:49.75] Observer started. &lt;br /&gt;&lt;br /&gt;18:05:38.31  Saturday, August 09, 2008 &lt;br /&gt;Initiating fast-start failover to database "stdb"... &lt;br /&gt;Performing failover NOW, please wait... &lt;br /&gt;Failover succeeded, new primary is "stdb" &lt;br /&gt;18:06:16.82  Saturday, August 09, 2008 &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;DGMGRL&gt; show configuration verbose&lt;br /&gt;&lt;br /&gt;Configuration&lt;br /&gt;&lt;br /&gt;  Name:                DRTest&lt;br /&gt;  Enabled:             YES&lt;br /&gt;  Protection Mode:     MaxAvailability&lt;br /&gt;  Fast-Start Failover: ENABLED&lt;br /&gt;  Databases:&lt;br /&gt;    db1  - Physical standby database (disabled)&lt;br /&gt;         - Fast-Start Failover target&lt;br /&gt;    stdb - Primary database&lt;br /&gt;&lt;br /&gt;Fast-Start Failover&lt;br /&gt;&lt;br /&gt;  Threshold: 120 seconds&lt;br /&gt;  Observer:  miki-laptop&lt;br /&gt;&lt;br /&gt;Current status for "DRTest":&lt;br /&gt;&lt;br /&gt;Warning: ORA-16608: one or more databases have warnings&lt;br /&gt;&lt;br /&gt;DGMGRL&gt; &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;So the observer started the fast-start failover and has successfully converted the former standby to new primary database.&lt;br /&gt;&lt;br /&gt;Once the failover is done the observer will attempt to automatically reinstate the former primary database to new physical standby. &lt;a href=”http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/sofo.htm#CHDIBEBC”&gt;Certain requirements&lt;/a&gt; have to be met for the automatic reinstatement to take place. If not, the database can be manually reinstated. Once the reinstatement is successful you can see that the former primary database became new physical standby.&lt;br /&gt;&lt;pre class=”code”&gt;&lt;br /&gt;DGMGRL&gt; show configuration&lt;br /&gt;&lt;br /&gt;Configuration&lt;br /&gt;&lt;br /&gt;  Name:                DRTest&lt;br /&gt;  Enabled:             YES&lt;br /&gt;  Protection Mode:     MaxAvailability&lt;br /&gt;  Fast-Start Failover: ENABLED&lt;br /&gt;  Databases:&lt;br /&gt;&lt;br /&gt;    db1  - Physical standby database&lt;br /&gt;         - Fast-Start Failover target&lt;br /&gt;    stdb - Primary database&lt;br /&gt;&lt;br /&gt;Current status for "DRTest":&lt;br /&gt;&lt;br /&gt;SUCCESS&lt;br /&gt;&lt;br /&gt;DGMGRL&gt; &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Finally, you can do switchover to perform role change and to place the configuration in its initial state.&lt;br /&gt;&lt;br /&gt;The example above shows that enabling fast-start failover is pretty straight forward. There are many good documents with information how to enable FSFO feature. Some of them are listed below:&lt;br /&gt;&lt;br /&gt;&lt;a href=”http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/sofo.htm#i1027843”&gt;Oracle® Data Guard Broker 10g Release 2 (10.2) - 5.5 Fast-Start Failover&lt;/a&gt;&lt;br /&gt;&lt;a href=”http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/sofo.htm#BCGHEJFH”&gt;What Happens When Fast-Start Failover and the Observer Are Running?&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=”http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/cli.htm#BABEIIHD”&gt;7.6 Scenario 5: Enabling Fast-Start Failover and the Observer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Metalink Note#359555.1 IMPLEMENTING FAST-START FAILOVER IN 10GR2 DATAGUARD BROKER ENVIRONMENT &lt;br /&gt;&lt;br /&gt;&lt;a href=”http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm”&gt;Oracle Maximum Availability Architecture – MAA&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I hope I didn't miss something.&lt;br /&gt;&lt;br /&gt;Cheers!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-9073755798076084825?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/9073755798076084825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=9073755798076084825' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/9073755798076084825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/9073755798076084825'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2008/08/fast-start-failover-it-is-reliable.html' title='Fast-Start Failover - It is reliable'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-7214602477536832183</id><published>2008-07-31T21:45:00.000-07:00</published><updated>2008-12-09T04:21:57.035-08:00</updated><title type='text'>Metalink, SCM, the error and the good stuff</title><content type='html'>Yesterday I got an e-mail from Oracle Support letting me know about the new Metalink interface which is supposed to go live this Fall:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;Dear MetaLink Customer,&lt;br /&gt;&lt;br /&gt;Oracle is committed to consistently improving your customer support experience. In the fall of 2008, MetaLink will have a new user interface. To help you prepare for the transition, you may now preview MetaLink's new user interface and provide valuable feedback about its features.&lt;br /&gt;&lt;br /&gt;******&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;I clicked on the link, that was supposed to redirect me to Metalink, and I got one very fancy schmancy login page. Well, actually, it is the Software Configuration Manager (SCM).&lt;br /&gt;&lt;br /&gt;I put in my login credentials and ... I got an error message "&lt;b&gt;IO Error Error #2032&lt;/b&gt;"&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_TxH_Rv11IoU/SJKWJwLo0eI/AAAAAAAAAEY/hihDp2Kn3qs/s1600-h/scm_error.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_TxH_Rv11IoU/SJKWJwLo0eI/AAAAAAAAAEY/hihDp2Kn3qs/s320/scm_error.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5229407211627270626" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;WOW ... :-)  &lt;br /&gt;&lt;br /&gt;Well, OK the problem was fixed latter that day.&lt;br /&gt;&lt;br /&gt;Regardless of the problem I experienced, I must say that I've been using SCM for quite a while and I am pretty impressed with its functionality. It is really much easier to create and manage service requests using the configurations you I have registered with SCM. Oracle Support engineers have all the information they need about the configuration of the server and the database. &lt;br /&gt;&lt;br /&gt;Searching the Knowledge base looks improved as well. Now you can have your search results visible on the left panel of the screen, while, at the same time, you can read the content of the selected note. This makes navigation much easier. &lt;br /&gt;&lt;br /&gt;Service Requests part has new design too. &lt;br /&gt;&lt;br /&gt;All in all, improved functionality, better navigation, good design, some new features too ... &lt;b&gt;Good job !!!&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Useful Links:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://csm.oracle.com/"&gt;http://csm.oracle.com/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.oracle.com/support/premier/software-configuration-manager.html"&gt;http://www.oracle.com/support/premier/software-configuration-manager.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-7214602477536832183?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/7214602477536832183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=7214602477536832183' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/7214602477536832183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/7214602477536832183'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2008/07/metalink-scm-error-and-good-stuff.html' title='Metalink, SCM, the error and the good stuff'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_TxH_Rv11IoU/SJKWJwLo0eI/AAAAAAAAAEY/hihDp2Kn3qs/s72-c/scm_error.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-3198773168796919060</id><published>2008-07-27T21:32:00.000-07:00</published><updated>2008-07-27T21:44:49.245-07:00</updated><title type='text'>1Z0-043 ... Passed</title><content type='html'>I passed the &lt;a href="http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&amp;p_exam_id=1Z0_043"&gt;1Z0-043&lt;/a&gt; exam a week ago. While waiting on Oracle to process my hands-on course requirement I am thinking what should be the next step. Certainly OCM is on my list, but in the mean time I'd like to go for &lt;a href="http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&amp;p_org_id=1001&amp;lang=US&amp;p_exam_id=1Z0_047"&gt;SQL Expert Certificate&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I have been studying very hard, especially the last month. I started with &lt;a href="http://www.amazon.com/OCP-Oracle-Certification-1Z0-042-1Z0-043/dp/0782143695/ref=cm_cr_pr_sims_t"&gt;Oracle 10g Certification&lt;/a&gt; and &lt;a href="http://www.amazon.com/Oracle-Database-doingCertification-Guide-Handbook/dp/0072257903/ref=cm_cr_pr_pb_i"&gt;Oracle Database 10g OCP Certification All-In-One Exam Guide&lt;/a&gt;, but the most of the time I spent reading from the Official Documentation and of course, practicing a lot. &lt;br /&gt;&lt;br /&gt;The books I mentioned are good, they cover some basics, but I found they are not quite sufficient to prepare you for the exam. Some of the material is not up to date with the &lt;a href="http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&amp;p_exam_id=1Z0_043"&gt;exam topics.&lt;/a&gt; The sample tests that come with the books contain some questions out of the scope of the exam. Some of the questions contain answers that are wrong or arguable. &lt;br /&gt;&lt;br /&gt;It is very important that while preparing for the exam you practice a lot. It is not very difficult to set up a test environment for each of the topics. It was slightly complicated to create a test environment for ASM on my Ubuntu Linux, but the post from Grégory Guillou &lt;a href="http://www.pythian.com/blogs/810/howto-set-up-oracle-asm-on-ubuntu-gutsy-gibbon"&gt;How To Set Up Oracle ASM on Ubuntu Gutsy Gibbon&lt;/a&gt; has helped me with that.&lt;br /&gt;&lt;br /&gt;Finally, while preparing for the exam, I have improved my skills significantly and learned some new stuff that I didn't have any experience with before (Resource Manager for instance).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-3198773168796919060?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/3198773168796919060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=3198773168796919060' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/3198773168796919060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/3198773168796919060'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2008/07/1z0-043-passed.html' title='1Z0-043 ... Passed'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-7048887274605351850</id><published>2007-11-01T10:28:00.000-07:00</published><updated>2008-12-09T04:21:57.631-08:00</updated><title type='text'>Blocked Patch files cause OPatch to fail with error code = 170</title><content type='html'>I had to apply a CPU patch to 9.2.0.7 Oracle Home on Windows 2003 Server box.&lt;br /&gt;&lt;br /&gt;Opatch utility was failing with the following error:&lt;br /&gt;&lt;br /&gt;&lt;font face="courier"&gt;&lt;br /&gt;The patch directory area must be a number.&lt;br /&gt;&lt;br /&gt;ERROR: OPatch failed because of problems in patch area.&lt;br /&gt;OPatch returns with error code = 170&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Well, there are quite few reasons why you may get this error when you try to apply a patch using Opatch.&lt;br /&gt;Many of them are published in some of the following Metalink notes:&lt;br /&gt;&lt;br /&gt;Note:369555.1&lt;br /&gt;Note:294350.1&lt;br /&gt;Note:418479.1&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;But, I couldn't find anything about the one that I came across recently.&lt;br /&gt;&lt;br /&gt;I tried everything described in the notes above. Nothing worked out, until I realized that all of the patch files have been somehow blocked.&lt;br /&gt;&lt;br /&gt;Although the patch files had all the necessary permissions, especially read, the opatch utility couldn't read them because of the lock set by the OS. &lt;br /&gt;&lt;br /&gt;If you check the file properties you can see the message:&lt;br /&gt;"This file came from another computer and might be blocked to help protect this computer".&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_TxH_Rv11IoU/RyoNaF4uEVI/AAAAAAAAAAM/6eueW7iWh4k/s1600-h/opatch1.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_TxH_Rv11IoU/RyoNaF4uEVI/AAAAAAAAAAM/6eueW7iWh4k/s320/opatch1.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5127925867622568274" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The reason why these files were blocked was because I copy them from a different machine.&lt;br /&gt;&lt;br /&gt;A blocked file can be unlocked by pressing Unlock button.&lt;br /&gt;The odd thing was that only one file can be unlocked at a time. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_TxH_Rv11IoU/RyoNp14uEWI/AAAAAAAAAAU/mLiCFhjz3Og/s1600-h/opatch2.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://2.bp.blogspot.com/_TxH_Rv11IoU/RyoNp14uEWI/AAAAAAAAAAU/mLiCFhjz3Og/s320/opatch2.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5127926138205507938" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So I just deleted the patch directory and unlocked the patch zip before I extract it again.&lt;br /&gt;&lt;br /&gt;I haven't had similar issue before. I believe this is a new "security" feature of Windows 2003 Server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-7048887274605351850?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/7048887274605351850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=7048887274605351850' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/7048887274605351850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/7048887274605351850'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2007/11/blocked-patch-files-cause-opatch-to.html' title='Blocked Patch files cause OPatch to fail with error code = 170'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_TxH_Rv11IoU/RyoNaF4uEVI/AAAAAAAAAAM/6eueW7iWh4k/s72-c/opatch1.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-5139198975425925584</id><published>2007-09-16T08:33:00.000-07:00</published><updated>2007-09-16T08:56:33.348-07:00</updated><title type='text'>Query to determine the clustering factor before you create the index</title><content type='html'>I found the following query useful to determine the clustering factor for the indexes that has not been created yet.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;select count(1) clustering_factor&lt;br /&gt;from&lt;br /&gt;(&lt;br /&gt;select dbms_rowid.rowid_block_number(rowid) block_no,&lt;br /&gt;&lt;em&gt;list of the indexed columns&lt;/em&gt;,&lt;br /&gt;count(1) num_rows,&lt;br /&gt;LAG(dbms_rowid.rowid_block_number(rowid))&lt;br /&gt;over (order by &lt;em&gt;list of the indexed columns&lt;/em&gt;) prev_block&lt;br /&gt;from &lt;em&gt;table_name&lt;/em&gt;&lt;br /&gt;group by dbms_rowid.rowid_block_number(rowid),&lt;br /&gt;&lt;em&gt;list of the indexed columns&lt;br /&gt;&lt;/em&gt;order by &lt;em&gt;list of the indexed columns&lt;/em&gt;&lt;br /&gt;)&lt;br /&gt;where block_no&lt;&gt;prev_block or prev_block is null&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Let's take a look at the following example:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;SQL&gt; create table test&lt;br /&gt;2 tablespace example&lt;br /&gt;3 as select&lt;br /&gt;4 mod(rownum,8) col1&lt;br /&gt;5 lpad('x',1000) col2&lt;br /&gt;6 from all_objects&lt;br /&gt;7 where rownum&lt;=1000; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Using the following query, we can see that there are about 7 rows per block (block size 8192) that makes the records with same COL1 to be scattered across different blocks: &lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;SQL&gt; select num_rows_in_block, count(1) blocks&lt;br /&gt;2 from&lt;br /&gt;3 (&lt;br /&gt;4 select block_no, count(1) num_rows_in_block&lt;br /&gt;5 from&lt;br /&gt;6 (&lt;br /&gt;7 select dbms_rowid.rowid_block_number(rowid) block_no&lt;br /&gt;8 from test&lt;br /&gt;9 )&lt;br /&gt;10 group by block_no&lt;br /&gt;11 )&lt;br /&gt;12* group by num_rows_in_block&lt;br /&gt;SQL&gt; /&lt;br /&gt;&lt;br /&gt;NUM_ROWS_IN_BLOCK BLOCKS&lt;br /&gt;----------------- ----------&lt;br /&gt;6 1&lt;br /&gt;7 142&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Let see how big would be the clustering factor of an index built on TEST(COL1).&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;SQL&gt; select count(1) clustering_factor&lt;br /&gt;2 from&lt;br /&gt;3 (&lt;br /&gt;4 select dbms_rowid.rowid_block_number(rowid) block_no,&lt;br /&gt;5 col1,&lt;br /&gt;6 count(1) num_rows,&lt;br /&gt;7 LAG(dbms_rowid.rowid_block_number(rowid))&lt;br /&gt;8 over (order by col1) prev_block&lt;br /&gt;9 from test&lt;br /&gt;10 group by dbms_rowid.rowid_block_number(rowid), col1&lt;br /&gt;11 order by col1&lt;br /&gt;12 )&lt;br /&gt;13* where block_no&lt;&gt;prev_block or prev_block is null&lt;br /&gt;SQL&gt; /&lt;br /&gt;&lt;br /&gt;CLUSTERING_FACTOR&lt;br /&gt;-----------------&lt;br /&gt;1000&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;The result was pretty obvious.&lt;br /&gt;Now let's add another column COL3 in the table TEST and set its value to mod(col1, 4).&lt;br /&gt;This will make the blocks to contain at most two records with the same value of COL3.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;SQL&gt; alter table test&lt;br /&gt;2 add col3 number;&lt;br /&gt;&lt;br /&gt;Table altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; update test set col3=mod(col1,4);&lt;br /&gt;&lt;br /&gt;1000 rows updated.&lt;br /&gt;&lt;br /&gt;SQL&gt; commit;&lt;br /&gt;&lt;br /&gt;Commit complete.&lt;br /&gt;&lt;br /&gt;SQL&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Now let see what would be the value of the clustering factor of the index created on COL3 column:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;SQL&gt; select count(1) clustering_factor&lt;br /&gt;2 from&lt;br /&gt;3 (&lt;br /&gt;4 select dbms_rowid.rowid_block_number(rowid) block_no,&lt;br /&gt;5 col3,&lt;br /&gt;6 count(1) num_rows,&lt;br /&gt;7 LAG(dbms_rowid.rowid_block_number(rowid))&lt;br /&gt;8 over (order by col3) prev_block&lt;br /&gt;9 from test&lt;br /&gt;10 group by dbms_rowid.rowid_block_number(rowid), col3&lt;br /&gt;11 order by col3&lt;br /&gt;12 )&lt;br /&gt;13* where block_no&lt;&gt;prev_block or prev_block is null&lt;br /&gt;SQL&gt; /&lt;br /&gt;&lt;br /&gt;CLUSTERING_FACTOR&lt;br /&gt;-----------------&lt;br /&gt;572&lt;br /&gt;&lt;br /&gt;Now let's create the actual indexes and see what their clustering factor would be:&lt;br /&gt;&lt;br /&gt;SQL&gt; create index test_col1_idx on test(col1);&lt;br /&gt;&lt;br /&gt;Index created.&lt;br /&gt;&lt;br /&gt;SQL&gt; create index test_col3_idx on test(col3);&lt;br /&gt;&lt;br /&gt;Index created.&lt;br /&gt;&lt;br /&gt;SQL&gt; select index_name, clustering_factor&lt;br /&gt;2 from user_indexes&lt;br /&gt;3* where table_name='TEST'&lt;br /&gt;SQL&gt; /&lt;br /&gt;&lt;br /&gt;INDEX_NAME CLUSTERING_FACTOR&lt;br /&gt;------------------------------ -----------------&lt;br /&gt;TEST_COL1_IDX 1000&lt;br /&gt;TEST_COL3_IDX 572&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Perfect insights about the importance of the clustering factor for calculating the cost I found in Jonathan Lewis's book &lt;a href="http://www.amazon.com/Cost-Based-Oracle-Fundamentals-Jonathan-Lewis/dp/1590596366/ref=pd_bbs_sr_1/104-6075830-0050367?ie=UTF8&amp;s=books&amp;qid=1189957911&amp;sr=8-1" target="_blank"&gt;Cost-Based Oracle Fundamentals&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Let's go back to the very first query in this post. Why I think this query is useful?&lt;br /&gt;Because sometime, even though I think some columns are perfect combination to create index on, the index might not be used by the optimizer because the clustering factor is big.&lt;br /&gt;It can give you an initial clue how effective some index could be.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-5139198975425925584?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/5139198975425925584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=5139198975425925584' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/5139198975425925584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/5139198975425925584'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2007/09/query-to-determine-clustering-factor.html' title='Query to determine the clustering factor before you create the index'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-116624744490101531</id><published>2006-12-15T21:24:00.000-08:00</published><updated>2006-12-15T21:39:31.896-08:00</updated><title type='text'>Run Flashback commands only from Sql*Plus 10.1.x or newer</title><content type='html'>getting ORA-08186: invalid timestamp specified each time I tried to run a FVQ. &lt;br /&gt;&lt;br /&gt;ORA-08186: invalid timestamp specified&lt;br /&gt;Well ... take a look at the following example&lt;br /&gt;&lt;br /&gt;First I wanted to make sure, that the format I use is the correct one. &lt;br /&gt;&lt;br /&gt;&lt;font face="Courier New" &gt;&lt;br /&gt;  1* select to_char(systimestamp,'DD-MON-RR HH.MI.SSXFF AM') from dual&lt;br /&gt;SQL&gt; /&lt;br /&gt;&lt;br /&gt;TO_CHAR(SYSTIMESTAMP,'DD-MON-RR&lt;br /&gt;-------------------------------&lt;br /&gt;14-DEC-06 10.27.26.622829 AM&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Now, when I tried to run FVQ, I got "ORA-30052: invalid lower limit snapshot expression". That was an expected result, since my lower limit did not belong in (SYSDATE-UNDO_RETENTION, SYSDATE] range. (UNDO_RETENTION parameter was set to 900). &lt;br /&gt;But you can agree with me that Oracle successfully processed timestamp values that I used in this query.&lt;br /&gt;&lt;br /&gt;&lt;font face="Courier New" &gt;&lt;br /&gt;SQL&gt; ed&lt;br /&gt;Wrote file afiedt.buf&lt;br /&gt;&lt;br /&gt;  1  select comm&lt;br /&gt;  2  from scott.emp&lt;br /&gt;  3  versions between timestamp&lt;br /&gt;  4  to_timestamp('14-DEC-06 09.45.00.000000 AM','DD-MON-RR HH.MI.SSXFF AM') and&lt;br /&gt;  5  to_timestamp('14-DEC-06 10.00.00.000000 AM','DD-MON-RR HH.MI.SSXFF AM')&lt;br /&gt;  6  where&lt;br /&gt;  7* empno = 7369&lt;br /&gt;SQL&gt; /&lt;br /&gt;from scott.emp&lt;br /&gt;           *&lt;br /&gt;ERROR at line 2:&lt;br /&gt;ORA-30052: invalid lower limit snapshot expression &lt;br /&gt;&lt;/font&gt;&lt;br /&gt;So I modified the lower limit to fit in the right range, and I got ORA-08186: invalid timestamp specified. !?!?!?&lt;br /&gt;&lt;font face="Courier New" &gt;&lt;br /&gt;SQL&gt; ed&lt;br /&gt;Wrote file afiedt.buf&lt;br /&gt;&lt;br /&gt;  1  select comm&lt;br /&gt;  2  from scott.emp&lt;br /&gt;  3  versions between timestamp&lt;br /&gt;  4  to_timestamp('14-DEC-06 10.20.00.000000 AM','DD-MON-RR HH.MI.SSXFF AM') and&lt;br /&gt;  5  to_timestamp('14-DEC-06 11.00.00.000000 AM','DD-MON-RR HH.MI.SSXFF AM')&lt;br /&gt;  6  where&lt;br /&gt;  7* empno = 7369&lt;br /&gt;SQL&gt; /&lt;br /&gt;from scott.emp&lt;br /&gt;           *&lt;br /&gt;ERROR at line 2:&lt;br /&gt;ORA-08186: invalid timestamp specified &lt;br /&gt;&lt;/font&gt;&lt;br /&gt;After some time that I spent trying to resolve this issue (I couldn't dare to open SR about it:-)) I remembered I have had similar problems while trying to test some flashback features (flashback table to before drop) on Sql*Plus 9.2.x while ago….and I was using Sql*Plus 9.2 again.&lt;br /&gt;&lt;br /&gt;I tried the same example on Sql*Plus 10.1.0.2&lt;br /&gt;&lt;br /&gt;… and everything worked well.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-116624744490101531?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/116624744490101531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=116624744490101531' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/116624744490101531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/116624744490101531'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2006/12/run-flashback-commands-only-from.html' title='Run Flashback commands only from Sql*Plus 10.1.x or newer'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-116326466988539078</id><published>2006-11-11T08:59:00.000-08:00</published><updated>2007-03-01T19:46:13.936-08:00</updated><title type='text'>Some books might make you think wrong</title><content type='html'>It is amazing how confusable some of the books could be. &lt;br /&gt;You better check any information you think is different than you know.&lt;br /&gt;Currently I am reading a book that is suppose to prepare me for OCP exam. &lt;br /&gt;There are some questions and answers after each Chapter. I found few answers that I think are not correct.&lt;br /&gt;Don’t get me wrong I still think that the book I read is a good one.&lt;br /&gt;&lt;br /&gt;One Example: (I changed usernames and sequence name used in the original question):&lt;br /&gt;Question:&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;b&gt;The following SQL statement will allow user test_usr which operations on sequence scott.test_sq?&lt;br /&gt;GRANT ALL ON scott.test_sq to test_usr;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A) Select the next value from scott.test_sq&lt;br /&gt;B) Alter sequence scott.test_sq to change the next value&lt;br /&gt;C) Change the number of sequence numbers that will be cached in memory&lt;br /&gt;D) Both A and C&lt;br /&gt;E) All of the above&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;The answer provided in the book is D.&lt;br /&gt;&lt;br /&gt;But, I think it is E. Why? &lt;br /&gt;&lt;br /&gt;&lt;font face="Courier New"&gt;&lt;br /&gt;SQL&gt; conn scott/*****&lt;br /&gt;Connected.&lt;br /&gt;scott@ora10g&gt; create sequence test_sq&lt;br /&gt;  2  start with 1&lt;br /&gt;  3  increment by 1;&lt;br /&gt;&lt;br /&gt;Sequence created.&lt;br /&gt;&lt;br /&gt;scott@ora10g&gt;  select test_sq.nextval from dual;&lt;br /&gt;&lt;br /&gt;   NEXTVAL&lt;br /&gt;----------&lt;br /&gt;         1&lt;br /&gt;scott@ora10g&gt; conn sys as sysdba&lt;br /&gt;Connected.&lt;br /&gt;sys@ora10g&gt; create user test_usr identified by test_usr&lt;br /&gt;  2  default tablespace users&lt;br /&gt;  3  temporary tablespace temp;&lt;br /&gt;&lt;br /&gt;User created.&lt;br /&gt;&lt;br /&gt;sys@ora10g&gt; grant connect, resource to test_usr;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;sys@ora10g&gt; grant all on scott.test_sq to test_usr;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;sys@ora10g&gt; conn test_usr/test_usr&lt;br /&gt;Connected.&lt;br /&gt;test_usr@ora10g&gt; select scott.test_sq.nextval from dual;&lt;br /&gt;&lt;br /&gt;   NEXTVAL&lt;br /&gt;----------&lt;br /&gt;         2&lt;br /&gt;&lt;br /&gt;test_usr@ora10g&gt; alter sequence scott.test_sq&lt;br /&gt;  2  increment by 10;&lt;br /&gt;&lt;br /&gt;Sequence altered.&lt;br /&gt;&lt;br /&gt;test_usr@ora10g&gt; select scott.test_sq.nextval from dual;&lt;br /&gt;&lt;br /&gt;   NEXTVAL&lt;br /&gt;----------&lt;br /&gt;        12&lt;br /&gt;&lt;br /&gt;test_usr@ora10g&gt; alter sequence scott.test_sq&lt;br /&gt;  2  increment by 1;&lt;br /&gt;&lt;br /&gt;Sequence altered.&lt;br /&gt;&lt;br /&gt;test_usr@ora10g&gt; conn scott/*****&lt;br /&gt;Connected.&lt;br /&gt;scott@ora10g&gt; select test_sq.nextval from dual;&lt;br /&gt;&lt;br /&gt;   NEXTVAL&lt;br /&gt;----------&lt;br /&gt;        13&lt;br /&gt;&lt;br /&gt;scott@ora10g&gt;&lt;br /&gt;&lt;/font&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-116326466988539078?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/116326466988539078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=116326466988539078' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/116326466988539078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/116326466988539078'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2006/11/some-books-might-make-you-think-wrong.html' title='Some books might make you think wrong'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-116205270275408941</id><published>2006-10-28T09:16:00.000-07:00</published><updated>2007-07-08T10:17:27.005-07:00</updated><title type='text'>Domain index not used after migrating from 8.1.7.4 to 10.2.0.2</title><content type='html'>If you have application running on Oracle 8.1.7.4 and you are massively using CONTEXT indexes, you better analyse the queries where context indexes are involved, before you decide to migrate to 10.2.0.x.&lt;br /&gt;This is because execution paths might be way different in 10.2.0.x that may lead to performance degradation.&lt;br /&gt;Here is one example where you should consider query modification in order to avoid bad performances.&lt;br /&gt;Let assume that you have a query that has OR-condition where OR-predicates use CONTEXT operators.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;font face="courier new"&gt;&lt;br /&gt;select a.owner, a.object_name, b.subobject_name, c.object_id&lt;br /&gt;from all_objects_a a, all_objects_b b, all_objects_c c&lt;br /&gt;where&lt;br /&gt;a.object_id=b.object_id&lt;br /&gt;and b.object_id=c.object_id&lt;br /&gt;and&lt;br /&gt;(&lt;br /&gt;CONTAINS(a.text,:a,0)&gt;0&lt;br /&gt;or&lt;br /&gt;CONTAINS(b.text,:b,1)&gt;0&lt;br /&gt;or&lt;br /&gt;CONTAINS(c.text,:c,2)&gt;0&lt;br /&gt;)&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;This query in 8.1.7.4 most likely will have execution plan similar to this one:&lt;br /&gt;&lt;font style="" face="courier new" size="1"&gt;&lt;br /&gt;Plan Table&lt;br /&gt;----------------------------------------------------------------&lt;br /&gt;| Operation                 |  Name    |  Rows | Bytes|  Cost  |&lt;br /&gt;----------------------------------------------------------------&lt;br /&gt;| SELECT STATEMENT          |          |    42 |    8K|     93 |&lt;br /&gt;|  CONCATENATION            |          |       |      |        |&lt;br /&gt;|   NESTED LOOPS            |          |    14 |    1K|        |&lt;br /&gt;|    NESTED LOOPS           |          |    14 |    2K|     17 |&lt;br /&gt;|     TABLE ACCESS BY INDEX |ALL_OBJEC |     2K|  135K|      1 |&lt;br /&gt;|      DOMAIN INDEX         |ALL_OBJEC |     2K|      |        |&lt;br /&gt;|     TABLE ACCESS BY INDEX |ALL_OBJEC |     2K|  178K|      1 |&lt;br /&gt;|      INDEX UNIQUE SCAN    |ALL_OBJ_B |     2K|      |        |&lt;br /&gt;|    TABLE ACCESS BY INDEX R|ALL_OBJEC |    14 |    1K|      2 |&lt;br /&gt;|     INDEX UNIQUE SCAN     |ALL_OBJ_A |       |      |      2 |&lt;br /&gt;|   NESTED LOOPS            |          |    14 |    1K|        |&lt;br /&gt;|    NESTED LOOPS           |          |    14 |    2K|     31 |&lt;br /&gt;|     TABLE ACCESS BY INDEX |ALL_OBJEC |     2K|  178K|      1 |&lt;br /&gt;|      DOMAIN INDEX         |ALL_OBJEC |     2K|      |        |&lt;br /&gt;|     TABLE ACCESS BY INDEX |ALL_OBJEC |     2K|  135K|      1 |&lt;br /&gt;|      INDEX UNIQUE SCAN    |ALL_OBJ_C |     2K|      |        |&lt;br /&gt;|    TABLE ACCESS BY INDEX R|ALL_OBJEC |    14 |    1K|      2 |&lt;br /&gt;|     INDEX UNIQUE SCAN     |ALL_OBJ_A |       |      |      2 |&lt;br /&gt;|   NESTED LOOPS            |          |    14 |    2K|     31 |&lt;br /&gt;|    NESTED LOOPS           |          |    14 |    2K|     17 |&lt;br /&gt;|     TABLE ACCESS BY INDEX |ALL_OBJEC |    14 |    1K|      2 |&lt;br /&gt;|      DOMAIN INDEX         |ALL_OBJEC |       |      |      2 |&lt;br /&gt;|     TABLE ACCESS BY INDEX |ALL_OBJEC |     2K|  178K|      1 |&lt;br /&gt;|      INDEX UNIQUE SCAN    |ALL_OBJ_B |     2K|      |        |&lt;br /&gt;|    TABLE ACCESS BY INDEX R|ALL_OBJEC |     2K|  135K|      1 |&lt;br /&gt;|     INDEX UNIQUE SCAN     |ALL_OBJ_C |     2K|      |        |&lt;br /&gt;----------------------------------------------------------------&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;where domain indexes are used to support CONTAINS function.&lt;br /&gt;Well, in 10.2.0.2, you better be prepared to have at least twice slower response time, since for this type of query no domain indexes can be used:&lt;br /&gt;The execution plan for my 10.2.0.2 database looks like:&lt;br /&gt;&lt;font style="" face="courier new" size="1"&gt;&lt;br /&gt;Plan Table&lt;br /&gt;----------------------------------------------------------------&lt;br /&gt;| Operation                 |  Name    |  Rows | Bytes|  Cost  |&lt;br /&gt;----------------------------------------------------------------&lt;br /&gt;| SELECT STATEMENT          |          |    42 |    8K|   1650 |&lt;br /&gt;|  HASH JOIN                |          |    42 |    8K|   1650 |&lt;br /&gt;|   TABLE ACCESS FULL       |ALL_OBJEC |    51K|    4M|    234 |&lt;br /&gt;|   HASH JOIN               |          |    51K|    6M|    835 |&lt;br /&gt;|    TABLE ACCESS FULL      |ALL_OBJEC |    51K|    2M|    234 |&lt;br /&gt;|    TABLE ACCESS FULL      |ALL_OBJEC |    51K|    3M|    234 |&lt;br /&gt;----------------------------------------------------------------&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;All tables were identical in both databases.&lt;br /&gt;&lt;br /&gt;I have opened a SR with Oracle Support on this one, and the answers that I got were very interesting and make sense.&lt;br /&gt;The key reason for such a behaviuor is how Oracle optimizer handles OR-expansion condition where OR-predicates use CONTEXT operators.&lt;br /&gt;Oracle optimizer usually probes OR-expansion to see if a cheaper index based plan can be produced. But, Or-expansion is not legitimate if OR-predicate has a CONTEXT operator, because some of the new "concatenated" query blocks will loose context of this operator.&lt;br /&gt;So, generally, the plan generated in 8.1.7.4 is not legitimate, even though it is very good one, performance wise.&lt;br /&gt;Anyway, if you want to use plan similar to the one you used to have, then you better transform your queries.&lt;br /&gt;I modified the query shown above, to this one:&lt;br /&gt;&lt;br /&gt;&lt;font face="courier new"&gt;&lt;br /&gt;select * from&lt;br /&gt;(&lt;br /&gt;select a.owner, a.object_name, b.subobject_name, c.object_id&lt;br /&gt;from all_objects_a a, all_objects_b b, all_objects_c c&lt;br /&gt;where&lt;br /&gt;a.object_id=b.object_id&lt;br /&gt;and b.object_id=c.object_id&lt;br /&gt;and&lt;br /&gt;(&lt;br /&gt;CONTAINS(a.text,:a,0)&gt;0&lt;br /&gt;)&lt;br /&gt;)&lt;br /&gt;UNION ALL&lt;br /&gt;(&lt;br /&gt;select a.owner, a.object_name, b.subobject_name, c.object_id&lt;br /&gt;from all_objects_a a, all_objects_b b, all_objects_c c&lt;br /&gt;where&lt;br /&gt;a.object_id=b.object_id&lt;br /&gt;and b.object_id=c.object_id&lt;br /&gt;and&lt;br /&gt;(&lt;br /&gt;CONTAINS(a.text,:a,0)&lt;=0 and CONTAINS(b.text,:b,1)&gt;0&lt;br /&gt;)&lt;br /&gt;)&lt;br /&gt;UNION ALL&lt;br /&gt;(select a.owner, a.object_name, b.subobject_name, c.object_id&lt;br /&gt;from all_objects_a a, all_objects_b b, all_objects_c c&lt;br /&gt;where&lt;br /&gt;a.object_id=b.object_id&lt;br /&gt;and b.object_id=c.object_id&lt;br /&gt;and&lt;br /&gt;(&lt;br /&gt;CONTAINS(a.text,:a,0)&lt;=0 and CONTAINS(b.text,:b,1)&lt;=0 and CONTAINS(c.text,:c,2)&gt;0&lt;br /&gt;)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;Execution plan has been changed to this one:&lt;br /&gt;&lt;font style="" face="courier new" size="1"&gt;&lt;br /&gt;Plan Table&lt;br /&gt;----------------------------------------------------------------&lt;br /&gt;| Operation                 |  Name    |  Rows | Bytes|  Cost  |&lt;br /&gt;----------------------------------------------------------------&lt;br /&gt;| SELECT STATEMENT          |          |    42 |    6K|     31 |&lt;br /&gt;|  UNION-ALL                |          |       |      |        |&lt;br /&gt;|   NESTED LOOPS            |          |    14 |    1K|     19 |&lt;br /&gt;|    NESTED LOOPS           |          |    14 |    1K|     19 |&lt;br /&gt;|     TABLE ACCESS BY INDEX |ALL_OBJEC |    14 |    1K|      5 |&lt;br /&gt;|      DOMAIN INDEX         |ALL_OBJEC |       |      |      2 |&lt;br /&gt;|     TABLE ACCESS BY INDEX |ALL_OBJEC |     1 |   21 |      1 |&lt;br /&gt;|      INDEX UNIQUE SCAN    |ALL_OBJ_B |     1 |      |      0 |&lt;br /&gt;|    INDEX UNIQUE SCAN      |ALL_OBJ_C |     1 |    4 |      0 |&lt;br /&gt;|   NESTED LOOPS            |          |    14 |    2K|      5 |&lt;br /&gt;|    HASH JOIN              |          |    14 |    2K|      5 |&lt;br /&gt;|     TABLE ACCESS BY INDEX |ALL_OBJEC |    14 |    1K|      2 |&lt;br /&gt;|      DOMAIN INDEX         |ALL_OBJEC |       |      |      2 |&lt;br /&gt;|     TABLE ACCESS BY INDEX |ALL_OBJEC |    14 |  994 |      2 |&lt;br /&gt;|      DOMAIN INDEX         |ALL_OBJEC |       |      |      2 |&lt;br /&gt;|    INDEX UNIQUE SCAN      |ALL_OBJ_C |     1 |    4 |      0 |&lt;br /&gt;|   HASH JOIN               |          |    14 |    2K|      7 |&lt;br /&gt;|    HASH JOIN              |          |    14 |    2K|      5 |&lt;br /&gt;|     TABLE ACCESS BY INDEX |ALL_OBJEC |    14 |    1K|      2 |&lt;br /&gt;|      DOMAIN INDEX         |ALL_OBJEC |       |      |      2 |&lt;br /&gt;|     TABLE ACCESS BY INDEX |ALL_OBJEC |    14 |  994 |      2 |&lt;br /&gt;|      DOMAIN INDEX         |ALL_OBJEC |       |      |      2 |&lt;br /&gt;|    TABLE ACCESS BY INDEX R|ALL_OBJEC |    14 |  756 |      2 |&lt;br /&gt;|     DOMAIN INDEX          |ALL_OBJEC |       |      |      2 |&lt;br /&gt;----------------------------------------------------------------&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;end the response time was much better compared to both previous plans.&lt;br /&gt;&lt;br /&gt;Now, the questions are:&lt;br /&gt;How this can be implemented in the application?&lt;br /&gt;How many queries similar to this one are being used in the application?&lt;br /&gt;Is it worth the effort?&lt;br /&gt;Can your application live with the execution paths based on full table scan?&lt;br /&gt;&lt;br /&gt;You better answer to these questions before you decide what your next step would be.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-116205270275408941?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/116205270275408941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=116205270275408941' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/116205270275408941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/116205270275408941'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2006/10/domain-index-not-used-after-migrating.html' title='Domain index not used after migrating from 8.1.7.4 to 10.2.0.2'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-116200755379752159</id><published>2006-10-27T20:51:00.000-07:00</published><updated>2006-10-28T11:52:36.903-07:00</updated><title type='text'>On the road again</title><content type='html'>It’s been a long time since my last post on this blog.&lt;br /&gt;Ok, one of the reasons for this “absenteeism” was my new job. &lt;br /&gt;Honestly, I didn’t have too much time to write anything except reports, research papers, proof of concepts, etc.&lt;br /&gt;Although I commute more than I used to, I don’t mind since I use every chance to read something interesting while riding on &lt;a target="_blank" href="http://www.transitchicago.com/"&gt;CTA&lt;/a&gt; trains.&lt;br /&gt;In three months, only in train cars I’ve read three books, two for the first time and one for the second time (just because it is perfect).&lt;br /&gt;&lt;br /&gt;1. &lt;a target="_blank" href="http://www.amazon.com/Oracle-High-Performance-Tuning-Donald-Burleson/dp/0072190582"&gt;Oracle High-performance SQL tuning - Don Burleson&lt;/a&gt; believe or not, I found it for $9.99 in Borders Outlet Store.&lt;br /&gt;&lt;br /&gt;&lt;a "_blank" href="http://www.amazon.com/Oracle-Replication-Snapshot-Multi-master-Materialized/dp/0972751335"&gt;Oracle Replication: Snapshot, Multi-master &amp; Materialized Views Scripts - John Garmany &amp; Robert Freeman&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;3. &lt;a target="_blank" href="http://www.amazon.com/Effective-Oracle-Design-Osborne-ORACLE/dp/0072230657"&gt;Effective Oracle by Design by Tom Kyte&lt;/a&gt; I’ve read this book once, and I read it again, just because it is perfect.&lt;br /&gt;&lt;br /&gt;Who said that riding in CTA trains is boring? Actually it is sometimes when train cars are so crowded.&lt;br /&gt;&lt;br /&gt;Anyways, I am on the road again, hopefully I’ll be more active in the future writing on this blog.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-116200755379752159?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/116200755379752159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=116200755379752159' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/116200755379752159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/116200755379752159'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2006/10/on-road-again.html' title='On the road again'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-114322034685003350</id><published>2006-03-24T09:11:00.000-08:00</published><updated>2006-03-24T10:37:28.683-08:00</updated><title type='text'>The Tao of Oracle</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;center&gt;&lt;br /&gt;&lt;b&gt;VI.&lt;/b&gt;&lt;br /&gt;The Oracle Masters have no mind of their own.&lt;br /&gt;They are aware of the needs of others.&lt;br /&gt;They are good to users who are good.&lt;br /&gt;They are also good to users who are not good.&lt;br /&gt;Because Virtue is goodness.&lt;br /&gt;They have faith in servers that are faithful.&lt;br /&gt;They also have faith in servers that are not faithful.&lt;br /&gt;Because Virtue is faithfulness.&lt;br /&gt;The Master is shy and humble - to the world he seems confusing.&lt;br /&gt;Others look to him and listen.&lt;br /&gt;He behaves like a little child.&lt;br /&gt;&lt;/center&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a target="_blank" href="http://homepage.mac.com/tikimac/moof/tao/tao_of_oracle.pdf"&gt;more&lt;/a&gt; about The Tao of Oracle by Roby Sherman&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-114322034685003350?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/114322034685003350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=114322034685003350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/114322034685003350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/114322034685003350'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2006/03/tao-of-oracle.html' title='The Tao of Oracle'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-113786652368992259</id><published>2006-01-21T10:00:00.000-08:00</published><updated>2006-10-28T11:39:52.706-07:00</updated><title type='text'>New Oracle Q&amp;A site</title><content type='html'>I saw many posts about new Eddie Awad’s site &lt;a href="http://oraqa.com/"&gt;Oracle Questions and Answers&lt;/a&gt;. Some of them criticize it some of them recognized it as a new Oracle Q&amp;A site.&lt;br /&gt;It was interesting to read what &lt;a href="http://tkyte.blogspot.com/2006/01/new-questionanswer-site.html#comments"&gt;Tom Kyte&lt;/a&gt; and &lt;a href="http://dizwell.com/main/content/view/62/84/index.php?option=com_content&amp;task=view&amp;id=62&amp;Itemid=84"&gt;Howard Rogers&lt;/a&gt; wrote about it. One simple solution presented on Oracle Q&amp;A produced big and strong discussion about possibility of &lt;a href="http://oraqa.com/2006/01/09/how-to-set-a-table-in-read-only-mode/"&gt;one table to be read-only&lt;/a&gt;.&lt;br /&gt;Howard Rogers did research about this possibility and as a result he got that one Oracle table could not be read-only in real meaning of the phrase “read-only”. So, his standing point was that this site does not provide real and true information. &lt;br /&gt;&lt;br /&gt;From my perspective, this is good and useful site. You can find very useful information there. I agree that some of the answers are short, but sometimes it is better to get the idea, so you can extend it and adapt it to your needs.&lt;br /&gt;&lt;br /&gt;Recently, I found very good solution &lt;a href="http://oraqa.com/2006/01/20/how-to-generate-sequence-numbers-between-two-numbers/"&gt;how to generate sequence numbers between two numbers&lt;/a&gt;. For this purpose I was always using one table filled with sequential numbers from x to y. I was creating new rows whenever I needed it. But, the solution presented at Oracle Q &amp; A, is so simple and practical.&lt;br /&gt;&lt;font face="Courier new"&gt;&lt;br /&gt;select (lvl + &amp;v_from - 1) myseq&lt;br /&gt;  from (&lt;br /&gt;      select *&lt;br /&gt;      from (&lt;br /&gt;          select level lvl&lt;br /&gt;          from dual&lt;br /&gt;          connect by level &lt;= (&amp;v_to - &amp;v_from) + 1&lt;br /&gt;          )&lt;br /&gt;      )&lt;br /&gt;  order by myseq&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;This is very good place where you can find useful tips. &lt;br /&gt;&lt;br /&gt;Sincerely,&lt;br /&gt;Mihajlo Tekic&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-113786652368992259?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/113786652368992259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=113786652368992259' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/113786652368992259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/113786652368992259'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2006/01/new-oracle-qa-site.html' title='New Oracle Q&amp;A site'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-113780109416148163</id><published>2006-01-20T15:49:00.000-08:00</published><updated>2006-01-20T15:56:34.980-08:00</updated><title type='text'>Oracle Streams problems ... Check the Alert Log first!</title><content type='html'>Some days I just don’t have luck.&lt;br /&gt;Whatever I tried to do, I couldn’t achieve it. But, fortunately it is only one day and not whole day :-).&lt;br /&gt;I was investigating &lt;a href="http://www.oracle.com/technology/products/dataint/htdocs/streams_fo.html"&gt;Oracle Streams&lt;/a&gt; whole month. I got good results and everything seemed to be going so well until, I decide to add new destination site in my Oracle Streams environment.&lt;br /&gt;I was wondering why all those people on forums have issues with Oracle Streams, it is much better than Advanced Replication, and with Oracle 10g R2 you can use OEM to monitor your Streams environment.&lt;br /&gt;One thing what bothered me, while I was learning and investigating streams, was lack of resources and practice examples how to setup streams environment. There is only one book about Oracle Streams available &lt;a href="http://www.rampant-books.com/book_2004_2_streams.htm"&gt;“Oracle Streams - High Speed Replication and Data Sharing” by Madhu Tumma.&lt;/a&gt;, and off course I bought it. I found some good information there, but most of the scripts what I found inside were not so helpful, because the information what I got from them can be found very easy using some dictionary views.&lt;br /&gt;Also, there is no chapter about how the existing Oracle Streams environment can be extended with new destination database.&lt;br /&gt;No, don’t get me wrong, I don’t like to criticize this book, it is quite good for a beginner to understand Oracle Streams.&lt;br /&gt;So, I continued to find the way to add another database to my destination databases set. &lt;br /&gt;I created new propagation process in the source database. &lt;br /&gt;I crated streams administrator in the destination database, instantiated all tables, created apply handlers and apply process.&lt;br /&gt;But, when I started the apply process, the changes from the source database were not being applied to the target tables. &lt;br /&gt;The first thing what I got in mind was to check whether some errors occurred in some of the processes (capture, propagation, apply). But, I didn’t find any errors there. I thought, here comes the difficult part.&lt;br /&gt;I checked the propagation jobs aq$_schedules. I notice that all propagation jobs have LAST_RUN value, except the propagation job for the new database. Oh, there you go, I said, there my problem is. &lt;br /&gt;I checked everything related to the propagation process, I was dropping and re-creating it several times. Nothing happened…still nothing. &lt;br /&gt;I was searching on the net, trying to find something related to the problem I have, but unfortunately except many old posts (most of them related to Oracle Streams for Oracle 9i) I didn’t find anything useful.&lt;br /&gt;I open the OEM, and tried to monitor the Streams process from there. I notice that the propagation process is propagating messages. Then I decide to check and monitor Apply process. I saw messages are arriving, but nothing being applied. &lt;br /&gt;This is good, this is progress, I thought and continued to check all components of the apply process (queue, queue tables, handlers, etc).&lt;br /&gt;I spent almost whole day checking, researching, investigating, and trying to figure out what is the reason for my issue. During that time, I notice many OEM “bugs” related to Streams monitoring features: if one propagation process is disabled, there is no way to enable it again if it is not first listed in the web page :-); you can not create propagation rule if some of the global names are longer than 30 characters :-):-) .&lt;br /&gt;&lt;br /&gt;Finally, I decide to check the alert log of the destination database, and I found this:&lt;br /&gt;&lt;br /&gt;&lt;I&gt;knllgobjinfo: MISSING Streams multi-version data dictionary!!!&lt;/I&gt;&lt;br /&gt;&lt;br /&gt;I found that I that the tables at the source database are not instantiated. &lt;br /&gt;I did it using DBMS_CAPTURE_ADM.PREPARE_TABLE_INSTANTIATION, after that re-instantiated the tables in the destination database, and that was it … It worked.&lt;br /&gt;&lt;br /&gt;TIP:&lt;br /&gt;Check your alert log first, anytime when you have a problem with your Oracle Streams environment, and that problem is not a recognized error stored in DBA_CAPTURE, DBA_PROPAGATION or DBA_APPLY_ERROR views.&lt;br /&gt;&lt;br /&gt;However, these are the steps what should be taken if you want to add new destination site in your Oracle Streams environment:&lt;br /&gt;&lt;br /&gt;1. Stop Capture Process&lt;br /&gt;2. Create Propagation Process, add propagation rules for all tables which are going to be replicated.&lt;br /&gt;3. Create Streams Queue for receiving changes from source queue&lt;br /&gt;4. Create AQ Agent and enable its privileges on STREAM ADMINISTRATOR&lt;br /&gt;5. Add the AQ Agent as subscriber to Streams Queue&lt;br /&gt;6. Create a dml handler procedure for DML statements issued on the tables&lt;br /&gt;7. Set the DML Handlers for each table in the environment&lt;br /&gt;8. Create apply process for the destination database&lt;br /&gt;9. Set instantiation SCN for tables at the source database&lt;br /&gt;10. Set instantiation SCN for tables at the destination database&lt;br /&gt;11. Run apply process&lt;br /&gt;12. Run capture process&lt;br /&gt;&lt;br /&gt;For the end, I must say that from my perspective Oracle Streams are much better and easier to work with than Materialized Views (Advanced Replication). &lt;br /&gt;&lt;br /&gt;But, nothing is perfect …&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Mihajlo Tekic&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-113780109416148163?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/113780109416148163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=113780109416148163' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/113780109416148163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/113780109416148163'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2006/01/oracle-streams-problems-check-alert.html' title='Oracle Streams problems ... Check the Alert Log first!'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21118863.post-113753772609152983</id><published>2006-01-17T14:31:00.001-08:00</published><updated>2006-01-17T14:54:42.536-08:00</updated><title type='text'>About this blog ...</title><content type='html'>This blog is dedicated to Oracle database and Oracle products. &lt;br /&gt;I will try to cover topics related to Oracle technologies and address possible advantages and disadvantages of certain Oracle solutions.&lt;br /&gt;I am looking for contributors who are willing to write and share their own experience about Oracle database and Oracle products.&lt;br /&gt;&lt;br /&gt;Sincerely,&lt;br /&gt;Mihajlo Tekic&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21118863-113753772609152983?l=oracle-tech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracle-tech.blogspot.com/feeds/113753772609152983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21118863&amp;postID=113753772609152983' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/113753772609152983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21118863/posts/default/113753772609152983'/><link rel='alternate' type='text/html' href='http://oracle-tech.blogspot.com/2006/01/about-this-blog_17.html' title='About this blog ...'/><author><name>Teko</name><uri>http://www.blogger.com/profile/01128712911412678264</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TxH_Rv11IoU/SJ-sVACtNVI/AAAAAAAAAHQ/v-QqOxsj0I0/s1600-R/P7270024.JPG'/></author><thr:total>0</thr:total></entry></feed>
