<?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-6704140595848644566</id><updated>2012-02-16T03:12:21.236-08:00</updated><category term='Lists all locked objects for whole RAC'/><category term='Materialized Views'/><category term='Implementing Oracle 10g RAC with ASM on AIX'/><category term='Database Patching'/><category term='Install Oracle 11g RAC On Linux'/><category term='Upgrade 11.5.9  to 11.5.10.2'/><category term='Enable HTTP/OC4J/OPMN debug logging'/><category term='Change hostname for E-Business Suite'/><category term='Patching'/><category term='Waits'/><category term='Oracle10g Data Guard'/><category term='10g:Rollback Monitoring'/><category term='Hit/Miss Ratios'/><category term='Automatic Storage Management'/><category term='Backup Recovery'/><category term='Using AD Patch'/><category term='Full Table Scans'/><category term='How to configure NFS'/><category term='Tablespace Management'/><category term='Upgrade to Oracle Database 10g'/><category term='10g:Flashback Table'/><category term='Apps Components and Architecture'/><category term='Concurrent Managers'/><category term='Redo Log Buffer'/><category term='How to access EBS in mozile borwser in linux'/><category term='Discoverer Troubleshooting'/><category term='AppsDBA System Management Utilities'/><category term='AD Control'/><category term='Migrating Oracle10g DB to ASM'/><category term='Change hostname in Linux'/><category term='Upgrade from 11.5.10.2 to R12'/><category term='Events'/><category term='Oracle10g: Data Pump'/><category term='Oracle 10g 2 RAC Installation'/><category term='SENDMAIL configuration'/><category term='Identifying High Active Sessions'/><category term='General Info'/><category term='Rollback Segments'/><category term='Data Dictionary Info'/><category term='Error:ORA-01631'/><category term='(Re)Securing OAS Control'/><category term='Multi-Node Installation'/><category term='Oracle10g:Grid Control Installing'/><category term='Disk I/O'/><category term='User Information'/><category term='RMAN'/><category term='Sessions RAC'/><category term='Monitor Memory RAC'/><category term='Oracle Application Installation Guide10g Release3'/><category term='Upgrading 9i to 10g with 11i'/><category term='R12:Major changes from 11i'/><category term='RMAN Setup'/><category term='Flash Recovery Area'/><category term='A Quick Reference for Oracle Database 10g RAC on Linux and Unix Platforms'/><category term='FNDCPASS utility'/><category term='Enterprise Manager 10g'/><category term='Session Statistics'/><category term='Single-node Installation'/><category term='DBA'/><category term='Find Apps Version (11i/R12/12i)'/><category term='Contention/Locking'/><category term='Clone Apps 11i Instance'/><category term='Identifying Long Idle Sessions'/><category term='Tablespace Information'/><category term='Workflow Notification Mailer Setup'/><category term='UNIX / LINUX COMMAND'/><category term='Top 99 Responsibilities of a DBA'/><title type='text'>Oracle Application DBA Portal</title><subtitle type='html'>This Oracle Application DBA Portal is the biggest knowledge gateway for the people in the world of Oracle.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>65</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-4642460758625384677</id><published>2011-09-06T00:02:00.000-07:00</published><updated>2011-09-06T00:06:38.211-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='(Re)Securing OAS Control'/><title type='text'>(Re)Securing Oracle Application Server Control</title><content type='html'>If you’re running an Oracle Application Server 10g instance you are probably familiar with Oracle Enterprise Manager Application Server Control. If not, go back to the manual. This is not a how-to on setting it up or using it. If you want to know how to secure it and refresh the certificate when it expires, read on.&lt;br /&gt;&lt;br /&gt;Application Server Control is installed with Application Server 10g and typically runs on a port like 1810. By default it uses the non-secure http protocol. Since your whole application server is controlled through this interface, you probably want to secure it. The instructions below will generate a self signed certificate and get your Application Server Control up and running with https.&lt;br /&gt;&lt;br /&gt;As usual this post is written for Oracle Application Server 10g on UNIX. Always review the documentation for your release before trying any of these steps.&lt;br /&gt;&lt;br /&gt;Securing Application Server Control &lt;br /&gt;&lt;br /&gt;Oracle has provided a simple way to secure Application Server Control.&lt;br /&gt;&lt;br /&gt;Note: If $ORACLE_HOME/bin is not in your path you will need to provide this path to emctl.&lt;br /&gt;&lt;br /&gt;1. Connect to the command line on the application server and set all the appropriate environment variables for your application instance.&lt;br /&gt;&lt;br /&gt;2. Run the command emctl stop iasconsole to stop Application Server Control.&lt;br /&gt;&lt;br /&gt;3. Run the command emctl secure em to secure Application Server control. This will perform a few steps including generating a self-signed secure certificate.&lt;br /&gt;&lt;br /&gt;4. Run emctl start iasconsole to start Application Server Control.&lt;br /&gt;&lt;br /&gt;If all goes well you will now be able to connect to your Application Server Control instance on the same port as before but now with the https protocol. In most browsers you will need to specify ‘https://’ in the URL.&lt;br /&gt;&lt;br /&gt;Depending on your browser settings you may get a warning when accessing the site that the secure certificate was not issued by a trusted company. That is normal with a self-signed certificate. You can either tell your browser to trust the certificate or simply disregard the warning when it appears.&lt;br /&gt;&lt;br /&gt;Renewing the Certificate&lt;br /&gt;&lt;br /&gt;By default the certificate created in the steps above will only be good for six months. Once the cert goes stale you will probably get a warning that the certificate date is invalid. You may additionally get some java errors like below.&lt;br /&gt;&lt;br /&gt;When this happens you can simply re-secure Application Server Control with the same steps above. This will create a new certificate which will be valid for another six months.&lt;br /&gt;&lt;br /&gt;Some Potential Problems&lt;br /&gt;&lt;br /&gt;If the certificate has expired you will likely get a java error like this: &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;IOException in sending Request :: javax.net.ssl.SSLException: SSL handshake failed: X509CertExpiredErr&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;If this happens simply re-secure Application Server Control with the instructions above.&lt;br /&gt;&lt;br /&gt;Sometimes Application Server Control will not shut down properly and you may get an error like this:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;IOException in sending Request :: javax.net.ssl.SSLException: SSL handshake failed: SSLIOClosedOverrideGoodbyeKiss&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;If this happens you will probably have to kill the enterprise manager process (look for a process called emagent) and re-secure again.&lt;br /&gt;&lt;br /&gt;oracle, oracle application server, oracle security&lt;br /&gt;&lt;br /&gt;Happy Learning&lt;br /&gt;--Sreene&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-4642460758625384677?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/4642460758625384677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=4642460758625384677' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/4642460758625384677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/4642460758625384677'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2011/09/resecuring-oracle-application-server.html' title='(Re)Securing Oracle Application Server Control'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-3923631141324749802</id><published>2010-01-29T01:26:00.000-08:00</published><updated>2010-02-03T23:25:30.882-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Workflow Notification Mailer Setup'/><title type='text'>Workflow Notification Mailer Setup</title><content type='html'>Workflow Notification Mailer Setup &lt;br /&gt;NOTIFICATION MAILER ARCHITECTURE&lt;br /&gt;&lt;br /&gt;The main component of the Oracle Workflow Notification Mailer is the executable&lt;br /&gt;WFMAIL. This is a server side program that queries the database for any pending &lt;br /&gt;notifications. It then dispatches these notifications by calling sendmail for UNIX and the MAPI APIs for Microsoft Windows NT. The notification mailer also queries the local inbox for incoming messages. These messages are validated and then passed to the database for response processing. To configure Workflow Notification Mailer we have to do OS level setup (Sendmail) and Application level setup.&lt;br /&gt;&lt;br /&gt;1. OS Level Setup &lt;br /&gt;2. Application level Configuration &lt;br /&gt;&lt;br /&gt;1. OS (Oracle Enterprise Linux 4 update 7) level Setup &lt;br /&gt;At Os level we need to do bellow setups before configuring Application level &lt;br /&gt;Sendmail should be installed by default when you install RedHat Linux. If it is not then you need to install the Sendmail RPM’s with the Red Hat distribution&lt;br /&gt;Sendmail RPM’s  (In Oracle Enterprise Linux 4 update 7) &lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2KuHi10AOI/AAAAAAAAD0w/fikDZcdzCLw/s1600-h/1.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 319px; height: 147px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2KuHi10AOI/AAAAAAAAD0w/fikDZcdzCLw/s320/1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432095545197068514" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: By default Oracle Enterprise Linux 4 update 7 have above all RPM’s &lt;br /&gt;&lt;br /&gt;A. Configuring Sendmail  &lt;br /&gt;&lt;br /&gt;Edit the /etc/mail/sendmal.mc file &lt;br /&gt; Look for this bellow line in this file &lt;br /&gt;  DAEMON_OPTIONS (`Port=smtp,Addr=127.0.0.1, Name=MTA')dn &lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2KuHjEOVYI/AAAAAAAAD0o/PScMvELXlxs/s1600-h/2.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 120px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2KuHjEOVYI/AAAAAAAAD0o/PScMvELXlxs/s320/2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432095545257514370" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Add 1 line with SMTP port Number and Server IP to this above line &lt;br /&gt;&lt;br /&gt;DAEMON_OPTIONS (`Port=25,Addr=192.168.1.61, Name=MTA')dnl&lt;br /&gt;&lt;br /&gt;Here 25 is SMTP Port Number, 192.168.1.61 is Server IP&lt;br /&gt;&lt;br /&gt;After adding his like file look like this &lt;br /&gt;&lt;br /&gt;DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl&lt;br /&gt;DAEMON_OPTIONS(`Port=25,Addr=192.168.1.61, Name=MTA')dnl&lt;br /&gt;&lt;br /&gt;Save the file &lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2Kt_ZOlr4I/AAAAAAAAD0g/st3to_oQRMM/s1600-h/3.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 130px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2Kt_ZOlr4I/AAAAAAAAD0g/st3to_oQRMM/s320/3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432095405177679746" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;Rebuild /etc/sendmail.cf from the revised /etc/mail/sendmail.mc &lt;br /&gt;$m4 /etc/mail/sendmail.mc &gt; /etc/mail/sendmail.cf &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Restart the sendmail services &lt;br /&gt;$ /etc/init.d/sendmail restart &lt;br /&gt;B.Starting Sendmail &lt;br /&gt;You can use the chkconfig command to get sendmail configured to start at boot time &lt;br /&gt;$chkconfig sendmail on &lt;br /&gt;The services should now be set at the appropriate run levels and then checked to ensure they are correct.&lt;br /&gt;&lt;br /&gt;#chkconfig --level 2345 sendmail on&lt;br /&gt;&lt;br /&gt;To check run level  &lt;br /&gt;#chkconfig --list sendmail&lt;br /&gt;C. Check the sendmail services &lt;br /&gt;$telnet &lt;IP&gt;   &lt;Smtp port NO&gt;&lt;br /&gt;$telnet  192.168.1.61  25 &lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Kt_MA8O7I/AAAAAAAAD0Y/6cErhPFgrxw/s1600-h/4.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 83px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Kt_MA8O7I/AAAAAAAAD0Y/6cErhPFgrxw/s320/4.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432095401630776242" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;Now sendmail is working&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Kt-vUSXZI/AAAAAAAAD0Q/X9ZlC20aUOM/s1600-h/5.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 83px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Kt-vUSXZI/AAAAAAAAD0Q/X9ZlC20aUOM/s320/5.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432095393927290258" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;D. Dovecot IMAP Server&lt;br /&gt;Now that the sendmail server has been setup to allow the sending of emails, we need to configure a means for the user to retrieve any emails that are waiting for them on the server. One of the packages that do this is dovecot, which handles POP and IMAP mailboxes in clear text or with link encryption (POPS and IMAPS); IMAPS is the preferred mail protocol for MUAs.&lt;br /&gt;Install Dovecot RPM if not installed &lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/S2Kt-TTgPxI/AAAAAAAAD0I/1aUZsAci3bk/s1600-h/6.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 294px; height: 117px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/S2Kt-TTgPxI/AAAAAAAAD0I/1aUZsAci3bk/s320/6.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432095386407812882" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;E: Start the Dovecot services &lt;br /&gt;Start the services from Command &lt;br /&gt;&lt;br /&gt;$ /etc/init.d/dovecot restart&lt;br /&gt;Or  &lt;br /&gt;Start Dovecot services from Server &lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2Kt-NFTtUI/AAAAAAAAD0A/syO0EJ28Eyc/s1600-h/7.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 135px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2Kt-NFTtUI/AAAAAAAAD0A/syO0EJ28Eyc/s320/7.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432095384737658178" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Ktw7cF0FI/AAAAAAAADz4/j9ULsasUqKo/s1600-h/8.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 215px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Ktw7cF0FI/AAAAAAAADz4/j9ULsasUqKo/s320/8.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432095156663078994" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;Start the dovecot services then save  &lt;br /&gt;&lt;br /&gt;F.Check the Dovecot services &lt;br /&gt;$telnet 192.168.1.61  143  &lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2KtwnWm_CI/AAAAAAAADzw/jFt_bBIm2lc/s1600-h/9.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 130px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2KtwnWm_CI/AAAAAAAADzw/jFt_bBIm2lc/s320/9.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432095151271377954" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;G. Check the mails are going to your mail ID from Linux command line &lt;br /&gt;$ mail –s  “Hi this is from WF Server “  yourID@gmail.com   &lt;br /&gt;If u gets this mail to your mail Id It then send mail  is working fine &lt;br /&gt;H. Create DISCARD &amp; PROCESS folders &lt;br /&gt;Login to the Application User (testappl)  &lt;br /&gt;Under testappl user home it will be one mail folder. Under mail folder you create DISCARD &amp; PROCESS folders &lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2KtwbofVjI/AAAAAAAADzo/hq_TcIl2DNY/s1600-h/10.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 115px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2KtwbofVjI/AAAAAAAADzo/hq_TcIl2DNY/s320/10.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432095148125148722" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Application level Configuration &lt;br /&gt;&lt;br /&gt;1. We can configure workflow notification mailer from Oracle Application Manager (OAM)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. There are two kinds of Notification Outbound &amp; Inbound in Workflow Mailer&lt;br /&gt;&lt;br /&gt;3. For Outbound Notification, CM (Concurrent Manager) node should be able to connect to SMTP (Simple Mail Transfer Protocol) server/relay.&lt;br /&gt;&lt;br /&gt;4. For Inbound Notification (Optional), CM node should be able to connect to IMAP (Internet Message Access Protocol) Server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. Workflow Notification Mailer in background run as Concurrent Manager (Workflow Mailer Service, Workflow Agent Listener Service)&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2KtwGjKSII/AAAAAAAADzg/aYzED9vyJvM/s1600-h/11.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 194px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2KtwGjKSII/AAAAAAAADzg/aYzED9vyJvM/s320/11.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432095142465652866" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Ktv7phb6I/AAAAAAAADzY/cABALxf-neE/s1600-h/12.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 200px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Ktv7phb6I/AAAAAAAADzY/cABALxf-neE/s320/12.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432095139539546018" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Enable Workflow Agent Listener and Notification Mailer concurrent &lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2Ks9iAo7RI/AAAAAAAADzM/wtzDp58087A/s1600-h/13.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 183px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2Ks9iAo7RI/AAAAAAAADzM/wtzDp58087A/s320/13.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432094273663724818" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;programs &lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Ks9g0am-I/AAAAAAAADzE/FY71yXhWhRw/s1600-h/14.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 194px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Ks9g0am-I/AAAAAAAADzE/FY71yXhWhRw/s320/14.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432094273344019426" /&gt;&lt;/a&gt; &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2Ks9ZPiYyI/AAAAAAAADy8/FCY5H4f6A5g/s1600-h/15.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 244px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2Ks9ZPiYyI/AAAAAAAADy8/FCY5H4f6A5g/s320/15.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432094271310291746" /&gt;&lt;/a&gt;&lt;br /&gt;Schedule the Workflow Background process, Notification Mailer concurrent requests &lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2Ks9GkWkGI/AAAAAAAADy0/x23oNtR6zMI/s1600-h/16.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 216px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2Ks9GkWkGI/AAAAAAAADy0/x23oNtR6zMI/s320/16.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432094266297323618" /&gt;&lt;/a&gt;&lt;br /&gt;Workflow Mailer Service, Workflow Agent Listener Service should be started &lt;br /&gt;&lt;br /&gt;Configure Workflow Notification Mailer &lt;br /&gt;Login to Oracle Application Manager  &lt;br /&gt;Go to Site Map &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2Ks80ykQJI/AAAAAAAADys/VT8RnGlh7cA/s1600-h/17.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 109px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2Ks80ykQJI/AAAAAAAADys/VT8RnGlh7cA/s320/17.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432094261525102738" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/S2KsKamgGaI/AAAAAAAADyg/qKqIBaCxE4I/s1600-h/18.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 108px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/S2KsKamgGaI/AAAAAAAADyg/qKqIBaCxE4I/s320/18.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432093395501717922" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2KsJ9rs2XI/AAAAAAAADyY/vax2lho4dYY/s1600-h/19.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 95px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2KsJ9rs2XI/AAAAAAAADyY/vax2lho4dYY/s320/19.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432093387738896754" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2KsJ6LHhfI/AAAAAAAADyQ/rjKxoY0GhsQ/s1600-h/20.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 119px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2KsJ6LHhfI/AAAAAAAADyQ/rjKxoY0GhsQ/s320/20.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432093386796926450" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;1. Click on Next &lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2KsJvlpANI/AAAAAAAADyI/yWGTsR6Y5Go/s1600-h/21.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 145px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2KsJvlpANI/AAAAAAAADyI/yWGTsR6Y5Go/s320/21.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432093383955382482" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;2. Click on Next&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2KsJZj-UcI/AAAAAAAADyA/qof223Q99aU/s1600-h/22.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 172px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2KsJZj-UcI/AAAAAAAADyA/qof223Q99aU/s320/22.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432093378042810818" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;3. Here give Application User name, password and Test Mail Id &lt;br /&gt;Give PROCESS and DISCARD folders (which we have created in application server) name in EMail Processing &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Kriww9-AI/AAAAAAAADxw/TcglBkJx3hE/s1600-h/23.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 155px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Kriww9-AI/AAAAAAAADxw/TcglBkJx3hE/s320/23.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432092714256431106" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;4. Click on Next &lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2KriicOMkI/AAAAAAAADxo/WBaOxHywb08/s1600-h/24.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 106px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2KriicOMkI/AAAAAAAADxo/WBaOxHywb08/s320/24.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432092710411317826" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;5. Give Submit Date and time then click on Next &lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2KriSm-xgI/AAAAAAAADxg/L5Up0Tu-pcE/s1600-h/25.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 171px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2KriSm-xgI/AAAAAAAADxg/L5Up0Tu-pcE/s320/25.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432092706161477122" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;6. Click on Next &lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2KriMcqw3I/AAAAAAAADxY/-nyFxezYDRw/s1600-h/26.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 97px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/S2KriMcqw3I/AAAAAAAADxY/-nyFxezYDRw/s320/26.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432092704507609970" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;7. Here give user name and click on Send Test Message&lt;br /&gt; &lt;br /&gt;Click on Next &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2Kq3It_A-I/AAAAAAAADxM/aoJq7uFti-c/s1600-h/27.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 117px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2Kq3It_A-I/AAAAAAAADxM/aoJq7uFti-c/s320/27.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432091964772123618" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;8. Click on finish&lt;br /&gt;&lt;br /&gt; &lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2Kq2uq576I/AAAAAAAADxE/dNfDIA1Fjps/s1600-h/28.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 146px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/S2Kq2uq576I/AAAAAAAADxE/dNfDIA1Fjps/s320/28.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432091957779885986" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;B. STARTUP NOTIFICATION MAILER&lt;br /&gt;&lt;br /&gt;The mailer program can be started from command line or through a concurrent &lt;br /&gt;Program called "Notification Mailer". When the notification mailer is started as a concurrent request in Oracle Applications, the OS process is run by the Applications Manager (APPLMGR) user. &lt;br /&gt;&lt;br /&gt;To start it from the application, submit the "Notification Mailer" Concurrent request.&lt;br /&gt;&lt;br /&gt;To start it from command line on UNIX, execute the following command:&lt;br /&gt;&lt;br /&gt;Go to FND_TOP/bin/&lt;br /&gt;&lt;br /&gt;$WFMAIL apps/Pass 0 Y $FND_TOP/resource/wfmail.cfg &lt;br /&gt;&lt;br /&gt; &lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Kq2WhzpwI/AAAAAAAADw8/ROncWmBARcU/s1600-h/29.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 168px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/S2Kq2WhzpwI/AAAAAAAADw8/ROncWmBARcU/s320/29.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432091951299274498" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Log file for Workflow Mailer Notification are at $APPLCSF/$APPLLOG/ &lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/S2Kq2D-hulI/AAAAAAAADw0/KGyk5V_6Yac/s1600-h/30.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 151px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/S2Kq2D-hulI/AAAAAAAADw0/KGyk5V_6Yac/s320/30.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432091946319460946" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/S2Kq1gAP5VI/AAAAAAAADws/014FX4altUU/s1600-h/31.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 66px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/S2Kq1gAP5VI/AAAAAAAADws/014FX4altUU/s320/31.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5432091936663004498" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Happy Learning&lt;br /&gt;G.Venugopal Achari&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-3923631141324749802?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/3923631141324749802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=3923631141324749802' title='41 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3923631141324749802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3923631141324749802'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2010/01/workflow-notification-mailer-setup.html' title='Workflow Notification Mailer Setup'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Veaf3lFF6Po/S2KuHi10AOI/AAAAAAAAD0w/fikDZcdzCLw/s72-c/1.jpg' height='72' width='72'/><thr:total>41</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-317004823742285687</id><published>2009-08-03T23:37:00.000-07:00</published><updated>2009-08-03T23:38:18.948-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Dictionary Info'/><title type='text'>Data Dictionary Info</title><content type='html'>Data Dictionary Info&lt;br /&gt;Here are some scripts related to Data Dictionary Info .&lt;br /&gt;&lt;br /&gt;Dictionary Cache&lt;br /&gt;DATA DICTIONARY CACHE NOTES:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Parameter - Name of the parameter that determines the number of entries in the data dictionary cache. &lt;br /&gt;Gets - Total number of requests for information on the data object. &lt;br /&gt;Getmisses - Number of data requests resulting in cache misses. &lt;br /&gt;% Cache Misses - Miss Ratio &lt;br /&gt;Count - Total number of entries in the cache &lt;br /&gt;Usage - Number of cache entries that contain valid data. &lt;br /&gt;&lt;br /&gt;This report shows the DC cache statistics (a part of the shared pool). Whenever the database parses a SQL statement, it scans the text for syntax and semantic correctness. The semantic check requires cross-referencing of the information in the SQL statement and the data dictionary, including the table names, columns-to-date relationships, column names, data types, and security access privileges. To resolve the relationships, Oracle uses the data dictionary cache in the SGA. When the data sought in not in the cache, Oracle executes SQL statements to retrieve the data dictionary information from the SYSTEM tablespace. These statements for data dictionary information represent one type of recursive SQL statement. To increase the size available to the dictionary cache, increase the size of the shared pool area (via the SHARED_POOL_SIZE init.ora parameter.) Missing a get on the data dictionary or shared pool area of the SGA is more costly than missing a get on a data buffer or waiting for a redo buffer. If these parameters look familiar - you are probably recalling them from Oracle v6 (when you tuned these in the init.ora file) &lt;br /&gt;&lt;br /&gt;select PARAMETER,&lt;br /&gt; GETS,&lt;br /&gt; GETMISSES,&lt;br /&gt; round(GETMISSES/GETS,2)*100 "% Cache Misses",&lt;br /&gt; COUNT,&lt;br /&gt; USAGE&lt;br /&gt;from  v$rowcache&lt;br /&gt;where  GETS &gt; 0&lt;br /&gt;order  by (GETMISSES/GETS)*100 desc&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Latch Gets/Misses&lt;br /&gt;LATCH GET AND MISS NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Latch Name - Name of the latch &lt;br /&gt;Gets - Number of times obtained wait &lt;br /&gt;Misses - Number of time obtained with wait but failed first try &lt;br /&gt;Gets / Misses % - Ratio of misses to gets &lt;br /&gt;Immediate Gets - Number of times obtained with no wait &lt;br /&gt;Immediate Misses - Number of times failed to get with no wait &lt;br /&gt;&lt;br /&gt;select NAME,&lt;br /&gt; GETS,&lt;br /&gt; MISSES,&lt;br /&gt; round(((GETS-MISSES)*100) / GETS , 2) "Gets/Misses %",&lt;br /&gt; IMMEDIATE_GETS,&lt;br /&gt; IMMEDIATE_MISSES&lt;br /&gt;from  v$latch&lt;br /&gt;where  GETS != 0&lt;br /&gt;or  IMMEDIATE_MISSES &gt; 0&lt;br /&gt;order  by ((GETS-MISSES) / GETS) desc&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-317004823742285687?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/317004823742285687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=317004823742285687' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/317004823742285687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/317004823742285687'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/08/data-dictionary-info.html' title='Data Dictionary Info'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-5532093558710511590</id><published>2009-08-03T23:24:00.001-07:00</published><updated>2009-08-03T23:25:37.701-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Redo Log Buffer'/><title type='text'>Redo Log Buffer</title><content type='html'>&lt;strong&gt;Redo Log Buffer&lt;/strong&gt;&lt;br /&gt;Here are some scripts related to Redo Log Buffer .&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Contention&lt;br /&gt;REDO LOG CONTENTION NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Redo Latch Name - Name of the latch &lt;br /&gt;Gets - Number of times gotten wait &lt;br /&gt;Misses - Number of times gotten wait but failed first try &lt;br /&gt;Sleeps - Number of times slept when wanted wait &lt;br /&gt;Immediate Gets - Number of times gotten without wait &lt;br /&gt;Immediate Misses - Number of times failed to get without wait &lt;br /&gt;&lt;br /&gt;Heavy access to the redo log buffer can result in contention for redo log prompt buffer latches. &lt;br /&gt;&lt;br /&gt;select  NAME,&lt;br /&gt; GETS,&lt;br /&gt; MISSES,&lt;br /&gt; SLEEPS,&lt;br /&gt; IMMEDIATE_GETS,&lt;br /&gt; IMMEDIATE_MISSES&lt;br /&gt;from  v$latch&lt;br /&gt;where  NAME in ('redo allocation','redo copy')&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Statistics&lt;br /&gt;REDO BUFFER NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Parameter - Name of the parameter &lt;br /&gt;Value - Current value for the parameter &lt;br /&gt;&lt;br /&gt;select  NAME,&lt;br /&gt; VALUE&lt;br /&gt;from  v$sysstat&lt;br /&gt;where   NAME like 'redo%'                     &lt;br /&gt;and   VALUE &gt; 0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-5532093558710511590?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/5532093558710511590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=5532093558710511590' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5532093558710511590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5532093558710511590'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/08/redo-log-buffer.html' title='Redo Log Buffer'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-1397095599391748326</id><published>2009-08-03T23:20:00.000-07:00</published><updated>2009-08-03T23:21:10.077-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Contention/Locking'/><title type='text'>Contention/Locking</title><content type='html'>&lt;strong&gt;Contention/Locking&lt;/strong&gt;&lt;br /&gt;Here are some scripts related to Contention/Locking .&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Lock Info&lt;br /&gt;LOCK INFORMATION NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OS User - Name of operating system user &lt;br /&gt;OS PID - Operating system process id &lt;br /&gt;Oracle User - Name of Oracle user &lt;br /&gt;Oracle ID - Oracle session id &lt;br /&gt;Lock Type - Type of lock &lt;br /&gt;Lock Held - Current lock held &lt;br /&gt;Lock Requested - Type of lock requested &lt;br /&gt;Status - Status of object (Blocking, Not Blocking, Global) &lt;br /&gt;Object Owner - Owner of the object &lt;br /&gt;Object Name - Name of the object &lt;br /&gt;&lt;br /&gt;select OS_USER_NAME os_user,&lt;br /&gt; PROCESS os_pid,&lt;br /&gt; ORACLE_USERNAME oracle_user,&lt;br /&gt; l.SID oracle_id,&lt;br /&gt; decode(TYPE,&lt;br /&gt;  'MR', 'Media Recovery',&lt;br /&gt;  'RT', 'Redo Thread',&lt;br /&gt;  'UN', 'User Name',&lt;br /&gt;  'TX', 'Transaction',&lt;br /&gt;  'TM', 'DML',&lt;br /&gt;  'UL', 'PL/SQL User Lock',&lt;br /&gt;  'DX', 'Distributed Xaction',&lt;br /&gt;  'CF', 'Control File',&lt;br /&gt;  'IS', 'Instance State',&lt;br /&gt;  'FS', 'File Set',&lt;br /&gt;  'IR', 'Instance Recovery',&lt;br /&gt;  'ST', 'Disk Space Transaction',&lt;br /&gt;  'TS', 'Temp Segment',&lt;br /&gt;  'IV', 'Library Cache Invalidation',&lt;br /&gt;  'LS', 'Log Start or Switch',&lt;br /&gt;  'RW', 'Row Wait',&lt;br /&gt;  'SQ', 'Sequence Number',&lt;br /&gt;  'TE', 'Extend Table',&lt;br /&gt;  'TT', 'Temp Table', type) lock_type,&lt;br /&gt; decode(LMODE,&lt;br /&gt;  0, 'None',&lt;br /&gt;  1, 'Null',&lt;br /&gt;  2, 'Row-S (SS)',&lt;br /&gt;  3, 'Row-X (SX)',&lt;br /&gt;  4, 'Share',&lt;br /&gt;  5, 'S/Row-X (SSX)',&lt;br /&gt;  6, 'Exclusive', lmode) lock_held,&lt;br /&gt; decode(REQUEST,&lt;br /&gt;  0, 'None',&lt;br /&gt;  1, 'Null',&lt;br /&gt;  2, 'Row-S (SS)',&lt;br /&gt;  3, 'Row-X (SX)',&lt;br /&gt;  4, 'Share',&lt;br /&gt;  5, 'S/Row-X (SSX)',&lt;br /&gt;  6, 'Exclusive', request) lock_requested,&lt;br /&gt; decode(BLOCK,&lt;br /&gt;  0, 'Not Blocking',&lt;br /&gt;  1, 'Blocking',&lt;br /&gt;  2, 'Global', block) status,&lt;br /&gt; OWNER,&lt;br /&gt; OBJECT_NAME&lt;br /&gt;from v$locked_object lo,&lt;br /&gt; dba_objects do,&lt;br /&gt; v$lock l&lt;br /&gt;where  lo.OBJECT_ID = do.OBJECT_ID&lt;br /&gt;AND     l.SID = lo.SESSION_ID&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Lock Info&lt;br /&gt;SQL ASSOCIATED WITH LOCK NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Oracle User - Name of the oracle user &lt;br /&gt;SID - Oracle session id &lt;br /&gt;Serial# - Serial# of the process &lt;br /&gt;Type - Resource type (RW - Row wait enqueue lock, TM - DML enqueue lock, TX - Transaction enqueue lock, UL - User supplied lock) &lt;br /&gt;Held - Type of lock held &lt;br /&gt;Requested - Type of lock requested &lt;br /&gt;ID1 - Resource identifier #1 &lt;br /&gt;ID2 - Resource identifier #2 &lt;br /&gt;SQL - SQL statement &lt;br /&gt;&lt;br /&gt;select sn.USERNAME,&lt;br /&gt; m.SID,&lt;br /&gt; sn.SERIAL#,&lt;br /&gt; m.TYPE,&lt;br /&gt; decode(LMODE,&lt;br /&gt;  0, 'None',&lt;br /&gt;  1, 'Null',&lt;br /&gt;  2, 'Row-S (SS)',&lt;br /&gt;  3, 'Row-X (SX)',&lt;br /&gt;  4, 'Share',&lt;br /&gt;  5, 'S/Row-X (SSX)',&lt;br /&gt;  6, 'Exclusive') lock_type,&lt;br /&gt; decode(REQUEST,&lt;br /&gt;  0, 'None', &lt;br /&gt;  1, 'Null',&lt;br /&gt;  2, 'Row-S (SS)',&lt;br /&gt;  3, 'Row-X (SX)', &lt;br /&gt;  4, 'Share', &lt;br /&gt;  5, 'S/Row-X (SSX)',&lt;br /&gt;  6, 'Exclusive') lock_requested,&lt;br /&gt; m.ID1,&lt;br /&gt; m.ID2,&lt;br /&gt; t.SQL_TEXT&lt;br /&gt;from  v$session sn, &lt;br /&gt; v$lock m , &lt;br /&gt; v$sqltext t&lt;br /&gt;where  t.ADDRESS = sn.SQL_ADDRESS &lt;br /&gt;and  t.HASH_VALUE = sn.SQL_HASH_VALUE &lt;br /&gt;and  ((sn.SID = m.SID and m.REQUEST != 0) &lt;br /&gt;or  (sn.SID = m.SID and m.REQUEST = 0 and LMODE != 4 and (ID1, ID2) in&lt;br /&gt;        (select s.ID1, s.ID2 &lt;br /&gt;         from  v$lock S &lt;br /&gt;         where  REQUEST != 0 &lt;br /&gt;         and  s.ID1 = m.ID1 &lt;br /&gt;         and  s.ID2 = m.ID2)))&lt;br /&gt;order by sn.USERNAME, sn.SID, t.PIECE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-1397095599391748326?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/1397095599391748326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=1397095599391748326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/1397095599391748326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/1397095599391748326'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/08/contentionlocking.html' title='Contention/Locking'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-8202511849137323776</id><published>2009-08-03T23:15:00.000-07:00</published><updated>2009-08-03T23:17:29.637-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Full Table Scans'/><title type='text'>Full Table Scans</title><content type='html'>&lt;strong&gt;Full Table Scans&lt;/strong&gt;&lt;br /&gt;Here are some scripts related to Full Table Scans .&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;System Statistics (Table)&lt;/strong&gt;&lt;strong&gt;SYSTEM STATISTICS (TABLE) NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Statistic Name - Name of the statistic &lt;br /&gt;Bytes - Size &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This query provides information on the full table scan activity. If your application is OLTP only, having long full table scans can be an indicator of having missing or incorrect indexes or untuned SQL. &lt;br /&gt;Table fetch by rowid reflect the cumulative number of rows fetched from tables using a TABLE ACCESS BY ROWID operation. &lt;br /&gt;Table fetch continued row reflect the cumulative number of continued rows fetched. This value is incremented when accessing a row that is longer than a block in length and when accessing "migrated" rows. Migrated rows are rows that were relocated from their original location to a new location because of an update that increased their size to the point where they could no longer be accommodated inside their original block. Access to migrated rows will cause this statistic's value to increment only if the access is performed by ROWID. Full table scans of tables that contain migrated rows do not cause this counter to increment. &lt;br /&gt;Table scan blocks gotten reflect the cumulative number of blocks read for full table scans. &lt;br /&gt;Table scans rows gotten reflect the cumulative number of rows read for full table scans. &lt;br /&gt;Table scans (cache partitions) is used with the Parallel Query Option. The number of RowID ranges corresponds to the number of simultaneous query server processes that scan the table. &lt;br /&gt;Table scans (long scans) indicate a full scan of a table that has &gt; 5 database blocks. &lt;br /&gt;Table scans (rowid ranges) is used with the Parallel Query Option. The number of RowID ranges corresponds to the number of simultaneous query server processes that scan the table. &lt;br /&gt;Table scans (short scans) indicate a full scan of a table that has &lt;= 5 database blocks. &lt;br /&gt;&lt;br /&gt;select  NAME,&lt;br /&gt; VALUE&lt;br /&gt;from  v$sysstat&lt;br /&gt;where NAME like '%table'&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Process Table Scans&lt;br /&gt;PROCESS TABLE SCAN NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;User Process - Name of user process &lt;br /&gt;Long Scans - Full scan of a table that has &gt; 5 database blocks. &lt;br /&gt;Short Scans - Full scan of a table that has &lt;= 5 database blocks. &lt;br /&gt;Row Retrieved - Cumulative number of rows read for full table scans. &lt;br /&gt;&lt;br /&gt;select  ss.username||'('||se.sid||') ' "User Process",&lt;br /&gt; sum(decode(name,'table scans (short tables)',value)) "Short Scans",&lt;br /&gt; sum(decode(name,'table scans (long tables)', value)) "Long Scans",&lt;br /&gt; sum(decode(name,'table scan rows gotten',value)) "Rows Retreived"&lt;br /&gt;from  v$session ss,&lt;br /&gt; v$sesstat se,&lt;br /&gt; v$statname sn&lt;br /&gt;where  se.statistic# = sn.statistic#&lt;br /&gt;and  (name  like '%table scans (short tables)%'&lt;br /&gt;or   name  like '%table scans (long tables)%'&lt;br /&gt;or   name  like '%table scan rows gotten%')&lt;br /&gt;and  se.sid = ss.sid&lt;br /&gt;and  ss.username is not null&lt;br /&gt;group  by ss.username||'('||se.sid||') '&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Process Table Scans (Avg)&lt;br /&gt;PROCESS TABLE SCAN (AVERAGE) NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;User Process - Name of user process &lt;br /&gt;Short Scans - Number of short scans (&lt;= 5 blocks) &lt;br /&gt;Long Scans - Number of long scans (&gt; 5 blocks) &lt;br /&gt;Rows Retrieved - Number of rows retrieved &lt;br /&gt;Long Scans Length - Average long scan length (i.e. full table scan of &gt; 5 blocks) &lt;br /&gt;&lt;br /&gt;select  ss.username||'('||se.sid||') ' "User Process",&lt;br /&gt; sum(decode(name,'table scans (short tables)',value)) "Short Scans",&lt;br /&gt; sum(decode(name,'table scans (long tables)', value)) "Long Scans",&lt;br /&gt; sum(decode(name,'table scan rows gotten',value)) "Rows Retreived",&lt;br /&gt;round((sum(decode(name,'table scan rows gotten',value)) - (sum(decode(name,'table scans (short tables)',value)) * 5)) / (sum(decode(name,'table scans (long tables)', value))),2) "Long Scans Length"&lt;br /&gt;from  v$session ss,&lt;br /&gt; v$sesstat se,&lt;br /&gt; v$statname sn&lt;br /&gt;where   se.statistic# = sn.statistic#&lt;br /&gt;and     (name  like '%table scans (short tables)%'&lt;br /&gt;or   name  like '%table scans (long tables)%'&lt;br /&gt;or   name  like '%table scan rows gotten%')&lt;br /&gt;and  se.sid = ss.sid&lt;br /&gt;and  ss.username is not null&lt;br /&gt;group by ss.username||'('||se.sid||') '&lt;br /&gt;having sum(decode(name,'table scans (long tables)', value)) != 0&lt;br /&gt;order by 3 desc&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-8202511849137323776?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/8202511849137323776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=8202511849137323776' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/8202511849137323776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/8202511849137323776'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/08/full-table-scans.html' title='Full Table Scans'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-447749151849107074</id><published>2009-06-25T06:03:00.000-07:00</published><updated>2009-06-25T06:08:08.873-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SENDMAIL configuration'/><title type='text'>SENDMAIL configuration</title><content type='html'>SENDMAIL Configuration tested on RedHat 4 update 5&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;Follow the below link:&lt;br /&gt;&lt;br /&gt;http://www.owlriver.com/tips/sendmail-tip/&lt;br /&gt;&lt;br /&gt;1&gt; Apply the patch sendmail-cf-8.13.1-3.2.el4.i386.rpm which is available in 3rd cd&lt;br /&gt;rpm -Uvh sendmail-cf-8.13.1-3.2.el4.i386.rpm&lt;br /&gt;&lt;br /&gt;2&gt; To be able to hand email TO it (on port 25), you will need packages:&lt;br /&gt;rpm -q sendmail-cf m4&lt;br /&gt;&lt;br /&gt;3&gt; If not present, use your install media and install them&lt;br /&gt;&lt;br /&gt;4&gt; Edit /etc/mail/sendmail.mc with your favorite text editor. Toward the bottom of that&lt;br /&gt;file is this stanza:&lt;br /&gt;dnl This changes sendmail to only listen on the loopback device 127.0.0.1&lt;br /&gt;dnl and not on any other network devices. Comment this out if you want&lt;br /&gt;dnl to accept email over the network.&lt;br /&gt;DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')&lt;br /&gt;... Note that the string "dnl " at the left margin is how comments are added to&lt;br /&gt;sendmail.mc -- this is an artifact of the ancient origins of sendmail and the m4 macro&lt;br /&gt;processor&lt;br /&gt;Make it read as the text says "to accept email over the network":&lt;br /&gt;dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')&lt;br /&gt;(this is the last line quoted in the first stanza, now commented out.)&lt;br /&gt;&lt;br /&gt;4. rebuild /etc/sendmail.cf from the revised /etc/mail/sendmail.mc thus:&lt;br /&gt;m4 /etc/mail/sendmail.mc &gt; /etc/sendmail.cf&lt;br /&gt;(This is considered Unix deep magic -- but all it does is have the m4 macro processor use&lt;br /&gt;the sendmail-cf recipies, and make a new well-formed sendmail.cf. Note that lower in the&lt;br /&gt;sendmail.mc file is an option to specify what hostname your mail server uses -- useful for&lt;br /&gt;pretending to be a server with a resolvable name.)&lt;br /&gt;(Note also that /etc/sendmail.cf moves to become /etc/mail/sendmail.cf with sendmail-&lt;br /&gt;8.12.x and so that command will become m4 /etc/mail/sendmail.mc &gt;&lt;br /&gt;/etc/mail/sendmail.cf in later versions. But there are many other changes, including a&lt;br /&gt;separate non-privleged child process.)&lt;br /&gt;&lt;br /&gt;5. Tell sendmail to listen all the time (in so-called daemon mode) instead of delivering&lt;br /&gt;just its own local mail queue just once an hour.&lt;br /&gt;Edit /etc/sysconfig/sendmail&lt;br /&gt;and change:&lt;br /&gt;DAEMON=no&lt;br /&gt;to:&lt;br /&gt;DAEMON=yes&lt;br /&gt;&lt;br /&gt;6. And restart sendmail&lt;br /&gt;cd /etc/mail&lt;br /&gt;make&lt;br /&gt;service sendmail restart&lt;br /&gt;(Note: The make step is needed in some variants of Red Hat, as the automatic execution&lt;br /&gt;of the make is missing in some releases of the initscript package.)&lt;br /&gt;&lt;br /&gt;7. Confirm it locally:&lt;br /&gt;netstat -an | grep 25 | grep tcp&lt;br /&gt;yields:&lt;br /&gt;tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN&lt;br /&gt;(which says the host is listening on ALL interfaces for connections ...)&lt;br /&gt;[I undid step 5 and 6 -- and reran this test -- it yields -- nothing -- that it is NOT able to be&lt;br /&gt;connected to externally on port 25 -- and so THAT port is safe from a remote direct&lt;br /&gt;attack.]&lt;br /&gt;&lt;br /&gt;8. Test locally (I list YOUR part OUT of []):&lt;br /&gt;telnet localhost 25&lt;br /&gt;[... banner]&lt;br /&gt;HELO LOCALHOST&lt;br /&gt;[... response]&lt;br /&gt;QUIT&lt;br /&gt;It went:&lt;br /&gt;[root@couch herrold]# telnet localhost 25&lt;br /&gt;Trying 127.0.0.1...&lt;br /&gt;Connected to localhost.&lt;br /&gt;Escape character is '^]'.&lt;br /&gt;220 couch.basement.net ESMTP Sendmail 8.11.6/8.11.6; Sat, 17&lt;br /&gt;Nov 2001 17:10:39 -0500&lt;br /&gt;HELO localhost&lt;br /&gt;250 couch.basement.net Hello&lt;br /&gt;IDENT:+yf0DRAJjMc1ZxKCEIv/Y7hCZQtbC55G@couch.basement.net&lt;br /&gt;[127.0.0.1], pleased to meet you&lt;br /&gt;QUIT&lt;br /&gt;221 2.0.0 couch.basement.net closing connection&lt;br /&gt;Connection closed by foreign host.&lt;br /&gt;$&lt;br /&gt;&lt;br /&gt;9. The acid test -- From another host test it (we'll restate the conversation, and hide the&lt;br /&gt;remote end's responses initially for clarity):&lt;br /&gt;telnet couch.basement.net 25&lt;br /&gt;HELO localhost&lt;br /&gt;QUIT&lt;br /&gt;Or more elaborately (I highlight your input in red):&lt;br /&gt;[herrold@router herrold]$ telnet couch.basement.net 25&lt;br /&gt;Trying 172.16.33.101...&lt;br /&gt;Connected to 172.16.33.101.&lt;br /&gt;Escape character is '^]'.&lt;br /&gt;220 couch.basement.net ESMTP Sendmail 8.11.6/8.11.6; Sat, 17&lt;br /&gt;Nov 2001 17:36:05 -0500&lt;br /&gt;HELO localhost&lt;br /&gt;250 couch.basement.net Hello router.basement.net&lt;br /&gt;[172.16.33.2], pleased to meet you&lt;br /&gt;MAIL FROM:&lt;godzilla@localhost&gt;&lt;br /&gt;553 5.5.4 godzilla@localhost... Real domain name required for sender address&lt;br /&gt;MAIL FROM:&lt;godzilla@microsoft.com&gt;&lt;br /&gt;250 2.1.0 godzilla@microsoft.com... Sender ok&lt;br /&gt;RCPT TO:&lt;root@localhost&gt;&lt;br /&gt;250 2.1.5 root@localhost... Recipient ok&lt;br /&gt;DATA&lt;br /&gt;354 Enter mail, end with "." on a line by itself&lt;br /&gt;Linux rules.&lt;br /&gt;.&lt;br /&gt;250 2.0.0 fAHMajY07056 Message accepted for delivery&lt;br /&gt;QUIT&lt;br /&gt;221 2.0.0 couch.basement.net closing connection&lt;br /&gt;Connection closed by foreign host.&lt;br /&gt;[herrold@router herrold]$&lt;br /&gt;.... that was successful -- note that the 'domain must resolve' rule for senders kicked in on&lt;br /&gt;the first part of the "MAIL FROM" offer -- this is an anti-spam feature. [Note the name&lt;br /&gt;look up's working -- I have working residence DHCP and DNS services on Linux ... ].&lt;br /&gt;The X- header is added by procmail.&lt;br /&gt;There is a forward rule in place for root, as recommended in an earlier post; Out at the&lt;br /&gt;end recipient host, we find:&lt;br /&gt;Return-Path:&lt;br /&gt;Received: from couch.basement.net&lt;br /&gt;(dhcp065-024-xx-xx.columbus.rr.com [65.24.xx.xx])&lt;br /&gt;by swampfox.owlriver.com (8.11.6/8.11.6) with ESMTP id&lt;br /&gt;fAHMbGu07271 for ; Sat, 17 Nov&lt;br /&gt;2001 17:37:16 -0500&lt;br /&gt;Received: from localhost (router.basement.net [172.16.33.2])&lt;br /&gt;by couch.basement.net (8.11.6/8.11.6) with SMTP id&lt;br /&gt;fAHMajY07056&lt;br /&gt;for root@localhost; Sat, 17 Nov 2001 17:37:06 -0500&lt;br /&gt;Date: Sat, 17 Nov 2001 17:37:06 -0500&lt;br /&gt;From: godzilla@microsoft.com&lt;br /&gt;Message-Id: &lt;200111172237.fAHMajY07056@couch.basement.net&gt;&lt;br /&gt;X-Loop: herrold@owlriver.com&lt;br /&gt;Linux rules.&lt;br /&gt;Read the received lines from the bottom up --&lt;br /&gt;We forged the sender as "godzilla@microsoft.com" -- spammers do this all the time,&lt;br /&gt;nothing new there; and offered to root@localhost -- The forward rule handed it for&lt;br /&gt;delivery to herrold@owlriver.com. Seems to work fine&lt;br /&gt;As this demonstrated, this is probably not enough to suffice in production. Do NOT&lt;br /&gt;connect this to the outside world -- a bit more needs to be done --- As set, it will receive&lt;br /&gt;mail only with a final (as to the originator's perspective) destination at the localhost --&lt;br /&gt;/etc/mail/access and /etc/mail/local-host-names need attention to receive mail for&lt;br /&gt;handling for others. But again, this is beyond the scope of this presentation.&lt;br /&gt;&lt;br /&gt;10&gt; To send a mail&lt;br /&gt;sendmail –v sriasan@gmail.com – use gmail, I had spam issues with yahoo.com&lt;br /&gt;this is to test sendmail&lt;br /&gt;ctrl –d or .&lt;br /&gt;check gmail for the mail&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-447749151849107074?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/447749151849107074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=447749151849107074' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/447749151849107074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/447749151849107074'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/06/sendmail-configuration.html' title='SENDMAIL configuration'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-4262219571757005649</id><published>2009-06-22T01:59:00.000-07:00</published><updated>2009-06-22T02:21:29.458-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Rollback Segments'/><title type='text'>Rollback Segments</title><content type='html'>&lt;strong&gt;Rollback Segments&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Here are some scripts related to Rollback Segments .&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Segments&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;ROLLBACK INFORMATION NOTES&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Segment Name - Name of the rollback segment. &lt;br /&gt;Owner - Owner of the rollback segment. &lt;br /&gt;Tablespace - Name of the tablespace containing the rollback segment. &lt;br /&gt;Segment ID - ID number of the rollback segment. &lt;br /&gt;File ID - ID number of the block containing the segment header. &lt;br /&gt;Block ID - Starting block number of the extent. &lt;br /&gt;Initial Extent - Initial extent size in bytes. &lt;br /&gt;Next Extent - Secondary extent size in bytes. &lt;br /&gt;Min Extents - Minimum number of extents. &lt;br /&gt;Max Extents - Maximum number of extents. &lt;br /&gt;PCT Increase - Percent increase for extent size. &lt;br /&gt;Status - ONLINE if the segment is online, or PENDING OFFLINE if the segment is going offline but some active (distributed) transactions are using the rollback segment. When the transaction(s) complete, the segment goes OFFLINE. &lt;br /&gt;Instance - Instance this rollback segment belongs to (Parallel Server), or NULL for a single-instance system . &lt;br /&gt;&lt;br /&gt;select  SEGMENT_NAME,&lt;br /&gt; OWNER,&lt;br /&gt; TABLESPACE_NAME,&lt;br /&gt; SEGMENT_ID,&lt;br /&gt; FILE_ID,&lt;br /&gt; BLOCK_ID,&lt;br /&gt; INITIAL_EXTENT,&lt;br /&gt; NEXT_EXTENT,&lt;br /&gt; MIN_EXTENTS,&lt;br /&gt; MAX_EXTENTS,&lt;br /&gt; PCT_INCREASE,&lt;br /&gt; STATUS,&lt;br /&gt; INSTANCE_NUM&lt;br /&gt;from  dba_rollback_segs&lt;br /&gt;order by SEGMENT_NAME&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Transactions&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;ROLLBACK STATISTIC (TRANSACTION TABLES) NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Statistic Name - Name of the statistic &lt;br /&gt;Value - Current value &lt;br /&gt;&lt;br /&gt;The name of the consistent changes statistic is misleading. It does not indicate the number of updates (or changes), but rather, the number of times a consistent get had to retrieve and "old" version of a block because of updates that occurred after the cursor had been opened. As of Oracle7.3, a more accurate statistic was added. Named data blocks consistent reads - undo records applied; the new statistic gives the actual number of data records applied. &lt;br /&gt;The consistent gets statistic reflects the number of accesses made to the block buffer to retrieve data in a consistent mode. Most accesses to the buffer are done with the consistent get mechanism, which uses the SCN (System Change Number) to make sure the data being read has not changed sine the query was started. &lt;br /&gt;The data blocks consistent reads - undo records applied statistic reflects the number of updates (or changes) applied. &lt;br /&gt;&lt;br /&gt;select NAME,&lt;br /&gt;       VALUE&lt;br /&gt;from   v$sysstat&lt;br /&gt;where  name in (&lt;br /&gt;       'consistent gets',&lt;br /&gt;       'consistent changes',&lt;br /&gt;       'transaction tables consistent reads - undo records applied',&lt;br /&gt;       'transaction tables consistent read rollbacks',&lt;br /&gt;       'data blocks consistent reads - undo records applied',&lt;br /&gt;       'no work - consistent read gets',&lt;br /&gt;       'cleanouts only - consistent read gets',&lt;br /&gt;       'rollbacks only - consistent read gets',&lt;br /&gt;       'cleanouts and rollbacks - consistent read gets')&lt;br /&gt;order  by NAME&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Contention&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;ROLLBACK CONTENTION NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Segment Name - Name of the rollback segment. &lt;br /&gt;Seg# - Rollback segment number. &lt;br /&gt;Gets - Number of header gets. &lt;br /&gt;Waits - Number of header waits. &lt;br /&gt;Hit Ratio - Ratio of gets to waits. This should be &gt;= 99%. &lt;br /&gt;Active Transactions - Number of active transactions. &lt;br /&gt;Writes - Number of bytes written to rollback segment. &lt;br /&gt;&lt;br /&gt;Hit Ratio should be &gt;= 99% - if not, consider adding additional rollback segments. &lt;br /&gt;Check the system undo header, system undo block, undo header, undo block statistics under "Wait Statistics" for additional information on rollback contention. &lt;br /&gt;&lt;br /&gt;select  b.NAME,&lt;br /&gt; a.USN seg#,&lt;br /&gt; GETS,&lt;br /&gt; WAITS,&lt;br /&gt; round(((GETS-WAITS)*100)/GETS,2) hit_ratio,&lt;br /&gt; XACTS active_transactions,&lt;br /&gt; WRITES&lt;br /&gt;from v$rollstat a,&lt;br /&gt; v$rollname b&lt;br /&gt;where a.USN = b.USN&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Growth&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;ROLLBACK EXTENDING AND SHRINKAGE NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Rollback Segment - Name of rollback segment. &lt;br /&gt;Seg# - Rollback segment number. &lt;br /&gt;Size - Size in bytes of the rollback segment. &lt;br /&gt;OptSize - Optimal size of rollback segment. &lt;br /&gt;HWM - High Water Mark of rollback segment size. &lt;br /&gt;Extends - Number of times rollback segment was extended to have a new extent. &lt;br /&gt;Wraps - Number of times rollback segment wraps from one extent to another. &lt;br /&gt;Shrinks - Number of times rollback segment shrank, eliminating one or more additional extents each time. &lt;br /&gt;Average Shrink - Total size of freed extents divided by number of shrinks. &lt;br /&gt;Average Active - Current average size of active extents, where "active" extents have uncommitted transaction data. &lt;br /&gt;Status - ONLINE if the segment is online, or PENDING OFFLINE if the segment is going offline but some active (distributed) transactions are using the rollback segment. When the transaction(s) complete, the segment goes OFFLINE. &lt;br /&gt;&lt;br /&gt;select  NAME,&lt;br /&gt; a.USN,&lt;br /&gt; RSSIZE,&lt;br /&gt; OPTSIZE,&lt;br /&gt; HWMSIZE,&lt;br /&gt; EXTENDS,&lt;br /&gt; WRAPS,&lt;br /&gt; SHRINKS,&lt;br /&gt; AVESHRINK,&lt;br /&gt; AVEACTIVE,&lt;br /&gt; STATUS&lt;br /&gt;from  v$rollstat a , &lt;br /&gt; v$rollname b&lt;br /&gt;where  a.USN=b.USN&lt;br /&gt;order by NAME&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-4262219571757005649?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/4262219571757005649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=4262219571757005649' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/4262219571757005649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/4262219571757005649'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/06/rollback-segments.html' title='Rollback Segments'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-5084274691341340294</id><published>2009-06-22T01:20:00.000-07:00</published><updated>2009-06-22T01:21:52.771-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='User Information'/><title type='text'>User Information</title><content type='html'>&lt;strong&gt;User Information&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Here are some scripts related to User Information .&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;User Objects&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;USER OBJECT NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Username - Owner of the object(s) &lt;br /&gt;Tabs - Table(s) &lt;br /&gt;Inds - Index(es) &lt;br /&gt;Syns - Synonym(s) &lt;br /&gt;Views - Views(s) &lt;br /&gt;Seqs - Sequence(s) &lt;br /&gt;Procs - Procedure(s) &lt;br /&gt;Funcs - Function(s) &lt;br /&gt;Pkgs - Packages(s) &lt;br /&gt;Trigs - Trigger(s) &lt;br /&gt;Deps - Dependencies &lt;br /&gt;&lt;br /&gt;select  USERNAME,&lt;br /&gt; count(decode(o.TYPE#, 2,o.OBJ#,'')) Tabs,&lt;br /&gt; count(decode(o.TYPE#, 1,o.OBJ#,'')) Inds,&lt;br /&gt; count(decode(o.TYPE#, 5,o.OBJ#,'')) Syns,&lt;br /&gt; count(decode(o.TYPE#, 4,o.OBJ#,'')) Views,&lt;br /&gt; count(decode(o.TYPE#, 6,o.OBJ#,'')) Seqs,&lt;br /&gt; count(decode(o.TYPE#, 7,o.OBJ#,'')) Procs,&lt;br /&gt; count(decode(o.TYPE#, 8,o.OBJ#,'')) Funcs,&lt;br /&gt; count(decode(o.TYPE#, 9,o.OBJ#,'')) Pkgs,&lt;br /&gt; count(decode(o.TYPE#,12,o.OBJ#,'')) Trigs,&lt;br /&gt; count(decode(o.TYPE#,10,o.OBJ#,'')) Deps&lt;br /&gt;from  obj$ o,&lt;br /&gt; dba_users u&lt;br /&gt;where  u.USER_ID = o.OWNER# (+)&lt;br /&gt;group by USERNAME&lt;br /&gt;order by USERNAME&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Invalid Objects&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;INVALID OBJECT NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Owner - Owner of the object &lt;br /&gt;Object Type - Type of object &lt;br /&gt;Object Name - Name of the object &lt;br /&gt;Status - Status of the object &lt;br /&gt;&lt;br /&gt;select  OWNER,&lt;br /&gt; OBJECT_TYPE,&lt;br /&gt; OBJECT_NAME,&lt;br /&gt; STATUS&lt;br /&gt;from  dba_objects&lt;br /&gt;where  STATUS = 'INVALID'&lt;br /&gt;order  by OWNER, OBJECT_TYPE, OBJECT_NAME&lt;br /&gt;&lt;br /&gt;Object Modification&lt;br /&gt;OBJECT MODIFICATION NOTES: (Modified in last 7 days)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Owner - Owner of the object &lt;br /&gt;Object Name - Name of the object &lt;br /&gt;Object Type - Type of the object &lt;br /&gt;Last Modified - Last modification date/time &lt;br /&gt;Created - Object creation date/time &lt;br /&gt;Status - Status of the object &lt;br /&gt;&lt;br /&gt;select  OWNER,&lt;br /&gt; OBJECT_NAME,&lt;br /&gt; OBJECT_TYPE,&lt;br /&gt; to_char(LAST_DDL_TIME,'MM/DD/YYYY HH24:MI:SS') last_modified,&lt;br /&gt; to_char(CREATED,'MM/DD/YYYY HH24:MI:SS') created,&lt;br /&gt; STATUS&lt;br /&gt;from    dba_objects&lt;br /&gt;where   (SYSDATE - LAST_DDL_TIME) &lt; 7&lt;br /&gt;order  by LAST_DDL_TIME DESC&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;User Privileges&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;USER PRIVILEGES NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grantee - Grantee name, user or role receiving the grant &lt;br /&gt;Granted Role - Granted role name &lt;br /&gt;Admin - Grant was with the ADMIN option &lt;br /&gt;Default - Role is designated as a DEFAULT ROLE for the user &lt;br /&gt;Privilege - System privilege &lt;br /&gt;&lt;br /&gt;select  rp.GRANTEE,&lt;br /&gt; GRANTED_ROLE,&lt;br /&gt; rp.ADMIN_OPTION,&lt;br /&gt; DEFAULT_ROLE,&lt;br /&gt; PRIVILEGE&lt;br /&gt;from    dba_role_privs rp, dba_sys_privs sp&lt;br /&gt;where   rp.GRANTEE = sp.GRANTEE&lt;br /&gt;and rp.GRANTEE not in ('SYS','SYSTEM','DBA')&lt;br /&gt;order   by  rp.GRANTEE, GRANTED_ROLE, PRIVILEGE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-5084274691341340294?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/5084274691341340294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=5084274691341340294' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5084274691341340294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5084274691341340294'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/06/user-information.html' title='User Information'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-2744549912690898739</id><published>2009-06-22T01:12:00.000-07:00</published><updated>2009-06-22T01:17:54.046-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit/Miss Ratios'/><title type='text'>Hit/Miss Ratios</title><content type='html'>&lt;strong&gt;Hit/Miss Ratios&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Here are some scripts related to Hit/Miss Ratios .&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Buffer Hit Ratio&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;BUFFER HIT RATIO NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Consistent Gets &lt;/strong&gt;- The number of accesses made to the block buffer to retrieve data in a consistent mode. &lt;br /&gt;&lt;strong&gt;DB Blk Gets&lt;/strong&gt; - The number of blocks accessed via single block gets (i.e. not through the consistent get mechanism). &lt;br /&gt;&lt;strong&gt;Physical Reads&lt;/strong&gt; - The cumulative number of blocks read from disk. &lt;br /&gt;&lt;br /&gt;Logical reads are the sum of consistent gets and db block gets. &lt;br /&gt;The db block gets statistic value is incremented when a block is read for update and when segment header blocks are accessed. &lt;br /&gt;Hit Ratio should be &gt; 80%, else increase DB_BLOCK_BUFFERS in init.ora &lt;br /&gt;&lt;br /&gt;select  sum(decode(NAME, 'consistent gets',VALUE, 0)) "Consistent Gets",&lt;br /&gt; sum(decode(NAME, 'db block gets',VALUE, 0)) "DB Block Gets",&lt;br /&gt; sum(decode(NAME, 'physical reads',VALUE, 0)) "Physical Reads",&lt;br /&gt; round((sum(decode(name, 'consistent gets',value, 0)) + &lt;br /&gt;        sum(decode(name, 'db block gets',value, 0)) - &lt;br /&gt;        sum(decode(name, 'physical reads',value, 0))) / &lt;br /&gt;       (sum(decode(name, 'consistent gets',value, 0)) + &lt;br /&gt;        sum(decode(name, 'db block gets',value, 0))) * 100,2) "Hit Ratio"&lt;br /&gt;from   v$sysstat&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Data Dict Hit Ratio&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;DATA DICTIONARY HIT RATIO NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Gets&lt;/strong&gt; - Total number of requests for information on the data object. &lt;br /&gt;Cache Misses - Number of data requests resulting in cache misses &lt;br /&gt;&lt;br /&gt;Hit Ratio should be &gt; 90%, else increase SHARED_POOL_SIZE in init.ora &lt;br /&gt;&lt;br /&gt;select  sum(GETS),&lt;br /&gt; sum(GETMISSES),&lt;br /&gt; round((1 - (sum(GETMISSES) / sum(GETS))) * 100,2)&lt;br /&gt;from  v$rowcache&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Cache Hit Ratio&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;SQL CACHE HIT RATIO NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Pins &lt;/strong&gt;- The number of times a pin was requested for objects of this namespace. &lt;br /&gt;&lt;strong&gt;Reloads&lt;/strong&gt; - Any pin of an object that is not the first pin performed since the object handle was created, and which requires loading the object from disk. &lt;br /&gt;&lt;br /&gt;Hit Ratio should be &gt; 85% &lt;br /&gt;&lt;br /&gt;select  sum(PINS) Pins,&lt;br /&gt; sum(RELOADS) Reloads,&lt;br /&gt; round((sum(PINS) - sum(RELOADS)) / sum(PINS) * 100,2) Hit_Ratio&lt;br /&gt;from  v$librarycache&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Library Cache Miss Ratio&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;LIBRARY CACHE MISS RATIO NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Executions&lt;/strong&gt; - The number of times a pin was requested for objects of this namespace. &lt;br /&gt;&lt;strong&gt;Cache Misses&lt;/strong&gt; - Any pin of an object that is not the first pin performed since the object handle was created, and which requires loading the object from disk. &lt;br /&gt;&lt;br /&gt;Hit Ratio should be &lt; 1%, else increase SHARED_POOL_SIZE in init.ora &lt;br /&gt;&lt;br /&gt;select  sum(PINS) Executions,&lt;br /&gt; sum(RELOADS) cache_misses,&lt;br /&gt; sum(RELOADS) / sum(PINS) miss_ratio&lt;br /&gt;from  v$librarycache&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-2744549912690898739?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/2744549912690898739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=2744549912690898739' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/2744549912690898739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/2744549912690898739'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/06/hitmiss-ratios.html' title='Hit/Miss Ratios'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-5528336812957099795</id><published>2009-06-19T01:56:00.000-07:00</published><updated>2009-06-19T01:59:52.356-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Session Statistics'/><title type='text'>Session Statistics</title><content type='html'>&lt;strong&gt;Session Statistics&lt;/strong&gt;&lt;br /&gt;Here are some scripts related to Session Statistics .&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Session I/O By User&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;SESSION I/O BY USER NOTES&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Username&lt;/strong&gt; - Name of the Oracle process user &lt;br /&gt;&lt;strong&gt;OS User &lt;/strong&gt;- Name of the operating system user &lt;br /&gt;&lt;strong&gt;PID&lt;/strong&gt; - Process ID of the session &lt;br /&gt;&lt;strong&gt;SID&lt;/strong&gt; - Session ID of the session &lt;br /&gt;&lt;strong&gt;Serial# &lt;/strong&gt;- Serial# of the session &lt;br /&gt;&lt;strong&gt;Physical Reads&lt;/strong&gt; - Physical reads for the session &lt;br /&gt;&lt;strong&gt;Block Gets&lt;/strong&gt; - Block gets for the session &lt;br /&gt;&lt;strong&gt;Consistent Gets&lt;/strong&gt; - Consistent gets for the session &lt;br /&gt;&lt;strong&gt;Block Changes &lt;/strong&gt;- Block changes for the session &lt;br /&gt;&lt;strong&gt;Consistent Changes&lt;/strong&gt; - Consistent changes for the session &lt;br /&gt;&lt;br /&gt;select nvl(ses.USERNAME,'ORACLE PROC') username,&lt;br /&gt; OSUSER os_user,&lt;br /&gt; PROCESS pid,&lt;br /&gt; ses.SID sid,&lt;br /&gt; SERIAL#,&lt;br /&gt; PHYSICAL_READS,&lt;br /&gt; BLOCK_GETS,&lt;br /&gt; CONSISTENT_GETS,&lt;br /&gt; BLOCK_CHANGES,&lt;br /&gt; CONSISTENT_CHANGES&lt;br /&gt;from v$session ses, &lt;br /&gt; v$sess_io sio&lt;br /&gt;where  ses.SID = sio.SID&lt;br /&gt;order  by PHYSICAL_READS, ses.USERNAME&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CPU Usage By Session&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;CPU USAGE BY SESSION NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Username &lt;/strong&gt;- Name of the user &lt;br /&gt;&lt;strong&gt;SID &lt;/strong&gt;- Session id &lt;br /&gt;&lt;strong&gt;CPU Usage&lt;/strong&gt; - CPU centiseconds used by this session (divide by 100 to get real CPU seconds) &lt;br /&gt;&lt;br /&gt;select  nvl(ss.USERNAME,'ORACLE PROC') username,&lt;br /&gt; se.SID,&lt;br /&gt; VALUE cpu_usage&lt;br /&gt;from  v$session ss, &lt;br /&gt; v$sesstat se, &lt;br /&gt; v$statname sn&lt;br /&gt;where   se.STATISTIC# = sn.STATISTIC#&lt;br /&gt;and   NAME like '%CPU used by this session%'&lt;br /&gt;and   se.SID = ss.SID&lt;br /&gt;order   by VALUE desc&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resource Usage By User&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;RESOURCE USAGE BY USER NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SID - Session ID &lt;br /&gt;Username - Name of the user &lt;br /&gt;Statistic - Name of the statistic &lt;br /&gt;Value - Current value &lt;br /&gt;&lt;br /&gt;select  ses.SID,&lt;br /&gt; nvl(ses.USERNAME,'ORACLE PROC') username,&lt;br /&gt; sn.NAME statistic,&lt;br /&gt; sest.VALUE&lt;br /&gt;from  v$session ses, &lt;br /&gt; v$statname sn, &lt;br /&gt; v$sesstat sest&lt;br /&gt;where  ses.SID = sest.SID&lt;br /&gt;and  sn.STATISTIC# = sest.STATISTIC#&lt;br /&gt;and  sest.VALUE is not null&lt;br /&gt;and  sest.VALUE != 0            &lt;br /&gt;order  by ses.USERNAME, ses.SID, sn.NAME&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Session Stats By Session&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;SESSION STAT NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Username - Name of the user &lt;br /&gt;SID - Session ID &lt;br /&gt;Statistic - Name of the statistic &lt;br /&gt;Usage - Usage according to Oracle &lt;br /&gt;&lt;br /&gt;select  nvl(ss.USERNAME,'ORACLE PROC') username,&lt;br /&gt; se.SID,&lt;br /&gt; sn.NAME stastic,&lt;br /&gt; VALUE usage&lt;br /&gt;from  v$session ss, &lt;br /&gt; v$sesstat se, &lt;br /&gt; v$statname sn&lt;br /&gt;where   se.STATISTIC# = sn.STATISTIC#&lt;br /&gt;and   se.SID = ss.SID&lt;br /&gt;and se.VALUE &gt; 0&lt;br /&gt;order   by sn.NAME, se.SID, se.VALUE desc&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Cursor Usage By Session&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;CURSOR USAGE BY SESSION NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Username&lt;/strong&gt; - Name of the user &lt;br /&gt;&lt;strong&gt;Recursive Calls&lt;/strong&gt; - Total number of recursive calls &lt;br /&gt;&lt;strong&gt;Opened Cursors&lt;/strong&gt; - Total number of opened cursors &lt;br /&gt;&lt;strong&gt;Current Cursors&lt;/strong&gt; - Number of cursor currently in use &lt;br /&gt;&lt;br /&gt;select  user_process username,&lt;br /&gt; "Recursive Calls",&lt;br /&gt; "Opened Cursors",&lt;br /&gt; "Current Cursors"&lt;br /&gt;from  (&lt;br /&gt; select  nvl(ss.USERNAME,'ORACLE PROC')||'('||se.sid||') ' user_process, &lt;br /&gt;   sum(decode(NAME,'recursive calls',value)) "Recursive Calls",&lt;br /&gt;   sum(decode(NAME,'opened cursors cumulative',value)) "Opened Cursors",&lt;br /&gt;   sum(decode(NAME,'opened cursors current',value)) "Current Cursors"&lt;br /&gt; from  v$session ss, &lt;br /&gt;  v$sesstat se, &lt;br /&gt;  v$statname sn&lt;br /&gt; where  se.STATISTIC# = sn.STATISTIC#&lt;br /&gt; and  (NAME  like '%opened cursors current%'&lt;br /&gt; or   NAME  like '%recursive calls%'&lt;br /&gt; or   NAME  like '%opened cursors cumulative%')&lt;br /&gt; and  se.SID = ss.SID&lt;br /&gt; and  ss.USERNAME is not null&lt;br /&gt; group  by nvl(ss.USERNAME,'ORACLE PROC')||'('||se.SID||') '&lt;br /&gt;)&lt;br /&gt;orasnap_user_cursors&lt;br /&gt;order  by USER_PROCESS,"Recursive Calls"&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;User Hit Ratios&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;USER HIT RATIO NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Username &lt;/strong&gt;- Name of the user &lt;br /&gt;&lt;strong&gt;Consistent Gets&lt;/strong&gt; - The number of accesses made to the block buffer to retrieve data in a consistent mode. &lt;br /&gt;&lt;strong&gt;DB Blk Gets &lt;/strong&gt;- The number of blocks accessed via single block gets (i.e. not through the consistent get mechanism). &lt;br /&gt;&lt;strong&gt;Physical Reads&lt;/strong&gt; - The cumulative number of blocks read from disk. &lt;br /&gt;&lt;br /&gt;Logical reads are the sum of consistent gets and db block gets. &lt;br /&gt;The db block gets statistic value is incremented when a block is read for update and when segment header blocks are accessed. &lt;br /&gt;Hit ratio should be &gt; 90% &lt;br /&gt;&lt;br /&gt;select USERNAME,&lt;br /&gt; CONSISTENT_GETS,&lt;br /&gt;        BLOCK_GETS,&lt;br /&gt;        PHYSICAL_READS,&lt;br /&gt;        ((CONSISTENT_GETS+BLOCK_GETS-PHYSICAL_READS) / (CONSISTENT_GETS+BLOCK_GETS)) Ratio&lt;br /&gt;from  v$session, v$sess_io&lt;br /&gt;where  v$session.SID = v$sess_io.SID&lt;br /&gt;and  (CONSISTENT_GETS+BLOCK_GETS) &gt; 0&lt;br /&gt;and  USERNAME is not null&lt;br /&gt;order by ((CONSISTENT_GETS+BLOCK_GETS-PHYSICAL_READS) / (CONSISTENT_GETS+BLOCK_GETS))&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-5528336812957099795?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/5528336812957099795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=5528336812957099795' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5528336812957099795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5528336812957099795'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/06/session-statistics.html' title='Session Statistics'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-2103048645754155538</id><published>2009-06-19T00:54:00.000-07:00</published><updated>2009-06-19T00:57:43.257-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tablespace Information'/><title type='text'>Tablespace Information</title><content type='html'>&lt;strong&gt;Tablespace Information&lt;/strong&gt;&lt;br /&gt;Here are some scripts related to Tablespace Information .&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Information&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;TABLESPACE INFORMATION NOTES&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tablespace Name&lt;/strong&gt; - Name of the tablespace &lt;br /&gt;&lt;strong&gt;Initial Extent&lt;/strong&gt; - Default initial extent size &lt;br /&gt;&lt;strong&gt;Next Extent&lt;/strong&gt; - Default incremental extent size &lt;br /&gt;&lt;strong&gt;Min Extents&lt;/strong&gt; - Default minimum number of extents &lt;br /&gt;&lt;strong&gt;Max Extents&lt;/strong&gt; - Default maximum number of extents &lt;br /&gt;&lt;strong&gt;PCT Increase&lt;/strong&gt; - Default percent increase for extent size &lt;br /&gt;&lt;strong&gt;Status &lt;/strong&gt;- Tablespace status: ONLINE, OFFLINE, or INVALID (tablespace has been dropped) &lt;br /&gt;&lt;strong&gt;Contents &lt;/strong&gt;- Type of tablespace. This column will have 'TEMPORARY' (v7.3+) for dedicated temporary tablespaces, and 'PERMANENT' for tablespaces that can store both temporary sort segments and permanent objects. &lt;br /&gt;&lt;br /&gt;select TABLESPACE_NAME,&lt;br /&gt; INITIAL_EXTENT,&lt;br /&gt; NEXT_EXTENT,&lt;br /&gt; MIN_EXTENTS,&lt;br /&gt; MAX_EXTENTS,&lt;br /&gt; PCT_INCREASE,&lt;br /&gt; STATUS,&lt;br /&gt; CONTENTS&lt;br /&gt;from  dba_tablespaces&lt;br /&gt;order  by TABLESPACE_NAME &lt;br /&gt;&lt;br /&gt;Coalesced Exts&lt;br /&gt;WAIT STATISTIC NOTES:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tablespace Name&lt;/strong&gt; - Name of tablespace &lt;br /&gt;&lt;strong&gt;Total Extents&lt;/strong&gt; - Total number of free extents in tablespace &lt;br /&gt;&lt;strong&gt;Extents Coalesced&lt;/strong&gt; - Total number of coalesced free extents in tablespace&lt;br /&gt;&lt;strong&gt;% Extents Coalesced &lt;/strong&gt;- Percentage of coalesced free extents in tablespace &lt;br /&gt;&lt;strong&gt;Total Bytes&lt;/strong&gt; - Total number of free bytes in tablespace &lt;br /&gt;&lt;strong&gt;Bytes Coalesced&lt;/strong&gt; - Total number of coalesced free bytes in tablespace &lt;br /&gt;&lt;strong&gt;Total Blocks&lt;/strong&gt; - Total number of free oracle blocks in tablespace &lt;br /&gt;&lt;strong&gt;Blocks Coalesced &lt;/strong&gt;- Total number of coalesced free Oracle blocks in tablespace &lt;br /&gt;&lt;strong&gt;% Blocks Coalesced&lt;/strong&gt; - Percentage of coalesced free Oracle blocks in tablespace &lt;br /&gt;&lt;br /&gt;select TABLESPACE_NAME,&lt;br /&gt; TOTAL_EXTENTS,&lt;br /&gt; EXTENTS_COALESCED,&lt;br /&gt; PERCENT_EXTENTS_COALESCED,&lt;br /&gt; TOTAL_BYTES,&lt;br /&gt; BYTES_COALESCED,&lt;br /&gt; TOTAL_BLOCKS,&lt;br /&gt; BLOCKS_COALESCED,&lt;br /&gt; PERCENT_BLOCKS_COALESCED&lt;br /&gt;from  dba_free_space_coalesced&lt;br /&gt;order  by TABLESPACE_NAME&lt;br /&gt;&lt;br /&gt;Usage&lt;br /&gt;TABLESPACE USAGE NOTES:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tablespace Name &lt;/strong&gt;- Name of the tablespace &lt;br /&gt;&lt;strong&gt;Bytes Used&lt;/strong&gt; - Size of the file in bytes &lt;br /&gt;&lt;strong&gt;Bytes Free&lt;/strong&gt; - Size of free space in bytes &lt;br /&gt;&lt;strong&gt;Largest&lt;/strong&gt; - Largest free space in bytes &lt;br /&gt;&lt;strong&gt;Percent Used&lt;/strong&gt; - Percentage of tablespace that is being used - Careful if it is more than 85% &lt;br /&gt;&lt;br /&gt;select a.TABLESPACE_NAME,&lt;br /&gt; a.BYTES bytes_used,&lt;br /&gt; b.BYTES bytes_free,&lt;br /&gt; b.largest,&lt;br /&gt; round(((a.BYTES-b.BYTES)/a.BYTES)*100,2) percent_used&lt;br /&gt;from  &lt;br /&gt; (&lt;br /&gt;  select  TABLESPACE_NAME,&lt;br /&gt;   sum(BYTES) BYTES &lt;br /&gt;  from  dba_data_files &lt;br /&gt;  group  by TABLESPACE_NAME&lt;br /&gt; )&lt;br /&gt; a,&lt;br /&gt; (&lt;br /&gt;  select  TABLESPACE_NAME,&lt;br /&gt;   sum(BYTES) BYTES ,&lt;br /&gt;   max(BYTES) largest &lt;br /&gt;  from  dba_free_space &lt;br /&gt;  group  by TABLESPACE_NAME&lt;br /&gt; )&lt;br /&gt; b&lt;br /&gt;where  a.TABLESPACE_NAME=b.TABLESPACE_NAME&lt;br /&gt;order  by ((a.BYTES-b.BYTES)/a.BYTES) desc&lt;br /&gt;&lt;br /&gt;Users Default (SYSTEM)&lt;br /&gt;SYSTEM TABLESPACE USAGE NOTES:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Username&lt;/strong&gt; - Name of the user &lt;br /&gt;&lt;strong&gt;Created &lt;/strong&gt;- User creation date &lt;br /&gt;&lt;strong&gt;Profile&lt;/strong&gt; - Name of resource profile assigned to the user &lt;br /&gt;&lt;strong&gt;Default Tablespace &lt;/strong&gt;- Default tablespace for data objects &lt;br /&gt;&lt;strong&gt;Temporary Tablespace&lt;/strong&gt; - Default tablespace for temporary objects &lt;br /&gt;&lt;br /&gt;Only SYS, SYSTEM and possibly DBSNMP should have their default tablespace set to SYSTEM. &lt;br /&gt;&lt;br /&gt;select  USERNAME,&lt;br /&gt; CREATED,&lt;br /&gt; PROFILE,&lt;br /&gt; DEFAULT_TABLESPACE,&lt;br /&gt; TEMPORARY_TABLESPACE&lt;br /&gt;from  dba_users&lt;br /&gt;order  by USERNAME&lt;br /&gt;&lt;br /&gt;Objects in SYSTEM TS&lt;br /&gt;OBJECTS IN SYSTEM TABLESPACE NOTES:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Owner - Owner of the object &lt;br /&gt;Object Name - Name of object &lt;br /&gt;Object Type - Type of object &lt;br /&gt;Tablespace - Tablespace name &lt;br /&gt;Size - Size (bytes) of object &lt;br /&gt;&lt;br /&gt;Any user (other than SYS, SYSTEM) should have their objects moved out of the SYSTEM tablespace &lt;br /&gt;&lt;br /&gt;select OWNER,&lt;br /&gt; SEGMENT_NAME,&lt;br /&gt; SEGMENT_TYPE,&lt;br /&gt; TABLESPACE_NAME,&lt;br /&gt; BYTES&lt;br /&gt;from  dba_segments&lt;br /&gt;where TABLESPACE_NAME = 'SYSTEM'&lt;br /&gt;and OWNER not in ('SYS','SYSTEM')&lt;br /&gt;order  by OWNER, SEGMENT_NAME&lt;br /&gt;&lt;br /&gt;Freespace/Largest Ext&lt;br /&gt;FREE, LARGEST, &amp; INITIAL NOTES:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tablespace&lt;/strong&gt; - Name of the tablespace &lt;br /&gt;&lt;strong&gt;Total Free Space&lt;/strong&gt; - Total amount (bytes) of freespace in the tablespace &lt;br /&gt;&lt;strong&gt;Largest Free Extent &lt;/strong&gt;- Largest free extent (bytes) in the tablespace &lt;br /&gt;&lt;br /&gt;select  TABLESPACE_NAME,&lt;br /&gt; sum(BYTES) Total_free_space,&lt;br /&gt;    max(BYTES) largest_free_extent&lt;br /&gt;from  dba_free_space&lt;br /&gt;group  by TABLESPACE_NAME&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-2103048645754155538?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/2103048645754155538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=2103048645754155538' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/2103048645754155538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/2103048645754155538'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/06/tablespace-information.html' title='Tablespace Information'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-4999643495861478653</id><published>2009-06-19T00:50:00.000-07:00</published><updated>2009-06-19T00:52:32.372-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Waits'/><category scheme='http://www.blogger.com/atom/ns#' term='Events'/><category scheme='http://www.blogger.com/atom/ns#' term='Disk I/O'/><title type='text'>Disk I/O, Events, Waits</title><content type='html'>&lt;strong&gt;Disk I/O, Events, Waits&lt;/strong&gt;&lt;br /&gt;Here are some scripts related to Disk I/O, Events, Waits .&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Datafile I/O&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;DATAFILE I/O NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;File Name&lt;/strong&gt; - Datafile name &lt;br /&gt;&lt;strong&gt;Physical Reads&lt;/strong&gt; - Number of physical reads &lt;br /&gt;&lt;strong&gt;Reads % &lt;/strong&gt;- Percentage of physical reads &lt;br /&gt;&lt;strong&gt;Physical Writes &lt;/strong&gt;- Number of physical writes &lt;br /&gt;&lt;strong&gt;Writes %&lt;/strong&gt; - Percentage of physical writes &lt;br /&gt;&lt;strong&gt;Total Block I/O's&lt;/strong&gt; - Number of I/O blocks &lt;br /&gt;&lt;br /&gt;Use this report to identify any "hot spots" or I/O contention &lt;br /&gt;&lt;br /&gt;select  NAME,&lt;br /&gt; PHYRDS "Physical Reads",&lt;br /&gt; round((PHYRDS / PD.PHYS_READS)*100,2) "Read %",&lt;br /&gt; PHYWRTS "Physical Writes",&lt;br /&gt; round(PHYWRTS * 100 / PD.PHYS_WRTS,2) "Write %",&lt;br /&gt; fs.PHYBLKRD+FS.PHYBLKWRT "Total Block I/O's"&lt;br /&gt;from (&lt;br /&gt; select  sum(PHYRDS) PHYS_READS,&lt;br /&gt;  sum(PHYWRTS) PHYS_WRTS&lt;br /&gt; from   v$filestat&lt;br /&gt; ) pd,&lt;br /&gt; v$datafile df,&lt;br /&gt; v$filestat fs&lt;br /&gt;where  df.FILE# = fs.FILE#&lt;br /&gt;order  by fs.PHYBLKRD+fs.PHYBLKWRT desc&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SGA Stats&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;SGA STAT NOTES:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Statistic Name &lt;/strong&gt;- Name of the statistic &lt;br /&gt;&lt;strong&gt;Bytes &lt;/strong&gt;- Size &lt;br /&gt;&lt;br /&gt;select  NAME,&lt;br /&gt; BYTES&lt;br /&gt;from  v$sgastat&lt;br /&gt;order by NAME&lt;br /&gt;&lt;br /&gt;Sort Stats&lt;br /&gt;SORT NOTES:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Sort Parameter&lt;/strong&gt; - Name of the sort parameter &lt;br /&gt;&lt;strong&gt;Value&lt;/strong&gt; - Number of sorts &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;sorts (memory)&lt;/strong&gt; - The number of sorts small enough to be performed entirely in sort areas without using temporary segments. &lt;br /&gt;&lt;strong&gt;sorts (disk)&lt;/strong&gt; - The number of sorts that were large enough to require the use of temporary segments for sorting. &lt;br /&gt;&lt;strong&gt;sorts (rows)&lt;/strong&gt; - Number of sorted rows &lt;br /&gt;&lt;br /&gt;The memory area available for sorting is set via the SORT_AREA_SIZE and SORT_AREA_RETAINED_SIZE init.ora parameters. &lt;br /&gt;&lt;br /&gt;select  NAME,&lt;br /&gt; VALUE&lt;br /&gt;from  v$sysstat&lt;br /&gt;where   NAME like 'sort%'&lt;br /&gt;&lt;br /&gt;All Events&lt;br /&gt;SYSTEM EVENT (ALL) NOTES:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Event Name&lt;/strong&gt; - Name of the event &lt;br /&gt;&lt;strong&gt;Total Waits &lt;/strong&gt;- Total number of waits for the event &lt;br /&gt;&lt;strong&gt;Total Timeouts &lt;/strong&gt;- Total number of timeouts for the event &lt;br /&gt;&lt;strong&gt;Time Waited&lt;/strong&gt; - The total amount of time waited for this event, in hundredths of a second &lt;br /&gt;&lt;strong&gt;Average Wait&lt;/strong&gt; - The average amount of time waited for this event, in hundredths of a second &lt;br /&gt;&lt;br /&gt;select  EVENT,&lt;br /&gt; TOTAL_WAITS,&lt;br /&gt; TOTAL_TIMEOUTS,&lt;br /&gt; TIME_WAITED,&lt;br /&gt; round(AVERAGE_WAIT,2) "Average Wait"&lt;br /&gt;from  v$system_event&lt;br /&gt;order by TOTAL_WAITS&lt;br /&gt;&lt;br /&gt;All Statistics&lt;br /&gt;SYSTEM STATISTICS (ALL) NOTES:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Stat#&lt;/strong&gt; - Number of the statistic &lt;br /&gt;&lt;strong&gt;Name&lt;/strong&gt; - Name of the statistic &lt;br /&gt;&lt;strong&gt;Class&lt;/strong&gt; - Statistic class: 1 (User), 2 (Redo), 4 (Enqueue), 8 (Cache), 16 (OS), 32 (Parallel Server), 64 (SQL), 128 (Debug) &lt;br /&gt;&lt;strong&gt;Value&lt;/strong&gt; - Value of the statistic &lt;br /&gt;&lt;br /&gt;select  STATISTIC#,&lt;br /&gt; NAME,&lt;br /&gt; CLASS,&lt;br /&gt; VALUE&lt;br /&gt;from  v$sysstat&lt;br /&gt;&lt;br /&gt;Wait Stats&lt;br /&gt;WAIT STATISTIC NOTES:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Class &lt;/strong&gt;- Class of block subject to contention &lt;br /&gt;&lt;strong&gt;Count&lt;/strong&gt; - Number of waits by this OPERATION for this CLASS of block &lt;br /&gt;&lt;strong&gt;Time&lt;/strong&gt; -Sum of all wait times for all the waits by this OPERATION for this CLASS of block &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Data Blocks&lt;/strong&gt; - Usually occurs when there are too many modified blocks in the buffer cache; reduce contention by adding DBWR processes. &lt;br /&gt;&lt;strong&gt;Free List&lt;/strong&gt; - May occur if multiple data loading programs run simultaneously. &lt;br /&gt;&lt;strong&gt;Segment Header &lt;/strong&gt;- May occur when may full table scans execute simultaneously with data loading processes; aggravated by the parallel options. Reschedule data loading jobs to reduce contention; &lt;br /&gt;&lt;strong&gt;Sort Block&lt;/strong&gt; - Rarely seen except when the Parallel Query option is used; reduce contention by reducing the degree of parallelism or decreasing the SORT_AREA_SIZE init.ora parameter setting. &lt;br /&gt;&lt;strong&gt;Undo Block &lt;/strong&gt;- Very rarely occurs; may be caused by multiple users updating records in the same data block at a very fast rate; contention can usually be resolved by increasing the PCTFREE of the tables being modified. &lt;br /&gt;&lt;strong&gt;Undo Header&lt;/strong&gt; - May occur if there are not enough rollback segments to support the number of concurrent transactions. &lt;br /&gt;&lt;br /&gt;select  CLASS,&lt;br /&gt; COUNT,&lt;br /&gt; TIME&lt;br /&gt;from   v$waitstat&lt;br /&gt;order by CLASS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-4999643495861478653?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/4999643495861478653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=4999643495861478653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/4999643495861478653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/4999643495861478653'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/06/disk-io-events-waits.html' title='Disk I/O, Events, Waits'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-2201663975741217368</id><published>2009-06-19T00:03:00.000-07:00</published><updated>2009-06-19T00:28:03.480-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General Info'/><title type='text'>General Info</title><content type='html'>&lt;strong&gt;General Info&lt;/strong&gt;&lt;br /&gt;Here are some scripts related to general database information .&lt;br /&gt;&lt;br /&gt;Database Information&lt;br /&gt;&lt;strong&gt;DATABASE INFORMATION NOTES&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Database Name&lt;/strong&gt; - Name of the database &lt;br /&gt;&lt;strong&gt;Created &lt;/strong&gt;- Date/time the database was created &lt;br /&gt;&lt;strong&gt;Log Mode&lt;/strong&gt; - Archive log mode: NOARCHIVELOG or ARCHIVELOG &lt;br /&gt;&lt;strong&gt;Checkpoint Change#&lt;/strong&gt; - Last SCN checkpointed &lt;br /&gt;&lt;strong&gt;Archive Change#&lt;/strong&gt; - Last SCN archived &lt;br /&gt;&lt;br /&gt;select  NAME,&lt;br /&gt; CREATED,&lt;br /&gt; LOG_MODE,&lt;br /&gt; CHECKPOINT_CHANGE#,&lt;br /&gt; ARCHIVE_CHANGE#&lt;br /&gt;from  v$database&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Size&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;DATAFILE NOTES&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;File Name&lt;/strong&gt; - Name of the datafile &lt;br /&gt;&lt;strong&gt;Tablespace &lt;/strong&gt;- Name of the tablespace &lt;br /&gt;&lt;strong&gt;Datafile Size &lt;/strong&gt;- Size of datafile (bytes) &lt;br /&gt;&lt;strong&gt;Bytes Used &lt;/strong&gt;- Amount of datafile used &lt;br /&gt;&lt;strong&gt;Percent Used&lt;/strong&gt; - Percent of datafile used &lt;br /&gt;&lt;strong&gt;Bytes Free&lt;/strong&gt; - Amount of datafile free &lt;br /&gt;&lt;br /&gt;select  FILE_NAME,&lt;br /&gt; d.TABLESPACE_NAME,&lt;br /&gt; d.BYTES datafile_size,&lt;br /&gt; nvl(sum(e.BYTES),0) bytes_used,&lt;br /&gt; round(nvl(sum(e.BYTES),0) / (d.BYTES), 4) * 100 percent_used,&lt;br /&gt; d.BYTES - nvl(sum(e.BYTES),0) bytes_free&lt;br /&gt;from  DBA_EXTENTS e,&lt;br /&gt; DBA_DATA_FILES d&lt;br /&gt;where   d.FILE_ID = e.FILE_ID (+)&lt;br /&gt;group   by FILE_NAME,d.TABLESPACE_NAME, d.FILE_ID, d.BYTES, STATUS&lt;br /&gt;order   by d.TABLESPACE_NAME,d.FILE_ID&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Files&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;DATABASE FILE NOTES&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Filename&lt;/strong&gt; - Name of the file(s) &lt;br /&gt;&lt;strong&gt;Location&lt;/strong&gt; - Location of the file(s) &lt;br /&gt;&lt;br /&gt;select  'Archived Log Directory' "Filename",&lt;br /&gt; value "Location"&lt;br /&gt;from  v$parameter&lt;br /&gt;where  name = 'log_archive_dest'&lt;br /&gt;UNION&lt;br /&gt;select  'Control Files' "Filename",&lt;br /&gt; value "Location"&lt;br /&gt;from  v$parameter&lt;br /&gt;where   name = 'control_files'&lt;br /&gt;UNION&lt;br /&gt;select  'Datafile' "Filename",&lt;br /&gt; name "Location"&lt;br /&gt;from    v$datafile&lt;br /&gt;UNION&lt;br /&gt;select  'LogFile Member' "Filename",&lt;br /&gt; member "Location"&lt;br /&gt;from   v$logfile&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;init.ora&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;INIT.ORA PARAMETER NOTES&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Parameter&lt;/strong&gt; - Init.ora parameter name &lt;br /&gt;&lt;strong&gt;Value&lt;/strong&gt; - Current value &lt;br /&gt;&lt;strong&gt;Is Default&lt;/strong&gt; - Whether the parameter value is the default &lt;br /&gt;&lt;strong&gt;Session Modifiable&lt;/strong&gt; - TRUE=the parameter can be changed with ALTER SESSION / FALSE=the parameter cannot be changed with ALTER SESSION &lt;br /&gt;System Modifiable - IMMEDIATE=the parameter can be changed with ALTER SYSTEM / DEFERRED=the parameter cannot be changed until the next session / FALSE=the parameter cannot be changed with ALTER SYSTEM &lt;br /&gt;Is Modified - Indicates how the parameter was modified. If an ALTER SESSION was performed, the value will be MODIFIED. If an ALTER SYSTEM (which will cause all the currently logged in sessions' values to be modified) was performed the value will be SYS_MODIFIED. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;ALWAYS_ANTI_JOIN&lt;/strong&gt; - Set the parameter to HASH to allow parallel processing of the NOT IN clause (a real resource hog). If you set the parameter to NESTED_LOOPS, the NOT IN is evaluated the same way it was as Oracle7.2 and earlier (which will not please you). MERGE uses the SORT_MERGE algorithm to process the NOT IN, which is faster than NESTED_LOOPS but not as fast as HASH.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: NULL&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: NESTED_LOOPS, MERGE, HASH &lt;br /&gt;&lt;strong&gt;COMPATIBLE&lt;/strong&gt; - This parameter specifies the release with which the Oracle Server must maintain compatibility. Set to the release of Oracle RDBMS that you are currently running to take full advantage of any new features. Allows you to use the current version while at the same time guaranteeing backward compatibility with an earlier release. This is in case it becomes necessary to revert to the earlier release. Some features of the current release may be restricted. Oracle 7.1.5 introduced the ability to bypass the buffer cache (direct reads) for table scans and sorts (COMPATIBLE=7.1.5). Oracle 7.3 introduced temporary tablespaces that improve the performance of sorts and hash joins (COMPATIBLE=7.3.1)&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: NULL&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: Any Oracle RDBMS (e.g., Oracle7.2.3) &lt;br /&gt;CONTROL_FILES - Specifies one or more names of control files, separated by commas. Oracle Corporation recommends using multiple files on different devices or mirroring the file at the OS level. &lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: OS Dependent&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: 1 - 8 filenames &lt;br /&gt;&lt;strong&gt;CURSOR_SPACE_FOR_TIME&lt;/strong&gt; - Turns waiting for application cursors on (TRUE) or off (FALSE). If it is set to TRUE, the database uses more space for cursors to save time. It affects both the shared SQL area and the client's private SQL area. Shared SQL areas are kept pinned in the shared pool when this parameter's value is TRUE. As a result, shared SQL areas are not aged out of the pool as long as there is an open cursor that references them. Because each active cursor's SQL area is present in memory, execution is faster. Because the shared SQL areas never leave memory while they are in use, however, you should set this parameter to TRUE only when the shared pool is large enough to hold all open cursors simultaneously. Setting this parameter to TRUE also retains the private SQL area allocated for each cursor between executes instead of discarding it after cursor execution. This saves cursor allocation and initialization time. &lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: FALSE&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: TRUE/FALSE &lt;br /&gt;&lt;strong&gt;DB_BLOCK_BUFFERS&lt;/strong&gt; - Sets the size, in database blocks, of the data block buffer cache in the SGA. The larger the data block buffer cache is, the more memory will be available for sharing data already in memory amoung users - reducing the need for physical reads. You can determine the effectiveness of the data block buffer cache by measuring the hit ratio of the database.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: 32 Buffers&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: 4 to unlimited &lt;br /&gt;&lt;strong&gt;DB_BLOCK_SIZE&lt;/strong&gt; - Defined when the database is created; it determines the size of each block within the database. You CANNOT change the block size of an existing database; the only method available for increasing the block size is to perform a full database Export, recreate the database with a different DB_BLOCK_SIZE value, and Import the database. In most environments, the default value for DB_BLOCK_SIZE is 2048 bytes (2KB). If you operating environment permits, you should increase the value to 4KB, 8KB, or higher. The performance gains obtained by using a larger block size are significant for both OLTP and batch applications. In general, each doubling of the database block size will reduce the time required for I/O-intensive batch operations be around 40 percent. As the database block size increases, your overall memory requirements may increase.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: OS Dependent&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: 1024-32768 &lt;br /&gt;&lt;strong&gt;DB_FILE_MULTIBLOCK_READ_COUNT&lt;/strong&gt; parameter helps determine how many blocks are read at a time by the database during full table scans. You should set the DB_BLOCK_MULTIBLOCK_READ_COUNT parameter to a value that takes the greatest advantage of the operating system's buffer during reads. For example, suppose the OS buffer available for reads is 64KB in size. If your database block size is 2KB, you should set DB_FILE_MULTIBLOCK_READ_COUNT to 32; if the block size is 4KB, set DB_FILE_MULTIBLOCK_READ_COUNT to 16. In some operating systems, the available buffer size is configurable.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: OS Dependent but usually a function of DB_BLOCK_BUFFERS and PROCESSES&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: OS Dependent (normally 1 to either the DB_BLOCK_BUFFERS / 4 or the OS maximum I/O size / DB_BLOCK_SIZE) &lt;br /&gt;DB_FILE_SIMULTANEOUS_WRITES - Number of write batches written by the database writers. If you are experiencing problems getting buffers written to your disks during checkpoints, try increasing the value. It is applicable only to the operation systems that support more than one write to your disk devices.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: 4&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: 1 to 24 &lt;br /&gt;&lt;strong&gt;DB_WRITERS&lt;/strong&gt; - Once the database block size and memory areas are properly established, tune the way in which Oracle writes data from memory. If your OS permits using multiple DBWR processes, set a value greater than '1' for the DB_WRITERS parameter. If you start more than on DBWR process, you may be able to reduce contention for blocks within the database block buffer cache. If there is only one DBWR process available, it becomes a possible bottleneck during I/O operations, even if the data is distributed among multiple devices. &lt;br /&gt;ENQUEUE_RESOURCES - An enqueue is a sophisticated locking mechanism which permits several concurrent processes to share known resources to varying degrees. Any object which can be used concurrently can be protected with enqueues. For example, Oracle allows varying levels of sharing on tables: two processes can lock a table in share mode or in share update mode.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: Derived&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: 10 - 65535 &lt;br /&gt;HASH_AREA_SIZE - This parameter specifies the maximum amount of memory, in bytes, to be used for the hash join. If this parameter is not set, its value defaults to twice the value of the SORT_AREA_SIZE parameter. You can change the value of this parameter without shutting down your Oracle instance by using the ALTER SESSION command.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: 2 times the value of SORT_AREA_SIZE&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: Any integer &lt;br /&gt;&lt;strong&gt;HASH_JOIN_ENABLED&lt;/strong&gt; - This parameter enables or disables the hash join feature. Set this parameter to TRUE to use hash joins. Set this parameter to FALSE to disable hash joins. You can change the value of this parameter without shutting down your Oracle instance by using the ALTER SESSION command.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: TRUE&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: TRUE/FALSE &lt;br /&gt;&lt;strong&gt;HASH_MULTIBLOCK_IO_COUNT&lt;/strong&gt; - This parameter specifies how many blocks a hash join reads and writes at once. When operating in multi-threaded server mode, however, this parameter is ignored (that is, the default value of 1 is used even if you set the parameter to another value). The value of DB_BLOCK_SIZE multiplied by the value of HASH_MULTIBLOCK_IO_COUNT should be less than 64 KB. This parameter strongly affects performance because it controls the number of partitions into which the input is divided. &lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: 1&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: 1 - (65,536/DB_BLOCK_SIZE) &lt;br /&gt;&lt;strong&gt;LOG_ARCHIVE_BUFFER_SIZE&lt;/strong&gt; - The size of each archival buffer, in redo log blocks (operating system blocks). The default should be adequate for most applications. This parameter, with LOG_ARCHIVE_BUFFERS, can tune archiving so that it runs as fast as necessary, but not so fast that it reduces system performance.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: OS Dependent&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: 1 - OS Dependent (in O/S blocks) &lt;br /&gt;LOG_ARCHIVE_DEST - Applicable only if using the redo log in ARCHIVELOG mode. Use a text string to specify the default location and root of the disk file or tape device when archiving redo log files. (Archiving to tape is not supported on all operating systems.) The value cannot be a raw partition. To override the destination that this parameter specifies, either specify a different destination for manual archiving or use the Server Manager command ARCHIVE LOG START filespec for automatic archiving, where filespec is the new archive destination.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: OS Dependent&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: Any valid path or device name, except raw partitions &lt;br /&gt;LOG_ARCHIVE_START - Applicable only when you use the redo log in ARCHIVELOG mode, LOG_ARCHIVE_START indicates whether archiving should be automatic or manual when the instance starts up. TRUE indicates that archiving is automatic. FALSE indicates that the DBA will archive filled redo log files manually. (The Server Manager command ARCHIVE LOG START or STOP overrides this parameter.) In ARCHIVELOG mode, if all online redo log files fill without being archived, an error message is issued, and instance operations are suspended until the necessary archiving is performed. This delay is more likely if you use manual archiving. You can reduce its likelihood by increasing the number of online redo log files.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: FALSE&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: TRUE/FALSE &lt;br /&gt;LOG_BUFFER Sets the size, in bytes, of the redo log buffer area in the SGA. The default is set to four times the maximum database block size for the OS. For an OLTP application in which many users perform transactions, the LOG_BUFFER parameter needs to be increased beyond its default value. If the 'redo log space requests' statistic in V$SYSSTAT is non-zero, you should increase LOG BUFFER to support the transaction load without forcing transactions to wait for accesses to the redo log buffer.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: OS Dependent&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: OS Dependent &lt;br /&gt;&lt;strong&gt;LOG_CHECKPOINT_INTERVAL&lt;/strong&gt; - The number of newly filled redo log file blocks needed to trigger a checkpoint. Regardless of this value, a checkpoint always occurs when switching from one online redo log file to another. If the value exceeds the actual redo log file size, checkpoints occur only when switching logs. The number of times DBWR has been notified to do a checkpoint for a given instance is shown in the cache statistic dbwr checkpoints, which is displayed in the System Statistics Monitor of the Server Manager. Additional cache statistics include background checkpoints started and background checkpoints completed.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: OS Dependent&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: Unlimited (OS blocks, not database blocks) &lt;br /&gt;&lt;strong&gt;LOG_SIMULTANEOUS_COPIES&lt;/strong&gt; - The maximum number of redo buffer copy latches available to write log entries simultaneously. For good performance, you can have up to twice as many redo copy latches as CPUs. For a single-processor system, set to zero so that all log entries are copied on the redo allocation latch. If this parameter is set to 0, redo copy latches are turned off, and the parameters LOG_ENTRY_PREBUILD_THRESHOLD and LOG_SMALL_ENTRY_MAX_SIZE are ignored. You can change the value of this parameter without shutting down your Oracle instance by using the ALTER SESSION command.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: CPU_COUNT&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: 0 - unlimited &lt;br /&gt;OPTIMIZER_MODE - When set to RULE, this parameter causes rule-based optimization to be used unless hints are specified in the query. When set to CHOOSE, the optimizer uses the cost-based approach for a SQL statement if there are statistics in the dictionary for at least one table accessed in the statement. (Otherwise, the rule-based approach is used.) You can set the goal for cost-based optimization by setting this parameter to FIRST_ROWS or ALL_ROWS. FIRST_ROWS causes the optimizer to choose execution plans that minimize response time. ALL_ROWS causes the optimizer to choose execution plans that minimize total execution time. The goal of cost-based optimization can also be set within a session by using ALTER SESSION SET OPTIMIZER_MODE. &lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: CHOOSE&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: RULE/CHOOSE/FIRST_ROWS/ALL_ROWS &lt;br /&gt;&lt;strong&gt;PARALLEL_MAX_SERVERS&lt;/strong&gt; - Each instance must either have a value of zero or the same value as the other instances. Maximum number of query servers or parallel recovery processes for an instance.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: OS Dependent&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: 0 - 256 &lt;br /&gt;&lt;strong&gt;PARALLEL_MIN_SERVERS&lt;/strong&gt; - Minimum number of query server processes for an instance. This is also the number of query server processes Oracle creates when the instance is started.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: 0&lt;br /&gt;General Info: 0 - PARALLEL_MAX_SERVERS &lt;br /&gt;General Info - For a multiple-process operation, this parameter specifies the maximum number of operating system user processes that can simultaneously connect to an Oracle7 Server. Should include up to 6 for the background processes (or more if GC_LCK_PROCS is non-zero or if you use the dispatcher configuration) plus one for login; so a value of 20 would permit 13 or 14 concurrent users. The default values of DB_FILE_MULTIBLOCK_READ_COUNT and SESSIONS are derived from PROCESSES. If you alter the value of PROCESSES, you may want to adjust the values of these derived parameters.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: 25&lt;br /&gt;General Info: 6 - OS Dependent &lt;br /&gt;&lt;strong&gt;ROLLBACK_SEGMENTS&lt;/strong&gt; - One or more rollback segments to allocate by name to this instance. If ROLLBACK_SEGMENTS is not overridden, an instance acquires all of the rollback segments named in this parameter, even if the number of rollback segments exceeds the minimum number required by the instance (calculated from the ratio TRANSACTIONS / TRANSACTIONS_PER_ROLLBACK_SEGMENT).&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: NULL (the instance uses public rollback segments by default if you do not specify this parameter&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: Any rollback segment names listed in DBA_ROLLBACK_SEGS except SYSTEM &lt;br /&gt;&lt;strong&gt;ROW_CACHE_CURSORS&lt;/strong&gt; - The number of cached recursive cursors used by the row cache manager for selecting rows from the data dictionary. The default value is sufficient for most systems.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: 10&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: 10 - 3300 &lt;br /&gt;&lt;strong&gt;SHARED_POOL_RESERVED_MIN_ALLOC&lt;/strong&gt; - This parameter controls allocation of reserved memory. Memory allocations larger than this value can allocate space from the reserved list if a chunk of memory of sufficient size is not found on the shared pool free lists. The default value is adequate for most systems. If you increase the value, then the Oracle Server will allow fewer allocations from the reserved list and will request more memory from the shared pool list. &lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: 5000&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: 5000 - SHARED_POOL_RESERVED_SIZE (in bytes) &lt;br /&gt;&lt;strong&gt;SHARED_POOL_RESERVED_SIZE &lt;/strong&gt;- This parameter controls the amount of SHARED_POOL_SIZE reserved for large allocations. SHARED_POOL_RESERVED_SIZE must be greater than SHARED_POOL_RESERVED_MIN_ALLOC to create a reserved list. The default value of 0 represents no reserved shared pool area. Ideally, this parameter should be large enough to satisfy any request scanning for memory on the reserved list without flushing objects from the shared pool. The amount of operating system memory, however, may constrain the size of the shared pool. In general, you should set SHARED_POOL_RESERVED_SIZE to 10% of SHARED_POOL_SIZE. For most systems, this value will be sufficient if you have already tuned the shared pool.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: 0&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: From SHARED_POOL_RESERVED_MIN_ALLOC to one half of SHARED_POOL_SIZE (in bytes) &lt;br /&gt;&lt;strong&gt;SHARED_POOL_SIZE&lt;/strong&gt; - Sets the size, in bytes, of the shared pool in the SGA. If your application is OLTP-oriented, and you use packages and other procedural objects, you'll need a large shared SQL area. In environments using a large number of procedural objects, the size of your shared pool may exceed your data block buffer cache. If you have many users, you should increase the SHARED_POOL_SIZE parameter everytime you increase the DB_BLOCK_BUFFERS parameter.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: 3,500,000&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: 300 Kbytes - OS Dependent &lt;br /&gt;&lt;strong&gt;SORT_AREA_RETAINED_SIZE&lt;/strong&gt; - This parameter specifies the maximum amount, in bytes, of Program Global Area (PGA) memory retained after a sort. This memory is released back to the PGA, not to the operating system, after the last row is fetched from the sort space. If a sort requires more memory, a temporary segment is allocated and the sort becomes an external (disk) sort. The maximum amount of memory to use for the sort is then specified by SORT_AREA_SIZE instead of by this parameter. Larger values permit more sorts to be performed in memory. However, multiple sort spaces of this size may be allocated. Usually, only one or two sorts occur at one time, even for complex queries. In some cases, though, additional concurrent sorts are required. Each sort occurs in its own memory area, as specified by SORT_AREA_RETAINED_SIZE.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: The value of SORT_AREA_SIZE&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: From the value equivalent to one database block to the value of SORT_AREA_SIZE &lt;br /&gt;&lt;strong&gt;SORT_AREA_SIZE&lt;/strong&gt; - This parameter specifies the maximum amount, in bytes, of Program Global Area (PGA) memory to use for a sort. After the sort is complete and all that remains to do is to fetch the rows out, the memory is released down to the size specified by SORT_AREA_RETAINED_SIZE. After the last row is fetched out, all memory is freed. The memory is released back to the PGA, not to the operating system. Increasing SORT_AREA_SIZE size improves the efficiency of large sorts. Multiple allocations never exist; there is only one memory area of SORT_AREA_SIZE for each user process at any time. The default is usually adequate for most database operations. Only if very large indexes are created might you want to adjust this parameter. For example, if one process is doing all database access, as in a full database import, then an increased value for this parameter may speed the import, particularly the CREATE INDEX statements.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: OS Dependent&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: The value equivalent to two database blocks (minimum) &lt;br /&gt;&lt;strong&gt;SORT_DIRECT_WRITES &lt;/strong&gt;- SORT_DIRECT_WRITES can improve sort performance if memory and temporary space are abundant on your system. When set to the default value of AUTO, and if the value of SORT_AREA_SIZE is greater than ten times the buffer size, SORT_DIRECT_WRITES automatically configures the SORT_WRITE_BUFFER_SIZE and SORT_WRITE_BUFFERS parameters. When SORT_DIRECT_WRITES is in AUTO mode, SORT_WRITE_BUFFERS and SORT_WRITE_BUFFER_SIZE have no effect. When SORT_DIRECT_WRITES is set to TRUE, each sort allocates additional buffers in memory to write directly to disk. When SORT_DIRECT_WRITES is set to FALSE, the sorts that write to disk write through the buffer cache.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: AUTO&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: AUTO/TRUE/FALSE &lt;br /&gt;&lt;strong&gt;SORT_READ_FAC&lt;/strong&gt; - SORT_READ_FAC is a unitless ratio that describes the amount of time to read a single database block divided by the block transfer rate. &lt;br /&gt;DEFAULT: OS Dependent &lt;br /&gt;&lt;strong&gt;SORT_WRITE_BUFFER_SIZE&lt;/strong&gt; - This parameter sets the size of the sort buffer when the SORT_DIRECT_WRITES parameter is set to TRUE. This parameter is recommended for use with symmetric replication.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: 32768&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: Any integer &lt;br /&gt;&lt;strong&gt;SORT_WRITE_BUFFERS&lt;/strong&gt; - This parameter sets the number of sort buffers when the SORT_DIRECT_WRITES parameter is set to TRUE. This parameter is recommended for use with symmetric replication.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: 2&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: Any integer &lt;br /&gt;&lt;strong&gt;SQL_TRACE&lt;/strong&gt; - Disables or enables the SQL trace facility. Setting this parameter to TRUE provides information on tuning that you can use to improve performance. Because the SQL trace facility causes system overhead, you should run the database with the value TRUE only for the purpose of collecting statistics. You can change the value of this parameter without shutting down your Oracle instance by using the ALTER SESSION command.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: FALSE&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: TRUE/FALSE &lt;br /&gt;&lt;strong&gt;TIMED_STATISTICS&lt;/strong&gt; - By default (when set to FALSE), the Server Manager statistics related to time (from the buffer manager) always are zero and the Server can avoid the overhead of requesting the time from the operating system. To turn on statistics, set the value to TRUE. Should normally be set to FALSE.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: FALSE&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: TRUE/FALSE &lt;br /&gt;&lt;strong&gt;USER_DUMP_DEST &lt;/strong&gt;- The pathname for a directory where the server will write debugging trace files on behalf of a user process.&lt;br /&gt;&lt;strong&gt;DEFAULT&lt;/strong&gt;: OS Dependent&lt;br /&gt;&lt;strong&gt;VALUES&lt;/strong&gt;: Valid local pathname, directory, or disk &lt;br /&gt;&lt;br /&gt;select NAME,&lt;br /&gt; VALUE,&lt;br /&gt; ISDEFAULT,&lt;br /&gt; ISSES_MODIFIABLE,&lt;br /&gt; ISMODIFIED&lt;br /&gt;from  v$parameter&lt;br /&gt;order   by NAME&lt;br /&gt;&lt;br /&gt;License&lt;br /&gt;LICENSE INFORMATION NOTES:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Sessions Max&lt;/strong&gt; - Maximum number of concurrent user sessions allowed for the instance. &lt;br /&gt;&lt;strong&gt;Sessions Warn &lt;/strong&gt;- Warning limit for concurrent user sessions for the instance. &lt;br /&gt;&lt;strong&gt;Sessions Current &lt;/strong&gt;- Current number of concurrent user sessions. &lt;br /&gt;&lt;strong&gt;Sessions Highwater &lt;/strong&gt;- Highest number of concurrent user sessions sine the instance started. &lt;br /&gt;&lt;strong&gt;Users Max&lt;/strong&gt; - Maximum number of named users allowed for the database. &lt;br /&gt;&lt;br /&gt;select SESSIONS_MAX,&lt;br /&gt; SESSIONS_WARNING,&lt;br /&gt; SESSIONS_CURRENT,&lt;br /&gt; SESSIONS_HIGHWATER,&lt;br /&gt; USERS_MAX&lt;br /&gt;from v$license&lt;br /&gt;&lt;br /&gt;Versions&lt;br /&gt;DATABASE PRODUCT AND VERSION NOTES:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Version number of core library components in the Oracle Server &lt;br /&gt;&lt;br /&gt;select BANNER product_versions&lt;br /&gt;from v$version&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-2201663975741217368?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/2201663975741217368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=2201663975741217368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/2201663975741217368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/2201663975741217368'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/06/general-info.html' title='General Info'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-8450794826567381190</id><published>2009-05-27T01:17:00.000-07:00</published><updated>2009-05-27T01:43:21.882-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Migrating Oracle10g DB to ASM'/><title type='text'>Migrating Oracle10g DB to ASM</title><content type='html'>&lt;strong&gt;Step By Step Instructions on Migrating Oracle10g Database to Automatic Storage management (ASM)&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Disable Block change tracking: &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; select * from v$block_change_tracking;&lt;br /&gt;&lt;br /&gt;STATUS&lt;br /&gt;----------&lt;br /&gt;FILENAME&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt; BYTES&lt;br /&gt;----------&lt;br /&gt;&lt;br /&gt;DISABLED&lt;br /&gt;&lt;br /&gt;If not disabled then, disble using this command.&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER DATABASE DISABLE BLOCK CHANGE TRACKING;&lt;br /&gt; &lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Shutdown Database Cleanly:&lt;/strong&gt;&lt;br /&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;&lt;br /&gt;SQL&gt; exit&lt;br /&gt;&lt;br /&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production&lt;br /&gt;&lt;br /&gt;With the Partitioning, OLAP and Data Mining options&lt;br /&gt;&lt;br /&gt;Create pfile and add/modify the below parameters:&lt;br /&gt;&lt;br /&gt;[oracle@node1-pub oracle]$ sqlplus "/ as sysdba" &lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 21 12:17:50 2006&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to an idle instance.&lt;br /&gt;&lt;br /&gt;SQL&gt; create pfile from spfile;&lt;br /&gt;&lt;br /&gt;File created.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Modify pfile with these parameters:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I have already created 2 ASM diskgroups DATA and FLASH.&lt;br /&gt;&lt;br /&gt;*.control_files=(+DATA, +FLASH)&lt;br /&gt;*.db_recovery_file_dest=+FLASH&lt;br /&gt;*.db_recovery_file_dest_size=2147483648&lt;br /&gt;*.db_create_file_dest=+DATA&lt;br /&gt;*.db_create_online_log_dest_1=+FLASH&lt;br /&gt;*.db_create_online_log_dest_2=+DATA -- optional if you want another online redo logs dest.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Create spfile back from modified pfile:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;PS: take a copy of original spfile before you overwrite spfile using below command. &lt;br /&gt;&lt;br /&gt;SQL&gt; create spfile from pfile;&lt;br /&gt;&lt;br /&gt;File created.&lt;br /&gt;&lt;br /&gt;SQL&gt; exit&lt;br /&gt;&lt;br /&gt;Disconnected&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Copy Database to ASM diskgroups using rman:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;(1) start the instance on NOMOUNT state&lt;br /&gt;(2) copy the controlfile from old location to ASM usin "resrore" rman command&lt;br /&gt;(3) mount the database&lt;br /&gt;(4) copy the datafiles to ASM disk group using rman "BACKUP AS COPY DATABASE" command&lt;br /&gt;(5) Switch database to COPY and open the database.&lt;br /&gt;&lt;br /&gt;[oracle@node1-pub oracle]$ $ORACLE_HOME/bin/rman&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.1.0 - Production on Fri Jul 21 10:03:10 2006&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;RMAN&gt; connect target&lt;br /&gt;connected to target database (not started)&lt;br /&gt;RMAN&gt; startup nomount&lt;br /&gt;Oracle instance started&lt;br /&gt;Total System Global Area     167772160 bytes&lt;br /&gt;Fixed Size                     1218316 bytes&lt;br /&gt;Variable Size                 83888372 bytes&lt;br /&gt;Database Buffers              79691776 bytes&lt;br /&gt;Redo Buffers                   2973696 bytes&lt;br /&gt;&lt;br /&gt;RMAN&gt; restore controlfile from '/home/oracle/oradata/db10g/control01.ctl';&lt;br /&gt;&lt;br /&gt;Starting restore at 21-JUL-06&lt;br /&gt;&lt;br /&gt;using target database control file instead of recovery catalog&lt;br /&gt;&lt;br /&gt;allocated channel: ORA_DISK_1&lt;br /&gt;&lt;br /&gt;channel ORA_DISK_1: sid=157 devtype=DISK&lt;br /&gt;&lt;br /&gt;channel ORA_DISK_1: copied control file copy&lt;br /&gt;&lt;br /&gt;output filename=+DATA/db10g/controlfile/backup.256.596369129&lt;br /&gt;&lt;br /&gt;output filename=+FLASH/db10g/controlfile/backup.256.596369131&lt;br /&gt;&lt;br /&gt;Finished restore at 21-JUL-06 &lt;br /&gt;&lt;br /&gt;RMAN&gt; startup mount&lt;br /&gt;&lt;br /&gt;database is already started&lt;br /&gt;&lt;br /&gt;database mounted&lt;br /&gt;&lt;br /&gt;released channel: ORA_DISK_1&lt;br /&gt;&lt;br /&gt;RMAN&gt; configure device type disk parallelism 4;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;new RMAN configuration parameters:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;&lt;br /&gt;new RMAN configuration parameters are successfully stored&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RMAN&gt; BACKUP AS COPY DATABASE FORMAT '+DATA';&lt;br /&gt;&lt;br /&gt;Starting backup at 21-JUL-06&lt;br /&gt;allocated channel: ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: sid=152 devtype=DISK&lt;br /&gt;allocated channel: ORA_DISK_2&lt;br /&gt;channel ORA_DISK_2: sid=151 devtype=DISK&lt;br /&gt;allocated channel: ORA_DISK_3&lt;br /&gt;channel ORA_DISK_3: sid=150 devtype=DISK&lt;br /&gt;allocated channel: ORA_DISK_4&lt;br /&gt;channel ORA_DISK_4: sid=149 devtype=DISK&lt;br /&gt;channel ORA_DISK_1: starting datafile copy&lt;br /&gt;input datafile fno=00001 name=/home/oracle/oradata/db10g/system01.dbf&lt;br /&gt;channel ORA_DISK_2: starting datafile copy&lt;br /&gt;input datafile fno=00003 name=/home/oracle/oradata/db10g/sysaux01.dbf&lt;br /&gt;channel ORA_DISK_3: starting datafile copy&lt;br /&gt;input datafile fno=00002 name=/home/oracle/oradata/db10g/undotbs01.dbf&lt;br /&gt;channel ORA_DISK_4: starting datafile copy&lt;br /&gt;input datafile fno=00004 name=/home/oracle/oradata/db10g/users01.dbf&lt;br /&gt;output filename=+DATA/db10g/datafile/undotbs1.259.596369341 tag=TAG20060721T100858 recid=2 stamp=596369352&lt;br /&gt;channel ORA_DISK_3: datafile copy complete, elapsed time: 00:00:16&lt;br /&gt;channel ORA_DISK_3: starting datafile copy&lt;br /&gt;copying current control file&lt;br /&gt;output filename=+DATA/db10g/datafile/users.260.596369341 tag=TAG20060721T100858 recid=1 stamp=596369350&lt;br /&gt;channel ORA_DISK_4: datafile copy complete, elapsed time: 00:00:20&lt;br /&gt;channel ORA_DISK_4: starting full datafile backupset&lt;br /&gt;channel ORA_DISK_4: specifying datafile(s) in backupset&lt;br /&gt;output filename=+DATA/db10g/controlfile/backup.261.596369361 tag=TAG20060721T100858 recid=3 stamp=596369364&lt;br /&gt;channel ORA_DISK_3: datafile copy complete, elapsed time: 00:00:06&lt;br /&gt;including current SPFILE in backupset&lt;br /&gt;channel ORA_DISK_4: starting piece 1 at 21-JUL-06&lt;br /&gt;channel ORA_DISK_4: finished piece 1 at 21-JUL-06&lt;br /&gt;piece handle=+DATA/db10g/backupset/2006_07_21/nnsnf0_tag20060721t100858_0.262.596369369 tag=TAG20060721T100858 comment=NONE&lt;br /&gt;channel ORA_DISK_4: backup set complete, elapsed time: 00:00:10&lt;br /&gt;output filename=+DATA/db10g/datafile/sysaux.258.596369341 tag=TAG20060721T100858 recid=4 stamp=596369390&lt;br /&gt;channel ORA_DISK_2: datafile copy complete, elapsed time: 00:01:05&lt;br /&gt;output filename=+DATA/db10g/datafile/system.257.596369339 tag=TAG20060721T100858 recid=5 stamp=596369414&lt;br /&gt;channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:21&lt;br /&gt;Finished backup at 21-JUL-06&lt;br /&gt;&lt;br /&gt;RMAN&gt; SWITCH DATABASE TO COPY;&lt;br /&gt;&lt;br /&gt;datafile 1 switched to datafile copy "+DATA/db10g/datafile/system.257.596369339"&lt;br /&gt;datafile 2 switched to datafile copy "+DATA/db10g/datafile/undotbs1.259.596369341"&lt;br /&gt;datafile 3 switched to datafile copy "+DATA/db10g/datafile/sysaux.258.596369341"&lt;br /&gt;datafile 4 switched to datafile copy "+DATA/db10g/datafile/users.260.596369341"&lt;br /&gt;RMAN&gt; alter database open;&lt;br /&gt;&lt;br /&gt;database opened&lt;br /&gt;&lt;br /&gt;RMAN&gt; exit&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Recovery Manager complete.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Migrate tempfile to ASM:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;RMAN does not migrate the tempfile as part of the BACKUP AS COPY and SWITCH command becuase the tempfile is not listed in controlfile.&lt;br /&gt;The tempfile has to be manually migrated to ASM.&lt;br /&gt;&lt;br /&gt;[oracle@node1-pub oracle]$ sqlplus "/ as sysdba"&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 21 10:12:42 2006&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production&lt;br /&gt;With the Partitioning, OLAP and Data Mining options&lt;br /&gt;&lt;br /&gt;SQL&gt; select name, bytes from v$tempfile;&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;     BYTES&lt;br /&gt;----------&lt;br /&gt;&lt;br /&gt;/home/oracle/oradata/db10g/temp01.dbf&lt;br /&gt;  20971520&lt;br /&gt;&lt;br /&gt;SQL&gt; create temporary tablespace temp1 tempfile SIZE 100M extent management local uniform size 1M;&lt;br /&gt;&lt;br /&gt;Tablespace created.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database default temporary tablespace temp1;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; drop tablespace temp including contents;&lt;br /&gt;&lt;br /&gt;Tablespace dropped.&lt;br /&gt;&lt;br /&gt;SQL&gt; create temporary tablespace temp tempfile SIZE 100M extent management local uniform size 1M;&lt;br /&gt;&lt;br /&gt;Tablespace created.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database default temporary tablespace temp;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; drop tablespace temp1 including contents;&lt;br /&gt;&lt;br /&gt;Tablespace dropped.&lt;br /&gt;&lt;br /&gt;SQL&gt; select name from v$tempfile;&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;+DATA/db10g/tempfile/temp.264.596370217&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Migrate and drop the old Online Redo Logs to ASM:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Run the below procedure to migrate the redo logs to ASM. This program is taken from OTN/metalink.&lt;br /&gt;&lt;br /&gt;SQL&gt; declare&lt;br /&gt;   cursor orlc is&lt;br /&gt;      select lf.member, l.bytes&lt;br /&gt;      from v$log l, v$logfile lf&lt;br /&gt;      where l.group# = lf.group# and&lt;br /&gt;         lf.type = 'ONLINE'&lt;br /&gt;      order by l.thread#, l.sequence#;&lt;br /&gt;   type numTab_t is table of number index by binary_integer;&lt;br /&gt;   type charTab_t is table of varchar2(1024) index by binary_integer;&lt;br /&gt;   byteslist numTab_t; namelist charTab_t;&lt;br /&gt;   procedure migrateorlfile(name IN varchar2, bytes IN number) is&lt;br /&gt;         retry number;&lt;br /&gt;         stmt varchar2(1024);&lt;br /&gt;         als varchar2(1024) := 'alter system switch logfile';&lt;br /&gt;      begin&lt;br /&gt;         select count(*) into retry from v$logfile;&lt;br /&gt;         stmt := 'alter database add logfile size ' || bytes;&lt;br /&gt;         execute immediate stmt;&lt;br /&gt;         stmt := 'alter database drop logfile ''' || name || '''';&lt;br /&gt;         for i in 1..retry loop&lt;br /&gt;            begin execute immediate stmt;&lt;br /&gt;            exit;&lt;br /&gt;            exception&lt;br /&gt;               when others then&lt;br /&gt;                if i &gt; retry then raise;&lt;br /&gt;                end if;&lt;br /&gt;             execute immediate als;&lt;br /&gt;           end;&lt;br /&gt;         end loop;&lt;br /&gt;      end;&lt;br /&gt;      begin&lt;br /&gt;      open orlc;&lt;br /&gt;      fetch orlc bulk collect into namelist, byteslist;&lt;br /&gt;      close orlc;&lt;br /&gt;      for i in 1..namelist.count loop migrateorlfile(namelist(i), byteslist(i));&lt;br /&gt;      end loop;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;  2    3    4    5    6    7    8    9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26  27   28   29   30   31   32   33   34   35   36   37   38   39   40&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;SQL&gt; SQL&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; select member from v$logfile;&lt;br /&gt;&lt;br /&gt;MEMBER&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;+FLASH/db10g/onlinelog/group_3.259.596373299&lt;br /&gt;+FLASH/db10g/onlinelog/group_2.258.596373295&lt;br /&gt;/home/oracle/oradata/db10g/redo01.log&lt;br /&gt;+FLASH/db10g/onlinelog/group_4.257.596373293&lt;br /&gt;&lt;br /&gt;SQL&gt; alter system switch logfile;&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; /&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; /&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; /&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;Re-Execute the same script again in order to migrate the remaining ones.&lt;br /&gt;&lt;br /&gt;SQL&gt; declare&lt;br /&gt;   cursor orlc is&lt;br /&gt;      select lf.member, l.bytes&lt;br /&gt;      from v$log l, v$logfile lf&lt;br /&gt;      where l.group# = lf.group# and&lt;br /&gt;         lf.type = 'ONLINE'&lt;br /&gt;      order by l.thread#, l.sequence#;&lt;br /&gt;   type numTab_t is table of number index by binary_integer;&lt;br /&gt;   type charTab_t is table of varchar2(1024) index by binary_integer;&lt;br /&gt;   byteslist numTab_t; namelist charTab_t;&lt;br /&gt;   procedure migrateorlfile(name IN varchar2, bytes IN number) is&lt;br /&gt;         retry number;&lt;br /&gt;         stmt varchar2(1024);&lt;br /&gt;         als varchar2(1024) := 'alter system switch logfile';&lt;br /&gt;      begin&lt;br /&gt;         select count(*) into retry from v$logfile;&lt;br /&gt;         stmt := 'alter database add logfile size ' || bytes;&lt;br /&gt;         execute immediate stmt;&lt;br /&gt;         stmt := 'alter database drop logfile ''' || name || '''';&lt;br /&gt;         for i in 1..retry loop&lt;br /&gt;            begin execute immediate stmt;&lt;br /&gt;            exit;&lt;br /&gt;            exception&lt;br /&gt;               when others then&lt;br /&gt;                if i &gt; retry then raise;&lt;br /&gt;                end if;&lt;br /&gt;             execute immediate als;&lt;br /&gt;           end;&lt;br /&gt;         end loop;&lt;br /&gt;      end;&lt;br /&gt;      begin&lt;br /&gt;      open orlc;&lt;br /&gt;      fetch orlc bulk collect into namelist, byteslist;&lt;br /&gt;      close orlc;&lt;br /&gt;      for i in 1..namelist.count loop migrateorlfile(namelist(i), byteslist(i));&lt;br /&gt;      end loop;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;/  2    3    4    5    6    7    8    9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26   27   28   29   30   31   32   33   34   35   36   37   38   39   40&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;SQL&gt; select member from v$logfile;&lt;br /&gt;&lt;br /&gt;MEMBER&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;+FLASH/db10g/onlinelog/group_3.259.596373619&lt;br /&gt;+FLASH/db10g/onlinelog/group_2.258.596373615&lt;br /&gt;+FLASH/db10g/onlinelog/group_1.261.596373613&lt;br /&gt;+FLASH/db10g/onlinelog/group_4.257.596373293&lt;br /&gt;+FLASH/db10g/onlinelog/group_5.260.596373609&lt;br /&gt;&lt;br /&gt;SQL&gt; exit&lt;br /&gt;&lt;br /&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production&lt;br /&gt;&lt;br /&gt;With the Partitioning, OLAP and Data Mining options&lt;br /&gt;&lt;br /&gt;DELETE THE OLD DATAFILES USING RMAN.&lt;br /&gt;&lt;br /&gt;This way, it will also clear out the datafiles entry from controlfile.&lt;br /&gt;&lt;br /&gt;[oracle@node1-pub oracle]$ $ORACLE_HOME/bin/rman&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.1.0 - Production on Fri Jul 21 11:22:33 2006&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;RMAN&gt; connect target&lt;br /&gt;&lt;br /&gt;connected to target database: DB10G (DBID=4283639931)&lt;br /&gt;&lt;br /&gt;RMAN&gt; run {&lt;br /&gt;&lt;br /&gt;2&gt; DELETE COPY OF DATABASE;&lt;br /&gt;&lt;br /&gt;3&gt; }&lt;br /&gt;&lt;br /&gt;using target database control file instead of recovery catalog&lt;br /&gt;allocated channel: ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: sid=134 devtype=DISK&lt;br /&gt;allocated channel: ORA_DISK_2&lt;br /&gt;channel ORA_DISK_2: sid=151 devtype=DISK&lt;br /&gt;allocated channel: ORA_DISK_3&lt;br /&gt;channel ORA_DISK_3: sid=153 devtype=DISK&lt;br /&gt;allocated channel: ORA_DISK_4&lt;br /&gt;channel ORA_DISK_4: sid=138 devtype=DISK&lt;br /&gt;&lt;br /&gt;List of Datafile Copies&lt;br /&gt;&lt;br /&gt;Key     File S Completion Time Ckp SCN    Ckp Time        Name&lt;br /&gt;&lt;br /&gt;------- ---- - --------------- ---------- --------------- ----&lt;br /&gt;6       1    A 21-JUL-06       461254     21-JUL-06       /home/oracle/oradata/db10g/system01.dbf&lt;br /&gt;7       2    A 21-JUL-06       461254     21-JUL-06       /home/oracle/oradata/db10g/undotbs01.dbf&lt;br /&gt;8       3    A 21-JUL-06       461254     21-JUL-06       /home/oracle/oradata/db10g/sysaux01.dbf&lt;br /&gt;9       4    A 21-JUL-06       461254     21-JUL-06       /home/oracle/oradata/db10g/users01.dbf&lt;br /&gt;&lt;br /&gt;Do you really want to delete the above objects (enter YES or NO)? YES&lt;br /&gt;&lt;br /&gt;deleted datafile copy&lt;br /&gt;datafile copy filename=/home/oracle/oradata/db10g/system01.dbf recid=6 stamp=596369439&lt;br /&gt;deleted datafile copy&lt;br /&gt;datafile copy filename=/home/oracle/oradata/db10g/undotbs01.dbf recid=7 stamp=596369439&lt;br /&gt;deleted datafile copy&lt;br /&gt;datafile copy filename=/home/oracle/oradata/db10g/sysaux01.dbf recid=8 stamp=596369440&lt;br /&gt;deleted datafile copy&lt;br /&gt;datafile copy filename=/home/oracle/oradata/db10g/users01.dbf recid=9 stamp=596369440&lt;br /&gt;Deleted 4 objects&lt;br /&gt;&lt;br /&gt;RMAN&gt; exit&lt;br /&gt;Recovery Manager complete.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;REMOVE THE OLD ONLINE REDO LOGS FILES PHYSICALLY:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;br /&gt;[oracle@node1-pub oracle]$ rm /home/oracle/oradata/db10g/redo*.log&lt;br /&gt;[oracle@node1-pub oracle]$ sqlplus "/ as sysdba"&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 21 11:29:56 2006&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production&lt;br /&gt;With the Partitioning, OLAP and Data Mining options&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Enable the block change tracking:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER DATABASE ENABLE BLOCK CHANGE TRACKING;&lt;br /&gt;Database altered.&lt;br /&gt;SQL&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-8450794826567381190?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/8450794826567381190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=8450794826567381190' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/8450794826567381190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/8450794826567381190'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/05/migrating-oracle10g-db-to-asm.html' title='Migrating Oracle10g DB to ASM'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-8547909265606628272</id><published>2009-05-26T06:33:00.000-07:00</published><updated>2009-05-26T06:58:53.479-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Install Oracle 11g RAC On Linux'/><title type='text'>Install Oracle 11g RAC On Linux</title><content type='html'>&lt;strong&gt;Step By Step Instructions on Installing Oracle 11g Clusterware Software (11.1.0.6) 32-bit on  CentOS EL 4 Update 5 x86.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This document explains the step by step process of installing Oracle 11g R (11.1.0.6) Clusterware Software.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Installing Oracle11g (11.1.0.6) Clusterware Software:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Task List:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Setting Up oracle user Environment&lt;br /&gt;Running OUI (oracle Universal Installer) to install 10g RAC Clusterware&lt;br /&gt;Verify CRS status.&lt;br /&gt;Verify Nodeapps status&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Setting Up Oracle Environment:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Add the below lines into the .bash_profile under the oracle home directory to set the CRS_HOME in the session.&lt;br /&gt;&lt;br /&gt;export CRS_HOME=/u01/app/crs&lt;br /&gt;&lt;br /&gt;Running OUI (Oracle Universal Installer) to install Oracle Clusterware:&lt;br /&gt;Complete the following steps to install Oracle Clusterware on your cluster.&lt;br /&gt;You need to run the runInstaller from ONLY ONE node (any single node in the cluster).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Start the runInstaller command as oracle user from any one node When OUI displays the Welcome page, click Next&lt;br /&gt;&lt;br /&gt;Xlib: connection to ":0.0" refused by server&lt;br /&gt;Xlib: No protocol specified&lt;br /&gt;                                                                                                                             &lt;br /&gt;Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you get the above error, please execute the below command as root and then start the runInstaller by connecting as oracle.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@node1-pub ~]# xhost +&lt;br /&gt;access control disabled, clients can connect from any host&lt;br /&gt;[root@node1-pub ~]# su - oracle&lt;br /&gt;[oracle@node1-pub ~]$ /mnt/cdrom/runInstaller&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/ShvxOd8x2oI/AAAAAAAACbo/fsttuIK30L0/s1600-h/snapshot1.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/ShvxOd8x2oI/AAAAAAAACbo/fsttuIK30L0/s320/snapshot1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340127014037871234" /&gt;&lt;/a&gt;&lt;br /&gt;        &lt;br /&gt;&lt;strong&gt;CLICK Next&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvxOEAMJpI/AAAAAAAACbg/pgY6WMhupaw/s1600-h/snapshot2.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvxOEAMJpI/AAAAAAAACbg/pgY6WMhupaw/s320/snapshot2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340127007072855698" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CLICK Next&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/ShvxNwV3u7I/AAAAAAAACbY/q4w851UJtAA/s1600-h/snapshot3.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/ShvxNwV3u7I/AAAAAAAACbY/q4w851UJtAA/s320/snapshot3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340127001795083186" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CLICK Next&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvxNz6tf8I/AAAAAAAACbQ/tsImx9QbFqo/s1600-h/snapshot4.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvxNz6tf8I/AAAAAAAACbQ/tsImx9QbFqo/s320/snapshot4.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340127002754908098" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;At this step, you shuld not receive any error. If you have configured the Pre-Installation&lt;br /&gt;steps correctly, then you will not get any errors. I get one warning here as you can see which&lt;br /&gt;is complaining about the low memory than required. I had only 512 MB ram and the required memory&lt;br /&gt;is 1GB but I would not worry about this warning and will check the status box. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CLICK Next&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/ShvxCGm9scI/AAAAAAAACbI/ptDiD2AlrNU/s1600-h/snapshot5.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/ShvxCGm9scI/AAAAAAAACbI/ptDiD2AlrNU/s320/snapshot5.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126801613926850" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have entered the fully qualified name for the public hostname and vip hostname. If you do not have registerd domain (like hingu.org)&lt;br /&gt;then, you can simply enter the nodename without having domain name appended to that.&lt;br /&gt;For example node1-pub instead of node1-pub.hingu.net&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CLICK Next&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvxCHiwSrI/AAAAAAAACbA/N83VZPvvlkI/s1600-h/snapshot6.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvxCHiwSrI/AAAAAAAACbA/N83VZPvvlkI/s320/snapshot6.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126801864706738" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Check whether the interface has correct subnetmask and type associated to it. If you have configured the&lt;br /&gt;network for all the nodes correctly as explained in Pre-Installation task, then you would not get any&lt;br /&gt;error message at this step.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CLICK Next&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/ShvxB1MWfeI/AAAAAAAACa4/S29xyDpiM6M/s1600-h/snapshot7.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/ShvxB1MWfeI/AAAAAAAACa4/S29xyDpiM6M/s320/snapshot7.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126796938903010" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Enter the filename and location (mount point) for the OCR file. In the Pre-Instalation steps, I have configured&lt;br /&gt;ocfs for this file to store. I have used the same mount point (/u02/oradata/ocr) to store them.&lt;br /&gt;I have chosen the External redundancy just for exteriment purpose. On production server, You make sure that&lt;br /&gt;you have one extra mountpoint created on separate physical device to store the morror file&lt;br /&gt;to avoid SPF (Single Point Of Failure).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CLICK Next&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvxBvEOYUI/AAAAAAAACaw/TU_BBAHN3BM/s1600-h/snapshot8.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvxBvEOYUI/AAAAAAAACaw/TU_BBAHN3BM/s320/snapshot8.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126795294204226" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Use the same mount point as OCR file and enter the filename you want for Voting Disk file.&lt;br /&gt;If you choose the External Redundancy, then you need to mention only one location.&lt;br /&gt;&lt;strong&gt;CLICK Next &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvxBbcnj0I/AAAAAAAACao/MHt5_zqLlwk/s1600-h/snapshot9.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvxBbcnj0I/AAAAAAAACao/MHt5_zqLlwk/s320/snapshot9.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126790027808578" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CLICK Next&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/ShvwxlSw7XI/AAAAAAAACag/UoNajNDBlBU/s1600-h/snapshot10.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/ShvwxlSw7XI/AAAAAAAACag/UoNajNDBlBU/s320/snapshot10.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126517792927090" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/ShvwxeLWT6I/AAAAAAAACaY/NFETbY0Ck2U/s1600-h/snapshot11.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/ShvwxeLWT6I/AAAAAAAACaY/NFETbY0Ck2U/s320/snapshot11.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126515882774434" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/ShvwxL66VoI/AAAAAAAACaQ/DKdRA9B_WP8/s1600-h/snapshot12.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/ShvwxL66VoI/AAAAAAAACaQ/DKdRA9B_WP8/s320/snapshot12.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126510981994114" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/ShvwxBUZSfI/AAAAAAAACaI/ihLsjKWYLUM/s1600-h/snapshot14.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/ShvwxBUZSfI/AAAAAAAACaI/ihLsjKWYLUM/s320/snapshot14.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126508136090098" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/Shvwwx8oqgI/AAAAAAAACaA/exyULe96r1Y/s1600-h/snapshot15.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 259px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/Shvwwx8oqgI/AAAAAAAACaA/exyULe96r1Y/s320/snapshot15.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126504009902594" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;When you execute the above scripts on all the nodes, you should get the below output.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvwfCSUn3I/AAAAAAAACZ4/rttAVgNxBIY/s1600-h/snapshot16.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 222px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvwfCSUn3I/AAAAAAAACZ4/rttAVgNxBIY/s320/snapshot16.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126199158185842" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/ShvwezC89LI/AAAAAAAACZw/ZSAqVdDQl6k/s1600-h/snapshot17.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 226px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/ShvwezC89LI/AAAAAAAACZw/ZSAqVdDQl6k/s320/snapshot17.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126195067188402" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/Shvwer1F3MI/AAAAAAAACZo/c3KNI3DSKGo/s1600-h/snapshot18.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 226px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/Shvwer1F3MI/AAAAAAAACZo/c3KNI3DSKGo/s320/snapshot18.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126193130003650" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CLICK Next&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;At the below step, the Oracle Cluster Verification Utility gets failed becuase CentOS is not a certified&lt;br /&gt;Linux OS for the 11g RAC installation. Simply Ignore this error and continue.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvweYOfXvI/AAAAAAAACZg/Kc6V3ITn4Sc/s1600-h/snapshot19.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/ShvweYOfXvI/AAAAAAAACZg/Kc6V3ITn4Sc/s320/snapshot19.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126187867823858" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CLICK Exit&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/ShvweeniZmI/AAAAAAAACZY/tan1rCXztLo/s1600-h/snapshot20.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 250px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/ShvweeniZmI/AAAAAAAACZY/tan1rCXztLo/s320/snapshot20.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5340126189583492706" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Verifying CRS status:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The below commands can be used to verify the CRS status.&lt;br /&gt;&lt;br /&gt;crsctl check crs &lt;&lt;-- for the local node&lt;br /&gt;crsctl check cluster &lt;&lt;-- for remote nodes in the cluster&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@node1-pub ~]# crsctl check crs&lt;br /&gt;Cluster Synchronization Services appears healthy&lt;br /&gt;Cluster Ready Services appears healthy&lt;br /&gt;Event Manager appears healthy&lt;br /&gt;[root@node1-pub ~]#&lt;br /&gt;&lt;br /&gt;crsctl check cluster &lt;&lt;-- for remote nodes in the cluster&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For this command to run, CSS needs to be running on the local node.&lt;br /&gt;The "ONLINE" status for remote node says that CSS is running on that node.&lt;br /&gt;When CSS is down on the remote node, the status of "OFFLINE" is displayed for that node.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@node1-pub ~]# crsctl check cluster&lt;br /&gt;node1-pub    ONLINE&lt;br /&gt;node2-pub    ONLINE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Verifying Nodeapps Status:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, verify that the nodeapps are configured and running by executing the below command.&lt;br /&gt;&lt;br /&gt;[oracle@node2-pub dbs]$ crs_stat -t&lt;br /&gt;Name           Type           Target    State     Host        &lt;br /&gt;------------------------------------------------------------ &lt;br /&gt;ora....pub.gsd application    ONLINE    ONLINE    node1-pub   &lt;br /&gt;ora....pub.ons application    ONLINE    ONLINE    node1-pub   &lt;br /&gt;ora....pub.vip application    ONLINE    ONLINE    node1-pub   &lt;br /&gt;ora....pub.gsd application    ONLINE    ONLINE    node2-pub   &lt;br /&gt;ora....pub.ons application    ONLINE    ONLINE    node2-pub   &lt;br /&gt;ora....pub.vip application    ONLINE    ONLINE    node2-pub   &lt;br /&gt;&lt;br /&gt;I can also get the same info using below series of command.&lt;br /&gt;&lt;br /&gt;srvctl config nodeapps -n node1-pub&lt;br /&gt;srvctl config nodeapps -n node2-pub&lt;br /&gt;srvctl status nodeapps -n node1-pub&lt;br /&gt;srvctl status nodeapps -n node2-pub&lt;br /&gt;&lt;br /&gt;[root@node1-pub ~]# srvctl config nodeapps -n node1-pub&lt;br /&gt;VIP exists.: /node1-vip/216.160.37.153/255.255.255.248/eth0&lt;br /&gt;GSD exists.&lt;br /&gt;ONS daemon exists.&lt;br /&gt;Listener exists.&lt;br /&gt;[root@node1-pub ~]# srvctl config nodeapps -n node2-pub&lt;br /&gt;VIP exists.: /node2-vip/216.160.37.157/255.255.255.248/eth0&lt;br /&gt;GSD exists.&lt;br /&gt;ONS daemon exists.&lt;br /&gt;Listener exists.&lt;br /&gt;[root@node1-pub ~]# srvctl status nodeapps -n node2-pub&lt;br /&gt;VIP is running on node: node2-pub&lt;br /&gt;GSD is running on node: node2-pub&lt;br /&gt;Listener is running on node: node2-pub&lt;br /&gt;ONS daemon is running on node: node2-pub&lt;br /&gt;[root@node1-pub ~]# srvctl status nodeapps -n node1-pub&lt;br /&gt;VIP is running on node: node1-pub&lt;br /&gt;GSD is running on node: node1-pub&lt;br /&gt;Listener is running on node: node1-pub&lt;br /&gt;ONS daemon is running on node: node1-pub&lt;br /&gt;[root@node1-pub ~]#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-8547909265606628272?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/8547909265606628272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=8547909265606628272' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/8547909265606628272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/8547909265606628272'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/05/install-oracle-11g-rac-on-linux.html' title='Install Oracle 11g RAC On Linux'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Veaf3lFF6Po/ShvxOd8x2oI/AAAAAAAACbo/fsttuIK30L0/s72-c/snapshot1.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-5901483481500734722</id><published>2009-05-19T03:24:00.000-07:00</published><updated>2009-05-19T03:26:47.543-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sessions RAC'/><title type='text'>Sessions RAC</title><content type='html'>Hello Everyone!!!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Displays information on all database sessions for whole RAC.&lt;/strong&gt;&lt;br /&gt;-- ----------------------------------------------------------------------------------&lt;br /&gt;SET LINESIZE 500&lt;br /&gt;SET PAGESIZE 1000&lt;br /&gt;&lt;br /&gt;COLUMN username FORMAT A15&lt;br /&gt;COLUMN machine FORMAT A25&lt;br /&gt;COLUMN logon_time FORMAT A20&lt;br /&gt;&lt;br /&gt;SELECT NVL(s.username, '(oracle)') AS username,&lt;br /&gt;       s.inst_id,&lt;br /&gt;       s.osuser,&lt;br /&gt;       s.sid,&lt;br /&gt;       s.serial#,&lt;br /&gt;       p.spid,&lt;br /&gt;       s.lockwait,&lt;br /&gt;       s.status,&lt;br /&gt;       s.module,&lt;br /&gt;       s.machine,&lt;br /&gt;       s.program,&lt;br /&gt;       TO_CHAR(s.logon_Time,'DD-MON-YYYY HH24:MI:SS') AS logon_time&lt;br /&gt;FROM   gv$session s,&lt;br /&gt;       gv$process p&lt;br /&gt;WHERE  s.paddr   = p.addr&lt;br /&gt;AND    s.inst_id = p.inst_id&lt;br /&gt;ORDER BY s.username, s.osuser;&lt;br /&gt;&lt;br /&gt;SET PAGESIZE 14&lt;br /&gt;-- ----------------------------------------------------------------------------------&lt;br /&gt;Happy Learning,&lt;br /&gt;--Sreene&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-5901483481500734722?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/5901483481500734722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=5901483481500734722' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5901483481500734722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5901483481500734722'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/05/sessions-rac.html' title='Sessions RAC'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-1680464200729055580</id><published>2009-05-19T03:19:00.000-07:00</published><updated>2009-05-19T03:22:12.817-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Monitor Memory RAC'/><title type='text'>Monitor Memory RAC</title><content type='html'>Hello Everyone!!!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Displays memory allocations for the current database sessions for the whole RAC.&lt;/strong&gt;&lt;br /&gt;-- ----------------------------------------------------------------------------------&lt;br /&gt;SET LINESIZE 200&lt;br /&gt;&lt;br /&gt;COLUMN username FORMAT A20&lt;br /&gt;COLUMN module FORMAT A20&lt;br /&gt;&lt;br /&gt;SELECT a.inst_id,&lt;br /&gt;       NVL(a.username,'(oracle)') AS username,&lt;br /&gt;       a.module,&lt;br /&gt;       a.program,&lt;br /&gt;       Trunc(b.value/1024) AS memory_kb&lt;br /&gt;FROM   gv$session a,&lt;br /&gt;       gv$sesstat b,&lt;br /&gt;       gv$statname c&lt;br /&gt;WHERE  a.sid = b.sid&lt;br /&gt;AND    a.inst_id = b.inst_id&lt;br /&gt;AND    b.statistic# = c.statistic#&lt;br /&gt;AND    b.inst_id = c.inst_id&lt;br /&gt;AND    c.name = 'session pga memory'&lt;br /&gt;AND    a.program IS NOT NULL&lt;br /&gt;ORDER BY b.value DESC;&lt;br /&gt;&lt;br /&gt;-- ----------------------------------------------------------------------------------&lt;br /&gt;Happy Learning,&lt;br /&gt;--Sreene&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-1680464200729055580?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/1680464200729055580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=1680464200729055580' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/1680464200729055580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/1680464200729055580'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/05/monitor-memory-rac.html' title='Monitor Memory RAC'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-3117548134516928484</id><published>2009-05-19T02:01:00.000-07:00</published><updated>2009-05-19T02:12:03.408-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lists all locked objects for whole RAC'/><title type='text'>Lists all locked objects for whole RAC</title><content type='html'>Hello Everyone!!!&lt;br /&gt;&lt;br /&gt;Lists all locked objects for whole RAC.&lt;br /&gt;-- ---------------------------------------------------------------------------------&lt;br /&gt;SET LINESIZE 500&lt;br /&gt;SET PAGESIZE 1000&lt;br /&gt;SET VERIFY OFF&lt;br /&gt;&lt;br /&gt;COLUMN owner FORMAT A20&lt;br /&gt;COLUMN username FORMAT A20&lt;br /&gt;COLUMN object_owner FORMAT A20&lt;br /&gt;COLUMN object_name FORMAT A30&lt;br /&gt;COLUMN locked_mode FORMAT A15&lt;br /&gt;&lt;br /&gt;SELECT b.inst_id,&lt;br /&gt;       b.session_id AS sid,&lt;br /&gt;       NVL(b.oracle_username, '(oracle)') AS username,&lt;br /&gt;       a.owner AS object_owner,&lt;br /&gt;       a.object_name,&lt;br /&gt;       Decode(b.locked_mode, 0, 'None',&lt;br /&gt;                             1, 'Null (NULL)',&lt;br /&gt;                             2, 'Row-S (SS)',&lt;br /&gt;                             3, 'Row-X (SX)',&lt;br /&gt;                             4, 'Share (S)',&lt;br /&gt;                             5, 'S/Row-X (SSX)',&lt;br /&gt;                             6, 'Exclusive (X)',&lt;br /&gt;                             b.locked_mode) locked_mode,&lt;br /&gt;       b.os_user_name&lt;br /&gt;FROM   dba_objects a,&lt;br /&gt;       gv$locked_object b&lt;br /&gt;WHERE  a.object_id = b.object_id&lt;br /&gt;ORDER BY 1, 2, 3, 4;&lt;br /&gt;&lt;br /&gt;SET PAGESIZE 14&lt;br /&gt;SET VERIFY ON&lt;br /&gt;-- ----------------------------------------------------------------------------------&lt;br /&gt;Happy Learning,&lt;br /&gt;--Sreene&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-3117548134516928484?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/3117548134516928484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=3117548134516928484' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3117548134516928484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3117548134516928484'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/05/lists-all-locked-objects-for-whole-rac.html' title='Lists all locked objects for whole RAC'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-3954652744491523953</id><published>2009-05-06T00:48:00.000-07:00</published><updated>2009-05-06T02:33:54.941-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Concurrent Managers'/><title type='text'>Concurrent Managers</title><content type='html'>Hello Everyone!!!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Concurrent Managers&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Concurrent Manager:&lt;/strong&gt;&lt;br /&gt;It is a component of your applications concurrent processing facility that monitor and run time consuming tasks without tying up your terminal. Whenever you submit a request, such as running a report, a concurrent manager does the work for you, letting you perform many tasks simultaneously. It is a daemon program running continuously in the background for e.g. a Unix shell script&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Concurrent Process:&lt;/strong&gt;&lt;br /&gt;A task in the process of completing. Each time you submit a task, a new concurrent process is created. A concurrent process runs simultaneously with other concurrent processes (and other activities on your computer) to help you complete multiple tasks at once with no interruptions to your terminal.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Concurrent Queue:&lt;/strong&gt;&lt;br /&gt;A list of concurrent requests awaiting completion by a concurrent manager. Each concurrent manager has a queue of requests waiting in line. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Concurrent Request:&lt;/strong&gt;&lt;br /&gt;A request to complete a task for you. You issue a request whenever you submit a task, such as running a report. Once you submit a task, the concurrent manager automatically takes over for you, completing your request without further involvement from you, or interruption to your work. Concurrent managers process your request according to when you submit the request and the priority you assign to your request. If you do not assign a priority to your request, the application automatically prioritizes the request for you.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Internal Concurrent Manager&lt;/strong&gt; — The master manager is called the Internal Concurrent Manager (ICM) because it controls the behavior of all of the other managers, and because the ICM is the boss, it must be running before any other managers can be activated. The main functions of the ICM are to start up and shutdown the individual concurrent managers, and reset the other managers after one them has a failure. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Standard Manager&lt;/strong&gt; — Another important master Concurrent Manager is called the Standard Manager (SM). The SM functions to run any reports and batch jobs that have not been defined to run in any specific product manager. Examples of specific concurrent managers include the Inventory Manager, CRP Inquiry Manager, and the Receivables Tax Manager. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Conflict Resolution Manager&lt;/strong&gt; — The Conflict Resolution Manager (CRM) functions to check concurrent program definitions for incompatibility rules. However, the ICM can be configured to take over the CRM's job to resolve incompatibilities.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Identifying Oracle Process ID and Dictionaries&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The main tables or the data dictionaries of Oracle Apps are the following, using which we can query to find the status of any of the Concurrent Requests or Programs.&lt;br /&gt;FND_CONCURRENT_PROCESSES&lt;br /&gt;FND_CONCURRENT_PROGRAMS&lt;br /&gt;FND_CONCURRENT_REQUESTS &lt;br /&gt;FND_CONCURRENT_QUEUES.&lt;br /&gt;&lt;br /&gt;In order to identify a Request that is running in the Oracle Application side, we can query the FND_CONCURRENT_REQUESTS table or the V$SESSION and the V$PROCESS table. While doing this, we need the Process Id at the OS level, the Process ID at the Oracle database tier and also the Process ID at the Application tier.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Identifying a Running Process&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Session ID :&lt;/strong&gt;&lt;br /&gt;Session ID is the Identification number of the Process at the Database Side. The value for this field can be obtained by querying the V$SESSION view. This is given by the field SID.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Process ID and SPID:&lt;/strong&gt;&lt;br /&gt;The Process ID or the PID is the number of the Process at the OS level and the SPID is the identification number for the Process at the Application level. These values can be obtained by querying the V$PROCESS view.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Request ID:&lt;/strong&gt;&lt;br /&gt;Request ID is the ID of the Concurrent request or the Program that has been submitted at the Application tier. This field is denoted by the REQUEST_ID field and can be obtained by querying the FND_CONCURRENT_REQUESTS view.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;PHASE_CODE and STATUS_CODE :&lt;/strong&gt;&lt;br /&gt;These two columns gives the value of the Phase and the Status Code of the concurrent request that is running in the Application end. Some of the different Status Code and Phase code and their meanings are as follows:&lt;br /&gt;&lt;strong&gt;Phase code &lt;/strong&gt;     &lt;br /&gt; C - Completed   &lt;br /&gt; C - Completed  &lt;br /&gt; P - pending   &lt;br /&gt; R - Running   &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Status code&lt;/strong&gt;&lt;br /&gt; D - Cancelled&lt;br /&gt; C - Normal&lt;br /&gt; Q - standby  &lt;br /&gt; W - paused&lt;br /&gt;&lt;br /&gt;We can get the Oracle Process ID and the OS Process ID for a particular request that is running in the Application end by querying the FND_CONCURRENT_REQUESTS View also. The fields ORACLE_PROCESS_ID , and OS_PROCESS_ID represent the same in the FND_CONCURRENT_REQUESTS dictionary view.&lt;br /&gt;&lt;br /&gt;E.g. In order to kill a particular request that is running, we can obtain the Process ID and other details using the below mentioned SQL query .. :&lt;br /&gt;&lt;br /&gt; SQL&gt; select Phase_code,  status_code,REQUEST_ID,ORACLE_ID, ORACLE_PROCESS_ID, OS_PROCESS_ID from fnd_concurrent_requests where REQUEST_ID=&lt;Request No&gt;;&lt;br /&gt;&lt;br /&gt;After identifying the Process ID and the OS ID, we can kill the particular request or the Process using the normal OS command. E.g.. KILL &lt;Process ID&gt;.&lt;br /&gt;&lt;br /&gt;Happy Learning&lt;br /&gt;--Chandru&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-3954652744491523953?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/3954652744491523953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=3954652744491523953' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3954652744491523953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3954652744491523953'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/05/concurrent-managers.html' title='Concurrent Managers'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-3119220973363768106</id><published>2009-04-29T04:46:00.000-07:00</published><updated>2009-04-29T04:53:40.457-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Backup Recovery'/><title type='text'>Backup  Recovery</title><content type='html'>Hello Everyone!!!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Backup Recovery&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Closed Database Recovery Steps&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Restore the damaged files from backup.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; startup mount&lt;br /&gt;SQL&gt; recover database&lt;br /&gt;SQL&gt; alter database open&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Offline Tablespace Recovery Steps&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Restore the damaged files from the backup.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; startup mount&lt;br /&gt;SQL&gt; alter datafile '/u01/oradata/users01.dbf' offline;&lt;br /&gt;SQL&gt; alter tablespace users offline;&lt;br /&gt;SQL&gt; recover tablespace users;&lt;br /&gt;SQL&gt; alter tablespace users online;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Offline Datafile Recovery Steps&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Restore the damaged files from the backup.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Startup mount&lt;br /&gt;SQL&gt; alter datafile '/u01/oradata/users01.dbf' offline;&lt;br /&gt;SQL&gt; alter database open;&lt;br /&gt;SQL&gt; alter tablespace users offline;&lt;br /&gt;SQL&gt; recover datafile '/u01/oradata/users01.dbf';&lt;br /&gt;SQL&gt; alter tablespace users online;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Cancel-Based Recovery Steps&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Restore the damaged files from the backup.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; startup mount&lt;br /&gt;SQL&gt; recover database until cancel using backup controlfile ;&lt;br /&gt;SQL&gt; alter database open resetlogs&lt;br /&gt;Perform a full backup of database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Change-Based Recovery Steps&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Restore the damaged files from the backup.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;sql&gt; startup mount&lt;br /&gt;sql&gt; recover database until change 2315 using backup controlfile&lt;br /&gt;sql&gt; alter database open resetlogs&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Time-Based Recovery Steps&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Restore the damaged files from the backup.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; startup mount&lt;br /&gt;SQL&gt; recover database until time using backup controlfile ;&lt;br /&gt;SQL&gt; recover database until time '2009-01-01:12:00:00' using backup controlfile&lt;br /&gt;SQL&gt; alter database open resetlogs&lt;br /&gt;Perform a full backup of the database&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;TIPS&lt;br /&gt;System Tablespace Versus a Non-System Tablespace Recovery&lt;/strong&gt;&lt;br /&gt;-----------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;When a system data file is lost or damaged, the only way to recover&lt;br /&gt;the database is by doing a closed database recovery using RECOVER&lt;br /&gt;DATABASE command.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Checking for Files Needing Recovery&lt;/strong&gt;&lt;br /&gt;----------------------------------------------------------&lt;br /&gt;select b.name, a.error from v$recover_file a, v$datafile b&lt;br /&gt;where a.file# = b.file# ;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Happy Learning&lt;br /&gt;--Sreene&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-3119220973363768106?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/3119220973363768106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=3119220973363768106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3119220973363768106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3119220973363768106'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/backup-recovery.html' title='Backup  Recovery'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-2082853846329353906</id><published>2009-04-29T04:23:00.000-07:00</published><updated>2009-04-29T04:31:46.678-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN Setup'/><title type='text'>RMAN Setup</title><content type='html'>&lt;strong&gt;Hello Everyone!!!&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Setup RMAN User, Catalog &amp; Register&lt;/strong&gt;&lt;br /&gt;-----------------------------------------&lt;br /&gt;MAKE SURE ALL DATABASE have PASSWORD FILE&lt;br /&gt;&lt;br /&gt;sqlplus system/manager@rman &lt;&lt;__1&lt;br /&gt;&lt;br /&gt;drop user rman_TEST cascade;&lt;br /&gt;&lt;br /&gt;create user rman_TEST identified by rman_TEST&lt;br /&gt;default tablespace users&lt;br /&gt;temporary tablespace ts_temp&lt;br /&gt;quota unlimited on users&lt;br /&gt;quota unlimited on ts_temp ;&lt;br /&gt;grant connect , resource, recovery_catalog_owner to rman_TEST;&lt;br /&gt;exit&lt;br /&gt;__1&lt;br /&gt;# create the catalog&lt;br /&gt;rman catalog rman_TEST/rman_TEST@rman &lt;&lt; __2&lt;br /&gt;create catalog;&lt;br /&gt;exit&lt;br /&gt;__2&lt;br /&gt;rman target \"sys/pass9999@TEST as sysdba\" \&lt;br /&gt;catalog rman_TEST/rman_TEST@rman &lt;&lt; __3&lt;br /&gt;register database ;&lt;br /&gt;EXIT&lt;br /&gt;__3&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Full Backup Script – Hot Backup – Target DB in Archivelog Mode&lt;/strong&gt;&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;run {&lt;br /&gt;allocate channel c1 type disk;&lt;br /&gt;set limit channel c1 kbytes 500000;&lt;br /&gt;backup full&lt;br /&gt;filesperset 2&lt;br /&gt;(database format '/rman_backup/BACKUP/TEST_data_%U');&lt;br /&gt;sql "alter system archive log current";&lt;br /&gt;backup filesperset 10&lt;br /&gt;format '/rman_backup/BACKUP/TEST_arch%U'&lt;br /&gt;(archivelog all );&lt;br /&gt;release channel c1;&lt;br /&gt;}&lt;br /&gt;exit;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Incremental Backup Script&lt;/strong&gt;&lt;br /&gt;------------------------------&lt;br /&gt;resync catalog;&lt;br /&gt;change archivelog all validate;&lt;br /&gt;run{&lt;br /&gt;allocate channel c1 type 'SBT_TAPE';&lt;br /&gt;allocate channel c2 type 'SBT_TAPE';&lt;br /&gt;backup&lt;br /&gt;format '/intr/cf_t%t_s%s_p%p'&lt;br /&gt;(current controlfile);&lt;br /&gt;backup&lt;br /&gt;incremental level 0&lt;br /&gt;tag db_intr_0&lt;br /&gt;filesperset 5&lt;br /&gt;format '/intr/df_t%t_s%s_p%p'&lt;br /&gt;(database);&lt;br /&gt;sql 'alter system archive log current';&lt;br /&gt;backup&lt;br /&gt;filesperset 20&lt;br /&gt;format '/intr/rl_t%t_s%s_p%p'&lt;br /&gt;(archivelog all delete input);&lt;br /&gt;release channel c1;&lt;br /&gt;release channel c2;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Full Backup Script – To Tape&lt;/strong&gt;&lt;br /&gt;--------------------------------&lt;br /&gt;&lt;br /&gt;run {&lt;br /&gt;allocate channel t1 type 'SBT_TAPE';&lt;br /&gt;backup&lt;br /&gt;format 'db_%d_t%t_s%s_p%p'&lt;br /&gt;(database);&lt;br /&gt;sql 'alter system archive log current';&lt;br /&gt;backup&lt;br /&gt;format 'arch_%d_t%t_s%s_p%p'&lt;br /&gt;(archivelog all delete input);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Recover Specific Datafile&lt;/strong&gt;&lt;br /&gt;-----------------------------&lt;br /&gt;run&lt;br /&gt;{&lt;br /&gt;allocate channel c1 type disk;&lt;br /&gt;sql 'alter database datafile 2 offline drop';&lt;br /&gt;restore datafile 2;&lt;br /&gt;recover datafile 2;&lt;br /&gt;release channel c1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;COMPLETE RECOVERY script using current controlfile&lt;/strong&gt;&lt;br /&gt;-------------------------------------------------------&lt;br /&gt;run {&lt;br /&gt;allocate channel d1 type disk;&lt;br /&gt;restore database;&lt;br /&gt;sql 'alter database mount';&lt;br /&gt;recover database;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;INCOMPLETE RECOVERY script using backup controlfile&lt;/strong&gt;&lt;br /&gt;--------------------------------------------------------&lt;br /&gt;-- Required if there are gaps in log sequence&lt;br /&gt;&lt;br /&gt;run {&lt;br /&gt;SET UNTIL logseq = 6 thread = 1;&lt;br /&gt;allocate channel d1 type disk ;&lt;br /&gt;restore controlfile;&lt;br /&gt;restore database;&lt;br /&gt;sql 'alter database mount';&lt;br /&gt;recover database;&lt;br /&gt;sql 'alter database open resetlogs';&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;COMPLETE RECOVERY script using backup controlfile&lt;/strong&gt;&lt;br /&gt;------------------------------------------------------&lt;br /&gt;run {&lt;br /&gt;allocate channel d1 type disk;&lt;br /&gt;restore controlfile;&lt;br /&gt;restore database;&lt;br /&gt;sql 'alter database mount';&lt;br /&gt;recover database;&lt;br /&gt;sql 'alter database open resetlogs';&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;INCOMPLETE RECOVERY script using backup controlfile&lt;/strong&gt;&lt;br /&gt;--------------------------------------------------------&lt;br /&gt;-- Required if there are gaps in log sequence&lt;br /&gt;&lt;br /&gt;run {&lt;br /&gt;# recover database until specific time&lt;br /&gt;allocate channel dev1 type 'SBT_TAPE';&lt;br /&gt;set until time 'Apr 20 2003 12:15:00';&lt;br /&gt;sql "alter database mount" ;&lt;br /&gt;restore database;&lt;br /&gt;switch datafile all;&lt;br /&gt;recover database;&lt;br /&gt;sql "alter database open resetlogs";&lt;br /&gt;release channel dev1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Happy Learning&lt;br /&gt;--Sreene&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-2082853846329353906?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/2082853846329353906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=2082853846329353906' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/2082853846329353906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/2082853846329353906'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/rman-setup.html' title='RMAN Setup'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-1341740704054974916</id><published>2009-04-28T05:30:00.000-07:00</published><updated>2009-04-28T05:33:49.096-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Change hostname in Linux'/><title type='text'>Change hostname in Linux</title><content type='html'>Hello Everyone!!!&lt;br /&gt;&lt;br /&gt;First you need to find out your hostname, you can do this with&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;$ hostname &lt;br /&gt;localhost.localdomain&lt;br /&gt;$&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Edit /etc/hosts&lt;/strong&gt;&lt;br /&gt;You need to edit /etc/hosts and add a line for your host name&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;$ cat /etc/hosts&lt;br /&gt;# Do not remove the following line, or various programs&lt;br /&gt;# that require network functionality will fail.&lt;br /&gt;127.0.0.1               localhost.localdomain localhost&lt;br /&gt;$&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;My new server IP is 72.232.196.90, i need to assign it hostname server12.hosthat.com, to do this, i have edited /etc/hosts as follows.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;# Do not remove the following line, or various programs&lt;br /&gt;# that require network functionality will fail.&lt;br /&gt;127.0.0.1               localhost.localdomain localhost&lt;br /&gt;72.232.196.90           server12.hosthat.com server12&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Edit /etc/sysconfig/network&lt;/strong&gt;&lt;br /&gt;First lets see what is in the file&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;$ cat /etc/sysconfig/network&lt;br /&gt;NETWORKING=yes&lt;br /&gt;HOSTNAME=localhost.localdomain&lt;br /&gt;$&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To change servers hostname to server12.hosthat.com, change the file as follows.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;$ cat /etc/sysconfig/network&lt;br /&gt;NETWORKING=yes&lt;br /&gt;HOSTNAME=server12.hosthat.com&lt;br /&gt;$&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Now you need to reboot the server to change the hostname.&lt;br /&gt;&lt;br /&gt;Happy Learning&lt;br /&gt;--Sreene&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-1341740704054974916?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/1341740704054974916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=1341740704054974916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/1341740704054974916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/1341740704054974916'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/change-hostname-in-linux.html' title='Change hostname in Linux'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-5808773449328256520</id><published>2009-04-22T04:57:00.000-07:00</published><updated>2009-04-22T04:59:03.773-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='R12:Major changes from 11i'/><title type='text'>R12:Major changes from 11i</title><content type='html'>&lt;strong&gt;Technology Stack components&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Hello Everyone!!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Major changes from 11i&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/Se8AV9yvOFI/AAAAAAAACZQ/0-0bMjZzfus/s1600-h/1.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 154px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/Se8AV9yvOFI/AAAAAAAACZQ/0-0bMjZzfus/s320/1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5327477261567211602" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Release 11i – 11.5.10.2&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/Se8AVoWvAsI/AAAAAAAACZI/ItGGYVZziwk/s1600-h/2.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 172px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/Se8AVoWvAsI/AAAAAAAACZI/ItGGYVZziwk/s320/2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5327477255812612802" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Release 12&lt;/strong&gt; &lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/Se8AVi3npSI/AAAAAAAACZA/xTIdQ6Tm1gw/s1600-h/3.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 172px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/Se8AVi3npSI/AAAAAAAACZA/xTIdQ6Tm1gw/s320/3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5327477254339929378" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/Se8AVTQ0QMI/AAAAAAAACY4/KUyNWvkf8-U/s1600-h/4.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 203px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/Se8AVTQ0QMI/AAAAAAAACY4/KUyNWvkf8-U/s320/4.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5327477250150645954" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Client Tier &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1)R12 Replaces Jinitiator (oajinit.exe)&lt;br /&gt;2)Sun’s 1.5 Java Runtime Environment (JRE)&lt;br /&gt;3)Repacked into oaj2se.exe &lt;br /&gt;4)Netscape support for Applications and ADI&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Database Tier&lt;/strong&gt;&lt;br /&gt;1)10g Release 2 ORACLE_HOME&lt;br /&gt;2)Oracle Database (Enterprise Edition)&lt;br /&gt;3)XDK -Database&lt;br /&gt;4)XDB - Database&lt;br /&gt;5)Workflow&lt;br /&gt;6)InterMedia option&lt;br /&gt;7)Spatial option&lt;br /&gt;8)Data Mining option&lt;br /&gt;9)JDK 5.0 to support Autoconfig&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Application Tier&lt;/strong&gt;&lt;br /&gt;1)OracleAS 10g 10.1.2 for Forms &amp; Reports Services&lt;br /&gt;Replaces the 8.0.6-based Oracle_Home&lt;br /&gt;&lt;br /&gt;2)OracleAS 10g 10.1.3 for Oracle Containers for Java (OC4J)&lt;br /&gt;Replaces the 8.1.7-based Oracle_Home provided by iAS 1.0.2.2 in 11i &lt;br /&gt;&lt;br /&gt;3)JDBC 10.2&lt;br /&gt;&lt;br /&gt;4)JDK 1.5 for web &amp; concurrent processing&lt;br /&gt;&lt;br /&gt;5)Servlet Container: JServ -&gt; OC4J(OC4J is Oracles J2EE container)&lt;br /&gt;&lt;br /&gt;6)Apache: 1.3.19 -&gt; 1.3.31 &lt;br /&gt;&lt;br /&gt;7)Forms/Reports: 6i -&gt; 10g &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Application Server 10.1.3&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1)The Java Oracle Home&lt;br /&gt;2)HTTP Listener&lt;br /&gt;3)Oracle  Containers for J2EE (OC4J)&lt;br /&gt;4)Oracle Process Manager and Notification Server&lt;br /&gt;5)Application Server Control (ASControl)&lt;br /&gt;6)JDK 5.0&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Application Server 10.1.2&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1)The Forms or ‘C’ Oracle Home&lt;br /&gt;2)Forms and Reports&lt;br /&gt;3)Delivers native runtime executables for&lt;br /&gt;Forms (frmweb)&lt;br /&gt;Reports (rwrun) &lt;br /&gt;4)No relinking of native executables. User exists (Applications C Code) is now dynamically linked at runtime.&lt;br /&gt;5)10.1 Required Support Files (RSF’s)&lt;br /&gt;&lt;br /&gt;Happy Learning&lt;br /&gt;--Sreene&lt;br /&gt;Oracle Apps DBA&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-5808773449328256520?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/5808773449328256520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=5808773449328256520' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5808773449328256520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5808773449328256520'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/r12major-changes-from-11i.html' title='R12:Major changes from 11i'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Veaf3lFF6Po/Se8AV9yvOFI/AAAAAAAACZQ/0-0bMjZzfus/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-5868635563085541561</id><published>2009-04-20T11:29:00.000-07:00</published><updated>2009-04-20T11:50:11.298-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Clone Apps 11i Instance'/><title type='text'>Clone Apps 11i Instance</title><content type='html'>&lt;strong&gt;11i Cloning&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;STEP :1&lt;/strong&gt;&lt;br /&gt;Oracle Universal Installer  2.2.0.19 &lt;br /&gt;Perl  5.005&lt;br /&gt;JRE 1.1.8&lt;br /&gt;JRE 1.3.1&lt;br /&gt;JDK 1.3.1&lt;br /&gt;Zip 2.3&lt;br /&gt;OS utilities &lt;br /&gt;OS utilities &lt;br /&gt;(see 11i Install Manual) must be in &lt;br /&gt;the the PATH when running adcfgclone.pl&lt;br /&gt;(Unix: make,ld,cc,ar - Windows: gnumake,link,cc,cmd) &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;STEP: 2&lt;/strong&gt;&lt;br /&gt;Apply the Rapid Clone patch&lt;br /&gt;3453499 in the Application Tier Administration node (as the APPLMGR user):&lt;br /&gt;          o Log in to the APPL_TOP environment (source the environment file)&lt;br /&gt;          o Create appsutil.zip file&lt;br /&gt;            perl AD_TOP/bin/admkappsutil.pl&lt;br /&gt;          o This will create appsutil.zip in $APPL_TOP/admin/out&lt;br /&gt;&lt;br /&gt;    * On the Database Tier (as the ORACLE user):&lt;br /&gt;&lt;br /&gt;          o Copy or FTP the appsutil.zip file to the &lt;RDBMS ORACLE_HOME&gt;&lt;br /&gt;          o cd RDBMS ORACLE_HOME&lt;br /&gt;            unzip -o appsutil.zip&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;STEP :3&lt;/strong&gt;&lt;br /&gt;Clone Oracle Applications 11i&lt;br /&gt;&lt;br /&gt;Prepare the source system database tier for cloning&lt;br /&gt;Log on to the source system as the ORACLE user and run the following commands:&lt;br /&gt;         cd RDBMS ORACLE_HOME/appsutil/scripts/CONTEXT_NAME&lt;br /&gt;         perl adpreclone.pl dbTier&lt;br /&gt;&lt;br /&gt;Prepare the source system application tier for cloning&lt;br /&gt;Log on to the source system as the APPLMGR user and run the following commands on each node that contains an APPL_TOP:&lt;br /&gt;         cd COMMON_TOP/admin/scripts/CONTEXT_NAME&lt;br /&gt;         perl adpreclone.pl appsTier &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;STEP :4&lt;/strong&gt;&lt;br /&gt;Copy the Source System to the Target System&lt;br /&gt;Copy the application tier file system&lt;br /&gt;&lt;br /&gt;APPL_TOP&lt;br /&gt;OA_HTML&lt;br /&gt;OA_JAVA&lt;br /&gt;OA_JRE_TOP&lt;br /&gt;COMMON_TOP&gt;/util&lt;br /&gt;COMMON_TOP&gt;/clone&lt;br /&gt;COMMON_TOP&gt;/_pages  (when this directory exists)&lt;br /&gt;806 ORACLE_HOME&lt;br /&gt;iAS ORACLE_HOME &lt;br /&gt;&lt;br /&gt;Copy the database tier file system&lt;br /&gt;&lt;br /&gt;# Copy the database (DBF) files from the source to the target system&lt;br /&gt;# Copy the source database ORACLE_HOME to the target system &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;STEP : 5&lt;/strong&gt;&lt;br /&gt;Configure the Target System&lt;br /&gt;&lt;br /&gt;Configure the target system database server&lt;br /&gt;Log on to the target system as the ORACLE user and type the following commands to configure and start the database:&lt;br /&gt;         cd RDBMS ORACLE_HOME/appsutil/clone/bin&lt;br /&gt;         perl adcfgclone.pl dbTier&lt;br /&gt;&lt;br /&gt;Configure the target system application tier server nodes&lt;br /&gt;Log on to the target system as the APPLMGR user and type the following commands:&lt;br /&gt;         cd COMMON_TOP/clone/bin&lt;br /&gt;         perl adcfgclone.pl appsTier&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;STEP  &lt;/strong&gt;:6&lt;br /&gt;Finishing Task&lt;br /&gt;1. Update profile options&lt;br /&gt;2. Update printer settings (If printers are not configured or you don't want to use printer you can skip this step)&lt;br /&gt;3. Update workflow configuration settings (Important)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For detailed steps check Metalink Note # 230672.1&lt;br /&gt;&lt;br /&gt;Happy Learning&lt;br /&gt;--Sreene&lt;br /&gt;Oracle Apps DBA&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-5868635563085541561?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/5868635563085541561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=5868635563085541561' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5868635563085541561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5868635563085541561'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/clone-apps-11i-instance.html' title='Clone Apps 11i Instance'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-5628390979816125597</id><published>2009-04-17T05:09:00.000-07:00</published><updated>2009-04-17T05:15:58.937-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Upgrading 9i to 10g with 11i'/><title type='text'>Upgrading 9i to 10g with 11i</title><content type='html'>&lt;strong&gt;Upgrading 9i (9.2.0.6) to 10g (10.1.0.5) with 11i (11.5.10.2) Applications&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Installation Steps&lt;br /&gt;&lt;br /&gt;Before Upgrade&lt;br /&gt;&lt;br /&gt;1. Take a Cold backup of Oracle Home 9.2.0.6 and Oracle Database after shutting down  all Processes and Database.&lt;br /&gt;&lt;br /&gt;2. Apply  Interoperobility patch for 11.5.10 4335078.&lt;br /&gt;2. Apply Auto Config patch (5478710)&lt;br /&gt;3. Gather Optimizer Statistics Before the Upgrade using the scripts below.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note&lt;/strong&gt;: This script must be run connected AS SYSDBA using SQL*Plus.&lt;br /&gt;&lt;br /&gt;SCRIPT #1&lt;br /&gt;---------&lt;br /&gt;spool gdict&lt;br /&gt;&lt;br /&gt;grant analyze any to sys;&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('WMSYS',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('MDSYS',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('CTXSYS',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('XDB',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('WKSYS',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('LBACSYS',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('OLAPSYS',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('DMSYS',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('ODM',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('ORDSYS',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('ORDPLUGINS',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('SI_INFORMTN_SCHEMA',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('OUTLN',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('DBSNMP',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('SYSTEM',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;exec dbms_stats.gather_schema_stats('SYS',options=&gt;'GATHER', estimate_percent =&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt =&gt; 'FOR ALL COLUMNS SIZE AUTO', cascade =&gt; TRUE);&lt;br /&gt;&lt;br /&gt;spool off&lt;br /&gt;-----------------------  End of script #1 -----------------------&lt;br /&gt;&lt;br /&gt;4. SCRIPT #2&lt;br /&gt;--  &lt;br /&gt;This script creates the stats table, 'dictstattab' and exports the stats for the RDBMS component schemas into it. The export will give error if a particular component schema does not exist in the database. This can happen if a component is not installed or if it is invalid.&lt;br /&gt;--&lt;br /&gt;-- This will be useful incase you want to import the stats back&lt;br /&gt;-- example:&lt;br /&gt;-- Following stmt imports the stats for SYS schema after&lt;br /&gt;-- deleting the existing stats.&lt;br /&gt;-- exec dbms_stats.delete_schema_stats('SYS');&lt;br /&gt;-- exec dbms_stats.import_schema_stats('SYS','dictstattab');&lt;br /&gt;&lt;br /&gt;spool sdict&lt;br /&gt;grant analyze any to sys;&lt;br /&gt;exec dbms_stats.create_stat_table('SYS','dictstattab');&lt;br /&gt;&lt;br /&gt;exec dbms_stats.export_schema_stats('WMSYS','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('MDSYS','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('CTXSYS','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('XDB','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('WKSYS','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('LBACSYS','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('OLAPSYS','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('DMSYS','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('ODM','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('ORDSYS','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('ORDPLUGINS','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('SI_INFORMTN_SCHEMA','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('OUTLN','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('DBSNMP','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('SYSTEM','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;exec dbms_stats.export_schema_stats('SYS','dictstattab',statown =&gt; 'SYS');&lt;br /&gt;&lt;br /&gt;spool off&lt;br /&gt;&lt;br /&gt;-----------------------  End of script #2 -----------------------&lt;br /&gt;&lt;br /&gt;Note:  You can ignore the following errors:&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-20000: Schema WMSYS does not exist or insufficient privileges to analyze an&lt;br /&gt;ORA-20000: Schema XDB does not exist or insufficient privileges to analyze an&lt;br /&gt;ORA-20000: Schema WKSYS does not exist or insufficient privileges to analyze an&lt;br /&gt;ORA-20000: Schema LBACSYS does not exist or insufficient privileges to analyze&lt;br /&gt;ORA-20000: Schema DMSYS does not exist or insufficient privileges to analyze an&lt;br /&gt;ORA-20000: Schema SI_INFORMTN_SCHEMA does not exist or insufficient privileges&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Database Installation&lt;/strong&gt;&lt;br /&gt;1. Log in as the Oracle user &lt;br /&gt;&lt;br /&gt;2. Prepare to create the 10.2.0 Oracle Home.  &lt;br /&gt;&lt;br /&gt;Decide where you want to install the 10.2.0 Oracle Home on the database server node.  It must be in a different directory than the current Oracle Home.&lt;br /&gt;&lt;br /&gt;Example : &lt;br /&gt;$ cd  /ebis/proddb&lt;br /&gt;$ mkdir 10.2.0 &lt;br /&gt;&lt;br /&gt;3. Install Oracle10G Release 10.2.0.1 Database Server. Do not run any migrate scripts at this time&lt;br /&gt;&lt;br /&gt;The environment variables DISPLAY, TEMP, TMPDIR, TMP should be set before installing and any reference to the 8.0.6 or 9.2.0 Oracle Homes in the path or environment variables should be removed.  OR Remove .env entry from the .profile from oracle user.&lt;br /&gt;&lt;br /&gt;(Remove sourcing of environment file from Oracle user profile and login again. Run xhost + as root user)&lt;br /&gt;&lt;br /&gt;Install Server Version 10.1.0.2&lt;br /&gt;&lt;br /&gt;Note: This may differ slightly from your prompts depending on the installation media.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;  $ . runInstaller&lt;br /&gt; Check "Advanced Installation" checkbox on the “Welcome” screen&lt;br /&gt; Click the [Next] button &lt;br /&gt; Choose a new ORACLE_HOME Name (i.e. APPS10G_&lt;SID&gt;)&lt;br /&gt; Verify the location of the Oracle Home&lt;br /&gt; Click the [Next] button&lt;br /&gt; Click the [Next] button to accept the “Enterprise Edition” installation&lt;br /&gt; Review the success of "Product Specific Pre-requisites"&lt;br /&gt; Click the [Next] button&lt;br /&gt;&lt;br /&gt; Note: You will not be upgrading an existing Database at this time&lt;br /&gt; Choose the “Do not create a starter Database” radio button&lt;br /&gt; Click the [next] button&lt;br /&gt; Click the [Install] button at the “Summary” screen&lt;br /&gt; Run the “root.sh” scripts when prompted&lt;br /&gt; Click [Ok] to continue after running the script&lt;br /&gt; Click ‘Exit’ to acknowledge the end of installation&lt;br /&gt; Click the (yes] button leave the installer &lt;br /&gt;THEN INSTALL THE COMPANIAN CD&lt;br /&gt;./runinstaller&lt;br /&gt;SELECT THE SAME ORACLE HOME (10g oracle home)&lt;br /&gt;Select 10g products à next&lt;br /&gt;Run root.sh&lt;br /&gt;Finish the installations.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;PATCH SET 10.1.0.5 INSTALLATION&lt;/strong&gt;&lt;br /&gt;a) Set the environment&lt;br /&gt;b) Set .profile OR&lt;br /&gt;&lt;br /&gt;  export ORACLE_SID=PROD&lt;br /&gt;  export ORACLE_HOME=&lt;10.1.0 ORACLE_HOME&gt;&lt;br /&gt;  export PERL5LIB=$ORACLE_HOME/perl/lib/5.8.3&lt;br /&gt;  export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH&lt;br /&gt;c) Unzip the patch in $ORACLE_HOME&lt;br /&gt;d) CD Disk1&lt;br /&gt;e) ./runinstaller&lt;br /&gt;f) run root.sh&lt;br /&gt;g) Create nls/data/9idata directory &lt;br /&gt;&lt;br /&gt;On the database server node, as the owner of the Oracle RDBMS file system and database instance, run the $ORACLE_HOME/nls/data/old/cr9idata.pl script to create the $ORACLE_HOME/nls/data/9idata directory. &lt;br /&gt;&lt;br /&gt;After creating the directory, make sure that the ORA_NLS10 environment variable is set to the full path of the 9idata directory whenever you perform steps involving the 10g Oracle home. &lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;  export ORACLE_SID=PROD&lt;br /&gt;  export ORACLE_HOME=&lt;10.1.0 ORACLE_HOME&gt;&lt;br /&gt;  export PERL5LIB=$ORACLE_HOME/perl/lib/5.8.3&lt;br /&gt;  export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH&lt;br /&gt; &lt;br /&gt;h) &lt;br /&gt;i)  cd $ORACLE_HOME/nls/data/old&lt;br /&gt;  perl cr9idata.pl&lt;br /&gt;&lt;br /&gt;The following will message appear:&lt;br /&gt;Please reset environment variable ORA_NLS10 to /ebis/proddb/10.2.0/nls/data/9idata!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Prepare to Upgrade&lt;br /&gt;1.Check the free space on the SYSTEM tablespace.  There should be at least 500MB of free  space. Temporary tablespace 2GB&lt;br /&gt;&lt;br /&gt;  $ sqlplus system/manager&lt;br /&gt;&lt;br /&gt;  select nvl(sum(bytes)/1024,0) as "System Tablespace Avail(KB)"&lt;br /&gt;  from dba_free_space&lt;br /&gt;  where tablespace_name like '%SYSTEM%';&lt;br /&gt;&lt;br /&gt;Note: If it is necessary to add a Datafile use a statement similar to the following:&lt;br /&gt;  ALTER TABLESPACE system&lt;br /&gt;  ADD DATAFILE '/apps2/oracle/proddata/system07.dbf'&lt;br /&gt;  SIZE 750M&lt;br /&gt;  AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED;&lt;br /&gt;&lt;br /&gt;Apply OPATCH 2617419&lt;br /&gt;Create soft link &lt;br /&gt;Ln –s /usr/sbin/fuser /sbin/fuser&lt;br /&gt;Unzip the patch into $ORACLE_HOME&lt;br /&gt;&lt;br /&gt;APPLY PATCH 4605877&lt;br /&gt;DON’T PERFORM SPECIAL INSTRUCTION IN SPECIFIED IN THE PATCH README.&lt;br /&gt;&lt;br /&gt;SHUTDOWN THE OLD (9I)LISTENER &lt;br /&gt;NOTE: Database should be up and running.&lt;br /&gt;CREATE 10G LISTENER&lt;br /&gt;Netca&lt;br /&gt;Give the same instance name as PROD and port as same port.&lt;br /&gt;Upgrade the Database&lt;br /&gt;1.Shutdown all processes running out of the 9.2.0.6 ORACLE_HOME&lt;br /&gt;2.only the database shold be UP and Running.&lt;br /&gt;&lt;br /&gt;2.Set your environment variables&lt;br /&gt;  export ORACLE_SID=VIS&lt;br /&gt;  export ORACLE_HOME=/apps/visdb/10.1.0&lt;br /&gt;  export PERL5LIB=$ORACLE_HOME/perl/lib/5.8.3&lt;br /&gt;  export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH&lt;br /&gt;&lt;br /&gt;3.Start the Database Upgrade Assistant&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;  dbua&lt;br /&gt;  Click the [next) button&lt;br /&gt;  Select the Database to upgrade&lt;br /&gt;  Click the [next) button&lt;br /&gt;  Choose the size for the SYSAUX tablespace&lt;br /&gt;  [ We recommend that you use 500 MB as the SYSAUX tablespace size. Set autoextend on for the SYSAUX tablespace.]  after upgrade it will take around 7-8 GB depends on your DB size. Please make sure you have sufficient space in that directory.&lt;br /&gt;  Click the [next) button&lt;br /&gt;  Remove the check for the option to “Recompile Invalid Objects”.  This will be during at a later step. If you want the dbua compiles your invalid objects then check the check box(but it will take time to10hr)&lt;br /&gt;  Click the [next) button&lt;br /&gt;  Decide on you “Backup” strategy&lt;br /&gt;  Click the [next) button&lt;br /&gt;  Decide on your Management Options&lt;br /&gt;  Click the [next) button&lt;br /&gt;  Review the “Summary” screen&lt;br /&gt;  Click the (Finish) button&lt;br /&gt;  You may disable the compilation of objects as that is done at a later step. &lt;br /&gt;  Click the (Ok) button to acknowledge completion of the upgrade&lt;br /&gt;  Review the upgrade results&lt;br /&gt;  Decide on your option to configure “Database Passwords”&lt;br /&gt;  Decide on your option to “Restore the Database” if you are not satisfied with your upgrade results.&lt;br /&gt;  Click the (Close) button to end the upgrade&lt;br /&gt;&lt;br /&gt;Note: The following changes are noted in the summary:&lt;br /&gt;&lt;br /&gt;   A spfile&lt;SID&gt;.ora is created&lt;br /&gt;   Large_pool_size = 8388608&lt;br /&gt;   Shared_pool_size was changed from 301989888 to 335544320&lt;br /&gt;   The following parameters were removed:&lt;br /&gt;   -  optimizer_max_permutations&lt;br /&gt;   -  row_locking&lt;br /&gt;   -  undo_supress_errors&lt;br /&gt;   -  max_enabled_roles&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Adjust the Database parameters&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. Alter Database parameters as suggested in Note: 216205.1 &lt;br /&gt;New initPROD.ora file will be available in 10.2.0.1 ORACLE_HOME/dbs directory. &lt;br /&gt;Make the below changes in the initPROD.ora and restart the 10.2.0.1 database.&lt;br /&gt;2.Modify the location of the DUMP files&lt;br /&gt;&lt;br /&gt;  a)  Create the new locations for the dump files&lt;br /&gt;&lt;br /&gt;  b) Alter the dump locations&lt;br /&gt;&lt;br /&gt;3.Modify the location of the directory for UTL_FILE_DIR&lt;br /&gt;&lt;br /&gt;  a)  Create the new locations for UTL_FILE_DIR secondary directory&lt;br /&gt;&lt;br /&gt;    cd $ORACLE_HOME/appsutil &lt;br /&gt;     mkdir outbound&lt;br /&gt;     mkdir &lt;CONTEXT_NAME&gt;&lt;br /&gt;&lt;br /&gt;  b)  Alter the UTL_FILE_DIR secondary location&lt;br /&gt;     &lt;br /&gt;&lt;br /&gt;4.Run utlrp to compile Invalid Objects&lt;br /&gt;&lt;br /&gt;The utlrp.sql script recompiles all existing PL/SQL modules that were previously in an INVALID state, such as packages, procedures, types and so on.  These actions are optional; however, they ensure that the cost of recompilation is incurred during installation rather that in the future.&lt;br /&gt;&lt;br /&gt;To run the utlrp.sql script, complete the following steps:&lt;br /&gt;a) Change to the ORACLE_HOME/rdbms/admin directory.&lt;br /&gt;b) Login as a user with SYSDBA privileges.  &lt;br /&gt;c) Run the utlrp.sql&lt;br /&gt;&lt;br /&gt;Note: This scripts will take several hours to run&lt;br /&gt;&lt;br /&gt;7. Check for Installation of Oracle XML DB&lt;br /&gt;select count(1) from dba_registry where comp_id='XDB';&lt;br /&gt;After the Database upgrade&lt;br /&gt;Gather statistics for SYS schema for this the free temporary tablespace should be more give 6 to 8gb&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;  $ sqlplus "/ as sysdba"&lt;br /&gt;  SQL&gt; shutdown normal;&lt;br /&gt;  SQL&gt; startup restrict;&lt;br /&gt;  SQL&gt; @adstats.sql &lt;br /&gt;  SQL&gt; shutdown normal;&lt;br /&gt;  SQL&gt; startup; &lt;br /&gt;  SQL&gt; exit;&lt;br /&gt;Start the New Database listener.&lt;br /&gt;&lt;br /&gt;Migrate the 9.2.0.6 CONTEXT_NAME directory to the 10.2.0 network/admin directory&lt;br /&gt;Modify the listener.ora, tnsnames.ora and sqlnet.ora to replace the 9.2.0 references with 10.2.0&lt;br /&gt;&lt;br /&gt; Setup the environment&lt;br /&gt;&lt;br /&gt;  export TNS_ADMIN=/apps/visdb/10.1.0/network/admin/&lt;CONTEXT NAME&gt;&lt;br /&gt;  export ORACLE_SID=PROD&lt;br /&gt;  export ORACLE_HOME=/ebis/proddb/10.1.0&lt;br /&gt;  export PERL5LIB=$ORACLE_HOME/perl/lib/5.8.3&lt;br /&gt;  export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH&lt;br /&gt;  lsnrctl start &lt;SID&gt;&lt;br /&gt;&lt;br /&gt;Run adgrants.sql (Conditional)&lt;br /&gt;If you have at least AD.I or Applications release 11.5.10 installed on your system, copy $APPL_TOP/admin/adgrants.sql from the administration server node to the database server node. Use SQL*Plus to connect to the database as SYSDBA and run the script using the following command:&lt;br /&gt;&lt;br /&gt;  sqlplus "/ as sysdba" @adgrants.sql &lt;APPLSYS schema name&gt;&lt;br /&gt;&lt;br /&gt;Grant create procedure privilege on CTXSYS &lt;br /&gt;&lt;br /&gt;From the administration server node, use SQL*Plus to connect to the database as APPS and run the following command: &lt;br /&gt;&lt;br /&gt;  sqlplus apps/&lt;APPS password&gt; @$AD_TOP/patch/115/sql/adctxprv.sql \&lt;br /&gt;      &lt;SYSTEM password&gt; CTXSYS&lt;br /&gt;&lt;br /&gt;Manually migrate files for the 10.2.0 environment&lt;br /&gt;Note:-- carefully change all the environment whichever showing the 9i oracle home to 10g&lt;br /&gt;&lt;br /&gt;Migrate the 9.2.0.6 &lt;SID_HOSTNAME&gt;.env to the 10.2.0 ORACLE_HOME and modify the environment file changing the 9.2.0 references to 10.2.0&lt;br /&gt;&lt;br /&gt;Note: Global replace command for vi editor&lt;br /&gt; :g/9.2.0/s//10.1.0/g&lt;br /&gt;&lt;br /&gt;Implement and run Autoconfig on the new Database home&lt;br /&gt;1. Copy AutoConfig to the RDBMS ORACLE_HOME&lt;br /&gt;&lt;br /&gt;Update the RDBMS ORACLE_HOME file system with the AutoConfig files by performing the following steps:&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;* On the Application Tier (as the APPLMGR user):&lt;br /&gt;a)  Log in to the APPL_TOP environment and source the APPSORA.env file&lt;br /&gt;b)  Create appsutil.zip file. This will create appsutil.zip in $APPL_TOP/admin/out&lt;br /&gt;   perl $AD_TOP/bin/admkappsutil.pl&lt;br /&gt;c)  Copy or FTP the appsutil.zip file to the &lt;RDBMS ORACLE_HOME&gt;&lt;br /&gt;* On the Database Tier (as the APPLMGR or ORACLE user):&lt;br /&gt;d)  cd &lt;RDBMS ORACLE_HOME&gt; &lt;br /&gt;e)  Source &lt;10.2.0 CONTEXT_NAME.env&gt; file&lt;br /&gt;f)  unzip -o appsutil.zip&lt;br /&gt;&lt;br /&gt;2. Generate your Database Context File.  Execute the following commands to create your Database Context File:&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;&lt;br /&gt;a)  cd &lt;RDBMS ORACLE_HOME&gt;&lt;br /&gt;b)  . &lt;CONTEXT_NAME&gt;.env&lt;br /&gt;c)  cd &lt;10.2.0 ORACLE_HOME&gt;/appsutil/bin&lt;br /&gt;d)  perl adbldxml.pl tier=db appsuser=&lt;APPSuser&gt; appspasswd=&lt;APPSpwd&gt;&lt;br /&gt;&lt;br /&gt;Attention: adbldxml uses your current environment settings to generate the context file. Therefore ensure that your environment is correctly sourced.&lt;br /&gt;&lt;br /&gt;3. Generate and Apply AutoConfig Configuration files&lt;br /&gt;Attention: This step performs the conversion to AutoConfig. Once completed, the previous configuration will not be available.&lt;br /&gt;&lt;br /&gt;Attention: The database server and the database listener must remain available during the AutoConfig run. All the other database tier services should be shut down.&lt;br /&gt;Execute the following commands:&lt;br /&gt;&lt;br /&gt;Steps:   &lt;br /&gt;a)  cd &lt;RDBMS ORACLE_HOME&gt;/appsutil/bin&lt;br /&gt;b)  adconfig.sh contextfile=&lt;CONTEXT&gt; appspass=&lt;APPSpwd&gt;&lt;br /&gt;Note: Running AutoConfig might change your existing environment files. After running AutoConfig, you should always set the environment before you run any Applications utilities in order to apply the changed environment variables.&lt;br /&gt;&lt;br /&gt;Recreate Grants and Synonyms&lt;br /&gt;Steps:&lt;br /&gt;  cd $APPL_TOP&lt;br /&gt;  . APPSORA.env&lt;br /&gt;  adadmin&lt;br /&gt;  Choose Menu Item #4 -Maintain Applications Database Entities menu&lt;br /&gt;  Choose Sub Menu Item #2 - Re-create grants and synonyms for APPS schema&lt;br /&gt;  Choose the number of workers&lt;br /&gt;&lt;br /&gt;Restart Applications&lt;br /&gt;Steps:&lt;br /&gt;  cd $APPL_TOP&lt;br /&gt;  . APPSORA.env&lt;br /&gt;  cd $APPLCSF/scripts/$CONTEXT_NAME&lt;br /&gt;  . adstrtal.sh apps/&lt;APPS password&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Metalink Documents referred&lt;/strong&gt;:&lt;br /&gt;1.282038.1 Oracle Applications Release 11i with Oracle Database 10g Release 1 (10.1.0)&lt;br /&gt;2.362202.1 Interoperability Notes Oracle Applications Release 11i with Oracle Database 10g Release 1 (10.1.0) &lt;br /&gt;3.216205.1 - Database Initialization Parameters and Configuration for Oracle Applications 11i.&lt;br /&gt;4.165195.1  - Using Autoconfig to Manage System Configurations with Oracle Applications 11i&lt;br /&gt;5. Note:359483.1-- Upgrading Oracle Server 9.2.0.6 to 10.1.0.4 in an 11.5.10.2 Applications Environment&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-5628390979816125597?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/5628390979816125597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=5628390979816125597' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5628390979816125597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5628390979816125597'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/upgrading-9i-to-10g-with-11i.html' title='Upgrading 9i to 10g with 11i'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-5674860722952631636</id><published>2009-04-17T04:06:00.000-07:00</published><updated>2009-04-17T05:06:28.629-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Upgrade from 11.5.10.2 to R12'/><title type='text'>Upgrade from 11.5.10.2 to R12</title><content type='html'>Upgrade Oracle Applications from 11.5.10.2 to R12&lt;br /&gt;System Overview&lt;br /&gt;&lt;br /&gt;Version 11.5.10.2&lt;br /&gt;Oracle Applications Vision Instance&lt;br /&gt;OS: Redhat Linux update 5&lt;br /&gt;Type: Single Node instance&lt;br /&gt;Applications OS User: applmgrupd&lt;br /&gt;Installed directory: /d01/oracle/singlenode&lt;br /&gt;Database 9i OS User : oracleupd&lt;br /&gt;9i Database Home = /d01/oracle/singlenode/testdb/9.2.0&lt;br /&gt;10g Database Home = /d01/oracle/singlenode/testdb/10.2.0&lt;br /&gt;Instance SID: TEST&lt;br /&gt;Host: linux1&lt;br /&gt;&lt;br /&gt;Task – To Upgrade Oracle Applications 11.5.10.2 to R12&lt;br /&gt;Note: Please use vision instance as it is already Multi-Org, Multi-Org is mandatory in R12&lt;br /&gt;&lt;br /&gt;Note: The below upgrade is only for testing purposes, not to be implemented in production servers, please do refer metalink for more information.&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SehmfTMlBCI/AAAAAAAACYw/7vGA5LkTkeg/s1600-h/1.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 258px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SehmfTMlBCI/AAAAAAAACYw/7vGA5LkTkeg/s320/1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325619247280620578" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SehmfFj9NII/AAAAAAAACYo/6Cu8J_c8il8/s1600-h/2.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 161px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SehmfFj9NII/AAAAAAAACYo/6Cu8J_c8il8/s320/2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325619243620578434" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Upgrade path&lt;br /&gt;• Applications R11.5.6 and below requires to first upgrade to R11.5.10.2/10gR2&lt;br /&gt;• Applications R11.5.7 and up can be directly upgraded to R12&lt;br /&gt;• Database in all releases must have been upgraded to 10gR2 (11.5.9.2 / 11.5.10.2) or should be done during upgrade to R12 (11.5.9.1/11.5.10.1 and below&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SehmfHjeYxI/AAAAAAAACYg/BCRRWyC4O2A/s1600-h/3.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 170px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SehmfHjeYxI/AAAAAAAACYg/BCRRWyC4O2A/s320/3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325619244155429650" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here are steps to upgrade Oracle Application 11.5.10.2 to R12, let’s split the activity into 6 steps&lt;br /&gt;1&gt; Please do upgrade the database from 9.2.0.6 to 10.2.0.3, the steps are available in the below link&lt;br /&gt;&lt;br /&gt;2&gt; Apply the below patches in your existing 11.5.10.2 environment&lt;br /&gt;&lt;br /&gt;Shut down the entire E-Business Suite environment and perform a full backup&lt;br /&gt;4712852 - Minipack 11i.AD.I.4&lt;br /&gt;5753359 - ALPPNR, NO RESPONSE ACTION PROCESSOR CONC PGM ENDS IN ERROR&lt;br /&gt;5467526 - OATM MIGRATION UTILITY: ORA-22853 IN ERROR LOG&lt;br /&gt;5120936 - TUMS for R12: TO DELIVER TUMS UTILITY FOR UPGRADES FROM 11I TO R12&lt;br /&gt;5726010 - AD Preparation Scripts for R12&lt;br /&gt;&lt;br /&gt;3&gt; Run rapidwiz to create R12 code tree&lt;br /&gt;&lt;br /&gt;4&gt; Apply the below patches in R12 environment&lt;br /&gt;4502962 – R12 Minipack&lt;br /&gt;&lt;br /&gt;5&gt; Configuration Phase – R12&lt;br /&gt;&lt;br /&gt;6&gt; Apply the online help&lt;br /&gt;&lt;br /&gt;2&gt; Apply the below patches in your existing 11.5.10.2 environment&lt;br /&gt;4712852 - Minipack 11i.AD.I.4&lt;br /&gt;5753359 - ALPPNR, NO RESPONSE ACTION PROCESSOR CONC PGM ENDS IN ERROR&lt;br /&gt;*5467526 - OATM MIGRATION UTILITY: ORA-22853 IN ERROR LOG&lt;br /&gt;5120936 - TUMS for R12: TO DELIVER TUMS UTILITY FOR UPGRADES FROM 11I TO R12&lt;br /&gt;5726010 - AD Preparation Scripts for R12&lt;br /&gt;&lt;br /&gt;Enable the maintenance mode&lt;br /&gt;&lt;br /&gt;adadmin defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt logfile=adadmin.log&lt;br /&gt;menu_option=ENABLE_MAINT_MODE workers=4&lt;br /&gt;&lt;br /&gt;-- Apply Patch 4712852&lt;br /&gt;unzip p4712852_11i_LINUX.zip&lt;br /&gt;cd 4712852&lt;br /&gt;&lt;br /&gt;-- Takes 5 minutes&lt;br /&gt;adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt logfile=4712852.log&lt;br /&gt;patchtop=/software/upgrades/11.5.10.2toR12/r11/4712852 driver=u4712852.drv workers=4&lt;br /&gt;-- Apply patch u5753359.drv&lt;br /&gt;unzip p5753359_11i_LINUX.zip&lt;br /&gt;&lt;br /&gt;-- Takes 2 minutes&lt;br /&gt;adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt logfile=5753359.log&lt;br /&gt;patchtop=/software/upgrades/11.5.10.2toR12/r11/5753359 driver=u5753359.drv workers=4&lt;br /&gt;-- Apply patch u5467526.drv&lt;br /&gt;&lt;br /&gt;unzip p5467526_11i_LINUX.zip&lt;br /&gt;cd 5467526&lt;br /&gt;adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt logfile=5467526.log&lt;br /&gt;patchtop=/software/upgrades/11.5.10.2toR12/r11/5467526 driver=u5467526.drv workers=4&lt;br /&gt;&lt;br /&gt;-- Apply patch u5120936.drv&lt;br /&gt;unzip p5120936_11i_GENERIC.zip&lt;br /&gt;cd 5120936&lt;br /&gt;adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt logfile=5120936.log&lt;br /&gt;patchtop=/software/upgrades/11.5.10.2toR12/r12/5120936 driver=u5120936.drv workers=4&lt;br /&gt;cd $AD_TOP/patch/115/sql&lt;br /&gt;&lt;br /&gt;sqlplus apps/apps @adtums.sql /usr/tmp&lt;br /&gt;&lt;br /&gt;-- Review TUMS report in /usr/tmp&lt;br /&gt;-- Apply patch 5726010&lt;br /&gt;unzip p5726010_11i_GENERIC.zip&lt;br /&gt;&lt;br /&gt;cd 5726010/&lt;br /&gt;&lt;br /&gt;sqlplus apps/apps @adgncons.sql apps apps&lt;br /&gt;# modify the adcrtbsp.sql to specify the path for new tablespaces&lt;br /&gt;&lt;br /&gt;sqlplus system/manager @adcrtbsp.sql&lt;br /&gt;&lt;br /&gt;su - oracleupd&lt;br /&gt;&lt;br /&gt;mkdir -p $ORACLE_HOME/appsutil/admin&lt;br /&gt;cd $ORACLE_HOME/appsutil/admin&lt;br /&gt;cp /software/upgrades/11.5.10.2toR12/r12/5726010/adgrants.sql .&lt;br /&gt;&lt;br /&gt;sqlplus '/ as sysdba' @adgrants.sql applsys&lt;br /&gt;-- Run rapidwiz to create R12 code tree&lt;br /&gt;The installation will install R12 applications components and the database home&lt;br /&gt;Select upgrade to Oracle Applications R12&lt;br /&gt;Select upgrade actions screen&lt;br /&gt;select create upgrade file system&lt;br /&gt;&lt;br /&gt;enter the parameters required to set up your new environment run rapid install Here are the screen shots for the same&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SehmfFT7ePI/AAAAAAAACYY/XDcMAzrB34I/s1600-h/4.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SehmfFT7ePI/AAAAAAAACYY/XDcMAzrB34I/s320/4.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325619243553356018" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SehmSGFF9ZI/AAAAAAAACYQ/SbId2-oCwv8/s1600-h/5.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SehmSGFF9ZI/AAAAAAAACYQ/SbId2-oCwv8/s320/5.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325619020421264786" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SehmSGDujII/AAAAAAAACYI/xc4UAsnqsew/s1600-h/6.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 212px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SehmSGDujII/AAAAAAAACYI/xc4UAsnqsew/s320/6.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325619020415536258" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SehmSL-hDjI/AAAAAAAACYA/S61_nUG0s_Q/s1600-h/7.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 212px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SehmSL-hDjI/AAAAAAAACYA/S61_nUG0s_Q/s320/7.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325619022004293170" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SehmR_3SULI/AAAAAAAACX4/WOdbToOzGgM/s1600-h/8.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 213px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SehmR_3SULI/AAAAAAAACX4/WOdbToOzGgM/s320/8.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325619018752741554" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SehmRzbUVHI/AAAAAAAACXw/DPrqonNFpCQ/s1600-h/9.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SehmRzbUVHI/AAAAAAAACXw/DPrqonNFpCQ/s320/9.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325619015414207602" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SehmBGU-fMI/AAAAAAAACXo/pO3_fcYbqEM/s1600-h/10.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SehmBGU-fMI/AAAAAAAACXo/pO3_fcYbqEM/s320/10.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618728430107842" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SehmBBhKR_I/AAAAAAAACXg/_hODX6mME0I/s1600-h/11.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SehmBBhKR_I/AAAAAAAACXg/_hODX6mME0I/s320/11.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618727139035122" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SehmA-4sRdI/AAAAAAAACXY/4esC1Dtp0Sc/s1600-h/12.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SehmA-4sRdI/AAAAAAAACXY/4esC1Dtp0Sc/s320/12.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618726432425426" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SehmA71NRWI/AAAAAAAACXQ/IIdK7lnYE-0/s1600-h/13.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 213px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SehmA71NRWI/AAAAAAAACXQ/IIdK7lnYE-0/s320/13.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618725612504418" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SehmApZ9OxI/AAAAAAAACXI/R7Cd4onE8OM/s1600-h/14.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SehmApZ9OxI/AAAAAAAACXI/R7Cd4onE8OM/s320/14.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618720666368786" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SehluE8haQI/AAAAAAAACXA/e5qIIj5UKHo/s1600-h/15.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 216px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SehluE8haQI/AAAAAAAACXA/e5qIIj5UKHo/s320/15.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618401641588994" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The Installation creates APPL_TOP, COMMON_TOP, INST_TOP and 10g Oracle Home&lt;br /&gt;Move the new environment file into .bash_profile&lt;br /&gt;su - applmgrupd&lt;br /&gt;cd /d01/oracle/apps/apps_st/appl&lt;br /&gt;mv .bash_profile .bash_profile_11.5.10&lt;br /&gt;cat APPSVIS_linux1.env &gt;&gt; /home/applmgrupd/.bash_profile&lt;br /&gt;Now onwards, you are connected to R12 application&lt;br /&gt;-- Apply patch AD.A 4502962&lt;br /&gt;-- takes 6 minutes&lt;br /&gt;unzip p4502962_R12_LINUX.zip&lt;br /&gt;cd 4502962/&lt;br /&gt;adpatch&lt;br /&gt;&lt;br /&gt;Please enter the name of your AutoPatch driver file: u4502962.drv&lt;br /&gt;-- Run the American English upgrade patch driver&lt;br /&gt;-- Takes 40 hours&lt;br /&gt;cd $AU_TOP/patch/115/driver&lt;br /&gt;&lt;br /&gt;adpatch options=nocopyportion,nogenerateportion&lt;br /&gt;&lt;br /&gt;Please enter the name of your AutoPatch driver file: u4440000.drv&lt;br /&gt;Run the NLS upgrade patch driver (conditional)&lt;br /&gt;• Download the NLS Release 12 patch (4440000) for each active language in the system.&lt;br /&gt;• Run each driver (u4440000.drv) with adpatch&lt;br /&gt;• NLS patch driver has the same name as the American English patch driver.&lt;br /&gt;Synchronize NLS and American English product patches (conditional)&lt;br /&gt;• Generate manifest using perl $AD_TOP/bin/adgennls.pl&lt;br /&gt;• Backup manifest file $APPL_TOP/admin/$TWO_TASK/out/adgennls.txt&lt;br /&gt;• http://updates.oracle.com/TransSync&lt;br /&gt;• Don’t check Translation Level Updates&lt;br /&gt;• Upload manifest&lt;br /&gt;• Download and apply patch&lt;br /&gt;-- Configuration Phase&lt;br /&gt;Disable maintenance mode&lt;br /&gt;Run autoconfig&lt;br /&gt;&lt;br /&gt;Run rapidwiz to configure and start processes&lt;br /&gt;Sign on to R12 applications check concurrent managers&lt;br /&gt;&lt;br /&gt;Run autoconfig&lt;br /&gt;su - applmgrupd&lt;br /&gt;perl $AD_TOP/bin/admkappsutil.pl&lt;br /&gt;su - oracleupd&lt;br /&gt;cd $ORACLE_HOME&lt;br /&gt;cp /d01/oracle/inst/apps/TEST_linux1/admin/out/appsutil.zip .&lt;br /&gt;unzip -o appsutil.zip&lt;br /&gt;cd $ORACLE_HOME/appsutil/scripts/TEST_linux1&lt;br /&gt;sh adautocfg.sh&lt;br /&gt;&lt;br /&gt;Run rapidwiz to configure and start processes&lt;br /&gt;-----------------------------------------&lt;br /&gt;rapidwiz - Upgrade to Oracle Applications Release 12 -&gt; Upgrade Action -&gt; Select Configure Upgraded&lt;br /&gt;&lt;br /&gt;Release 12 instance&lt;br /&gt;$INST_TOP/admin/VIS_linux1.xml&lt;br /&gt;/d01/oracle/inst/apps/TEST_linux1/appl/admin/TEST_linux1.xml&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SehluFVwNwI/AAAAAAAACW4/IPBX0WFwEKY/s1600-h/16.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 212px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SehluFVwNwI/AAAAAAAACW4/IPBX0WFwEKY/s320/16.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618401747416834" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/Sehlt2dV8-I/AAAAAAAACWw/iXA0iOINldI/s1600-h/17.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 213px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/Sehlt2dV8-I/AAAAAAAACWw/iXA0iOINldI/s320/17.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618397752718306" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/Sehlt7EonvI/AAAAAAAACWo/DZWIob3J4uc/s1600-h/18.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 210px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/Sehlt7EonvI/AAAAAAAACWo/DZWIob3J4uc/s320/18.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618398991261426" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/Sehlt24CXZI/AAAAAAAACWg/w39fM2lcXis/s1600-h/19.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/Sehlt24CXZI/AAAAAAAACWg/w39fM2lcXis/s320/19.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618397864680850" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/Sehli4HGkqI/AAAAAAAACWY/cPcH6kLuyt4/s1600-h/20.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 211px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/Sehli4HGkqI/AAAAAAAACWY/cPcH6kLuyt4/s320/20.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618209217745570" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/Sehli220msI/AAAAAAAACWQ/2nfOeC83LWI/s1600-h/21.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 126px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/Sehli220msI/AAAAAAAACWQ/2nfOeC83LWI/s320/21.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618208881023682" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Note: I got the below error, but all services and the application is running.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SehlisbmWzI/AAAAAAAACWI/lJh1OKqkyk0/s1600-h/22.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 212px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SehlisbmWzI/AAAAAAAACWI/lJh1OKqkyk0/s320/22.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618206082489138" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Sign on to R12 applications check concurrent managers&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SehlihOo_AI/AAAAAAAACWA/TvpWG-tyJVI/s1600-h/23.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 139px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SehlihOo_AI/AAAAAAAACWA/TvpWG-tyJVI/s320/23.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618203075345410" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Connect as sysadmin/sysadmin&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SehliReGp_I/AAAAAAAACV4/KgXezZO0oEI/s1600-h/24.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 296px; height: 320px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SehliReGp_I/AAAAAAAACV4/KgXezZO0oEI/s320/24.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5325618198845237234" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- Apply online help&lt;br /&gt;cd $AU_TOP/patch/115/driver/&lt;br /&gt;adpatch options=hotpatch,nocopyportion,nogenerateportion&lt;br /&gt;Please enter the name of your AutoPatch driver file : u5051400.drv&lt;br /&gt;-- Gather schema statistics for CBO&lt;br /&gt;Release 12 employs cost-based optimization, which examines FND table statistics to determine the most&lt;br /&gt;efficient access paths and join&lt;br /&gt;methods for executing SQL statements. These statistics are gathered by the FND_STATS process, which&lt;br /&gt;you initiate by running the&lt;br /&gt;Gather Schema Statistics concurrent program.&lt;br /&gt;From your Release 11i APPL_TOP, complete the following steps:&lt;br /&gt;1. Log in to Oracle Applications with the System Administrator responsibility.&lt;br /&gt;2. Navigate to the Submit Request window (Request &gt; Run).&lt;br /&gt;3. Submit the Gather Statistics program. (Schema)&lt;br /&gt;&lt;br /&gt;References&lt;br /&gt;1. Upgrading Oracle Applications Note# 289788.1&lt;br /&gt;2. Oracle 10gR2 Database Preparation Guidelines for an E-Business Suite R12 Note#403339.1&lt;br /&gt;3. Oracle applications R11.5.10.2 Maintenance pack Installation Note#316365.1&lt;br /&gt;4. Oracle Applications Upgrade Guide: Release 11i to Release 12 Part# B31566-01&lt;br /&gt;5. Database Initialization Parameters for Oracle Applications Release 12 Note#396009.1&lt;br /&gt;6. Oracle Applications Release Notes Release 12 Note# 405293.1&lt;br /&gt;7. E-Business Suite Release 12 Upgrade Sizing and Best Practices Note# 399362.1&lt;br /&gt;8. Upgrading to R12 Note# 414710.1&lt;br /&gt;9. Maintenance Wizard Note# 215527.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-5674860722952631636?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/5674860722952631636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=5674860722952631636' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5674860722952631636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5674860722952631636'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/upgrade-from-115102-to-r12.html' title='Upgrade from 11.5.10.2 to R12'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Veaf3lFF6Po/SehmfTMlBCI/AAAAAAAACYw/7vGA5LkTkeg/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-3127073975373298248</id><published>2009-04-17T02:58:00.000-07:00</published><updated>2009-04-17T03:06:23.376-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to access EBS in mozile borwser in linux'/><title type='text'>How to access EBS in mozile borwser in linux</title><content type='html'>To enable the JAVA plugin in the browers...&lt;br /&gt;&lt;br /&gt;1. install required JAVA in /usr/java&lt;br /&gt;&lt;br /&gt;2.Go the plugin dir of your browser&lt;br /&gt;ex : 1. cd /usr/lib/mozilla/plugins/&lt;br /&gt; 2. cd /home/oracle/firefox/plugins/&lt;br /&gt;&lt;br /&gt;3.create a link for the file libjavaplugin_oji.so.&lt;br /&gt;ex : ln -s /usr/java/j2sdk1.4.2_04/jre/plugin/i386/ns610/libjavaplugin_oji.so .&lt;br /&gt;or    ln -s /usr/java/j2sdk1.4.2_04/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so .&lt;br /&gt;&lt;br /&gt;4. Try again with the Browser.&lt;br /&gt;these are the steps to access 11i in linux mozilla borwser..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Linux, Mozilla And Oracle Applications 11i&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;For the benefits of those who has been hunting around for a solution to running Oracle Applications on Linux, here's the steps on how to get it to run on a Redhat based distro :&lt;br /&gt;&lt;br /&gt;1. Download the latest Java SDK/JRE from Sun. The latest version is J2SE 1.4.2_01&lt;br /&gt;URL: http://java.sun.com/j2se/1.4.2/download.html &lt;br /&gt;&lt;br /&gt;2. Save the downloaded SDK file, j2sdk-1_4_2_01-linux-i586-rpm.bin (approx. 40MB), in a directory.&lt;br /&gt;&lt;br /&gt;3. As root, extract the file:&lt;br /&gt;root@linux# ./j2sdk-1_4_2_01-linux-i586-rpm.bin&lt;br /&gt;This will extract the j2sdk-1_4_2_01- linux-i586.rpm file.&lt;br /&gt;&lt;br /&gt;4. If you are installing the JDK for the 1st time:&lt;br /&gt;root@linux# rpm -iv j2sdk-1_4_2_01-linux-i586.rpm OR, if upgrading from previous version:root@linux# rpm -Uv j2sdk-1_4_2_01-linux-i586.rpm &lt;br /&gt;&lt;br /&gt;5. The installation process will drop the SDK into the /usr/java/j2sdk&lt;version&gt; directory&lt;br /&gt;&lt;br /&gt;6. Go to your mozilla plugins directory:root@linux# cd /usr/lib/mozilla/plugins&lt;br /&gt;&lt;br /&gt;7. Create a symbolic link to the libjavaplugin_oji.so library. NOTE if your mozilla is 1.3.X, then:root@linux# ln -s /usr/java/j2sdk&lt;version&gt;/jre/plugin/i386/ns610/libjavaplugin_oji.so libjavaplugin_oji.so&lt;br /&gt;&lt;br /&gt;If your mozilla is 1.4.X and above: root@linux# ln -s /usr/java/j2sdk&lt;version&gt;/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin_oji.so &lt;br /&gt;&lt;br /&gt;8. If your home directory also contain a .mozilla directory, then:&lt;br /&gt;root@linux# cd $HOME/.mozilla/plugins Create another symbolic link to the library as in step 7.&lt;br /&gt;&lt;br /&gt;9. Launch Mozilla and type the url to access your Oracle Applications: &lt;br /&gt;http://&lt;your host&gt;:&lt;port&gt;/dev60cgi/f60cgi?jinit_mimetype=application/x-java-vm&lt;br /&gt;&lt;br /&gt;10. Now sit back and enjoy (or suffer?) Oracle.&lt;br /&gt;Warning: The above steps has not been fully tested and I believe Oracle will not support it. So, use it at your own risk. Cheers and say bye to Microsoft(and BG)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-3127073975373298248?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/3127073975373298248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=3127073975373298248' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3127073975373298248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3127073975373298248'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/how-to-access-ebs-in-mozile-borwser-in.html' title='How to access EBS in mozile borwser in linux'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-3547063351853806817</id><published>2009-04-17T01:13:00.000-07:00</published><updated>2009-04-17T01:47:37.483-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Change hostname for E-Business Suite'/><title type='text'>Change hostname for E-Business Suite</title><content type='html'>&lt;strong&gt;Run AutoConfig to change hostname for E-Business Suite &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Oracle E-Business Suite is dependent on hostname. User can easily change the IP of the machine, but user cannot anyhow change the hostname of the machine. To change the hostname, we need to run AutoConfig on E-Business Suite. &lt;br /&gt;&lt;br /&gt;First, startup dbTier. AppTier is not required at all in the whole process.&lt;br /&gt;&lt;br /&gt;FOR DATABASE TIER:&lt;br /&gt;Note:338003.1 How to change the hostname and/or port of the Database Tier using AutoConfig &lt;br /&gt;&lt;br /&gt;1. Login as oracle user.&lt;br /&gt;&lt;br /&gt;2. De-register the current database server.&lt;br /&gt;perl $ORACLE_HOME/appsutil/bin/adgentns.pl appspass=apps contextfile=$CONTEXT_FILE -removeserver &lt;br /&gt;&lt;br /&gt;3. Update AutoConfig Context file with new host information. Edit $CONTEXT_FILE directly.&lt;br /&gt;* Copy $CONTEXT_FILE to a new context file.&lt;br /&gt;cp /opt/oracle/product/10.1.0/db/appsutil/PROD_&lt;oldhost&gt;.xml &lt;br /&gt;/opt/oracle/product/10.1.0/db/appsutil/PROD_&lt;newhost&gt;.xml&lt;br /&gt;* Edit /opt/oracle/product/10.1.0/db/appsutil/PROD_&lt;newhost&gt;.xml directly. &lt;br /&gt;- Replace all &lt;oldhost&gt; to &lt;newhost&gt;&lt;br /&gt;- Replace all &lt;olddomain.com&gt; to &lt; newdomain.com&gt;&lt;br /&gt;&lt;br /&gt;4. Change hostname.&lt;br /&gt;- Execute " system-config-network" to change the new hostname for the machine.&lt;br /&gt;- Edit /etc/hosts with " newhost.newdomain.com ip newhost".&lt;br /&gt;&lt;br /&gt;(After changing hostname, you'll not be able to startup any graphical application such as xclock due to "Xlib: connection to :0.0 refused by server". You can press "ctrl + alt + backspace" to kill x server.) &lt;br /&gt;&lt;br /&gt;5. Execute AutoConfig for dbTier.&lt;br /&gt;cd $ORACLE_HOME/appsutil/bin/&lt;br /&gt;./adconfig.sh contextfile=$ORACLE_HOME/appsutil/PROD_&lt;newhost&gt;.xml &lt;br /&gt;&lt;br /&gt;FOR APPS TIER: &lt;br /&gt;Note:341322.1 How to change the hostname of an Applications Tier using AutoConfig&lt;br /&gt;&lt;br /&gt;1. Login as applmgr user.&lt;br /&gt;&lt;br /&gt;2. De-register the current apps server. &lt;br /&gt;perl $AD_TOP/bin/adgentns.pl appspass=apps contextfile=$CONTEXT_FILE -removeserver &lt;br /&gt;&lt;br /&gt;3. Update AutoConfig Context file with new host information. It is easier to edit $CONTEXT_FILE directly. &lt;br /&gt;* Copy $CONTEXT_FILE to a new context file.&lt;br /&gt;cp /opt/oracle/apps/prodappl/admin/PROD_&lt;oldhost&gt;.xml &lt;br /&gt;/opt/oracle/apps/prodappl/admin/PROD_&lt;newhost&gt;.xml &lt;br /&gt;* Edit /opt/oracle/apps/prodappl/admin/PROD_&lt;newhost&gt;.xml directly.&lt;br /&gt;- Replace all &lt;oldhost&gt; to &lt;newhost&gt; &lt;br /&gt;- Replace all &lt; olddomain.com&gt; to &lt; newdomain.com&gt;&lt;br /&gt;&lt;br /&gt;4. Execute AutoConfig for appTier.&lt;br /&gt;cd $AD_TOP/bin&lt;br /&gt;./adconfig.sh contextfile=/opt/oracle/apps/prodappl/admin/PROD_&lt;newhost&gt;.xml appspass=apps &lt;br /&gt;&lt;br /&gt;FINISHING TASK:&lt;br /&gt;&lt;br /&gt;AutoConfig doesn't convert E-Business Suite completely. Some settings may remain unchanged or reset to default. So, it is required to go check the configuration as described in Cloning Guide. &lt;br /&gt;&lt;br /&gt;Identified steps are:&lt;br /&gt;&lt;br /&gt;1. As applmgr, vi /opt/oracle/apps/prodappl/admin/adgetlnxver.sh to ensure ctxfile is pointing to correct PROD_&lt;newhost&gt;.xml file. &lt;br /&gt;ctxfile="/opt/oracle/apps/prodappl/admin/PROD_htb.xml"&lt;br /&gt;&lt;br /&gt;2. As applmgr user, vi $IAS_ORACLE_HOME/Apache/Jserv/etc/jserv.properties to ensure:&lt;br /&gt;wrapper.bin.parameters=-Djava.awt.headless=true &lt;br /&gt;wrapper.bin.parameters=-DAdaptorCatalog=/opt/oracle/apps/prodappl/au/11.5.0/java/catalog.xml&lt;br /&gt;wrapper.bin.parameters=-DClientMode=local &lt;br /&gt;&lt;br /&gt;3. As oracle user, do the following:&lt;br /&gt;$ sqlplus apps/apps&lt;br /&gt;sql&gt; update icx_parameters set session_cookie_domain=' newdomain.com';&lt;br /&gt;sql&gt; conn applsys/apps&lt;br /&gt;sql&gt; select profile_option_value from fnd_profile_option_values where profile_option_value like '%oldhost%';&lt;br /&gt;sql&gt; update fnd_profile_option_values set profile_option_value='/opt/oracle/db/proddb/9.2.0/appsutil/outbound/PROD_newhost' where profile_option_value like '%oldhost%'; &lt;br /&gt;3 rows will be updated.&lt;br /&gt;sql&gt; exit;&lt;br /&gt;&lt;br /&gt;Done. You can startup AppTier now and access E-Business Suite login page at http://newhost.newdomain.com:8000.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-3547063351853806817?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/3547063351853806817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=3547063351853806817' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3547063351853806817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3547063351853806817'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/change-hostname-for-e-business-suite.html' title='Change hostname for E-Business Suite'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-1330132838625087668</id><published>2009-04-16T05:10:00.000-07:00</published><updated>2009-04-16T05:19:18.651-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Discoverer Troubleshooting'/><title type='text'>Discoverer Troubleshooting</title><content type='html'>&lt;strong&gt;Generic Discoverer Issues&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Make sure Jserv is working fine. &lt;br /&gt;For all other discoverer issues that comes while accessing viewer page or start_ie page or discolaunch.htm, try the following :&lt;br /&gt;&lt;br /&gt;1. cd $ORACLE_HOME/discwb4/util&lt;br /&gt;2. ./stopall.sh&lt;br /&gt;3. ls –la .*id  =&gt; there should not be any .*id file once the components are down. If any .*id file gets listed, do&lt;br /&gt;a. more .oadid  ( good for any .*id file present)&lt;br /&gt;b. ps –eaf | grep nnnnn   ( nnnnn is the value listed in step a )&lt;br /&gt;c. If this is owned by the wrong user, remove the file.&lt;br /&gt;4. Make sure ./startgatekeeper.sh is in startall.sh&lt;br /&gt;5. ./startall.sh&lt;br /&gt;6. Check locator.log, gatekeeper.log and oad.log for error messages&lt;br /&gt;7. Check if the discoverer works fine. If not …&lt;br /&gt;a. stopall.sh&lt;br /&gt;b. startoad.sh&lt;br /&gt;c. startosagent.sh&lt;br /&gt;d. unregistercollector.sh&lt;br /&gt;e. unregistersession.sh&lt;br /&gt;f. unregisterpreference.sh&lt;br /&gt;g. check for correct ip in pref.txt&lt;br /&gt;h. applypreferences.sh&lt;br /&gt;i. registerpreferences.sh&lt;br /&gt;j. registersession.sh&lt;br /&gt;k. registercollector.sh&lt;br /&gt;l. stoposagent.sh&lt;br /&gt;m. stopoad.sh&lt;br /&gt;n. stopall.sh&lt;br /&gt;o. startall.sh&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Discoverer Viewer&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Problem Description&lt;/strong&gt;:&lt;br /&gt;Discoverer Viewer fails with the following error...&lt;br /&gt;Wide area network connection failed. &lt;br /&gt;Unable to read locator.ior file at location file:/discwb4/applet/locator.ior. - Local area network connection failed. Failed to connect to locator &lt;hostname&gt;.oracleoutsourcing.com_&lt;port&gt;OracleDiscovererLocator4 using OSAgent. - &lt;br /&gt;Gatekeeper connection failed. - &lt;br /&gt;Hint: An administrator can further diagnose connection problems by running the "checkdiscoverer" script under &lt;ORACLE_HOME&gt;/806/discwb4/util.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution :&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This happens when there is a discrepancy in the discoverer xml file. &lt;br /&gt;1. To locate the filename and its location go to :    $APACHE_TOP/Jserv/etc/disco4iviewer.properties&lt;br /&gt;2. Look for "servlet.Viewer.initArgs" and note down the path it points to.    Eg : "servlet.Viewer.initArgs=config=file:/tbmidi/product/iAS/Apache/Apache/htdocs/disco4iv/html/disco4iv.xml"&lt;br /&gt;3. Now grep for "path" in the disco4iv.xml file. The path should ideally look like, for eg : path="/tbmidi/product/iAS/Apache/Apache/htdocs/discwb4/applet/"&lt;br /&gt;If the full path is not mentioned, viewer fails.&lt;br /&gt;In this case, the path would have looked like........path="/discwb4/applet/"&lt;br /&gt;Change the path variable to display the full path as given in the eg.&lt;br /&gt;4. Restart Apache Server.&lt;br /&gt;&lt;br /&gt;Problem Description: Discoverer Viewer fails with the following error...&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Internal Server Error&lt;/strong&gt; &lt;br /&gt;The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, apdmrkmi@oracleoutsourcing.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.&lt;br /&gt;&lt;br /&gt;“mod_jserv.log” display the following error……..&lt;br /&gt;&lt;br /&gt;[10/03/2005 17:08:39:120] (ERROR) ajp12: Servlet Error: Failed to set state&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt; :&lt;br /&gt;&lt;br /&gt;Update  $APACHE_TOP/Jserv/etc/viewer.properties by moving the following lines above the line with "apps.zip" reference.&lt;br /&gt;&lt;br /&gt;#----------------------- &lt;br /&gt;wrapper.classpath=/dmrkmi/product/806/vbroker/lib/vbjorb.jar &lt;br /&gt;wrapper.classpath=/dmrkmi/product/806/vbroker/lib/vbjapp.jar &lt;br /&gt;wrapper.classpath=/dmrkmi/product/iAS/Apache/Apache/htdocs/disco4iv/disco4res.jar &lt;br /&gt;#-----------------------&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;strong&gt;Problem Description&lt;/strong&gt;: Discoverer Viewer fails with the following error...&lt;br /&gt;&lt;br /&gt;Could not locate or parse the .dbc file corresponding to the given Oracle Applications instance.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution &lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;Edit the $APPL_TOP/admin/&lt;SID&gt;_&lt;hostname&gt;.xml context file and look for “s_appserverid_authentication”&lt;br /&gt;Set this to OFF and rerun the adconfig&lt;br /&gt;&lt;br /&gt;In 11510 default value is SECURE.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Discoverer Launcher&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Problem Description&lt;/strong&gt;: Discoverer Launcher fails with the following error...&lt;br /&gt;&lt;br /&gt;Wide area network connection failed. &lt;br /&gt;Unable to read locator.ior file at location http://&lt;url&gt;:&lt;port&gt;/discoshare/locator.ior - Local area network connection failed. Failed to connect to locator &lt;hostname&gt;.oracleoutsourcing.com_&lt;port&gt;OracleDiscovererLocator4 using OSAgent. - &lt;br /&gt;Gatekeeper connection failed. - &lt;br /&gt;Hint: An administrator can further diagnose connection problems by running the "checkdiscoverer" script under &lt;ORACLE_HOME&gt;/806/discwb4/util.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution :&lt;/strong&gt;&lt;br /&gt;This happens when the URL is wrong. It can be either the hostname or the port.&lt;br /&gt;1.Ensure the “fnd_profile_option_values” has the correct URL set.&lt;br /&gt;2.Grep for the URL in $APACHE_TOP/Apache/htdocs.&lt;br /&gt;a.For eg, a big-up url is given a wrong port no. ie https://appsrolltest.oracleoutsourcing.com:10515&lt;br /&gt;b.grep -ir appsrolltest * discwb4/scripts/htmlvars_apps.js:var ORAWEBDISCO_IORCODEBASE = https://appsrolltest.oracleoutsourcing.com:10515/discoshare/";&lt;br /&gt;c.Change the URL to reflect the correct port.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Gatekeeper&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Problem Description: Gatekeeper fails to start&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution:&lt;/strong&gt;&lt;br /&gt;1.Go to $APACHE_TOP/Apache/htdocs/discwb4/applet directory&lt;br /&gt;2.Check the gatekeeper.log file for errors like ‘unable to bind to port’ or other errors.&lt;br /&gt;3.Fix the error and restart gatekeeper.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Registering Components&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Problem Description:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Registering Discoverer Preference Repository&lt;br /&gt;&lt;br /&gt;oadutil reg: Unexpected SystemException org.omg.&lt;br /&gt;CORBA.NO_IMPLEMENT[completed=MAYBE]&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1.The issue is with TMPDIR in $ORACLE_HOME/discwb4/discwb.sh.&lt;br /&gt;2.Make sure that the entry for TMPDIR exists in discwb.sh.&lt;br /&gt;For eg; TMPDIR=/lhypei/applmgr/product/806/discwb4/tmp&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;strong&gt;Problem Description:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;/&lt;sid&gt;/applmgr/product/806/vbroker/bin/vbj[200]: &lt;br /&gt;-Dorg.omg.CORBA.ORBClass=com.visigenic.vbroker.orb.ORB: unknown test &lt;br /&gt;operator&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Goto the line no. specified in brackets and put the correct syntax as follows :&lt;br /&gt;&lt;br /&gt;if [ -d "${J_HOME}" ] &amp;&amp; [ "${javavm}" = "java" ];  then&lt;br /&gt;&lt;br /&gt;(Sometimes the line no. in the error will not match with the above line, in that case you need to search for the above line in the vbj file and correct it)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Problem Description:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;/&lt;sid&gt;/product/806/discwb4/bin/dis4pr: error while loading shared &lt;br /&gt;libraries:&lt;br /&gt;libclntsh.so.1.0: cannot open shared object file: No such file or directory Registering Discoverer Preference Repository.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. ldd /tohagi/product/806/discwb4/bin/dis4pr &lt;br /&gt;You will get libclntsh.so.1.0 =&gt; not found&lt;br /&gt;2. Executed the above command in the source instance, to get the correct path of libclntsh.so.1.0.&lt;br /&gt;3. Copy libclntsh.so.1.0 from source to target.&lt;br /&gt; &lt;br /&gt;&lt;strong&gt;OAD&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Problem Description: Failed to Start OAD. Possibly the OAD is already running in the same port.&lt;br /&gt;&lt;strong&gt;Resolution:&lt;/strong&gt;&lt;br /&gt;1. Check for IP_ADDR in $ORACLE_HOME/discwb4/util/discwb.sh.&lt;br /&gt;    Correct the IP Address.&lt;br /&gt;&lt;br /&gt;Note : Along with the above error, if oad.log shows :  error while loading shared libraries: liborb.so: cannot open shared object file: No such file or directory.&lt;br /&gt;&lt;br /&gt;2. Copy liborb.so from  source MT where discoverer is running to target MT.   &lt;br /&gt;    For eg : $ORACLE_HOME/vbroker/lib/liborb.so to target.&lt;br /&gt;&lt;br /&gt;Problem Description: Failed to bind to OAD&lt;br /&gt;&lt;br /&gt;The following errors can be found in locator.log :&lt;br /&gt;VisiBroker: Unable to contact agent in local node or from list provided.&lt;br /&gt;Will try to locate using broadcast.&lt;br /&gt;oadutil reg: Unexpected SystemException org.omg.CORBA.NO_IMPLEMENT[completed=MAYBE]&lt;br /&gt;Locator: No IP address given.  Bind directly to server name&lt;br /&gt;Unable to bind to or retrieve information from preference object auohscabo02.oracleoutsourcing.com_10715OracleDiscovererPreferences4&lt;br /&gt;Could not locate the following object: repository id : IDL:DCICORBAInterface:1.0&lt;br /&gt;&lt;br /&gt;(OR)&lt;br /&gt;&lt;br /&gt;OAD: Fatal Error [Cross-device link].&lt;br /&gt;Unable to create repository file: /tcaboi/applmgr/product/806/vbroker/adm/impl_dir/impl_rep. Make sure VBROKER_ADM environmentis set up correctly&lt;br /&gt;Unable to create repository file: /tcaboi/applmgr/product/806/vbroker/adm/impl_dir/impl_rep&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolution&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;Create a directory by name “tmp” in $ORACLE_HOME/vbroker/adm and put the following entry in $ORACLE_HOME/discwb4/discwb.sh&lt;br /&gt;&lt;br /&gt;TMPDIR=$ORACLE_HOME/vbroker/adm/tmp&lt;br /&gt;export TMPDIR&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-1330132838625087668?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/1330132838625087668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=1330132838625087668' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/1330132838625087668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/1330132838625087668'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/discoverer-troubleshooting.html' title='Discoverer Troubleshooting'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-2084506883293886457</id><published>2009-04-16T04:54:00.000-07:00</published><updated>2009-04-16T05:00:13.597-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error:ORA-01631'/><title type='text'>Error:ORA-01631</title><content type='html'>&lt;strong&gt;Overview Of ORA-01631: Max # Extents (%s) Reached in Table %s.%s&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Text:  max # extents (%s) reached in table %s.%s &lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;Cause:  A table tried to extend past maxextents &lt;br /&gt;Action: If maxextents is less than the system maximum, raise it.Otherwise, you must recreate with larger initial, next or pctincrease params.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;------------&lt;br /&gt;The max extents error occurs when the current number of extents equals the maximum number of extents in the max_extents parameter for the object, or the maximum number of extents allowable for the db_block_size, whichever is smaller, and an attempt is made to add another extent. Max extents can be set for an object using the MAXEXTENTS option of the storage clause. These kind of problems could be avoided by pro-actively monitoring the object sizes that may reach their max_extents.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Diagnostic Steps:&lt;br /&gt;-----------------&lt;br /&gt;1. Run the following script to identify the tables with extent problems.&lt;br /&gt;&lt;br /&gt;   SQL&gt; select segment_name, owner, extents, max_extents &lt;br /&gt;     2  from dba_segments&lt;br /&gt;     3  where segment_type = 'TABLE'&lt;br /&gt;     4  and (extents +1) &gt;= max_extents;&lt;br /&gt;&lt;br /&gt;2. Follow up the scripts in: Note 1019721.6  SCRIPT: SCRIPT TO REPORT TABLES APPROACHING MAXEXTENTS.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Possible solutions:&lt;br /&gt;-------------------&lt;br /&gt;1. If the value of max_extents for the affected  object is less than the limit of maximum extents  for  the db_block_size of the database (refer to Note 1015356.4), then more extents could be allocated to the object.&lt;br /&gt;&lt;br /&gt;   Alter the STORAGE clause of the object to increase MAXEXTENTS.&lt;br /&gt;   In databases version  7.3.X or higher one could specify maxextents &lt;br /&gt;   UNLIMITED (i.e. 2147483645), but use this with caution.&lt;br /&gt;&lt;br /&gt;   ALTER TABLE &lt;owner&gt;.table STORAGE ( MAXEXTENTS x); &lt;br /&gt;   where x is greater than max_extents and lesser than unlimited (2147483645);&lt;br /&gt;&lt;br /&gt;   ALTER TABLE &lt;owner&gt;.table STORAGE ( MAXEXTENTS UNLIMITED);&lt;br /&gt;&lt;br /&gt;   Remark: Note 50380.1 ALERT: Using UNLIMITED Extent Format&lt;br /&gt;&lt;br /&gt;2. It is not advisable to have a lot (hundreds of thousands, etc.) of  extents that could result in large amounts of of space management operations in dictionary managed tablespase. In that case, or when the number of max_extents for the affected object reached the limit of maximum extents for the db_block_size,recreate the object with more efficient storage.Export the table and precreate the table before import, using larger storage parameters (initial, next, pctincrease) - to result in fewer extents, or export  using COMPRESS=Y - to minimize number of extents after import.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-2084506883293886457?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/2084506883293886457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=2084506883293886457' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/2084506883293886457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/2084506883293886457'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/errorora-01631.html' title='Error:ORA-01631'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-5308691048778606972</id><published>2009-04-13T03:06:00.000-07:00</published><updated>2009-04-13T04:32:27.710-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Multi-Node Installation'/><title type='text'>Multi-Node Installation</title><content type='html'>&lt;strong&gt;Multi-node Installation&lt;/strong&gt;&lt;br /&gt;With the multi-node installation option, the configuration possibilities are endless. Any server can be placed on any node. You can also use this option to install multiple forms servers to balance the load of forms usage.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMffmXAxBI/AAAAAAAACVw/b2Q1CxOlz7w/s1600-h/1.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 248px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMffmXAxBI/AAAAAAAACVw/b2Q1CxOlz7w/s320/1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133812215530514" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Benefits of a Multi-node Installation&lt;/strong&gt;&lt;br /&gt;The multi-node installation provides many benefits, including those listed on this slide. If you decide to have your forms servers in a Linux environment and your database servers in a UNIX environment, Rapid Install helps you to configure this multi-platform environment.&lt;br /&gt;Note: If you install multiple forms servers, they must be configured identically (including the operating system), otherwise load balancing will not function properly.&lt;br /&gt;&lt;br /&gt;Setting Up a Multi-node Installation&lt;br /&gt;In a multi-node installation, you can set up your servers on more than one node. That means you can install any type of server, on any number of nodes, in any combination. Regardless of the number of nodes you plan to use, a multi-node installation requires that you run Rapid&lt;br /&gt;Install on your database node first, before you install the other nodes. Then, using the same configuration file you created while setting up your database node, you run Rapid Install on each of the other nodes in your installation.&lt;br /&gt;&lt;br /&gt;Setting Up a Multi-node Installation&lt;br /&gt;Running the Rapid Install Wizard&lt;br /&gt;Step 1: Choose an installation operation&lt;br /&gt;Step 2: Choose a configuration type&lt;br /&gt;Step 3: Choose environment&lt;br /&gt;Step 4: Register Applications products and components&lt;br /&gt;Step 5: Select country-specific functionality&lt;br /&gt;Step 6: Select NLS settings&lt;br /&gt;Step 7: Select host names&lt;br /&gt;Step 8: Specify main settings information&lt;br /&gt;Step 9: Specify derived settings information&lt;br /&gt;Step 10: Review instance settings information&lt;br /&gt;Step 11: Save the configuration file&lt;br /&gt;Step 12: Review pre-install test results&lt;br /&gt;Step 13: Begin the installation&lt;br /&gt;Step 14: Complete the installation on the other nodes&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 1: Choose an installation operation&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMffivHxMI/AAAAAAAACVo/zVciFvaJkBo/s1600-h/2.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMffivHxMI/AAAAAAAACVo/zVciFvaJkBo/s320/2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133811242910914" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Choose an installation operation&lt;br /&gt;Click the Install Oracle Applications button. Pressing the Tab key moves the cursor between options. Moving the cursor by pressing the Up or Down Arrow keys selects the option as well.&lt;br /&gt;Click Next to continue.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 2: Choose a configuration type&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMffUYAVtI/AAAAAAAACVg/cqoNNi-IP6k/s1600-h/3.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMffUYAVtI/AAAAAAAACVg/cqoNNi-IP6k/s320/3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133807387858642" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Select Multi-node to set up a configuration that installs the servers on two or more nodes. Besure that the first server you install and set up is the database. After you complete that installation, you will run Rapid Install on each of the other nodes in your system. Click Next to&lt;br /&gt;continue.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 3: Choose environment&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMffR3EKgI/AAAAAAAACVY/lZfJdiWTANg/s1600-h/4.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMffR3EKgI/AAAAAAAACVY/lZfJdiWTANg/s320/4.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133806712826370" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Choose environment: Database name&lt;br /&gt;In order to identify the Oracle Applications environment, give it a name and indicate the type of database you want to install.&lt;br /&gt;Rapid Install uses default names that suggest possible uses for the environment:&lt;br /&gt;• A production environment is a fully configured Release 11i installation that can be used for live production purposes.&lt;br /&gt;• A test environment is a mirror image of a production Release 11i installation. You can use it to test your installation before you go live.&lt;br /&gt;• A Vision Demo environment can be used to set up a Release 11i installation for&lt;br /&gt;demonstration purposes.&lt;br /&gt;Note: If you want to install another instance, for example, to use as a test environment, run the Rapid Install wizard again and identify the new environment on this screen.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMfVKnWI3I/AAAAAAAACVQ/YMMTg1RVtpA/s1600-h/5.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMfVKnWI3I/AAAAAAAACVQ/YMMTg1RVtpA/s320/5.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133632969155442" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After you type the name, choose the type of database that you want to install. The database&lt;br /&gt;options are:&lt;br /&gt;• Fresh install database: An empty Oracle database, typically used for production or&lt;br /&gt;testing.&lt;br /&gt;• Vision Demo database: An Oracle Vision Demonstration database used to set up demos&lt;br /&gt;or for evaluation purposes.&lt;br /&gt;• Do not install a database: This option assumes an existing database. It creates an&lt;br /&gt;Applications instance and configures it using your existing database. It is typically used for Windows clusters.&lt;br /&gt;Click Next to continue.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 4: Register Applications products and components&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMfVMH-rnI/AAAAAAAACVI/1RVj7aF-J5Q/s1600-h/6.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMfVMH-rnI/AAAAAAAACVI/1RVj7aF-J5Q/s320/6.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133633374465650" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Rapid Install installs all products regardless of their licensed status. You use this screen to register the products that you have licensed for use in your system. Your Oracle Corporation license agreement specifies the type of license that applies to your installation. Click Use&lt;br /&gt;Component Applications Licensing or Use E-Business Suite Licensing, according to the&lt;br /&gt;agreement. Rapid Install automatically installs and registers shared and dependent products for you, so they are selected by default.&lt;br /&gt;Choosing the Component Applications Licensing option registers the products for the&lt;br /&gt;Applications component(s) specified in your license agreement. When you choose to register an Applications component, you register all the products that it includes. You can also register the products in a component individually. To view individual products, click the Prod. Detail&lt;br /&gt;button. The Available Products screen appears.&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SeMfVMLPeiI/AAAAAAAACVA/6RKDTFTo_P8/s1600-h/7.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 287px; height: 320px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SeMfVMLPeiI/AAAAAAAACVA/6RKDTFTo_P8/s320/7.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133633388149282" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All individual Oracle products are listed on this screen, including shared or dependent products. Notice that Rapid Install places a check mark beside the products you indicated on the register products screen. Shared or dependent products are shaded, so you cannot select them. Rapid Install automatically installs and registers these shared and dependent products for&lt;br /&gt;you, so they are selected by default.&lt;br /&gt;Review your selections on this screen. If you selected a component on the previous screen, you cannot deselect any of its individual products on this screen. If you want to install individual products instead of all the products in a component, press Cancel to return to the product registration screen. Uncheck Use Component Applications Licensing, and do not check any component applications. Click Prod. Detail and make individual product selections on the&lt;br /&gt;Available Products screen. Click OK to return to the product registration screen.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMfU6DLIXI/AAAAAAAACU4/9PitjqD4wno/s1600-h/8.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMfU6DLIXI/AAAAAAAACU4/9PitjqD4wno/s320/8.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133628522471794" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Choosing the E-Business Suite Licensing option causes Rapid Install to automatically register all the products included in the E-Business Suite price bundle.&lt;br /&gt;Note that some of the modules are grayed out. The ones that are not must be installed&lt;br /&gt;separately as Add-on products — they are not part of the E-Business Suite price bundle. Click the Prod. Detail button to display the Available Products screen.&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMfUqdXAGI/AAAAAAAACUw/BeTrqPVkAeE/s1600-h/9.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 288px; height: 320px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMfUqdXAGI/AAAAAAAACUw/BeTrqPVkAeE/s320/9.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133624337334370" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Most of the individual Add-on products are checked, indicating that they will be installed and registered automatically. If you want to select individual products, select them now.&lt;br /&gt;If you have chosen to install a product that is controlled, Rapid Install displays an alert screen.&lt;br /&gt;Follow the instructions on the screen as they apply to your installation. Click OK to return to the product registration screen. Click Next to continue.&lt;br /&gt;Note: Once a product is registered, it cannot be unregistered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 5: Select country-specific functionality&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SeMfK7nVduI/AAAAAAAACUo/iAV7PJ5S-5g/s1600-h/10.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SeMfK7nVduI/AAAAAAAACUo/iAV7PJ5S-5g/s320/10.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133457143887586" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Select country-specific functionality&lt;br /&gt;If you will use country-specific features, select one or more country-specific functionalities to install. All countries that Oracle supports are listed on this screen. Click the appropriate check box to make your selections. Click Next to continue.&lt;br /&gt;Note: The Globalizations products, JA, JE, JG, and JL are associated with country-specific functionalities. They cannot be registered from the product registering screens. For example, when you select BR-Brazil, the JL product will be set to licensed.&lt;br /&gt;&lt;br /&gt;Step 6: Select NLS settings&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SeMfKtqap8I/AAAAAAAACUg/IYXUDNhhDvw/s1600-h/11.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SeMfKtqap8I/AAAAAAAACUg/IYXUDNhhDvw/s320/11.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133453398714306" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The fresh install database comes with American English installed as the default base language, AMERICA as the default territory, and US7ASCII as the default character set. You can select additional languages and modify the default base language and the default territory settings on this screen.&lt;br /&gt;If you select additional languages, you may also need to select an alternative character set for the database and the APPL_TOP. Note that the conversion to a different character set will be automatic, but it may take several hours to complete.&lt;br /&gt;The default territory is used as the NLS territory setting for all users of the Applications installation. The base language is used as the default NLS language setting. Choose a territory from the list of NLS territories if you want to change the default territory setting. Click Select Languages to see a list of available languages.&lt;br /&gt;Note: Release 11i does not support changing NLS settings or the character set for the Vision Demonstration database.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMfKrlUqLI/AAAAAAAACUY/IzxyXVkcfwI/s1600-h/12.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 242px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMfKrlUqLI/AAAAAAAACUY/IzxyXVkcfwI/s320/12.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133452840478898" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In prior versions of Release 11i, the Rapid Install wizard only registered additional languages — it did not actually install them. In this release, the language files will be installed in the APPL_TOP file system during the installation. If you choose to add a language(s) on this screen, Rapid Install prompts you for the location of the language CD(s) later in the&lt;br /&gt;installation. You must have the Oracle Applications Release 11i NLS CD pack available at that time.&lt;br /&gt;Warning: If you do not have the language CDs available when Rapid Install prompts you for their location, the installation will stop and you will not be able to continue.&lt;br /&gt;Double-click a language to move it into the Installed Languages list or highlight it and click the right arrow key. Highlighting a language in the Installed Languages box and clicking the left arrow removes it. You cannot remove American English from this list. Click OK to continue.&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMfKaaIX3I/AAAAAAAACUQ/lynis0eRESw/s1600-h/13.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMfKaaIX3I/AAAAAAAACUQ/lynis0eRESw/s320/13.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133448230133618" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The Base Language list box now shows multiple language choices and the Database Character Set and APPL_TOP Character Set list boxes have changed to a character set that is common to all the selected languages.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMfKR799sI/AAAAAAAACUI/RITfeZiYin8/s1600-h/14.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMfKR799sI/AAAAAAAACUI/RITfeZiYin8/s320/14.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133445956138690" /&gt;&lt;/a&gt;&lt;br /&gt;If you want to change the database and APPL_TOP character set from the values shown, select a new value from the dropdown box. If you need to use a character set that is not shown in the dropdown box, enter the APPL_TOP character set name directly in the derived settings screen&lt;br /&gt;(see Step 9), or the database character set name on the instance settings screen (see Step 10).&lt;br /&gt;Click Next to continue.&lt;br /&gt;Note: The languages you install must be compatible with the character set you choose.&lt;br /&gt;After Rapid Install processing is complete, you must perform additional tasks to complete the&lt;br /&gt;language installation. See the Oracle Applications NLS Release Notes for more information.&lt;br /&gt;&lt;br /&gt;Step 7: Select host names&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMe_W_pLyI/AAAAAAAACUA/hI8t9OLAI20/s1600-h/15.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMe_W_pLyI/AAAAAAAACUA/hI8t9OLAI20/s320/15.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133258335170338" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In a multi-node installation, the Rapid Install wizard asks for the names of the hosts where you will install the components for your installation. You can choose to install servers on any number of nodes, each running a different operating system. In the example, Rapid Install will set up the database server on a host named OASERV1 on a machine running on HP-UX. The remaining servers (concurrent processing server, admin server, forms server, and web server)&lt;br /&gt;will be set up on separate hosts (OASERV2, OASERV3, and so on), each running on Linux.&lt;br /&gt;Click Next to continue.&lt;br /&gt;&lt;br /&gt;Step 8: Specify main settings information&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMe_RqAqTI/AAAAAAAACT4/QoOb_KO_Tw0/s1600-h/16.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMe_RqAqTI/AAAAAAAACT4/QoOb_KO_Tw0/s320/16.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133256902256946" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Specify the main settings for the various top-level directories and user accounts for your installation.&lt;br /&gt;The labels on the tabs are derived from the host names you specified on the previous screen. The parameters listed under each tab are determined by the platform you specified for the associated host. For example, if you set up an admin server node called OASERV3 that will run on Linux, the list includes Linux-specific settings such as APPS OS User and APPS OS&lt;br /&gt;Group. If you indicated that the admin server node runs on Windows, the settings include NT Password and NT User, but not APPS OS User or APPS OS Group.&lt;br /&gt;There is a separate tab for each node. Click on the tab to activate the settings list. Use the vertical scroll bar or the Up and Down Arrow keys to scroll through the main settings fields and default values. Change the values or accept the current settings.&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SeMe_JWQdnI/AAAAAAAACTw/P7moFjZ38oI/s1600-h/17.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SeMe_JWQdnI/AAAAAAAACTw/P7moFjZ38oI/s320/17.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133254671922802" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If there are more than three hosts to be set up, click the arrow button in the top right corner to access the tabs that are not shown on the screen.&lt;br /&gt;If you are configuring a number of application (middle) tiers to share a single APPL_TOP, the APPL_TOP base and COMMON_TOP base should be the same for all application tiers and should be set to the shared disk resource.&lt;br /&gt;&lt;br /&gt;Main Settings&lt;br /&gt;APPL_TOP base: This default directory mount setting appears on subsequent Rapid Install screens for convenience. This is the base directory for the APPL_TOP.&lt;br /&gt;COMMON_TOP base: This is the base directory for the COMMON_TOP. It contains other&lt;br /&gt;directories for files that are used across products or in conjunction with third-party products. This default directory mount setting appears on subsequent Rapid Install screens for convenience.&lt;br /&gt;ORA_TOP base: The base directory for the RDBMS installation.&lt;br /&gt;DATA_TOP (sys): The directory on the database node that contains the data dictionary for the entire RDBMS.&lt;br /&gt;DATA_TOP (logs): The directory on the database node that contains the redo log files used by the RDBMS.&lt;br /&gt;DATA_TOP (data): The directory on the database node that contains the data tablespaces.&lt;br /&gt;Each product has its own data tablespace within this directory.&lt;br /&gt;Apps OS User (UNIX): Owner of the Oracle Applications file system and Applications&lt;br /&gt;technology stack.&lt;br /&gt;Apps OS Group (UNIX): Default OS (operating system) group for the Applications OS user.&lt;br /&gt;Oracle OS User (UNIX): Owner of the Oracle database file system.&lt;br /&gt;Oracle OS Group (UNIX): Default OS (operating system) group for the Oracle OS user.&lt;br /&gt;NT User (Windows): If you choose the Windows platform for running the concurrent&lt;br /&gt;manager service, this is the user that runs the service.&lt;br /&gt;NT Password (Windows): If you choose the Windows platform for running the concurrent&lt;br /&gt;manager service, this is the password of the user that runs the service.&lt;br /&gt;DNS Domain Name: A valid domain name used when configuring Oracle Applications for the network. This is a required field. You must enter a domain name that, when combined with a host name, produces a fully qualified domain name.&lt;br /&gt;X DISPLAY (UNIX): Used by the reports server, forms server, Apache server, and the&lt;br /&gt;concurrent manager, this display must always be accessible during runtime. Should be set to an active X Windows display, and should point to a machine that is always available to the Oracle Applications instance.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 9: Specify derived settings information&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SeMe_Nqj62I/AAAAAAAACTo/hvdQ0gb-w-4/s1600-h/18.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SeMe_Nqj62I/AAAAAAAACTo/hvdQ0gb-w-4/s320/18.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133255830825826" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The following screen shows detailed settings for each host you set up on the main setting screen in the previous step. Click on a tab to activate the settings list. Use the vertical scroll bar or the Up and Down Arrow keys to scroll through the main settings fields and default values.&lt;br /&gt;Click Next to continue.&lt;br /&gt;Note: If you change a recommended character set (by overwriting the default) in this screen, be sure the languages you install are compatible with the character set you choose.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Derived Settings&lt;br /&gt;&lt;br /&gt;APPL_TOP Mount Point, APPL_TOP aux 1, APPL_TOP aux 2, APPL_TOP aux 3: The&lt;br /&gt;primary APPL_TOP mount point directory, and the auxiliary mount point directories used to distribute APPL_TOP among multiple directories or partitions. If you plan to install the entire file system on one mount point or disk, all APPL_TOP auxiliary directories should have the same mount point or disk name.&lt;br /&gt;APPL_TOP Char. Set: The character set of the files within the file systems installed on the application tier. The character set is carried over from your selection in the NLS Settings of the Language screen.&lt;br /&gt;COMMON_TOP: The common top directory holds directories for files that are used across&lt;br /&gt;products or in conjunction with third-party products. It contains the:&lt;br /&gt;• Rapid Install admin directory with subdirectories for concurrent manager log and out&lt;br /&gt;directories, the install subdirectory (contains scripts used only during an install), and the&lt;br /&gt;scripts subdirectory (contains scripts used for daily maintenance of the Oracle&lt;br /&gt;Applications instance).&lt;br /&gt;• html directory, which contains files used by html-based products such as JSP files, Java scripts, xml files, and style sheets.&lt;br /&gt;• java directory where Rapid Install installs all Oracle Applications JAR files. It also holds 3rd-party Java files.&lt;br /&gt;• portal directory, which contains Rapid Install Portal files.&lt;br /&gt;• temp directory, which is used for caching by some processes such as Oracle Reports.&lt;br /&gt;• util directory, which contains 3rd-party utilities such as JDK, JRE, and UnZip.&lt;br /&gt;Database ORACLE_HOME: The ORACLE_HOME directory installed on the database tier.&lt;br /&gt;It hosts the Oracle database server.&lt;br /&gt;8.0.6 ORACLE_HOME: The ORACLE_HOME directory installed on each node of the&lt;br /&gt;application tier. This ORACLE_HOME hosts the Oracle Developer components of the&lt;br /&gt;Applications technology stack. The application tier file system is linked to this 8.0.6 ORACLE_ HOME.&lt;br /&gt;Tool ORACLE_HOME: The ORACLE_HOME directory installed on each node of the&lt;br /&gt;application tier that is used for the iAS components, including the Oracle HTTP server.&lt;br /&gt;&lt;br /&gt;DATA_TOP (sys): The directory on the database node that contains the data dictionary for the entire RDBMS.&lt;br /&gt;DATA_TOP (logs): The directory on the database node that contains the redo log files used by the RDBMS.&lt;br /&gt;DATA_TOP (data): The directory on the database node that contains the data tablespaces. Each product has its own data tablespace within this directory.&lt;br /&gt;DATA_TOP (index): The directory on the database node that contains the index tablespaces. Each product has its own index tablespace within this directory.&lt;br /&gt;JAVA_TOP: Contains the Java files used by all Oracle Applications products. This directory is in the COMMON_TOP directory.&lt;br /&gt;PORTAL_TOP: Contains the HTML used to review and complete the installation after Rapid Install. These include the post-install steps and the configuration files, written as HTML files.&lt;br /&gt;JRE_TOP: Contains the Java Runtime Engine files used by all Oracle Applications products.These include the Java platform core classes and supporting files.&lt;br /&gt;Temp Directory: Contains temporary files. This directory is not used during installation.&lt;br /&gt;&lt;br /&gt;Apps OS User (UNIX): Owner of the Oracle Applications file system and Applications&lt;br /&gt;technology stack.&lt;br /&gt;Apps OS Group (UNIX): Default OS (operating system) group for the Applications OS user.&lt;br /&gt;Oracle OS User (UNIX): Owner of the database file system.&lt;br /&gt;Oracle OS Group (UNIX): Default OS (operating system) group for the Oracle OS user.&lt;br /&gt;NT User (Windows): If you choose the Windows platform for running the concurrent&lt;br /&gt;manager service, this is the user that runs the service.&lt;br /&gt;NT Password (Windows): If you choose the Windows platform for running the concurrent&lt;br /&gt;manager service, this is the password of the user that runs the service.&lt;br /&gt;DNS Domain Name: The domain the machine is assigned to on the network.&lt;br /&gt;&lt;br /&gt;MKS Directory (Windows): MKS tools must be added in the PATH so that executables can&lt;br /&gt;be used to relink Applications executables and .DLLs.&lt;br /&gt;MSDEV Directory (Windows): Location of the Visual C/C++ executables and .DLL files.&lt;br /&gt;Used for linking Applications executables or .DLLs.&lt;br /&gt;DBA Group Name (UNIX): The user that owns the Oracle database must belong to this&lt;br /&gt;group.&lt;br /&gt;X DISPLAY (UNIX): Used by the reports server, forms server, apache server, and the&lt;br /&gt;concurrent manager, this display must always be accessible during runtime. Should be set to an active X Windows display, and should point to a machine that is always available to the Oracle Applications instance.&lt;br /&gt;External JDK: Points to location of the JDK installation. Required by Apache to successfully start the JSERV engine. Must be the same as the location where you downloaded JDK.&lt;br /&gt;OUI Inventory Path (Windows): Path used by the Oracle Universal Installer (OUI) for&lt;br /&gt;installation. The Inventory contains components installed by Rapid Install and is used for patching in certain circumstances.&lt;br /&gt;&lt;br /&gt;Step 10: Review instance settings information&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMe-xYTeiI/AAAAAAAACTg/nTA_xv7aGYc/s1600-h/19.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMe-xYTeiI/AAAAAAAACTg/nTA_xv7aGYc/s320/19.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133248238058018" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Rapid Install uses the values specified on this screen to configure server processes, such as those on the forms and web servers, as well as listener processes.&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SeMex-y99VI/AAAAAAAACTY/ExXCkSeqfJs/s1600-h/20.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SeMex-y99VI/AAAAAAAACTY/ExXCkSeqfJs/s320/20.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133028501255506" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The starting number of the port value is pre-set, but you can set the incremental number by using the dropdown list in the Port Pool field. The Port Pool list provides a way to use a predefined set of server ports. There are 100 port pool selections.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SeMex9tg4pI/AAAAAAAACTQ/DhrzSfykAwA/s1600-h/21.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SeMex9tg4pI/AAAAAAAACTQ/DhrzSfykAwA/s320/21.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133028209943186" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For example, if you select 3, the default Database Port number (1521) becomes 1524&lt;br /&gt;(increment of 3). If you do not want to use the port pool feature, you can specify ports manually by adjusting individual server port values where appropriate.&lt;br /&gt;Use the vertical scroll bar or the Up and Down Arrow keys to move through the instance settings. You can change the values or accept the current settings. Click Next to continue.&lt;br /&gt;&lt;br /&gt;Instance Settings&lt;br /&gt;SID: Name of the database instance.&lt;br /&gt;Global Name: Global database name.&lt;br /&gt;DB Character Set: Character set of the database.&lt;br /&gt;Default Territory: Defines the NLS territory.&lt;br /&gt;Database Port: Net Services Listener port that receives requests from the various servers for processing on the RDBMS.&lt;br /&gt;RPC Port: Oracle Applications uses the Report Review Agent (an RPC server process). The RPC port is the TCP/IP port on the concurrent processing server node that receives incoming Report Review Agent requests.&lt;br /&gt;Reports Port: TCP/IP port on the reports server that receives incoming requests from&lt;br /&gt;browsers or other servers.&lt;br /&gt;Web Listener Port: HTTP port on the web server that receives incoming requests from&lt;br /&gt;browsers or other servers.&lt;br /&gt;OProcMgr Port: Port for process that monitors the Apache JVM state. Routes requests for the JVM.&lt;br /&gt;&lt;br /&gt;Instance Settings&lt;br /&gt;Web PLSQL Port:. Port that receives PL/SQL data and HTML content from the database and re-directs it to the PL/SQL Apache listener.&lt;br /&gt;Servlet Port: Port on the web server that browsers connect to when invoking Java servlets.&lt;br /&gt;Forms Listener Port: TCP/IP port on the forms server that receives incoming requests from browsers or other servers.&lt;br /&gt;Metrics Server Data Port: TCP/IP port on which the Metrics server receives load data from&lt;br /&gt;Metrics clients running on other machines.&lt;br /&gt;Metrics Server Req. Port: TCP/IP port on which the Metrics server receives the “least-loaded&lt;br /&gt;host” requests from forms clients.&lt;br /&gt;JTF Fulfillment Server Port: TCP/IP port on which the Fulfillment server receives requests from a remote process.&lt;br /&gt;Map Viewer Servlet Port: Dedicated TCP/IP servlet port on the web server that receives requests for the Map Viewer.&lt;br /&gt;OEM Web Utility Port: Dedicated TCP/IP port on the web server that receives requests for the Oracle Enterprise Manager.&lt;br /&gt;VisiBroker OrbServer Agent Port: Dedicated TCP/IP port on the web server that receives requests for the VisiBroker OrbServer agent, used by Oracle Discoverer.&lt;br /&gt;MSCA Server Port: Port used by the MSCA (Mobile Supply Chain Applications) server.&lt;br /&gt;MSCA Dispatcher Port: Port used by the MSCA Dispatcher.&lt;br /&gt;OACORE Servlet Port Range: Range of ports used by the OACORE servlets (for the Self-&lt;br /&gt;Service framework).&lt;br /&gt;Discoverer Servlet Port Range: Range of ports used by the Discoverer servlets.&lt;br /&gt;Forms Servlet Port Range: Range of ports used for the Forms Servlet JServ processes.&lt;br /&gt;XMLSVCS Servlet Port Range: Range of ports used by the XML service.&lt;br /&gt;&lt;br /&gt;Step 11: Save the configuration file&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SeMex87tkaI/AAAAAAAACTI/zl0QXOaxPRg/s1600-h/22.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SeMex87tkaI/AAAAAAAACTI/zl0QXOaxPRg/s320/22.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133028001059234" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You have now completed all the information Rapid Install needs to install your Oracle&lt;br /&gt;Applications products. The next screen asks you to save your installation settings in a configuration file. This file (config.txt) stores the configuration parameters that you entered on the settings screens.&lt;br /&gt;&lt;br /&gt;The default is to store the configuration file in the system temporary directory. It’s a good idea to choose a permanent directory location because you will use this file to complete the installation on the other nodes. Enter a directory path or click Browse. Select a location and click Next to continue.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 12: Review pre-install test results&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMexix3r7I/AAAAAAAACTA/y0pWzRvUe_s/s1600-h/23.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SeMexix3r7I/AAAAAAAACTA/y0pWzRvUe_s/s320/23.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133020980457394" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Rapid Install begins to perform a series of system checks to validate the configuration described by your configuration file. As the parameters are tested, the results of the validation&lt;br /&gt;checks are recorded in the system test dialog box. When the tests are complete, Rapid Install provides a check list of the tests that it performed and an indication of whether the tests succeeded or failed.&lt;br /&gt;&lt;br /&gt;Parameter Validation&lt;br /&gt;The parameters that Rapid Install validates include:&lt;br /&gt;• Port Availability validates the ports you selected are available for use.&lt;br /&gt;• Operating System Check validates the patches and/or version levels of your operating system.&lt;br /&gt;• Port Uniqueness validates that there are no duplicate defined ports for server processes.&lt;br /&gt;• File System Check validates that file system mount points exist and have correct privileges.&lt;br /&gt;• File Space Check validates that file system mount points have sufficient space.&lt;br /&gt;• Host/Domain Check validates that host and domain names are verified by the DNS&lt;br /&gt;server.&lt;br /&gt;• System Utilities Check validates that linking utilities (make, ld, and cc) are available.&lt;br /&gt;• JDK Availability Check validates that JDK exists in the location you supplied.&lt;br /&gt;The results of each test are displayed using check list icons. Scroll down the list to see the&lt;br /&gt;results. There are three result types:&lt;br /&gt;• Check mark: The test succeeded.&lt;br /&gt;• Exclamation mark (!): The configuration requires review. Click the ! to get information about the system test review. Click Yes to continue, and No if you are going to resolve the issues. Rapid Install alerts you if you continue without resolving the issues.&lt;br /&gt;• An x mark: All issues marked x must be resolved before you continue with the&lt;br /&gt;installation. Click the x to see the errors. If you can resolve an issue by fixing the values provided on the settings screen(s), click Back until you reach the appropriate screen, and re-enter the values. Some tests must be resolved in the operating system. In that case, you may have to restart the Rapid Install wizard after the problem has been fixed. When there are no issues to resolve, click Next to continue.&lt;br /&gt;&lt;br /&gt;Step 13: Begin the installation (on the database node)&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SeMexmJS0EI/AAAAAAAACS4/DgUmY1zXr2g/s1600-h/24.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 131px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SeMexmJS0EI/AAAAAAAACS4/DgUmY1zXr2g/s320/24.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5324133021884010562" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Rapid Install lists the actions it will take during the installation process. The list varies based on your installation. Click Next to continue.&lt;br /&gt;Rapid Install displays another alert screen asking you to verify that you are ready to begin the installation. Click Yes to continue. Rapid Install begins the installation. When the installation is complete, you have installed Oracle Applications on the database node.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 14: Complete the installation on the&lt;br /&gt;other nodes&lt;br /&gt;&lt;br /&gt;Completion of the database node installation is the first step in a multi-node installation. Next, you must set up the additional nodes. You can set up additional nodes in any order.&lt;br /&gt;1. Copy the configuration file (config.txt) you saved in Step 11 to each of the other nodes in your installation.&lt;br /&gt;2. Start Rapid Install, and choose the Install Oracle Applications option. Click Next to continue.&lt;br /&gt;3. On the next screen (configuration type), choose the Read Configuration from File option.&lt;br /&gt;Click Next to continue.&lt;br /&gt;4. Rapid Install prompts you for the location of the config.txt file on this node.Enter the directory path, or click Browse. Then click Next to continue.&lt;br /&gt;5. Because you set up the parameters for all nodes when you first created the configuration file, Rapid Install automatically moves past the main settings, derived settings, and instance settings screens. It goes directly to the pre-install test and begins the validation process. See Step 12 for details.&lt;br /&gt;6. Review or resolve any issues flagged with ! or x on the pre-install test results screen.&lt;br /&gt;Then, click Back to return to the screen where you saved the configuration file. Click Next to re-run the pre-install test. If there are no issues listed on the summary screen, click Next to continue.&lt;br /&gt;7. Click Next when each alert screen is displayed. Rapid Install begins the installation on the second node.&lt;br /&gt;8. Repeat all the steps in this section for each of the other nodes in your installation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-5308691048778606972?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/5308691048778606972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=5308691048778606972' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5308691048778606972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5308691048778606972'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/multi-node-installation.html' title='Multi-Node Installation'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Veaf3lFF6Po/SeMffmXAxBI/AAAAAAAACVw/b2Q1CxOlz7w/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-7401454370948135429</id><published>2009-04-08T11:49:00.000-07:00</published><updated>2009-04-08T11:59:23.763-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UNIX / LINUX COMMAND'/><title type='text'>UNIX / LINUX COMMAND</title><content type='html'>UNIX / LINUX OVERVIEW &lt;br /&gt;Below is a listing of each of the Unix / Linux commands currently listed on Computer Hope and a brief explanation of what each of the commands do. The following commands are all the Unix / Linux commands, which means not all the below commands will work in your distribution of Unix / Linux and may also not work because of your privileges.&lt;br /&gt;&lt;br /&gt;COMMAND : DESCRIPTION&lt;br /&gt;&lt;br /&gt;a2p &lt;br /&gt;Creates a Perl script from an awk script.&lt;br /&gt;&lt;br /&gt;alias &lt;br /&gt;Create a name for another command or long command string.&lt;br /&gt;&lt;br /&gt;ac &lt;br /&gt;Prints statistics about users' connect time.&lt;br /&gt;&lt;br /&gt;ar &lt;br /&gt;Maintain portable archive or library.&lt;br /&gt;&lt;br /&gt;arch &lt;br /&gt;Display the architecture of the current host.&lt;br /&gt;&lt;br /&gt;as &lt;br /&gt;An assembler.&lt;br /&gt;&lt;br /&gt;at &lt;br /&gt;Command scheduler.&lt;br /&gt;&lt;br /&gt;awk&lt;br /&gt;Awk script processing program.&lt;br /&gt;&lt;br /&gt;basename &lt;br /&gt;Deletes any specified prefix from a string.&lt;br /&gt;&lt;br /&gt;bash&lt;br /&gt;Command Bourne interpreter&lt;br /&gt;bc &lt;br /&gt;Calculator.&lt;br /&gt;&lt;br /&gt;bdiff &lt;br /&gt;Compare large files.&lt;br /&gt;&lt;br /&gt;bfs &lt;br /&gt;Editor for large files.&lt;br /&gt;&lt;br /&gt;bg&lt;br /&gt;Continues a program running in the background.&lt;br /&gt;&lt;br /&gt;biff &lt;br /&gt;Enable / disable incoming mail notifications.&lt;br /&gt;&lt;br /&gt;break &lt;br /&gt;Break out of while, for, foreach, or until loop.&lt;br /&gt;&lt;br /&gt;bs &lt;br /&gt;Battleship game.&lt;br /&gt;&lt;br /&gt;bye&lt;br /&gt;Alias often used for the exit command.&lt;br /&gt;&lt;br /&gt;cal &lt;br /&gt;Calendar&lt;br /&gt;&lt;br /&gt;calendar &lt;br /&gt;Display appointments and reminders.&lt;br /&gt;&lt;br /&gt;cancel &lt;br /&gt;Cancels a print job.&lt;br /&gt;&lt;br /&gt;cat &lt;br /&gt;View and/or modify a file.&lt;br /&gt;&lt;br /&gt;cc &lt;br /&gt;C compiler.&lt;br /&gt;&lt;br /&gt;cd &lt;br /&gt;Change directory.&lt;br /&gt;&lt;br /&gt;chdir &lt;br /&gt;Change directory.&lt;br /&gt;&lt;br /&gt;checkeq &lt;br /&gt;Language processors to assist in describing equations.&lt;br /&gt;&lt;br /&gt;checknr &lt;br /&gt;Check nroff and troff files for any errors.&lt;br /&gt;&lt;br /&gt;chfn &lt;br /&gt;Modify your own information or if super user or root modify another users information. &lt;br /&gt;&lt;br /&gt;chgrp &lt;br /&gt;Change a groups access to a file or directory.&lt;br /&gt;&lt;br /&gt;chkey &lt;br /&gt;Change the secure RPC key pair.&lt;br /&gt;&lt;br /&gt;chmod &lt;br /&gt;Change the permission of a file.&lt;br /&gt;&lt;br /&gt;chown &lt;br /&gt;Change the ownership of a file.&lt;br /&gt;&lt;br /&gt;chsh &lt;br /&gt;Change login shell.&lt;br /&gt;&lt;br /&gt;cksum &lt;br /&gt;Display and calculate a CRC for files. &lt;br /&gt;&lt;br /&gt;clear &lt;br /&gt;Clears screen.&lt;br /&gt;&lt;br /&gt;cls &lt;br /&gt;Alias often used to clear a screen.&lt;br /&gt;&lt;br /&gt;cmp &lt;br /&gt;Compare files.&lt;br /&gt;&lt;br /&gt;col &lt;br /&gt;Reverse line-feeds filter.&lt;br /&gt;&lt;br /&gt;comm &lt;br /&gt;Compare files and select or reject lines that are common.&lt;br /&gt;&lt;br /&gt;compress &lt;br /&gt;Compress files on a computer.&lt;br /&gt;&lt;br /&gt;continue &lt;br /&gt;Break out of while, for, foreach, or until loop.&lt;br /&gt;&lt;br /&gt;copy &lt;br /&gt;Copy files.&lt;br /&gt;&lt;br /&gt;cp &lt;br /&gt;Copy files.&lt;br /&gt;&lt;br /&gt;cpio &lt;br /&gt;Creates archived CPIO files.&lt;br /&gt;&lt;br /&gt;crontab &lt;br /&gt;Create and list files that you wish to run on a regular schedule.&lt;br /&gt;&lt;br /&gt;csh &lt;br /&gt;Execute the C shell command interpreter&lt;br /&gt;&lt;br /&gt;csplit &lt;br /&gt;Split files based on context.&lt;br /&gt;&lt;br /&gt;ctags &lt;br /&gt;Create a tag file for use with ex and vi.&lt;br /&gt;&lt;br /&gt;cu &lt;br /&gt;Calls or connects to another UNIX system, terminal or non-UNIX system.&lt;br /&gt;&lt;br /&gt;cut&lt;br /&gt;Cut out selected fields of each line of a file.&lt;br /&gt;&lt;br /&gt;date &lt;br /&gt;Tells you the date and time in UNIX.&lt;br /&gt;&lt;br /&gt;dc &lt;br /&gt;An arbitrary precision arithmetic package.&lt;br /&gt;&lt;br /&gt;df &lt;br /&gt;Display the available disk space for each mount.&lt;br /&gt;&lt;br /&gt;deroff &lt;br /&gt;Removes nroff/troff, tbl, and eqn constructs.&lt;br /&gt;&lt;br /&gt;diff &lt;br /&gt;Displays two files and prints the lines that are different.&lt;br /&gt;&lt;br /&gt;dircmp &lt;br /&gt;Lists the different files when comparing directories. &lt;br /&gt;&lt;br /&gt;dpost &lt;br /&gt;Translates files created by troff into PostScript.&lt;br /&gt;&lt;br /&gt;du&lt;br /&gt;Tells you how much space a file occupies.&lt;br /&gt;&lt;br /&gt;echo &lt;br /&gt;Displays text after echo to the terminal.&lt;br /&gt;&lt;br /&gt;ed &lt;br /&gt;Line oriented file editor.&lt;br /&gt;&lt;br /&gt;edit &lt;br /&gt;Text editor.&lt;br /&gt;&lt;br /&gt;egrep &lt;br /&gt;Search a file for a pattern using full regular expressions.&lt;br /&gt;&lt;br /&gt;elm &lt;br /&gt;Program command used to send and receive e-mail.&lt;br /&gt;&lt;br /&gt;emacs &lt;br /&gt;Text editor.&lt;br /&gt;&lt;br /&gt;enable &lt;br /&gt;Enables / Disables LP printers.&lt;br /&gt;&lt;br /&gt;env &lt;br /&gt;Displays environment variables.&lt;br /&gt;&lt;br /&gt;eqn &lt;br /&gt;Language processors to assist in describing equations.&lt;br /&gt;&lt;br /&gt;ex &lt;br /&gt;Line-editor mode of the vi text editor.&lt;br /&gt;&lt;br /&gt;exit &lt;br /&gt;Exit from a program, shell or log you out of a UNIX network.&lt;br /&gt;&lt;br /&gt;expand&lt;br /&gt;Expand copies of file s.&lt;br /&gt;&lt;br /&gt;expr&lt;br /&gt;Evaluate arguments as an expression.&lt;br /&gt;&lt;br /&gt;fc &lt;br /&gt;The FC utility lists or edits and re-executes, commands previously entered to an interactive sh. &lt;br /&gt;&lt;br /&gt;fg&lt;br /&gt;Continues a stopped job by running it in the foreground&lt;br /&gt;&lt;br /&gt;fgrep &lt;br /&gt;Search a file for a fixed-character string.&lt;br /&gt;&lt;br /&gt;file &lt;br /&gt;Tells you if the object you are looking at is a file or if it is a directory.&lt;br /&gt;&lt;br /&gt;find &lt;br /&gt;Finds one or more files assuming that you know their approximate filenames.&lt;br /&gt;&lt;br /&gt;finger &lt;br /&gt;Lists information about the user.&lt;br /&gt;&lt;br /&gt;fmt &lt;br /&gt;Simple text formatters.&lt;br /&gt;&lt;br /&gt;fold &lt;br /&gt;Filter for folding lines. &lt;br /&gt;&lt;br /&gt;for &lt;br /&gt;Shell built-in functions to repeatedly execute action(s) for a selected number of times.&lt;br /&gt;&lt;br /&gt;foreach &lt;br /&gt;Shell built-in functions to repeatedly execute action(s) for a selected number of times&lt;br /&gt;&lt;br /&gt;ftp&lt;br /&gt;Enables ftp access to another terminal.&lt;br /&gt;&lt;br /&gt;getfacl &lt;br /&gt;Display discretionary file information.&lt;br /&gt;&lt;br /&gt;gprof &lt;br /&gt;The gprof utility produces an execution profile of a program.&lt;br /&gt;&lt;br /&gt;grep&lt;br /&gt;Finds text within a file.&lt;br /&gt;&lt;br /&gt;groupadd &lt;br /&gt;Creates a new group account.&lt;br /&gt;&lt;br /&gt;groupdel &lt;br /&gt;Enables a super user or root to remove a group.&lt;br /&gt;&lt;br /&gt;groupmod &lt;br /&gt;Enables a super user or root to modify a group.&lt;br /&gt;&lt;br /&gt;gunzip &lt;br /&gt;Expand compressed files.&lt;br /&gt;&lt;br /&gt;gview&lt;br /&gt;A programmers text editor.&lt;br /&gt;&lt;br /&gt;gvim&lt;br /&gt;A programmers text editor.&lt;br /&gt;&lt;br /&gt;gzip&lt;br /&gt;Compress files.&lt;br /&gt;&lt;br /&gt;halt &lt;br /&gt;Stop the computer.&lt;br /&gt;&lt;br /&gt;hash &lt;br /&gt;Remove internal hash table.&lt;br /&gt;&lt;br /&gt;hashstat &lt;br /&gt;Display the hash stats.&lt;br /&gt;&lt;br /&gt;head &lt;br /&gt;Displays the first ten lines of a file, unless otherwise stated.&lt;br /&gt;&lt;br /&gt;help &lt;br /&gt;If computer has online help documentation installed this command will display it.&lt;br /&gt;&lt;br /&gt;history &lt;br /&gt;Display the history of commands typed.&lt;br /&gt;&lt;br /&gt;hostname&lt;br /&gt;Set or print name of current host system.&lt;br /&gt;&lt;br /&gt;id&lt;br /&gt;Shows you the numeric user and group ID on BSD.&lt;br /&gt;&lt;br /&gt;ifconfig &lt;br /&gt;Sets up network interfaces.  &lt;br /&gt;&lt;br /&gt;isalist&lt;br /&gt;Display the native instruction sets executable on this platform.&lt;br /&gt;&lt;br /&gt;jobs&lt;br /&gt;List the jobs currently running in the background.&lt;br /&gt;&lt;br /&gt;join&lt;br /&gt;Joins command forms together.&lt;br /&gt;&lt;br /&gt;keylogin &lt;br /&gt;Decrypt the user's secret key.&lt;br /&gt;&lt;br /&gt;kill &lt;br /&gt;Cancels a job.&lt;br /&gt;&lt;br /&gt;ksh&lt;br /&gt;Korn shell command interpreter.&lt;br /&gt;&lt;br /&gt;ld &lt;br /&gt;Link-editor for object files.&lt;br /&gt;&lt;br /&gt;ldd &lt;br /&gt;List dynamic dependencies of executable files or shared objects.&lt;br /&gt;&lt;br /&gt;less &lt;br /&gt;Opposite of the more command.&lt;br /&gt;&lt;br /&gt;lex &lt;br /&gt;Generate programs for lexical tasks.&lt;br /&gt;&lt;br /&gt;ln &lt;br /&gt;Creates a link to a file.&lt;br /&gt;&lt;br /&gt;lo &lt;br /&gt;Allows you to exit from a program, shell or log you out of a UNIX network.&lt;br /&gt;&lt;br /&gt;locate &lt;br /&gt;List files in databases that match a pattern. &lt;br /&gt;&lt;br /&gt;login &lt;br /&gt;Signs into a new system. &lt;br /&gt;&lt;br /&gt;logname &lt;br /&gt;Returns users login name.&lt;br /&gt;&lt;br /&gt;logout &lt;br /&gt;Logs out of a system. &lt;br /&gt;&lt;br /&gt;lp &lt;br /&gt;Prints a file on System V systems. &lt;br /&gt;&lt;br /&gt;lpadmin &lt;br /&gt;Configure the LP print service.&lt;br /&gt;&lt;br /&gt;lpc &lt;br /&gt;Line printer control program.&lt;br /&gt;&lt;br /&gt;lpq &lt;br /&gt;Lists the status of all the available printers.&lt;br /&gt;&lt;br /&gt;lpr &lt;br /&gt;Submits print requests.&lt;br /&gt;&lt;br /&gt;lprm &lt;br /&gt;Removes print requests from the print queue. &lt;br /&gt;&lt;br /&gt;lpstat &lt;br /&gt;Lists status of the LP print services.&lt;br /&gt;&lt;br /&gt;ls&lt;br /&gt;Lists the contents of a directory.&lt;br /&gt;&lt;br /&gt;mach &lt;br /&gt;Display the processor type of the current host.&lt;br /&gt;&lt;br /&gt;mail &lt;br /&gt;One of the ways that allows you to read/send E-Mail.&lt;br /&gt;&lt;br /&gt;mailcompat &lt;br /&gt;Provide SunOS 4.x compatibility for the Solaris mailbox format.&lt;br /&gt;&lt;br /&gt;mailx &lt;br /&gt;Mail interactive message processing system.&lt;br /&gt;&lt;br /&gt;make &lt;br /&gt;Executes a list of shell commands associated with each target.&lt;br /&gt;&lt;br /&gt;man &lt;br /&gt;Display a manual of a command.&lt;br /&gt;&lt;br /&gt;mesg &lt;br /&gt;Control if non-root users can send text messages to you.&lt;br /&gt;&lt;br /&gt;mkdir &lt;br /&gt;Create a directory.&lt;br /&gt;&lt;br /&gt;more &lt;br /&gt;Displays text one screen at a time.&lt;br /&gt;&lt;br /&gt;mount &lt;br /&gt;Disconnects a file systems and remote resources.&lt;br /&gt;&lt;br /&gt;mt &lt;br /&gt;Magnetic tape control. &lt;br /&gt;&lt;br /&gt;mv&lt;br /&gt;Renames a file or moves it from one directory to another directory. &lt;br /&gt;&lt;br /&gt;neqn &lt;br /&gt;Language processors to assist in describing equations.&lt;br /&gt;&lt;br /&gt;netstat &lt;br /&gt;Shows network status.&lt;br /&gt;&lt;br /&gt;newalias &lt;br /&gt;Install new elm aliases for user and/or system.&lt;br /&gt;&lt;br /&gt;newform &lt;br /&gt;Change the format of a text file.&lt;br /&gt;&lt;br /&gt;newgrp &lt;br /&gt;Log into a new group.&lt;br /&gt;&lt;br /&gt;nice &lt;br /&gt;Invokes a command with an altered scheduling priority.&lt;br /&gt;&lt;br /&gt;niscat &lt;br /&gt;Display NIS+ tables and objects.&lt;br /&gt;&lt;br /&gt;nischmod &lt;br /&gt;Change access rights on a NIS+ object.&lt;br /&gt;&lt;br /&gt;nischown &lt;br /&gt;Change the owner of a NIS+ object.&lt;br /&gt;&lt;br /&gt;nischttl &lt;br /&gt;Change the time to live value of a NIS+ object.&lt;br /&gt;&lt;br /&gt;nisdefaults &lt;br /&gt;Display NIS+ default values.&lt;br /&gt;&lt;br /&gt;nisgrep &lt;br /&gt;Utilities for searching NIS+ tables.&lt;br /&gt;&lt;br /&gt;nismatch &lt;br /&gt;Utilities for searching NIS+ tables.&lt;br /&gt;&lt;br /&gt;nispasswd &lt;br /&gt;Change NIS+ password information.&lt;br /&gt;&lt;br /&gt;nistbladm &lt;br /&gt;NIS+ table administration command.&lt;br /&gt;&lt;br /&gt;nohup &lt;br /&gt;Runs a command even if the session is disconnected or the user logs out.&lt;br /&gt;&lt;br /&gt;nroff &lt;br /&gt;Formats documents for display or line-printer.&lt;br /&gt;&lt;br /&gt;nslookup &lt;br /&gt;Queries a name server for a host or domain lookup.&lt;br /&gt;&lt;br /&gt;on &lt;br /&gt;Execute a command on a remote system, but with the local environment.&lt;br /&gt;&lt;br /&gt;onintr &lt;br /&gt;Shell built-in functions to respond to (hardware) signals.&lt;br /&gt;&lt;br /&gt;optisa &lt;br /&gt;Determine which variant instruction set is optimal to use.&lt;br /&gt;&lt;br /&gt;pack &lt;br /&gt;Shrinks file into a compressed file.&lt;br /&gt;&lt;br /&gt;pagesize &lt;br /&gt;Display the size of a page of memory in bytes, as returned by getpagesize.&lt;br /&gt;&lt;br /&gt;passwd &lt;br /&gt;Allows you to change your password.&lt;br /&gt;&lt;br /&gt;paste &lt;br /&gt;Merge corresponding or subsequent lines of files.&lt;br /&gt;&lt;br /&gt;pax &lt;br /&gt;Read / write and writes lists of the members of archive files and copy directory hierarchies.&lt;br /&gt;&lt;br /&gt;pcat &lt;br /&gt;Compresses file.&lt;br /&gt;&lt;br /&gt;perl &lt;br /&gt;Perl is a programming language optimized for scanning arbitrary text files, extracting information from those text files.&lt;br /&gt;&lt;br /&gt;pg &lt;br /&gt;Files perusal filters for CRTs.&lt;br /&gt;&lt;br /&gt;pgrep &lt;br /&gt;Examine the active processes on the system and reports the process IDs of the processes&lt;br /&gt;&lt;br /&gt;pico &lt;br /&gt;Simple and very easy to use text editor in the style of the Pine Composer.&lt;br /&gt;&lt;br /&gt;ping &lt;br /&gt;Sends ICMP ECHO_REQUEST packets to network hosts.&lt;br /&gt;&lt;br /&gt;pkill &lt;br /&gt;Examine the active processes on the system and reports the process IDs of the processes&lt;br /&gt;&lt;br /&gt;poweroff &lt;br /&gt;Stop the computer.&lt;br /&gt;&lt;br /&gt;pr &lt;br /&gt;Formats a file to make it look better when printed.&lt;br /&gt;&lt;br /&gt;priocntl &lt;br /&gt;Display's or set scheduling parameters of specified process(es)&lt;br /&gt;&lt;br /&gt;printf &lt;br /&gt;Write formatted output.&lt;br /&gt;&lt;br /&gt;ps &lt;br /&gt;Reports the process status.&lt;br /&gt;&lt;br /&gt;pvs &lt;br /&gt;Display the internal version information of dynamic objects within an ELF file.&lt;br /&gt;&lt;br /&gt;pwd &lt;br /&gt;Print the current working directory.&lt;br /&gt;&lt;br /&gt;quit &lt;br /&gt;Allows you to exit from a program, shell or log you out of a UNIX network.&lt;br /&gt;&lt;br /&gt;rcp &lt;br /&gt;Copies files from one computer to another computer.&lt;br /&gt;&lt;br /&gt;reboot &lt;br /&gt;Stop the computer.&lt;br /&gt;&lt;br /&gt;red &lt;br /&gt;Line oriented file editor.&lt;br /&gt;&lt;br /&gt;rehash &lt;br /&gt;Recomputes the internal hash table of the contents of directories listed in the path.&lt;br /&gt;&lt;br /&gt;remsh &lt;br /&gt;Runs a command on another computer.&lt;br /&gt;&lt;br /&gt;repeat &lt;br /&gt;Shell built-in functions to repeatedly execute action(s) for a selected number of times.&lt;br /&gt;&lt;br /&gt;rgview &lt;br /&gt;A programmers text editor.&lt;br /&gt;&lt;br /&gt;rgvim &lt;br /&gt;A programmers text editor.&lt;br /&gt;&lt;br /&gt;rlogin &lt;br /&gt;Establish a remote connection from your terminal to a remote machine.&lt;br /&gt;&lt;br /&gt;rm &lt;br /&gt;Deletes a file without confirmation (by default).&lt;br /&gt;&lt;br /&gt;rmail &lt;br /&gt;One of the ways that allows you to read/send E-Mail.&lt;br /&gt;&lt;br /&gt;rmdir &lt;br /&gt;Deletes a directory.&lt;br /&gt;rn &lt;br /&gt;Reads newsgroups.&lt;br /&gt;&lt;br /&gt;rpcinfo &lt;br /&gt;Report RPC information.&lt;br /&gt;&lt;br /&gt;rsh &lt;br /&gt;Runs a command on another computer.&lt;br /&gt;&lt;br /&gt;rview &lt;br /&gt;A programmers text editor.&lt;br /&gt;rvim &lt;br /&gt;A programmers text editor.&lt;br /&gt;&lt;br /&gt;s2p &lt;br /&gt;Convert a sed script into a Perl script.&lt;br /&gt;&lt;br /&gt;sag &lt;br /&gt;Graphically displays the system activity data stored in a binary data file by a previous sar run.&lt;br /&gt;&lt;br /&gt;sar &lt;br /&gt;Displays the activity for the CPU.&lt;br /&gt;&lt;br /&gt;script &lt;br /&gt;Records everything printed on your screen.&lt;br /&gt;&lt;br /&gt;sdiff &lt;br /&gt;Compares two files, side-by-side.&lt;br /&gt;&lt;br /&gt;sed &lt;br /&gt;Allows you to use pre-recorded commands to make changes to text.&lt;br /&gt;&lt;br /&gt;sendmail &lt;br /&gt;Sends mail over the internet.&lt;br /&gt;&lt;br /&gt;set &lt;br /&gt;Set the value of an environment variable.&lt;br /&gt;&lt;br /&gt;setenv &lt;br /&gt;Set the value of an environment variable.&lt;br /&gt;&lt;br /&gt;setfacl &lt;br /&gt;Modify the Access Control List (ACL) for a file or files.&lt;br /&gt;&lt;br /&gt;settime &lt;br /&gt;Change file access and modification time.&lt;br /&gt;&lt;br /&gt;sh &lt;br /&gt;Runs or processes jobs through the Bourne shell.&lt;br /&gt;&lt;br /&gt;shutdown &lt;br /&gt;Turn off the computer immediately or at a specified time.&lt;br /&gt;&lt;br /&gt;sleep &lt;br /&gt;Waits a x amount of seconds.&lt;br /&gt;&lt;br /&gt;sort &lt;br /&gt;Sorts the lines in a text file.&lt;br /&gt;&lt;br /&gt;spell &lt;br /&gt;Looks through a text file and reports any words that it finds in the text file that are not in the dictionary.&lt;br /&gt;&lt;br /&gt;split &lt;br /&gt;Split a file into pieces.&lt;br /&gt;&lt;br /&gt;stop &lt;br /&gt;Control process execution.&lt;br /&gt;&lt;br /&gt;stty &lt;br /&gt;Sets options for your terminal.&lt;br /&gt;&lt;br /&gt;su &lt;br /&gt;Become super user or another user.&lt;br /&gt;&lt;br /&gt;sysinfo &lt;br /&gt;Get and set system information strings.&lt;br /&gt;&lt;br /&gt;tabs &lt;br /&gt;Set tabs on a terminal.&lt;br /&gt;&lt;br /&gt;tail &lt;br /&gt;Delivers the last part of the file.&lt;br /&gt;&lt;br /&gt;talk&lt;br /&gt;Talk with other logged in users.&lt;br /&gt;&lt;br /&gt;tar &lt;br /&gt;Create tape archives and add or extract files.&lt;br /&gt;&lt;br /&gt;tbl &lt;br /&gt;Preprocessor for formatting tables for nroff or troff.&lt;br /&gt;&lt;br /&gt;tcopy &lt;br /&gt;Copy a magnetic tape.&lt;br /&gt;&lt;br /&gt;tee &lt;br /&gt;Read from an input and write to a standard output or file.&lt;br /&gt;&lt;br /&gt;telnet &lt;br /&gt;Uses the telnet protocol to connect to another remote computer.&lt;br /&gt;&lt;br /&gt;time &lt;br /&gt;Used to time a simple command. &lt;br /&gt;&lt;br /&gt;timex &lt;br /&gt;The timex command times a command; reports process data and system activity&lt;br /&gt;&lt;br /&gt;touch &lt;br /&gt;Change file access and modification time.&lt;br /&gt;&lt;br /&gt;tput &lt;br /&gt;Initialize a terminal or query terminfo database.&lt;br /&gt;&lt;br /&gt;tr &lt;br /&gt;Translate characters.&lt;br /&gt;&lt;br /&gt;traceroute &lt;br /&gt;Print the route packets take to network host.&lt;br /&gt;&lt;br /&gt;troff &lt;br /&gt;Typeset or format documents.&lt;br /&gt;&lt;br /&gt;ul &lt;br /&gt;Reads the named filenames or terminal and does underlining.&lt;br /&gt;&lt;br /&gt;umask &lt;br /&gt;Get or set the file mode creation mask.&lt;br /&gt;&lt;br /&gt;unalias &lt;br /&gt;Remove an alias.&lt;br /&gt;&lt;br /&gt;unhash &lt;br /&gt;Remove internal hash table.&lt;br /&gt;&lt;br /&gt;uname &lt;br /&gt;Print name of current system.&lt;br /&gt;&lt;br /&gt;uncompress &lt;br /&gt;Uncompressed compressed files.&lt;br /&gt;&lt;br /&gt;uniq &lt;br /&gt;Report or filter out repeated lines in a file.&lt;br /&gt;&lt;br /&gt;unmount &lt;br /&gt;Crates a file systems and remote resources.&lt;br /&gt;&lt;br /&gt;unpack &lt;br /&gt;Expands a compressed file.&lt;br /&gt;&lt;br /&gt;untar &lt;br /&gt;Create tape archives and add or extract files.&lt;br /&gt;&lt;br /&gt;until &lt;br /&gt;Execute a set of actions while/until conditions are evaluated TRUE.&lt;br /&gt;&lt;br /&gt;useradd &lt;br /&gt;Create a new user or updates default new user information.&lt;br /&gt;&lt;br /&gt;userdel &lt;br /&gt;Remove a users account.&lt;br /&gt;&lt;br /&gt;usermod &lt;br /&gt;Modify a users account.&lt;br /&gt;&lt;br /&gt;vacation &lt;br /&gt;Reply to mail automatically.&lt;br /&gt;&lt;br /&gt;vedit &lt;br /&gt;Screen-oriented (visual) display editor based on ex.&lt;br /&gt;&lt;br /&gt;vgrind &lt;br /&gt;Grind nice program listings&lt;br /&gt;&lt;br /&gt;vi &lt;br /&gt;Screen-oriented (visual) display editor based on ex.&lt;br /&gt;&lt;br /&gt;vim &lt;br /&gt;A programmers text editor.&lt;br /&gt;&lt;br /&gt;view &lt;br /&gt;A programmers text editor.&lt;br /&gt;&lt;br /&gt;wait &lt;br /&gt;Await process completion.&lt;br /&gt;&lt;br /&gt;wc &lt;br /&gt;Displays a count of lines, words, and characters in a file&lt;br /&gt;&lt;br /&gt;whereis &lt;br /&gt;Locate a binary, source, and manual page files for a command.&lt;br /&gt;&lt;br /&gt;while &lt;br /&gt;Repetitively execute a set of actions while/until conditions are evaluated TRUE.&lt;br /&gt;&lt;br /&gt;which &lt;br /&gt;Locate a command.&lt;br /&gt;&lt;br /&gt;who &lt;br /&gt;Displays who is on the system.&lt;br /&gt;&lt;br /&gt;whois &lt;br /&gt;Internet user name directory service.&lt;br /&gt;&lt;br /&gt;write&lt;br /&gt;Send a message to another user.&lt;br /&gt;&lt;br /&gt;X &lt;br /&gt;Execute the X windows system.&lt;br /&gt;&lt;br /&gt;xfd &lt;br /&gt;Display all the characters in an X font.&lt;br /&gt;&lt;br /&gt;xlsfonts &lt;br /&gt;Server font list displayer for X.&lt;br /&gt;&lt;br /&gt;xset &lt;br /&gt;User preference utility for X.&lt;br /&gt;&lt;br /&gt;xterm &lt;br /&gt;Terminal emulator for X.&lt;br /&gt;&lt;br /&gt;xrdb &lt;br /&gt;X server resource database utility.&lt;br /&gt;&lt;br /&gt;yacc &lt;br /&gt;Short for yet another compiler-compiler, yacc is a compiler.&lt;br /&gt;&lt;br /&gt;yppasswd &lt;br /&gt;Changes network password in the NIS database.&lt;br /&gt;&lt;br /&gt;zcat &lt;br /&gt;Compress files.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-7401454370948135429?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/7401454370948135429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=7401454370948135429' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/7401454370948135429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/7401454370948135429'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/unix-linux-command.html' title='UNIX / LINUX COMMAND'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-4121183852193202824</id><published>2009-04-08T11:39:00.000-07:00</published><updated>2009-04-08T11:45:32.622-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Upgrade 11.5.9  to 11.5.10.2'/><title type='text'>Upgrade 11.5.9  to 11.5.10.2</title><content type='html'>&lt;strong&gt;Procedure followed to Upgrade 11.5.9  to 11.5.10.2&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Documents followed &lt;/strong&gt;&lt;br /&gt; Metalink Oracle Document ID : 316365.1 – Oracle Applications Release 11.5.10.2 Main. Pack Instlation &lt;strong&gt;Instructions&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Instructions&lt;/strong&gt;&lt;br /&gt;Metalink Oracle Document ID : 259484.1 - Release 11.5.10 Maintenance Pack Installation &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Reference&lt;/strong&gt;&lt;br /&gt;216205 – Database Initilization Parameters and Conf for Oracle Apps 11i&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Basic Maintenance&lt;/strong&gt; &lt;br /&gt;&lt;br /&gt;1. Check the Disk space – Minimum space required 3 – 4 GB Free space.&lt;br /&gt;2. Add additional table space for this tablespace BISD, IGFD,ARD,AHLX,OZFX,OKSX,OKCD,IGSX,PNX&lt;br /&gt;&lt;br /&gt;ALTER DATABASE DATAFILE ‘path/okcd01.dbf’ RESIZE 150M; / EXTEND ON etc.&lt;br /&gt;&lt;br /&gt;3. Check the Invalid Objects &lt;br /&gt;4. Check the Missing files&lt;br /&gt;5. Recompile Apps Schema, Forms, Reports etc&lt;br /&gt;6. Regenerate Env, Jar Files etc.&lt;br /&gt;7. Check hostname, domainname&lt;br /&gt;8. Check file-max, Limit Processors etc.&lt;br /&gt;9. Check the kernel parameters&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Apply latest AD utility Patch – 4712852 &lt;br /&gt;&lt;br /&gt;2. Apply patch 4238286 – TUMS MP &lt;br /&gt;&lt;br /&gt;3. Apply necessary patches as reported by TUMS&lt;br /&gt;&lt;br /&gt;4. Apply 4709948 – Technology Stack Validation Report&lt;br /&gt;&lt;br /&gt;5. Apply 3072811 – Oracle HTTP server patch [Stop the apache server and apply, before applying &lt;br /&gt;a.   To stop apache $COMMON_TOP/admin/scripts/sid_host/adapcctl.sh stop&lt;br /&gt;a. export ORACLE_HOME = IAS_ORACLE_HOME path&lt;br /&gt;b. ./patch.sh install&lt;br /&gt;c. Unzip oprocmgr – check&lt;br /&gt;d. Start apache -$COMMON_TOP/admin/scripts/sid_hos/adappctl.sh start&lt;br /&gt;&lt;br /&gt;6. In Application Tier – In context file – SID_host.xml in $APPL_TOP/admin dir&lt;br /&gt;Symbolic link pointing to $COMMON_TOP, $JAVA_TOP, PORTAL  to be replaced with direct link not through symbolic link for ex.&lt;br /&gt;&lt;br /&gt;/erpp – is s a symbolic link to /data/erpp &amp; is available in / file system&lt;br /&gt;  &lt;br /&gt;      In Context file it might have mentioned as /erpp/erppcomn/html to be replaced with  /data/erpp/erppcomn &lt;br /&gt;&lt;br /&gt;7. s_html, s_javatop, s_pt,s_oemcomment,s_toplevel domain -  comment these lines in SID_host.xml – Application Context file.&lt;br /&gt;&lt;br /&gt;8. Apply patch 4318672 – Technology Stack Validation Utility&lt;br /&gt;&lt;br /&gt;9. _system_trig_enabled=false – initSID.ora&lt;br /&gt;&lt;br /&gt;10. REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE –initSID.ora&lt;br /&gt;&lt;br /&gt;11. orapwd file = /erpp/erppdb/9.2.0/dbs/orapw password=admin&lt;br /&gt;&lt;br /&gt;12. Grant sysdba to apps&lt;br /&gt;&lt;br /&gt;13.  perl Txkrun.pl –script –InstSSLFix&lt;br /&gt;&lt;br /&gt;14. Apply 4948577 – Release 6i patch 18&lt;br /&gt;&lt;br /&gt;15. Apply 3966092 – one off patch 8.1.7.4 – IAS_ORACLE_HOME&lt;br /&gt;&lt;br /&gt;16. Apply 4968700 – Additional Developer 6i patch&lt;br /&gt;&lt;br /&gt;17. Apply 4261542  - &lt;br /&gt;&lt;br /&gt;18. Apply 4888294  - Application Interoperability patch for Developer 6i patch 18&lt;br /&gt;&lt;br /&gt;19. Apply 2376472  - 8.1.7.4 patchset for Oracle Data Server [Application].&lt;br /&gt;[8.0.6 Oracle Database used in 11.5.9 is obsolete].&lt;br /&gt;&lt;br /&gt;20. Apply 4029076  - Delivery of http client.jar [1022A],OJSP  11352 provider jar and SSL patch for IAS Technology Stack.&lt;br /&gt;&lt;br /&gt;21. Copy perl directory from SIDora/Apache to /SIDdb/9.2.0/Apache [Problems faced in perl installation available in SIDdb directory].&lt;br /&gt;&lt;br /&gt;22. DIRECTORY ACCESSBILITY=FALSE – initSID.ora&lt;br /&gt;&lt;br /&gt;23. _B_TREE_BITMAP_PLANS=FALSE – initSID.ora&lt;br /&gt;&lt;br /&gt;24.  ALTER TABLESPACE SYSTEM ADD datafile ‘path/system12.dbf’ size 1024M;&lt;br /&gt;&lt;br /&gt;25. Apply patch 5035661 – Oracle Universal Installer 2.2&lt;br /&gt;&lt;br /&gt;26. Apply patch 4163445 - Database upgrade 9.2.0.3 to 9.2.0.7&lt;br /&gt;&lt;br /&gt;27. Apply 2617419 – O Patch&lt;br /&gt;&lt;br /&gt;28. Apply 4483951 – Query gives wrong results in 9.2.0.7 version&lt;br /&gt;&lt;br /&gt;29. Ensure 750 MB Free rollback segment space is available&lt;br /&gt;&lt;br /&gt;30. Ensure 512 Max Extents ??&lt;br /&gt;&lt;br /&gt;31. Apply patch 3180164 – Migrate to New table space system followed by 11.5.10.2&lt;br /&gt;&lt;br /&gt;32. Apply patch 3348000 – Maintenace Pack 11.5.10.2 – CU2 patch. [After applying the patch, patch itself will take care of  &lt;br /&gt;a. Compiling Invalid Objects&lt;br /&gt;b. Running Auto Config&lt;br /&gt;c. Compile Flexfield&lt;br /&gt;d. Recreate grants and synonyms &lt;br /&gt;e. Main. Multiple Reporting Currencies etc.&lt;br /&gt;&lt;br /&gt;33. In Application Context file  of apps tier and change the following&lt;br /&gt;      "s_options_symlinks" from "Options -FollowSymLinks"&lt;br /&gt;      "s_options_symlinks" to "Options FollowSymLinks"&lt;br /&gt;&lt;br /&gt;34. Start the Application Services&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-4121183852193202824?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/4121183852193202824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=4121183852193202824' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/4121183852193202824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/4121183852193202824'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/upgrade-1159-to-115102.html' title='Upgrade 11.5.9  to 11.5.10.2'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-5583545149765417975</id><published>2009-04-08T04:54:00.000-07:00</published><updated>2009-04-08T05:40:34.932-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Single-node Installation'/><title type='text'>Single-node Installation</title><content type='html'>&lt;strong&gt;Single-node Installation&lt;/strong&gt;&lt;br /&gt;For a single-node installation, everything is installed on one node. All Oracle Applications components, Applications technology stack components, and the database are installed on a single machine. It’s a rather seamless installation in that all components are pre-certified.&lt;br /&gt;This environment is suitable for situations where a large volume of transactions is notexpected, such as a development or training environment. A large production environment with heavy transaction volume is more likely to require a multi-node installation.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyVcYVJw3I/AAAAAAAACSw/EKSfhhK7pBs/s1600-h/1.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 235px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyVcYVJw3I/AAAAAAAACSw/EKSfhhK7pBs/s320/1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322293174445130610" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Setting Up a Single-node Installation&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Running the Rapid Install Wizard&lt;/strong&gt;&lt;br /&gt;Step 1: Choose an installation operation&lt;br /&gt;Step 2: Choose a configuration type&lt;br /&gt;Step 3: Choose environment&lt;br /&gt;Step 4: Register Applications products and&lt;br /&gt;components&lt;br /&gt;Step 5: Select country-specific functionality&lt;br /&gt;Step 6: Select NLS settings&lt;br /&gt;Step 7: Specify main settings information&lt;br /&gt;Step 8: Specify derived settings information&lt;br /&gt;Step 9: Review instance settings information&lt;br /&gt;Step 10: Save the configuration file&lt;br /&gt;Step 11: Review pre-install test results&lt;br /&gt;Step 12: Begin the installation&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdyVcYfy35I/AAAAAAAACSo/aVylpetvVNs/s1600-h/2.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdyVcYfy35I/AAAAAAAACSo/aVylpetvVNs/s320/2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322293174489767826" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;Step 1: Choose an installation operation&lt;/strong&gt;&lt;br /&gt;Choose an installation operation&lt;br /&gt;Upon starting Rapid Install with the rapidwiz command, the first screen appears.&lt;br /&gt;Click the Install Oracle Applications button. Pressing the Tab key moves the cursor between options. Moving the cursor by pressing the Up or Down Arrow keys selects the option as well.&lt;br /&gt;&lt;br /&gt;Click Next to continue.&lt;br /&gt;Note: The Upgrade Actions are used when upgrading a 10.7 or 11.0 Oracle Applications&lt;br /&gt;system to Release 11i.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyVUVUJcSI/AAAAAAAACSg/qq8t5jkIvU4/s1600-h/3.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyVUVUJcSI/AAAAAAAACSg/qq8t5jkIvU4/s320/3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322293036196655394" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Step 2: Choose a configuration type&lt;br /&gt;Choose a configuration type&lt;br /&gt;Choose the Single Node option to set up a system with the database, admin, concurrent&lt;br /&gt;processing, forms, and web servers on a single node. Click Next to continue&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdyVUDAnA4I/AAAAAAAACSY/pOkpyZmIpCw/s1600-h/4.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdyVUDAnA4I/AAAAAAAACSY/pOkpyZmIpCw/s320/4.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322293031282869122" /&gt;&lt;/a&gt;&lt;br /&gt;Step 3: Choose environment&lt;br /&gt;Choose environment: Database name&lt;br /&gt;In order to identify the Oracle Applications system, give it a name and indicate the type of database you want to install.&lt;br /&gt;Rapid Install uses default names that suggest possible uses for the environment:&lt;br /&gt;• A production environment is a fully configured Release 11i installation that could be&lt;br /&gt;used for live production purposes.&lt;br /&gt;• A test environment is a mirror image of a production Release 11i installation. You should&lt;br /&gt;use it to test your installation before you go live.&lt;br /&gt;• A Vision Demo environment can be used to set up a Release 11i installation for&lt;br /&gt;demonstration purposes.&lt;br /&gt;Note: If you want to install another instance, for example, to use as a test environment, run the&lt;br /&gt;Rapid Install wizard again and identify the new environment on this screen.&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdyVT8KZFmI/AAAAAAAACSQ/8KQA60cN5CA/s1600-h/5.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdyVT8KZFmI/AAAAAAAACSQ/8KQA60cN5CA/s320/5.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322293029444851298" /&gt;&lt;/a&gt;&lt;br /&gt;Step 3: Choose environment&lt;br /&gt;Choose environment: Database type&lt;br /&gt;After you type the name, choose the type of database that you want to install. The database&lt;br /&gt;options are:&lt;br /&gt;• Fresh install database: An empty Oracle database, typically used for production or&lt;br /&gt;testing.&lt;br /&gt;• Vision Demo database: An Oracle Vision Demonstration database used to set up demos&lt;br /&gt;or for evaluation purposes.&lt;br /&gt;• Do not install a database: This option assumes an existing database. It creates an&lt;br /&gt;Applications instance and configures it using your existing database. It is typically used&lt;br /&gt;for Windows clusters.&lt;br /&gt;Click Next to continue.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdyVT_p0ScI/AAAAAAAACSI/1-iyuzmqV1Q/s1600-h/6.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdyVT_p0ScI/AAAAAAAACSI/1-iyuzmqV1Q/s320/6.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322293030381963714" /&gt;&lt;/a&gt;&lt;br /&gt;Step 4: Register Applications products and components&lt;br /&gt;Register Applications products and components: Component Applications&lt;br /&gt;licensing Rapid Install installs all products regardless of their licensed status. You use this screen to register the products that you have licensed for use in your system. Your Oracle Corporation license agreement specifies the type of license that applies to your installation. Click Use&lt;br /&gt;Component Applications Licensing or Use E-Business Suite Licensing, according to the&lt;br /&gt;agreement. Rapid Install automatically installs and registers shared and dependent products for&lt;br /&gt;you, so they are selected by default.&lt;br /&gt;Choosing the Component Applications Licensing option registers the products for the&lt;br /&gt;Applications component(s) specified in your license agreement. When you choose to register&lt;br /&gt;an Applications component, you register all the products that it includes. You can also register the products in a component individually. To view individual products, click the Prod. Detail button. The Available Products screen appears.&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdyVTpA3OhI/AAAAAAAACSA/oHiDY1yD6tE/s1600-h/7.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 287px; height: 320px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdyVTpA3OhI/AAAAAAAACSA/oHiDY1yD6tE/s320/7.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322293024304609810" /&gt;&lt;/a&gt;&lt;br /&gt;Step 4: Register Applications products and components&lt;br /&gt;Register Applications products and components: Component Applications&lt;br /&gt;licensing &lt;br /&gt;All individual Oracle Applications products are listed on this screen, including shared or dependent products. Notice that Rapid Install places a check mark beside the products you indicated on the register products screen. Shared or dependent products are shaded, so you cannot select them. Rapid Install automatically installs and registers these shared and dependent products for you, so they are selected by default.&lt;br /&gt;Review your selections on this screen. If you selected a component on the previous screen, you cannot deselect any of its individual products on this screen. If you want to install individual products instead of all the products in a component, press Cancel to return to the product registration screen. Uncheck all component applications, then click Prod. Detail and make individual product selections on the Available Products screen. Click OK to return to the product registration screen.&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdyU_Gk08rI/AAAAAAAACR4/5RPr4tSeTMg/s1600-h/8.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdyU_Gk08rI/AAAAAAAACR4/5RPr4tSeTMg/s320/8.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292671462830770" /&gt;&lt;/a&gt;&lt;br /&gt;Register Applications products and components: E-Business Suite Licensing&lt;br /&gt;Choosing the E-Business Suite Licensing option causes Rapid Install to automatically register all the products included in the E-Business Suite price bundle.&lt;br /&gt;Note that some of the modules are grayed out. The ones that are not must be installed&lt;br /&gt;separately as Add-on products — they are not part of the E-Business Suite price bundle. Click the Prod. Detail button to display the Available Products screen.&lt;br /&gt;Register Applications products and components: E-Business Suite Licensing&lt;br /&gt;Most of the individual Add-on products are checked, indicating that they will be installed and registered automatically. If you want to select additional individual products, select them at this time.&lt;br /&gt;If you have chosen to install a product that is controlled, Rapid Install displays an alert screen.&lt;br /&gt;Follow the instructions on the screen as they apply to your installation. Click OK to return to the product registration screen. Click Next to continue.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyU-4EnBwI/AAAAAAAACRw/wWOY37VIWyQ/s1600-h/9.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 288px; height: 320px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyU-4EnBwI/AAAAAAAACRw/wWOY37VIWyQ/s320/9.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292667569604354" /&gt;&lt;/a&gt;&lt;br /&gt;Step 5: Select country-specific functionality&lt;br /&gt;&lt;br /&gt;Select country-specific functionality&lt;br /&gt;If you will use country-specific features, register them on this screen. All countries that Oracle supports are listed on this screen. Click the appropriate check box to make your selections.&lt;br /&gt;Click Next to continue.&lt;br /&gt;Note: The Globalizations products, JA, JE, JG, and JL are associated with country-specific functionalities. They cannot be registered from the product registering screens. For example, when you select BR-Brazil, the JL product will be set to licensed.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdyU-9kSk2I/AAAAAAAACRo/JTuSe8CUEjs/s1600-h/10.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdyU-9kSk2I/AAAAAAAACRo/JTuSe8CUEjs/s320/10.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292669044659042" /&gt;&lt;/a&gt;&lt;br /&gt;Step 6: Select NLS settings&lt;br /&gt;Select NLS settings&lt;br /&gt;The fresh install database comes with American English installed as the default base language, AMERICA as the default territory, and US7ASCII as the default character set. You can select additional languages and modify the default base language and the default territory settings on this screen.&lt;br /&gt;If you select additional languages, you may also need to select an alternative character set for the database and the APPL_TOP. Note that the conversion to a different character set will be automatic, but it may take several hours to complete.&lt;br /&gt;The default territory is used as the NLS territory setting for all users of the Applications installation. The base language is used as the default NLS language setting. Choose a territory from the list of NLS territories if you want to change the default territory setting. Click Select Languages to see a list of available languages.&lt;br /&gt;Note: Release 11i does not support changing NLS settings or the character set for the Vision Demonstration database.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyU-yJ73qI/AAAAAAAACRg/-fg0XdzPf-Q/s1600-h/11.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyU-yJ73qI/AAAAAAAACRg/-fg0XdzPf-Q/s320/11.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292665981329058" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Step 6: Select NLS settings&lt;br /&gt;Select NLS settings: Languages&lt;br /&gt;In prior versions of Release 11i, the Rapid Install wizard only registered additional languages — it did not actually install them. In this release, the language files will be installed in the APPL_TOP file system during the installation. If you choose to add a language(s) on this screen, Rapid Install prompts you for the location of the language CD(s) later in the&lt;br /&gt;installation. You must have the Oracle Applications Release 11i NLS CD pack available at that time.&lt;br /&gt;Warning: If you do not have the language CDs available when Rapid Install prompts you for their location, the installation will stop and you will not be able to continue.&lt;br /&gt;Double-click a language to move it into the Installed Languages list or highlight it and click the right arrow key. Highlighting a language in the Installed Languages box and clicking the left arrow removes it. You cannot remove American English from this list. Click OK to continue.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyU-sZ4Z9I/AAAAAAAACRY/pKcTXXLRvNU/s1600-h/12.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 242px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyU-sZ4Z9I/AAAAAAAACRY/pKcTXXLRvNU/s320/12.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292664437598162" /&gt;&lt;/a&gt;&lt;br /&gt;Step 6: Select NLS settings: Base Language&lt;br /&gt;The Base Language list box now shows multiple language choices and the Database Character Set and APPL_TOP Character Set list boxes have changed to a character set that is common to all the selected languages.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdyUxoH-twI/AAAAAAAACRQ/4_KjO06TflE/s1600-h/13.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdyUxoH-twI/AAAAAAAACRQ/4_KjO06TflE/s320/13.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292439950472962" /&gt;&lt;/a&gt;&lt;br /&gt;Step 6: Select NLS settings: Character Set&lt;br /&gt;If you want to change the database and APPL_TOP character set from the values shown, select a new value from the dropdown box. If you need to use a character set that is not shown in the dropdown box, enter the APPL_TOP character set name directly in the derived settings screen&lt;br /&gt;(see Step 8), or the database character set name on the instance settings screen (see Step 9).&lt;br /&gt;Click Next to continue.&lt;br /&gt;Note: The languages you install must be compatible with the character set you choose.&lt;br /&gt;After Rapid Install processing is complete, you must perform additional tasks to complete the language installation. See the Oracle Applications NLS Release Notes for more information.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdyUxjrvqlI/AAAAAAAACRI/5_j1oTigltk/s1600-h/14.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdyUxjrvqlI/AAAAAAAACRI/5_j1oTigltk/s320/14.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292438758304338" /&gt;&lt;/a&gt;&lt;br /&gt;Step 7: Specify main settings information&lt;br /&gt;Specify the main settings for the various top-level directories and user accounts for your installation. The values you define here are used to calculate the settings for the system and are carried over to subsequent screens where you define the detailed directory and instance settings.&lt;br /&gt;The tab label is derived from the name of the machine you are using to run the Rapid Install wizard. The default directories are created using the appropriate operating system syntax for that machine. Windows syntax is shown in the example.&lt;br /&gt;Use the vertical scroll bar or the Up and Down Arrow keys to move the main settings fields and default values into view. Click Next to continue.&lt;br /&gt;&lt;br /&gt;Main Settings&lt;br /&gt;APPL_TOP base: This default directory mount setting appears on subsequent Rapid Install screens for convenience. This is the base directory for the APPL_TOP.&lt;br /&gt;COMMON_TOP base: This is the base directory for the COMMON_TOP. It contains other&lt;br /&gt;directories for files that are used across products or in conjunction with third-party products. This default directory mount setting appears on subsequent Rapid Install screens for convenience.&lt;br /&gt;ORA_TOP base: The base directory for the RDBMS installation.&lt;br /&gt;DATA_TOP (sys): The directory on the database node that contains the data dictionary for the entire RDBMS.&lt;br /&gt;DATA_TOP (logs): The directory on the database node that contains the redo log files used by the RDBMS.&lt;br /&gt;DATA_TOP (data): The directory on the database node that contains the data tablespaces.&lt;br /&gt;Each product has its own data tablespace within this directory.&lt;br /&gt;Main Settings&lt;br /&gt;Apps OS User (UNIX): Owner of the Oracle Applications file system and technology stack.&lt;br /&gt;Apps OS Group (UNIX): Default OS (operating system) group for the Applications OS user.&lt;br /&gt;Oracle OS User (UNIX): Owner of the Oracle database file system.&lt;br /&gt;Oracle OS Group (UNIX): Default OS (operating system) group for the Oracle OS user.&lt;br /&gt;NT User (Windows): If you choose the Windows platform for running the concurrent&lt;br /&gt;manager service, this is the user that runs the service.&lt;br /&gt;NT Password (Windows): If you choose the Windows platform for running the concurrent&lt;br /&gt;manager service, this is the password of the user that runs the service.&lt;br /&gt;DNS Domain Name: A valid domain name used when configuring Oracle Applications for&lt;br /&gt;the network. This is a required field. You must enter a domain name that, when combined with a host name, produces a fully qualified domain name. For example, in the fully qualified domain name myhost.in.appsdbaportal.com, the domain name is in.appsdbaportal.com.&lt;br /&gt;X DISPLAY (UNIX): Used by the reports server, forms server, Apache server, and the&lt;br /&gt;concurrent manager, this display must always be accessible during runtime. Should be set to an active X Windows display, and point to a machine that is always available to the Oracle Applications instance.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdyUxYw7K8I/AAAAAAAACRA/b2rcygW9qR0/s1600-h/15.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdyUxYw7K8I/AAAAAAAACRA/b2rcygW9qR0/s320/15.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292435827239874" /&gt;&lt;/a&gt;&lt;br /&gt;Step 8: Specify derived settings&lt;br /&gt;information&lt;br /&gt;&lt;br /&gt;Step 8: Specify derived settings information&lt;br /&gt;This screen shows detailed settings for the environment. The values are derived from those entered on the main settings screen in the previous step. Use the vertical scroll bar or the Up and Down Arrow keys to move the derived settings fields and default values into view. Click&lt;br /&gt;Next to continue.&lt;br /&gt;Note: If you change a recommended character set (by overwriting the default) in this screen,&lt;br /&gt;be sure the languages you install are compatible with the character set you choose.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Derived Settings&lt;br /&gt;Derived Settings&lt;br /&gt;APPL_TOP Mount Point, APPL_TOP aux 1, APPL_TOP aux 2, APPL_TOP aux 3: The&lt;br /&gt;primary APPL_TOP mount point directory and the auxiliary mount point directories used to distribute APPL_TOP among multiple directories or partitions.&lt;br /&gt;If you plan to install the entire file system on one mount point or disk, all APPL_TOP auxiliary directories should have the same mount point or disk name. In this case, your APPL_TOP disk space requirements will be 12 - 14 GB, depending on your platform.&lt;br /&gt;APPL_TOP Char. Set: The character set of the files within the file systems installed on the application tier. The character set is carried over from your selection in the NLS Settings of the Language screen.&lt;br /&gt;COMMON_TOP: The common top directory holds directories for files that are used across&lt;br /&gt;products or in conjunction with third-party products. It contains the:&lt;br /&gt;• Rapid Install admin directory with subdirectories for concurrent manager log and out directories, the install subdirectory (contains scripts used only during an install), and the scripts subdirectory (contains scripts used for daily maintenance of the Oracle Applications instance).&lt;br /&gt;• html directory, which contains files used by html-based products such as JSP files, Java scripts, xml files, and style sheets.&lt;br /&gt;• java directory where Rapid Install installs all Oracle Applications JAR files. It also holds 3rd-party Java files.&lt;br /&gt;• portal directory, which contains Rapid Install Portal files.&lt;br /&gt;• temp directory, which is used for caching by some processes such as Oracle Reports.&lt;br /&gt;• util directory, which contains 3rd-party utilities such as JDK, JRE, and UnZip.&lt;br /&gt;Database ORACLE_HOME: The ORACLE_HOME directory installed on the database tier.It hosts the Oracle database server.&lt;br /&gt;8.0.6 ORACLE_HOME: The ORACLE_HOME directory installed on each node of the&lt;br /&gt;application tier. This ORACLE_HOME hosts the various servers of the Applications&lt;br /&gt;technology stack. The application tier file system is linked to this 8.0.6 ORACLE_ HOME.&lt;br /&gt;Tool ORACLE_HOME: The ORACLE_HOME directory installed on each node of the&lt;br /&gt;application tier. It is used for the Oracle iAS components including the Oracle HTTP server.&lt;br /&gt;DATA_TOP (sys): The directory on the database node that contains the data dictionary for the entire RDBMS.&lt;br /&gt;DATA_TOP (logs): The directory on the database node that contains the redo log files used by the RDBMS.&lt;br /&gt;DATA_TOP (data): The directory on the database node that contains the data tablespaces. Each product has its own data tablespace within this directory.&lt;br /&gt;DATA_TOP (index): The directory on the database node that contains the index tablespaces. Each product has its own index tablespace within this directory.&lt;br /&gt;JAVA_TOP: Contains the Java files used by all Oracle Applications products. This directory is in the COMMON_TOP directory.&lt;br /&gt;PORTAL_TOP: Contains the HTML used to review and complete the installation after Rapid Install. These include the post-install steps and the configuration files, written as HTML files.&lt;br /&gt;JRE_TOP: Contains the Java Runtime Engine files used by all Oracle Applications products. These include the Java platform core classes and supporting files.&lt;br /&gt;Temp Directory: Contains temporary files. This directory is not used during installation.&lt;br /&gt;Apps OS User (UNIX): Owner of the Oracle Applications file system and the Applications technology stack.&lt;br /&gt;Apps OS Group (UNIX): Default OS (operating system) group for the Applications OS user.&lt;br /&gt;Oracle OS User (UNIX): Owner of the database file system.&lt;br /&gt;Oracle OS Group (UNIX): Default OS (operating system) group for the Oracle OS user.&lt;br /&gt;NT User (Windows): If you choose the Windows platform for running the concurrent&lt;br /&gt;manager service, this is the user that runs the service.&lt;br /&gt;NT Password (Windows): If you choose the Windows platform for running the concurrent&lt;br /&gt;manager service, this is the password of the user that runs the service.&lt;br /&gt;DNS Domain Name: The domain the machine is assigned to on the network.&lt;br /&gt;&lt;br /&gt;MKS Directory (Windows): MKS tools must be added in the PATH so that executables can&lt;br /&gt;be used to relink Applications executables and .DLLs.&lt;br /&gt;MSDEV Directory (Windows): Location of the Visual C/C++ executables and .DLL files.&lt;br /&gt;Used for linking Applications executables or .DLLs.&lt;br /&gt;DBA Group Name (UNIX): The user that owns the Oracle database must belong to this&lt;br /&gt;group.&lt;br /&gt;X DISPLAY (UNIX): Used by the reports server, forms server, apache server, and the&lt;br /&gt;concurrent manager, this display must always be accessible during runtime. Should be set to an&lt;br /&gt;active X Windows display, and should point to a machine that is always available to the Applications instance.&lt;br /&gt;External JDK: Points to location of the JDK installation. Required by Apache to successfully start the JSERV engine. Must be the same as the location where you downloaded JDK.&lt;br /&gt;OUI Inventory Path (Windows): Path used by the Oracle Universal Installer (OUI) for&lt;br /&gt;installation. The Inventory contains components installed by Rapid Install and is used for patching in certain circumstances.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdyUxXjEAHI/AAAAAAAACQ4/YOxD1PmBkvk/s1600-h/16.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdyUxXjEAHI/AAAAAAAACQ4/YOxD1PmBkvk/s320/16.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292435500662898" /&gt;&lt;/a&gt;&lt;br /&gt;Step 9: Review instance settings information&lt;br /&gt;Rapid Install uses the values specified on this screen to configure server processes, such as those on the forms and web servers, as well as listener processes.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdyUxSIk58I/AAAAAAAACQw/k1hh51cDCgY/s1600-h/17.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdyUxSIk58I/AAAAAAAACQw/k1hh51cDCgY/s320/17.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292434047395778" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdyUmsdB2nI/AAAAAAAACQo/POKf_Azov-s/s1600-h/18.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdyUmsdB2nI/AAAAAAAACQo/POKf_Azov-s/s320/18.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292252133939826" /&gt;&lt;/a&gt;&lt;br /&gt;Step 9: Review instance settings information: Port Pool&lt;br /&gt;The starting number of the port value is pre-set, but you can set the incremental number by using the dropdown list in the Port Pool field. The Port Pool list provides a way to use a predefined set of server ports. There are 100 port pool selections.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdyUmpyyUxI/AAAAAAAACQg/lSB0U7HVWsc/s1600-h/19.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdyUmpyyUxI/AAAAAAAACQg/lSB0U7HVWsc/s320/19.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292251419890450" /&gt;&lt;/a&gt;&lt;br /&gt;Step 9: Review instance settings information&lt;br /&gt;For example, if you select 3, the default Database Port number (1521) becomes 1524&lt;br /&gt;(increment of 3). If you do not want to use the port pool feature, you can specify ports manually by adjusting individual server port values where appropriate.&lt;br /&gt;Use the vertical scroll bar or the Up and Down Arrow keys to move through the instance settings. You can change the values or accept the current settings. Click Next to continue.&lt;br /&gt;&lt;br /&gt;Instance Settings&lt;br /&gt;&lt;br /&gt;Instance Settings&lt;br /&gt;SID: Name of the database instance.&lt;br /&gt;Global Name: Global database name.&lt;br /&gt;DB Character Set: Character set of the database.&lt;br /&gt;Default Territory: Defines the NLS territory.&lt;br /&gt;Database Port: Net Services Listener port that receives requests from the various servers for processing on the RDBMS.&lt;br /&gt;RPC Port: Oracle Applications uses the Report Review Agent (an RPC server process). The RPC port is the TCP/IP port on the concurrent processing server node that receives incoming Report Review Agent requests.&lt;br /&gt;Reports Port: TCP/IP port on the reports server that receives incoming requests from&lt;br /&gt;browsers or other servers.&lt;br /&gt;Web Listener Port: HTTP port on the web server that receives incoming requests from&lt;br /&gt;browsers or other servers.&lt;br /&gt;OProcMgr Port: Port for process that monitors the Apache JVM state. Routes requests for the JVM.&lt;br /&gt;Web PLSQL Port: Port that receives PL/SQL data and HTML content from the database and&lt;br /&gt;re-directs it to the PL/SQL Apache listener.&lt;br /&gt;Servlet Port: Port on the web server that browsers connect to when invoking Java servlets.&lt;br /&gt;Forms Listener Port: TCP/IP port on the forms server that receives incoming requests from&lt;br /&gt;browsers or other servers.&lt;br /&gt;Metrics Server Data Port: TCP/IP port on which the Metrics server receives load data from Metrics clients running on other machines.&lt;br /&gt;Metrics Server Req. Port: TCP/IP port on which the Metrics server receives the “least-loaded host” requests from forms clients.&lt;br /&gt;JTF Fulfillment Server Port: TCP/IP port on which the Fulfillment server receives requests from a remote process.&lt;br /&gt;Map Viewer Servlet Port: Dedicated TCP/IP servlet port on the web server that receives requests for the Map Viewer.&lt;br /&gt;OEM Web Utility Port: Dedicated TCP/IP port on the web server that receives requests for the Oracle Enterprise Manager.&lt;br /&gt;VisiBroker OrbServer Agent Port: Dedicated TCP/IP port on the web server that receives requests for the VisiBroker OrbServer agent, used by Oracle Discoverer.&lt;br /&gt;MSCA Server Port: Port used by the MSCA (Mobile Supply Chain Applications) server.&lt;br /&gt;MSCA Dispatcher Port: Port used by the MSCA Dispatcher.&lt;br /&gt;OACORE Servlet Port Range: Range of ports used by the OACORE servlets (for the Self-&lt;br /&gt;Service framework).&lt;br /&gt;Discoverer Servlet Port Range: Range of ports used by the Discoverer servlets.&lt;br /&gt;Forms Servlet Port Range: Range of ports used for the Forms Servlet JServ processes.&lt;br /&gt;XMLSVCS Servlet Port Range: Range of ports used by the XML service.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdyUmSzeT_I/AAAAAAAACQY/q0Izqg7Cu-I/s1600-h/20.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdyUmSzeT_I/AAAAAAAACQY/q0Izqg7Cu-I/s320/20.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292245248757746" /&gt;&lt;/a&gt;&lt;br /&gt;Step 10: Save the configuration file&lt;br /&gt;You have now completed all the information Rapid Install needs to install your Oracle&lt;br /&gt;Applications products. The next screen asks you to save your installation settings in a configuration file. This file (config.txt) stores the configuration parameters that you entered on the settings screens.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdyUmbM3_1I/AAAAAAAACQQ/X_rhNDVQS78/s1600-h/21.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdyUmbM3_1I/AAAAAAAACQQ/X_rhNDVQS78/s320/21.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292247502782290" /&gt;&lt;/a&gt;&lt;br /&gt;Step 11: Review pre-install test results&lt;br /&gt;Rapid Install begins to perform a series of system checks to validate the configuration described by your configuration file. As the parameters are tested, the results of the validation&lt;br /&gt;checks are recorded in the system test dialog box. When the tests are complete, Rapid Install&lt;br /&gt;provides a check list of the tests that it performed and an indication of whether the tests succeeded or failed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Parameter Validation&lt;br /&gt;The parameters that Rapid Install validates include:&lt;br /&gt;• Port Availability validates the ports you selected are available for use.&lt;br /&gt;• Operating System Check validates the patches and/or version levels of your operating&lt;br /&gt;system.&lt;br /&gt;• Port Uniqueness validates that there are no duplicate defined ports for server processes.&lt;br /&gt;• File System Check validates that file system mount points exist and have correct&lt;br /&gt;privileges.&lt;br /&gt;• File Space Check validates that file system mount points have sufficient space.&lt;br /&gt;• Host/Domain Check validates that host and domain names are verified by the DNS&lt;br /&gt;server.&lt;br /&gt;• System Utilities Check validates that linking utilities (make, ld, and cc) are available.&lt;br /&gt;• JDK Availability Check validates that JDK exists in the location you specified.&lt;br /&gt;&lt;br /&gt;The results of each test are displayed using check list icons. Scroll down the list to see the results. There are three result types:&lt;br /&gt;• Check mark: The test succeeded.&lt;br /&gt;• Exclamation mark (!): The configuration requires review. Click the ! to get information about the system test review. Click Yes to continue, and No if you are going to resolve the issues. Rapid Install alerts you if you continue without resolving the issues.&lt;br /&gt;• An x mark: All issues marked x must be resolved before you continue with the&lt;br /&gt;installation. Click the x to see the errors. If you can resolve an issue by fixing the values provided on the settings screen(s), click Back until you reach the appropriate screen, and re-enter the values. Some tests must be resolved in the operating system. In that case, you may have to restart the Rapid Install wizard after the problem has been fixed.&lt;br /&gt;When there are no issues to resolve, click Next to continue.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyUmbSt8sI/AAAAAAAACQI/U8uzzsVb32Q/s1600-h/22.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 131px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyUmbSt8sI/AAAAAAAACQI/U8uzzsVb32Q/s320/22.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5322292247527289538" /&gt;&lt;/a&gt;&lt;br /&gt;Step 12: Begin the installation&lt;br /&gt;Rapid Install lists the actions it will take during the installation process. The list varies based on your installation. Click Next to continue.&lt;br /&gt;Rapid Install displays another alert screen asking you to verify that you are ready to begin the installation. Click Yes to continue. Rapid Install begins the installation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-5583545149765417975?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/5583545149765417975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=5583545149765417975' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5583545149765417975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5583545149765417975'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/single-node-installation.html' title='Single-node Installation'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Veaf3lFF6Po/SdyVcYVJw3I/AAAAAAAACSw/EKSfhhK7pBs/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-2839722191589370619</id><published>2009-04-07T05:19:00.000-07:00</published><updated>2009-04-07T05:22:00.479-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Upgrade to Oracle Database 10g'/><title type='text'>Upgrade to Oracle Database 10g</title><content type='html'>Supported Upgrade Paths to Oracle 10g&lt;br /&gt;&lt;br /&gt;You can migrate directly to the Oracle Database 10g version only if your database is one of the following versions: 8.0.6, 8.1.7, 9.0.1, or 9.2.&lt;br /&gt;You can upgrade to Oracle Database 10g in two ways:&lt;br /&gt;&lt;br /&gt;• the traditional manual mode&lt;br /&gt;• by using the Database Upgrade Assistant (DBUA)&lt;br /&gt;&lt;br /&gt;Note: The DBUA is a GUI tool, but you can also run it in the silent mode, by using the following command at the operating system level: dbua&lt;br /&gt;Using New Utility to Perform Pre-Upgrade Validation Checks&lt;br /&gt;Oracle now includes a brand-new tool, called the Upgrade Information Tool, to help you collect various pieces of critical information before you start the upgrade process.&lt;br /&gt;&lt;br /&gt;The Upgrade Information Tool provides important information and actions you should do before upgrading the existing database.&lt;br /&gt;If you are performing a manual upgrade, you need to invoke the tool by running the SQL script utlu10*i.sql. The DBCA automatically runs it as part of the pre-upgrade check.&lt;br /&gt;&lt;br /&gt;Note: In Oracle 10g Release 2, the Pre-Upgrade Information Utility (utlu102i.sql) has been enhanced to provide improved resource estimations for tablespace space usage and elapsed upgrade runtime.&lt;br /&gt;&lt;strong&gt;The Post-Upgrade Status Tool&lt;/strong&gt;&lt;br /&gt;Oracle Database 10g also provides a Post-Upgrade Status Tool (utlu10*s.sql), which gives you an accurate summary of the upgrade process and any necessary corrective steps to be taken.&lt;br /&gt;&lt;br /&gt;You can restart a failed database upgrade job from the point where you failed.&lt;br /&gt;If you use the DBUA to upgrade, the script runs automatically. If you are performing a manual upgrade, you need to run the script yourself, after the upgrade process is finished.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Using the Simplified Upgrade Process&lt;/strong&gt;&lt;br /&gt;Oracle provides the DBUA to facilitate the database upgrade process. You can use the DBUA to upgrade any database configuration, including RAC and standby databases.&lt;br /&gt;The DBUA takes care of the following tasks for you:&lt;br /&gt;• Deletes all obsolete initialization parameters&lt;br /&gt;• Changes the ORACLE_HOME settings automatically&lt;br /&gt;• Runs the appropriate upgrade scripts for your current release&lt;br /&gt;• Configures your listener.ora file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Starting DBUA&lt;br /&gt;On Windows: Programs | Oracle | Configuration and Migration Tools | Database Upgrade Assistant.&lt;br /&gt;On a UNIX system: simply type dbua&lt;br /&gt;Silent startup: dbua -silent –dbName nina&lt;br /&gt;Manual Upgrade Process&lt;br /&gt;Steps in the Manual Upgrade Process&lt;br /&gt;&lt;br /&gt;1. Start a Spool File&lt;br /&gt;SQL&gt; spool upgrade.log&lt;br /&gt;2. Run the Upgrade Information Tool&lt;br /&gt;SQL&gt; @$ORACLE_HOME/rdbms/admin/utlu101i.sql&lt;br /&gt;SQL&gt; spool off&lt;br /&gt;3. Back Up Your Database&lt;br /&gt;At this point, shut down and back up your current database, by using either the RMAN or by using user-managed backup techniques.&lt;br /&gt;4. Copy Your init.ora File&lt;br /&gt;Copy your present init.ora file to the new Oracle Database 10g default location:&lt;br /&gt;o %ORACLE_HOME%\database on Windows with the name: init%ORACLE_SID%.ora&lt;br /&gt;o $ORACLE_HOME/dbs under UNIX with the name: init$ORACLE_SID.ora&lt;br /&gt;Make all the necessary changes in your init.ora parameter file, as per the Upgrade Information Tool’s recommendations.&lt;br /&gt;5. If you are upgrading a cluster database and your initdb_name.ora file resides within the old environment's Oracle home, then move or copy the initdb_name.ora file to the new Oracle home. Make modifications in the file in the same way as made in the init.ora file.&lt;br /&gt;6. If you are upgrading a cluster database, then set the CLUSTER_DATABASE initialization parameter to false. After the upgrade, you must set this initialization parameter back to true.&lt;br /&gt;7. Shut down the instance:&lt;br /&gt;SQL&gt; SHUTDOWN IMMEDIATE&lt;br /&gt;8. Completely remove any Windows-Based Oracle Instances&lt;br /&gt;C:\&gt;net stop oracleservicefinance&lt;br /&gt;C:\&gt;oradim -delete -sid finance&lt;br /&gt;C:\&gt;oradim -new -sid finance -intpwd finance1 -startmode auto –pfile c:\oracle\product\10.1.0\Db_1\database\initfinance.ora&lt;br /&gt;9. If your operating system is UNIX, then make sure that your ORACLE_SID is set correctly and that the following variables point to the new release directories: ORACLE_HOME,PATH,ORA_NLS10,LD_LIBRARY_PATH&lt;br /&gt;10. Log in to the system as the owner of the Oracle home directory of the new Oracle Database 10g release.&lt;br /&gt;11. At a system prompt, change to the ORACLE_HOME/rdbms/admin directory.&lt;br /&gt;12. Start Up the New Database&lt;br /&gt;sqlplus /nolog&lt;br /&gt;SQL&gt; connect / as sysdba&lt;br /&gt;SQL&gt; startup upgrade&lt;br /&gt;&lt;br /&gt;Using the startup upgrade command tells Oracle to automatically modify certain parameters, including initialization parameters that cause errors otherwise&lt;br /&gt;13. If you are upgrading from a release other than 10.1, create the SYSAUX Tablespace. The Pre-Upgrade Information Tool provides an estimate of the minimum required size for the SYSAUX tablespace in the SYSAUX Tablespace section.&lt;br /&gt;CREATE TABLESPACE sysaux DATAFILE 'sysaux01.dbf' SIZE 500M&lt;br /&gt;EXTENT MANAGEMENT LOCAL&lt;br /&gt;SEGMENT SPACE MANAGEMENT AUTO&lt;br /&gt;ONLINE&lt;br /&gt;14. If you upgrading to release 1, run the Upgrade Script. Run the Upgrade Script corresponding to the Oracle version you would like to upgrade:&lt;br /&gt;o 8.0.6: u0800060.sql&lt;br /&gt;o 8.1.7: u0801070.sql&lt;br /&gt;o 9.0.1: u0900010.sql&lt;br /&gt;o 9.2: u0902000.sql&lt;br /&gt;15. If you upgrading to Oracle Database 10g Release 2, only one common SQL script has to be invoked when performing a database upgrade. Oracle automatically determines what version is being upgraded and runs the appropriate upgrade scripts for that database and all of its included components:&lt;br /&gt;SQL&gt; SPOOL upgrade.log&lt;br /&gt;SQL&gt; @catupgrd.sql&lt;br /&gt;16. Depending of the release you are upgrading to, run utlu10*s.sql (Post-Upgrade Status Tool) to display the results of the upgrade:&lt;br /&gt;SQL&gt; @utlu101s.sql TEXT&lt;br /&gt;SQL&gt; @utlu102s.sql&lt;br /&gt;SQL&gt; SPOOL OFF&lt;br /&gt;Note that the utlu101s.sql script is followed by the word TEXT, to enable the printing of the script output.&lt;br /&gt;The tool simply queries the DBA_SERVER_REGISTRY table to determine the upgrade status of each individual component.&lt;br /&gt;17. Check the spool file and verify that the packages and procedures compiled successfully. Rerun the catupgrd.sql script, if necessary.&lt;br /&gt;18. Restart the instance&lt;br /&gt;SQL&gt; SHUTDOWN IMMEDIATE&lt;br /&gt;SQL&gt; STARTUP&lt;br /&gt;19. If Oracle Label Security is in your database:&lt;br /&gt;SQL&gt; @olstrig.sql&lt;br /&gt;20. Run utlrp.sql to recompile any remaining invalid stored PL/SQL and Java code.&lt;br /&gt;SQL&gt; @utlrp.sql&lt;br /&gt;21. Verify that all expected packages and classes are valid:&lt;br /&gt;SQL&gt; SELECT count(*) FROM dba_objects WHERE status='INVALID';&lt;br /&gt;SQL&gt; SELECT distinct object_name FROM dba_objects WHERE status='INVALID';&lt;br /&gt;22. Exit SQL*Plus&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-2839722191589370619?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/2839722191589370619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=2839722191589370619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/2839722191589370619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/2839722191589370619'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/upgrade-to-oracle-database-10g.html' title='Upgrade to Oracle Database 10g'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-6969386267680059775</id><published>2009-04-06T07:15:00.000-07:00</published><updated>2009-04-06T07:20:01.775-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flash Recovery Area'/><title type='text'>Flash Recovery Area</title><content type='html'>Using the Flash Recovery Area&lt;br /&gt;&lt;br /&gt;The flash recovery area serves as the default storage area for all files related to backup and restore operations.&lt;br /&gt;&lt;br /&gt;The flash recovery area provides the following benefits:&lt;br /&gt;• Single storage location for all recovery-related files.&lt;br /&gt;• Automatic management of recovery-related disk space.&lt;br /&gt;• Faster backup and restore operations, since you don’t need to restore tape backups.&lt;br /&gt;• Increased reliability of backups, since disks are generally safer storage devices than tapes.&lt;br /&gt;&lt;br /&gt;What’s in the Flash Recovery Area?&lt;br /&gt;The flash recovery area may contain the following files:&lt;br /&gt;• Datafile copies: The new RMAN command BACKUP AS COPY can be used to create image copies of all datafiles and automatically store in the flash recovery area.&lt;br /&gt;• Control file autobackups: The database places any control file backups it generates in the flash recovery area.&lt;br /&gt;• Archived redo log files: If you store Archived redo log files in the flash recovery area, Oracle will automatically delete the files.&lt;br /&gt;• Online redo log files: Oracle recommends that you save a multiplexed copy of your online redo log files in the flash recovery area. The following statements can create online redo logs in the flash recovery area: CREATE DATABASE, ALTER DATABASE ADD LOGFILE, ALTER DATABASE ADD STANDBY LOGFILE, and ALTER DATABASE OPEN RESETLOGS.&lt;br /&gt;• Current control files: Oracle also recommends that you store a multiplexed current control file in the flash recovery area.&lt;br /&gt;• RMAN files&lt;br /&gt;• Flashback logs: If you enable the flashback database feature, Oracle copies images of each altered block in every datafile into flashback logs stored in the flash recovery area.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; Oracle calls the multiplexed redo log files and control files in the flash recovery area permanent files, since they should never be deleted and are part of the live database. Oracle terms all the other files in the flash recovery area (recovery related files) transient files, since Oracle will delete them eventually after they have become obsolete or have already been copied to tape.&lt;br /&gt;Creating a Flash Recovery Area&lt;br /&gt;&lt;br /&gt;You use the DB_RECOVERY_FILE_DEST and DB_RECOVERY_FILE_DEST_SIZE initialization parameters to configure a flash recovery area in your database.&lt;br /&gt;When you use the DB_RECOVERY_FILE_DEST parameter to specify the destination of your flash recovery area, you can use a directory, file system, or ASM disk group as your destination.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Dynamically Defining the Flash Recovery Area&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE = 2G SCOPE=BOTH&lt;br /&gt;ALTER SYSTEM SET DB_RECOVERY_FILE_DEST = 'C:\ORACLE\RECOVERY_AREA' SCOPE=BOTH&lt;br /&gt;&lt;br /&gt;You must always specify the size parameter before specifying the location parameter.&lt;br /&gt;Disabling the Current Flash Recovery Area&lt;br /&gt;&lt;br /&gt;ALTER SYSTEM SET DB_RECOVERY_FILE_DEST = ''&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; even after you disable the flash recovery area, the RMAN will continue to access the files located in the flash recovery area for backup and recovery purposes.&lt;br /&gt;&lt;br /&gt;Default File Location and the Flash Recovery Area&lt;br /&gt;The initialization parameters DB_CREATE_FILE_DEST and DB_CREATE_ONLINE_LOG_DEST_n determine the location of all OMF files.&lt;br /&gt;Control Files&lt;br /&gt;If you haven’t set the CONTROL_FILES parameter, Oracle will create the control files in various default locations, according to the following rules:&lt;br /&gt;&lt;br /&gt;• If you specify the DB_CREATE_ONLINE_LOG_DEST_n parameter, Oracle will create an OMF-based control file in n number of locations, with the first directory holding the primary control file.&lt;br /&gt;• If you specify the DB_CREATE_FILE_DEST and DB_RECOVERY_FILE_DEST parameters, Oracle will create an OMF based control file in both of these locations.&lt;br /&gt;• If you just specify the DB_RECOVERY_FILE_DEST parameter, Oracle will create an OMF-based control file in the flash recovery area only.&lt;br /&gt;• If you omit all three of the initialization parameters, Oracle will create a non-OMF-based control file in the system-specific default location.&lt;br /&gt;Note: If the database creates an OMF control file, and it is using a server parameter file, then the database sets the CONTROL_FILES initialization parameter in the server parameter file.&lt;br /&gt;Redo Log Files&lt;br /&gt;&lt;br /&gt;If you omit the LOGFILE clause during database creation, Oracle will create the redo log files according to the same rules as mentioned above.&lt;br /&gt;Backing Up the Flash Recovery Area&lt;br /&gt;In order to back up the flash recovery area itself using RMAN, you must set CONFIGURE BACKUP OPTIMIZATION to ON.&lt;br /&gt;You can back up the flash recovery area only to a tape device using these backup commands:&lt;br /&gt;&lt;br /&gt;BACKUP RECOVERY AREA&lt;br /&gt;&lt;br /&gt;o This command backs up all flash recovery files in the current or previous flash recovery area destinations.&lt;br /&gt;o It backs up only those files that have never been backed up to tape before.&lt;br /&gt;o The files that the command will back up include full backups, incremental backups, control file autobackups, archive logs, and datafile copies.&lt;br /&gt;&lt;br /&gt;BACKUP RECOVERY FILES&lt;br /&gt;&lt;br /&gt;This command backs up all the files that the BACKUP RECOVERY AREA command does, but from all areas on your file system, not just from the flash recovery area.&lt;br /&gt;&lt;br /&gt;BACKUP RECOVERY FILE DESTINATION&lt;br /&gt;&lt;br /&gt;Use this command to move disk backups created in the flash recovery area to tape.&lt;br /&gt;Note: Neither of the two commands, BACKUP RECOVERY AREA or BACKUP RECOVERY FILES, will back up any permanent files or the flashback logs in the flash recovery area.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Managing the Flash Recovery Area&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Space Management&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;If you ever receive the out-of-space warning (85) and critical alerts (97) because of space pressure in you flash recovery area, you have the following options:&lt;br /&gt;o Consider changing your backup retention and archive log retention policies.&lt;br /&gt;o Increase the size of the DB_RECOVERY_FILE_DEST_SIZE parameter to allocate more space to your current flash recovery area.&lt;br /&gt;o Use the BACKUP RECOVERY AREA command in the RMAN to back up the contents of the flash recovery area to a tape device.&lt;br /&gt;o Use the RMAN to delete unnecessary backup files. The RMAN commands CROSSCHECK and DELETE EXPIRED come in handy during this deletion process.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Data Dictionary Views&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;V$RECOVERY_FILE_DEST&lt;br /&gt;This view is the main source and contains the following columns:&lt;br /&gt;&lt;br /&gt;SPACE_LIMIT :how much space has been allocated to the flash recovery area&lt;br /&gt;&lt;br /&gt;SPACE_USED :space occupied&lt;br /&gt;&lt;br /&gt;SPACE_RECLAIMABLE :how much space you can reclaim by getting rid of obsolete and redundant files in the flash recovery area.&lt;br /&gt;NUMBER_OF_FILES :number of files&lt;br /&gt;&lt;br /&gt;V$FLASH_RECOVERY_AREA_USAGE&lt;br /&gt;&lt;br /&gt;This view provides information about the flash recovery area disk space usage. Following is its main columns:&lt;br /&gt;&lt;br /&gt;FILE_TYPE  :the type of the file and can have any of the following values: controlfile, onlinelog, archivelog, backuppiece, imagecopy, flashbacklog&lt;br /&gt;&lt;br /&gt;PERCENT_SPACE_USED  :This represents the disk space used by the file type, in percentage.&lt;br /&gt;&lt;br /&gt;PERCENT_SPACE_RECLAIMABLE :this represents the percentage of disk space reclaimable from the file type after deleting any obsolete or redundant files, and files backed up to a tertiary device.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Flash Recovery Area Columns in Other Views&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The Yes/No column IS_RECOVERY_DEST_FILE is added to some dictionary views to indicate whether the file was created in the flash recovery area. It exists in V$CONTROLFILE, V$LOGFILE, V$ARCHIVED_LOG, V$DATAFILE_COPY, V$BACKUP_PIECE.&lt;br /&gt;Moving the Flash Recovery Area&lt;br /&gt;&lt;br /&gt;ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='/u01/app/oracle/new_area' SCOPE=BOTH&lt;br /&gt;&lt;br /&gt;Eventually, Oracle will delete all the transient files from the previous flash recovery area location, when each of them become eligible for deletion. However, if you want to move your current permanent files, transient files, or flashback logs to the new flash recovery area, you can do so by using the standard file-moving procedures.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-6969386267680059775?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/6969386267680059775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=6969386267680059775' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/6969386267680059775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/6969386267680059775'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/flash-recovery-area.html' title='Flash Recovery Area'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-4224700930599163937</id><published>2009-04-06T04:40:00.000-07:00</published><updated>2009-04-29T03:19:29.756-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Patching'/><title type='text'>Database Patching</title><content type='html'>Database Patching&lt;br /&gt;&lt;br /&gt;Database patching consists of either upgrades or interim fixes. Database upgrades are typically complex in nature and require installation of new software when upgrading from one point release to another. Obsolete and new initialization parameters must be reviewed when upgrading to a new release of the database.&lt;br /&gt;&lt;br /&gt;Database upgrades can be accomplished manually or by using dbmig,the database migration utility. Since the method for upgrading the database is version and platform dependent, the associated readme file for the upgrade must be reviewed, and the steps required to perform the upgrade should be documented.&lt;br /&gt;&lt;br /&gt;Interim patch fixes for the database are applied as the owner of the database install with the opatch utility or by running an operating system script. Details on how to apply database patches are outlined in the patch’s readme.Before upgrading or applying a patch to the database, the oraInst.loc file must point to the correct Oracle inventory location for the database ORACLE_HOME. It is also important to cleanly shut down the database before proceeding, and to perform a cold database backup.&lt;br /&gt;&lt;br /&gt;The opatch utility is downloaded from MetaLink as patch number 2617419. The opatch utility requires Perl and JDK to function, and they must be installed and specified in the path and library environment variables. Once the opatch utility has been downloaded and unbundled, the Opatch directory of the opatch unbundled patch should be added to the PATH, as in the following example:&lt;br /&gt;&lt;br /&gt;$export PATH=$PATH:/[path_of_2617419]/Opatch&lt;br /&gt;&lt;br /&gt;The library path of Perl must also be specified with the following PERL5LIB environment variable, as in the following example:&lt;br /&gt;&lt;br /&gt;$export PERL5LIB=[path_of_PERL]/lib&lt;br /&gt;&lt;br /&gt;To validate that opatch is functioning properly, execute the following command with the lsinventory option:&lt;br /&gt;&lt;br /&gt;$opatch lsinventory&lt;br /&gt;&lt;br /&gt;Once opatch has been successfully set up, the database interim patch fix may be applied. To do this, first review the readme file for the patch. Make certain that all prerequisites have been met. Document any post-patching steps that are required. Download the patch and unbundle it. Change to the directory where the patch has been unbundled. Verify that the database has been shut down. Apply the patch by executing opatch as the database owner with the apply parameter, as in the following example:&lt;br /&gt;&lt;br /&gt;$opatch apply&lt;br /&gt;&lt;br /&gt;To verify that a patch has successfully been applied, the lsinventory option can again be executed. This will display all patches that have been applied to the database.&lt;br /&gt;&lt;br /&gt;■Note If the opatch fails, there may be a patch_locked file located under the hidden directory $ORACLE_HOME/.patch_storage. The opatch utility may not be executed until the patch_locked file is removed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-4224700930599163937?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/4224700930599163937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=4224700930599163937' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/4224700930599163937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/4224700930599163937'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/database-patching.html' title='Database Patching'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-3791755675200228118</id><published>2009-04-06T04:28:00.000-07:00</published><updated>2009-04-09T07:49:49.500-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AD Control'/><title type='text'>AD Control</title><content type='html'>Using AD Control&lt;br /&gt;&lt;br /&gt;The administrative tool used to manage patch workers is AD Control, or adctrl. Frequently workers will fail or hang, which will require the Oracle Applications DBA to interface with adctrl. &lt;br /&gt;&lt;br /&gt;AD Control menu options will vary depending upon the AD patch version applied to the instance. When logged in as the application owner on the Admin Node, execute adctrl to display the menu options shown in&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdnojywDjRI/AAAAAAAACOg/VKmPi0wxsKA/s1600-h/ad_control.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 110px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdnojywDjRI/AAAAAAAACOg/VKmPi0wxsKA/s320/ad_control.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5321540136331349266" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;AD Controller Menu&lt;br /&gt;&lt;br /&gt;To execute an adctrl menu option, simply type the menu option and press Enter. If options 2–6 are chosen, either specify the number of the worker that requires action, or press Enter for the action to be executed for&lt;br /&gt;all workers.&lt;br /&gt;The “Skip Worker” menu option is a hidden adctrl menu option. If a worker needs to be skipped, start adctrl, enter 8, and then enter the worker number. Only use this option if advised by Oracle Support.&lt;br /&gt;&lt;br /&gt;■Oracle Aplication DBA Portal Tip:With AD.I, adctrl may be used in noninteractive mode. Using adctrl noninteractively can expedite patch problem resolution.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resolving AD Patch Worker Failure&lt;/strong&gt;&lt;br /&gt;If a worker has failed, the adpatch session will normally display a failedworker&lt;br /&gt;message. The status of the worker may also be determined using adctrl. If a worker has failed, the worker error can be obtained by viewing the worker log file. Once the worker issue has been resolved, use adctrl to&lt;br /&gt;restart the worker.&lt;br /&gt;&lt;br /&gt;If a worker has failed, and it is determined that the step the worker was&lt;br /&gt;trying to execute may be skipped, the hidden option 8 of the adctrl menu, “Skip Worker,” may be used to skip the worker. It is only advisable to do this&lt;br /&gt;if the step is not critical to the environment being patched.&lt;br /&gt;&lt;br /&gt;■Oracle Aplication DBA Portal Tip:It may be necessary to research MetaLink or open an SR to resolve issues with failed workers. For additional information on MetaLink and the SR process, see&lt;br /&gt;The following are common worker failures that will be seen by the Applications DBA during patching. The error messages will be displayed by the adpatch session or in the worker log file:&lt;br /&gt;Error message: ORA-01013: user requested cancel of current operation Resolution to error: If this error occurs, simply use adctrl to restart the worker on the current machine.&lt;br /&gt;&lt;br /&gt;Error message: Patch not applied successfully, adpatch did not cleanup its restart files (*rf9).&lt;br /&gt;&lt;br /&gt;Resolution to error: If this error occurs, execute the following as the&lt;br /&gt;instance owner:&lt;br /&gt;$cd $APPL_TOP/admin/$CONTEXT_NAME&lt;br /&gt;$mv restart restart_old&lt;br /&gt;$mkdir restart&lt;br /&gt;&lt;br /&gt;After cleaning up the restart files, you may then restart the adpatch session using adpatch.&lt;br /&gt;&lt;br /&gt;Then, use adctrl to restart the failed worker.&lt;br /&gt;&lt;br /&gt;Error message: No error message is displayed; rather the worker log file states that the worker is complete, yet adctrl indicates that the worker is still running.&lt;br /&gt;&lt;br /&gt;Resolution to error: This patching problem occurs when the worker is complete, but did not update patching tables correctly to notify the adpatch session that it has finished. In this scenario, the adpatch session is still waiting for the finish return code from the worker. When this occurs, use adctrl to fail the worker, then restart the worker.&lt;br /&gt;&lt;br /&gt;■Oracle Aplication DBA Portal Tip:Any form, library, or report that fails to generate during the patch process can be regenerated manually after all patching and post-patching steps have completed. If theobject still fails to compile, open an SR.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-3791755675200228118?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/3791755675200228118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=3791755675200228118' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3791755675200228118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/3791755675200228118'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/ad-control.html' title='AD Control'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Veaf3lFF6Po/SdnojywDjRI/AAAAAAAACOg/VKmPi0wxsKA/s72-c/ad_control.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-5510549711638434424</id><published>2009-04-06T03:49:00.000-07:00</published><updated>2009-04-13T04:51:25.967-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Using AD Patch'/><title type='text'>Using AD Patch</title><content type='html'>Using AD Patch&lt;br /&gt;The administrative tool used to apply application patches is AD Patch, also referred to by its command line executable, adpatch. Basic information about the AD Patch utility can be found in Oracle MetaLink Note 181665.1, “REL11i ADPATCH BASICS.” The AD Patch utility will spawn off a user-determined number of worker threads or patch worker processes to update application code by copying later versions of programs to the application tier; updating database objects, regeneration application forms, and reports; and performing some post-patching steps. The code changes are determined by the patch’s driver files.&lt;br /&gt;&lt;br /&gt;■Oracle Aplication DBA Portal Tip: Prior to executing adpatch, disable any password constraints defined within the application or database. These constraints could cause errors if the patch creates a new user account. You may also need to reset some standard Oracle passwords for accounts such as CTXSYS.&lt;br /&gt;&lt;br /&gt;An Oracle Applications DBA needs to be familiar with the options available for the AD Patch utility. The parameters supported by the adpatch command differ depending upon the AD Minipack level applied with Oracle Applications. When upgrading the AD product group, be sure to identify and understand any new features of the AD Patch utility. Study the adpatch command parameters for any possible benefits. Use the command adpatch help=y to see the available options.&lt;br /&gt;&lt;br /&gt;In order to enable an option with adpatch, use the following syntax:&lt;br /&gt;&lt;br /&gt;adpatch options=[option1, option2..]&lt;br /&gt;&lt;br /&gt;The adpatch options shown are commonly used to accelerate the patching process.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Option                           Purpose&lt;br /&gt;Novalidate      :Prevents adpatch from validating all schema connections&lt;br /&gt;Noprereq        :Prevents adpatch from checking the existence of prerequisite patches&lt;br /&gt;Nocompiledb     :Prevents adpatch from compiling database objects&lt;br /&gt;Nocompilejsp    :Prevents adpatch from compiling JSP objects&lt;br /&gt;Noautoconfig    :Prevents adpatch from running autoconfig after the patch has completed&lt;br /&gt;Nogenerateportion :Prevents adpatch from compiling forms, menus,and plls&lt;br /&gt;Hidepw          :Prevents passwords from being displayed in log files Hotpatch Allows adpatch to be run when the instance is not in maintenance mode&lt;br /&gt;&lt;br /&gt;■Oracle Aplication DBA Portal Tip: If you are applying a large number of patches, use the options nocompilejsp,nocompiledb, noprereq, and novalidate to speed up the application of the patches. Recompiling Java Server Pages (JSP) pages and database objects can be performed at the end of the patching process. In this situation, placing the database in noarchivelog mode may also improve patching performance.&lt;br /&gt;&lt;br /&gt;Having changed directory to the location where the patch driver(s) is located, you can then start the patching session as the instance owner by executing adpatch with the desired options:&lt;br /&gt;&lt;br /&gt;adpatch options=nocompiledb,novalidate&lt;br /&gt;&lt;br /&gt;When adpatch is started, the user must respond to several questions. These questions serve to verify application file settings, database connectivity, and patch driver options. For example, the user may set adpatch to send an email upon failure. The following questions from adpatch require additional&lt;br /&gt;explanation:&lt;br /&gt;&lt;br /&gt;Question: Filename for AutoPatch Log&lt;br /&gt;Recommended response: Rather than use the default name of adpatch.log, use a more descriptive name, such as [c|d|g|u][patch#]. &lt;br /&gt;log. For multi-node or multi-language patching, you should consider including the server name and language in the filename. Additional descriptions may also be added depending on your environment.&lt;br /&gt;&lt;br /&gt;Question: The default directory is [current working directory]&lt;br /&gt;Recommended response: It is advised that you run the adpatch utility from the directory where the patch has been unbundled. By doing this, the default value for this question can be chosen. Otherwise, enter the directory where the patch was unbundled.&lt;br /&gt;&lt;br /&gt;Question: Please enter the name of your AutoPatch driver file&lt;br /&gt;Recommended response: This depends upon the patch being applied. Most patches from Oracle now contain a single u driver. If the patch contains c, d, and/or g drivers, adpatch needs to be run for each driver. The drivers need to be applied in alphabetical order.&lt;br /&gt;&lt;br /&gt;Question: Number of parallel workers&lt;br /&gt;Recommended response: This value is environment-specific and&lt;br /&gt;should be adjusted accordingly.&lt;br /&gt;&lt;br /&gt;Using a defaultsfile will allow for noninteractive patching by providing responses to the adpatch questions. The defaultsfile option of adpatch must point to a file in the $APPL_TOP/admin/$CONTEXT_NAME directory. This option is typically used with the mode interactive=no.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Performing Manual Steps&lt;/strong&gt;&lt;br /&gt;If any part of the patching process requires numerous manual steps, it is useful&lt;br /&gt;to create scripts to automate the manual commands. This can not only&lt;br /&gt;help reduce the chances of human error during the patching process, but&lt;br /&gt;scripting can also speed up the process. For ease of management, you should create a special directory to be the home directory for such scripts. During the creation of the scripts, be sure to include logging commands as well as parameters for values such as instance name. When you parameterize such variables, the scripts can be executed with each patching effort without requiring modifications.&lt;br /&gt;&lt;br /&gt;For example, you may build a script of manual steps that looks similar to&lt;br /&gt;the following template:&lt;br /&gt;&lt;br /&gt;SCRIPT_TOP=/patch/scripts/project_a&lt;br /&gt;INSTANCE_NAME=$1&lt;br /&gt;LOG_TOP=$SCRIPT_TOP/logs&lt;br /&gt;script_1.sh &gt; $LOG_TOP/post_steps.log&lt;br /&gt;command_1 &gt;&gt;$LOG_TOP/post_steps.log&lt;br /&gt;script_2.sh $INSTANCE_NAME &gt;&gt; $LOG_TOP/post_steps.log&lt;br /&gt;exit&lt;br /&gt;&lt;br /&gt;In the preceding example, script_1.sh may be a script that performs a backup of library files, and script_2.sh could be a script that relinks several&lt;br /&gt;forms.&lt;br /&gt;&lt;br /&gt;When the script has executed, thoroughly review the log files generated by the script. New failures may be encountered on some instances that had not occurred during past patch applications. Resolve any errors before proceeding to the next steps. Scripts created for such steps should contain error handling, such as checking the number and types of parameters Custom scripts should also contain documentation to describe the purpose of&lt;br /&gt;the script.&lt;br /&gt;&lt;br /&gt;The scripts you create should be included in the spreadsheet as part of the process for applying the patch. Part of the documentation process for the patching effort involves using descriptive script and variable names. Writing scripts is a useful skill set for Applications DBAs. We recommend you practice coding scripts on test servers while connected as a user with a low level of permissions until you become more comfortable with scripting. Always test your scripts thoroughly before running them on production systems.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-5510549711638434424?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/5510549711638434424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=5510549711638434424' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5510549711638434424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/5510549711638434424'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/using-ad-patch.html' title='Using AD Patch'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-1875301655446152206</id><published>2009-04-06T03:22:00.000-07:00</published><updated>2009-04-17T02:00:50.581-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Patching'/><title type='text'>Patching</title><content type='html'>&lt;strong&gt;Patching&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;One of the most important and time-consuming aspects of an Oracle Applications DBA’s job is applying patches to the E-Business Suite. Patches may be required to resolve problems with the application code, to fix production issues, to install new features, or to upgrade components of the technology stack. Patching is not a simple one-step process, but rather requires careful research in order to determine all of the prerequisite steps, patching steps, and post-patching steps required.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Oracle E-Business Suite patching can be divided into two categories:&lt;/strong&gt;&lt;br /&gt;• Oracle Applications patching: This includes all patching that changes&lt;br /&gt;the underlying Oracle Applications code.&lt;br /&gt;• Technology stack components patching: This includes all upgrades and fixes for the Oracle Database software, JDK, Oracle Developer 6i (Oracle Forms and Reports), Developer 6i Client library files, Oracle Discoverer, JDBC, Oracle Java Server Page (OJSP), Oracle Application Server (iAS),and iAS Client library files (Required Support Files or RSF).&lt;br /&gt;&lt;br /&gt;The focus of this chapter will be on Oracle Applications patching, and a brief overview of Oracle Database software patching will also be provided. Patching the Applications Technology Stack will not be covered, as this type of patching effort has numerous operating system dependencies.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Applications Patching&lt;/strong&gt;&lt;br /&gt;There are several steps involved in patching Oracle Applications. In this section&lt;br /&gt;we’ll discuss each of these stages:&lt;br /&gt;&lt;br /&gt;• Preparing to patch: Before patching, it is important to document the requirements and determine what steps and patches are needed. This section will explain how to document and manage the overall process of applying patches, and discuss patch reporting, where you investigate which version, if any, of a patch is currently installed.&lt;br /&gt;• Applying patches: Applying a patch involves several steps, such as unbundling the patch, enabling maintenance mode, applying the patch with adpatch, and implementing manual steps. This section will discuss each of the steps involved.&lt;br /&gt;• Monitoring and resolving patching issues: Sometimes there are problems applying patches. This section will explain how to review log files and use the AD Control utility to monitor patch worker processes.&lt;br /&gt;• Post-patching steps and cleaning up: There are often steps that should be performed after the patching is complete. This section will explain how you can efficiently perform post-patching steps and clean up files no longer required after patching.&lt;br /&gt;&lt;br /&gt;Typ&lt;strong&gt;es of Application Patches&lt;/strong&gt;&lt;br /&gt;There are several different types of Oracle Applications patches. These are&lt;br /&gt;the more common patches:&lt;br /&gt;&lt;br /&gt;• One-off patch: This is the simplest type of patch. It is created to resolve a&lt;br /&gt;specific bug.&lt;br /&gt;• Minipack patch: This is a collection of one-off patches and enhancements related to a particular module. Alphabetic characters denote the Minipack version for the module; for example, the product code for the Application DBA utilities is AD, and version Minipack I of this product would be called AD.I.&lt;br /&gt;• Family Pack patch: This is a collection of Minipack patches for a particular family group of application modules. Alphabetic characters denote the Family Pack version; for example, the J version of the Human Resources Suite Product Family would be HR_PF.J.&lt;br /&gt;• Maintenance Pack patch: This is a collection of Family Packs that serves as a point-level release upgrade; Oracle Applications Release 11.5.10 is an example of a Maintenance Pack.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;There are also other special types of patches:&lt;/strong&gt;&lt;br /&gt;• Consolidated patch: This is a collection of one-off fixes for a Family Pack&lt;br /&gt;or Maintenance Pack; Oracle Applications 11.5.10 Consolidated Update&lt;br /&gt;2 (CU2) is an example of a consolidated patch.&lt;br /&gt;• Interoperability patch: This is a patch that is required for Oracle Applications&lt;br /&gt;to function with a newer version of a technology stack component; for example, you would apply an interoperability patch when upgrading the database to version 10g.&lt;br /&gt;• NLS patch: This is a patch that updates language-specific information&lt;br /&gt;for multi-language installations.&lt;br /&gt;• Rollup patch: This is a collection of one-off patches that update code&lt;br /&gt;levels for particular products.&lt;br /&gt;• Legislative patch: This is a special patch for HR Payroll customers; it&lt;br /&gt;contains legislative data for multiple countries.&lt;br /&gt;&lt;br /&gt;As the patch group size increases from one-off patches to Maintenance Packs, the complexity of the patch application process also increases. More research is required for Family Packs than is required for a Minipack. Due to the increased complexity, there is more planning required for Maintenance Packs and Family Packs than other patches.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Preparing to Patch&lt;/strong&gt;&lt;br /&gt;Before applying a patch, carefully examine the readme file provided with the&lt;br /&gt;patch. This document will list all steps required by the patch.&lt;br /&gt;&lt;br /&gt;■Oracle Application DBA Portal Tip: Before applying a patch, make certain that the readme file has been carefully reviewed.&lt;br /&gt;&lt;br /&gt;The readme file will contain prerequisites, installation steps, postinstallation&lt;br /&gt;steps, and other information vital to the successful installation of the patch. The prerequisites may consist of other patches or manual steps.&lt;br /&gt;&lt;br /&gt;Here is an example of the readme file contents:&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------&lt;br /&gt;&lt;strong&gt;README CONTENTS:&lt;/strong&gt;&lt;br /&gt;---------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;A. Prerequisites&lt;br /&gt;B. Best Practices&lt;br /&gt;C. Installation Steps&lt;br /&gt;D. Post-Installation Steps&lt;br /&gt;E. HRGLOBAL - SPECIAL NOTES AND CHANGE HISTORY&lt;br /&gt;F. Other Information Sources&lt;br /&gt;---------------------------------------------------------------------&lt;br /&gt;&lt;strong&gt;A. PREREQUISITES:&lt;/strong&gt;&lt;br /&gt;---------------------------------------------------------------------&lt;br /&gt;Apply this patch if you have HR (Product code PER) fully installed.&lt;br /&gt;Before applying this patch you must have each of these prerequisites:&lt;br /&gt;1. Oracle Applications Server 11i&lt;br /&gt;2. Oracle 11i.PER.G, patch 1988754, or later. . . .&lt;br /&gt;If prerequisites have not been met, you must add these steps or patches to the overall process of applying the patch. Become familiar with all steps required before attempting to apply the patch.&lt;br /&gt;&lt;br /&gt;■Caution Removing a patch from Oracle Applications after it has been applied is not&lt;br /&gt;usually a feasible option; therefore, a full system backup should be taken before applying patches to an instance.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Documenting the Patching Process&lt;/strong&gt;&lt;br /&gt;It is recommended that you maintain a spreadsheet detailing all prerequisite&lt;br /&gt;steps, patching steps, and post-installation steps required for patch application.&lt;br /&gt;By creating such a document, you can eliminate operator error, such as missed steps or steps completed out of order.&lt;br /&gt;&lt;br /&gt;The columns in the spreadsheet should be customized to match your needs. These columns can include information about the node being patched, details about the patch being applied, or the rationale for the patch. At a minimum, it is useful to have columns for patch number, description, and comments, but it is often also useful to include the actual time required to complete each step based upon trial runs in a sandbox instance. Tracking timings allows for an accurate prediction of production maintenance downtime.&lt;br /&gt;&lt;br /&gt;shows an example of a spreadsheet for patches required by Project A that will require 6 hours and 25 minutes to apply.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdnaaPuJDnI/AAAAAAAACOY/EEdy6ctBu5k/s1600-h/patch.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 187px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdnaaPuJDnI/AAAAAAAACOY/EEdy6ctBu5k/s320/patch.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5321524579146468978" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Sample patch documentation spreadsheet&lt;br /&gt;&lt;br /&gt;If timings are included for every step, the Applications DBA can generate a schedule for applying the patches to production by using time functions in the spreadsheet software. This corresponds to the Shift Start Time column in This process is highly recommended for extended patching efforts that will require multiple shifts. Otherwise, a simple summation of the time required for each step should provide an accurate schedule. The times required for applying patches is also tracked by adpatch and can be found in the $APPL_TOP/admin/$CONTEXT_NAME.out/adt*.lst files.&lt;br /&gt;&lt;br /&gt;■Oracle Application DBA portal Tip: When documenting the patching process for multiple patches, post-installation&lt;br /&gt;&lt;br /&gt;steps like recompiling invalid objects, regenerating JAR files, and running the autoconfig utility can be consolidated and executed at the end of the patching process. This helps to streamline the patch process and reduce downtime.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Patch Reporting&lt;/strong&gt;&lt;br /&gt;Patch reporting is used to determine whether or not a specific patch has already been applied to the instance, or what version of a Family Pack or Minipack is currently installed. The following sections will discuss four methods for determining patching levels:&lt;br /&gt;• Using the adphrept.sql script&lt;br /&gt;• Executing the patchsets.sh utility&lt;br /&gt;• Querying the database&lt;br /&gt;• Using Oracle Application Manager (OAM)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Using adphrept.sql&lt;/strong&gt;&lt;br /&gt;The $AD_TOP/patch/115/sql/adphrept.sql file is an Oracle-provided script for generating a patch report for an instance. This script provides an easily searchable list of all patches that have been applied to an environment. Keep in mind that the script can take a long time to execute. Additional details regarding adphrept.sql and a description of all parameters can be obtained by viewing MetaLink Note 162498.1.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Using patchsets.sh&lt;/strong&gt;&lt;br /&gt;The Oracle-provided patch-comparison utility, patchsets.sh, is a handy tool for reviewing patchset levels. Family Pack versions, fully installed products, and shared installed products, along with the latest version available, are displayed in the output. Information about the latest version of this utility can be reviewed in MetaLink Note 139684.1.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Querying the Database for Patches&lt;/strong&gt;&lt;br /&gt;In order to determine whether a specific patch has been applied, a query can be executed against the bug_number table. The following SQL will return results if the patches included in the IN clause have been applied to the&lt;br /&gt;instance:&lt;br /&gt;SELECT bug_number&lt;br /&gt;FROM ad_bugs&lt;br /&gt;WHERE bug_number IN ('patch_number', 'patch_number', . . .)&lt;br /&gt;ORDER BY bug_number DESC;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Using OAM&lt;/strong&gt;&lt;br /&gt;Oracle Application Manager (OAM) may also be used to query the instance for applied patches.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-1875301655446152206?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/1875301655446152206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=1875301655446152206' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/1875301655446152206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/1875301655446152206'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/patching.html' title='Patching'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Veaf3lFF6Po/SdnaaPuJDnI/AAAAAAAACOY/EEdy6ctBu5k/s72-c/patch.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-9079179254502235045</id><published>2009-04-05T12:32:00.000-07:00</published><updated>2009-04-05T12:51:56.722-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Enterprise Manager 10g'/><title type='text'>Enterprise Manager 10g</title><content type='html'>&lt;strong&gt;Oracle10g Enterprise Manager&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Finally, a tool that serves as one-stop-shop for Oracle administration and management—whether by novices or experts&lt;br /&gt;What tool do you use in your day-to-day DBA-related activities? It's a question I asked recently in a user group meeting.&lt;br /&gt;&lt;br /&gt;The answers varied depending on the DBA's work experience. Most senior administrators expressed a preference for simple command-line&lt;br /&gt;SQL*Plus (my personal favorite), with the rest dividing their allegiances among a handful of third-party products. The same question, however,&lt;br /&gt;yielded a different response from entry-level DBAs: among that group, Enterprise Manager (EM) was clearly the tool of choice.&lt;br /&gt;&lt;br /&gt;It's not hard to understand these preferences. Oracle Enterprise Manager has been steadily perfected since its introduction several years ago,&lt;br /&gt;beginning as the character-mode display SQL*DBA, evolving into a client OS-based tool, and finally taking on a Java flavor. The information&lt;br /&gt;presented by EM was sufficiently detailed for most DBA tasks, serving as a solution for users who were either too reluctant or too busy to learn a&lt;br /&gt;new syntax and wanted a GUI tool for managing common database chores such as adding users, modifying datafiles, and checking on rollback&lt;br /&gt;segments. The diagnostic pack supplied much-needed GUI support for performance tuning.&lt;br /&gt;&lt;br /&gt;However, one of the major issues hampering EM's widespread adoption was its inability to keep pace with the development of the database server&lt;br /&gt;itself. For example, the Oracle9i Database version of EM doesn't support subpartitioning, a feature first introduced in Oracle8i.&lt;br /&gt;The new version of EM in Oracle Database 10g changes that equation. It has a new architecture, a new interface, and most important, a very&lt;br /&gt;powerful and complete toolbox catering to all DBA skillsets—from novices to advanced users. And best of all, it's part of the installation itself without&lt;br /&gt;any additional cost. If you are evaluating third-party tools, you can certainly throw EM into the mix to light a fire under the competition. Even if you&lt;br /&gt;are an "in-command-line-we-trust" kind of DBA (like me), you will greatly appreciate how EM can help you in several situations.&lt;br /&gt;&lt;br /&gt;In this installment I will introduce you to the new EM. Because the tool is so vast in scope, it will be impossible to cover the entire spectrum of&lt;br /&gt;features; instead, I will explain a few basics and offer pointers to additional material. Keeping in the spirit of this series, I will provide practical&lt;br /&gt;examples that demonstrate the use of the tool to solve real-life problems.&lt;br /&gt;Architecture&lt;br /&gt;&lt;br /&gt;EM 10g is installed by default when you install the 10g software. Conceptually, it differs from previous versions in that instead of being a clientinstalled&lt;br /&gt;tool, it's actually an HTTP server (called DB Console) sitting on the database server itself. (See Figure 1.) You can use any browser to see&lt;br /&gt;the EM interface.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdkKCMqumII/AAAAAAAACOA/ZcuK3Fa0gg0/s1600-h/1.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 280px; height: 196px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdkKCMqumII/AAAAAAAACOA/ZcuK3Fa0gg0/s320/1.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295467591407746" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Figure 1: EM Architecture&lt;/strong&gt;&lt;br /&gt;The port number for DB Console is found in $ORACLE_HOME/install/portlist.ini. Here is an example of a file; ports in your case may be different.&lt;br /&gt;Ultra Search HTTP port number = 5620&lt;br /&gt;iSQL*Plus HTTP port number = 5560&lt;br /&gt;Enterprise Manager Agent Port =&lt;br /&gt;Enterprise Manager Console HTTP Port (starz10) = 5500&lt;br /&gt;Enterprise Manager Agent Port (starz10) = 1830&lt;br /&gt;From this file we know that the Agent for the database starz10 listens on the port 1830 and the EM console listens on 5500. We can invoke the EM&lt;br /&gt;&lt;br /&gt;logon screen by entering the following URL:&lt;br /&gt;http://starz/em/console/logon/logon&lt;br /&gt;&lt;br /&gt;This URL brings up a logon screen where you can log on as a DBA user. For our example, we will log in as SYS.&lt;br /&gt;&lt;strong&gt;Main Database Home Page&lt;/strong&gt;&lt;br /&gt;After logon, the main database home page comes up. The top portion of the home page enables a quick glance at important details. (See Figure 2.)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdkKCGxPi1I/AAAAAAAACN4/U06ldHPBXhE/s1600-h/2.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 201px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdkKCGxPi1I/AAAAAAAACN4/U06ldHPBXhE/s320/2.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295466008120146" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 2: Main Database Home Page (Top)&lt;br /&gt;Some of the most important points in the above figure have been circled and annotated with numbered references in this article. First, note the&lt;br /&gt;section labeled "General" (1); this section shows some most rudimentary details about the database, such as the fact that the database has been&lt;br /&gt;up since March 20 as well as the instance name. The Oracle Home is shown as a hyperlink, which, when clicked, shows all the products and all&lt;br /&gt;other Oracle databases sharing that home. The hyperlink for Listeners shows all the databases and instances registered with the listener, whose&lt;br /&gt;name is shown immediately below. Finally, it shows the host name (starz).&lt;br /&gt;In section named "Host CPU" (2), the CPU details are shown at a glance. Section "Active Sessions" (3) shows the active sessions and what they&lt;br /&gt;are doing at the moment (4). We see from the above that 99% of the time spent by the sessions is in waiting. (We will find the cause of these waits&lt;br /&gt;later.) The section on "High Availability" (5) shows availability-related information. For example, the value of "Instance Recovery Time," which is the&lt;br /&gt;value of MTTR Target for the instance, determines how much time may be required for instance crash recovery.&lt;br /&gt;&lt;br /&gt;The section on "Space Usage" (6) is interesting: it shows warnings associated with 23 segments. (Again, more on these warnings later.) The&lt;br /&gt;section "Diagnostic Summary" (7) provides a synopsis of database well being. The number of performance findings indicates how many issues&lt;br /&gt;were proactively identified by the Automatic Database Diagnostic Monitor (ADDM), the new self-diagnostic engine in 10g. EM also automatically&lt;br /&gt;analyzes your environment to determine if any recommended best practices are being violated; the result of this analysis is presented in the "Policy&lt;br /&gt;Violation" section. Finally, EM scans the alert log and shows any recent ORA errors. This information is invaluable—automatic scanning of Oracle&lt;br /&gt;errors in the alert log saves you the considerable trouble of manually searching for them.&lt;br /&gt;&lt;br /&gt;The bottom part of the database home page, shown in Figure 3, we see some of these messages in more detail. The section "Alerts" (1) shows all&lt;br /&gt;the relevant alerts that require your attention, each of which can be easily configured. Take the first one (2), for example, which shows that the&lt;br /&gt;Archiver process is hanging for some reason. Of course, the next course of action is to determine why. To find out, just click on it. You will be&lt;br /&gt;shown more details from the alert.log file containing the error. In this case, the culprit was a filled-up flashback recovery area; we just need to clear&lt;br /&gt;it up so the Archiver can start working again.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdkKByXNxOI/AAAAAAAACNw/rJzI1OK01PU/s1600-h/3.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 202px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdkKByXNxOI/AAAAAAAACNw/rJzI1OK01PU/s320/3.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295460530242786" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 3: Main Database Home Page (Bottom)&lt;br /&gt;Another alert (3) is about a wait: the database is waiting 69% of the time for a wait related to the wait class "Application." Remember how the top&lt;br /&gt;part of the home page indicates that a session is waiting? This alert shows us what it is waiting on. Clicking on the hyperlink will immediately show&lt;br /&gt;you the actual waits.&lt;br /&gt;&lt;br /&gt;The next alert (4) shows an audit entry, that the user SYS connected to the database from a certain client machine. Again, by clicking on the&lt;br /&gt;hyperlink you can reveal all the details about the connection. The last alert (5) shows that some objects are invalid. Clicking on the hyperlink will get&lt;br /&gt;you to the screen where the invalid objects are validated.&lt;br /&gt;As you can see, the database home page serves as a dashboard for everything that needs your attention. Instead of cluttering the screen with&lt;br /&gt;detailed information, the interface has been made quite succinct with those details just a click away. You could compile all this information&lt;br /&gt;manually, but it would take a lot of time and effort. EM 10g provides an out-of-the-box solution.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;General Usage&lt;/strong&gt;&lt;br /&gt;Let's see how some of the more common tasks are accomplished through the new EM.&lt;br /&gt;One common task is to alter a table and its corresponding indexes. From the Database home page, choose the "Administration" tab as shown in&lt;br /&gt;Figure 3 and reference the item marked 6. From this page you can administer the database to configure undo segments, create tablespaces and&lt;br /&gt;schema objects, set up resource manager, use the new Scheduler (to be covered in a future installment), and more. Choose "Tables" from there,&lt;br /&gt;which brings up a screen as shown in Figure 4.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdkJ42npjFI/AAAAAAAACNo/t4zgVg7Om3E/s1600-h/4.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 130px;" src="http://4.bp.blogspot.com/_Veaf3lFF6Po/SdkJ42npjFI/AAAAAAAACNo/t4zgVg7Om3E/s320/4.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295307054091346" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 4: Table Management&lt;br /&gt;Note the flashlight symbol highlighted inside a red circle; this is the button for bringing up a list of values. In the screen shown in the figure, you can&lt;br /&gt;click on the LOV symbol to bring up a list of users in the database and select one from the list. Clicking on the button "Go" brings up a list of tables&lt;br /&gt;for that user. You can also specify a wildcard with the "%" sign—for example, by using %TRANS% to bring up all the tables with the word TRANS in&lt;br /&gt;the name.&lt;br /&gt;Let's see an example. Choose the table TRANS to modify a column there. Clicking on the hyperlink brings up the "Edit Table" screen as shown in&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdkJ4xknwJI/AAAAAAAACNg/rKBpaiywJMo/s1600-h/5.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 192px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdkJ4xknwJI/AAAAAAAACNg/rKBpaiywJMo/s320/5.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295305699213458" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 5.&lt;br /&gt;Figure 5: Table Administration&lt;br /&gt;If you want to modify the column ACTUAL_RATE from NUMBER(10) to NUMBER(11), you can modify the number (Ref 1) and click "Apply." To see&lt;br /&gt;the actual SQL statement used to accomplish this task, can click the button "Show SQL."&lt;br /&gt;Another important piece of information is available in the same screen: the growth trend. As you will learn in a future installment on segment&lt;br /&gt;management, it is possible to observe object growth over a period of time. This screen offers that same information but in a graphical manner. To&lt;br /&gt;see the screen, click on the tab "Segments" (Figure 5 Ref 2). This brings up the segment screen as shown in Figure 6.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdkJ4pi4IGI/AAAAAAAACNY/lePjt9JbvHA/s1600-h/6.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 191px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdkJ4pi4IGI/AAAAAAAACNY/lePjt9JbvHA/s320/6.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295303544414306" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 6: Segment Screen&lt;br /&gt;Note the item marked inside the red circles. The screen shows how much space is allocated to the segment (2), how much is actually used (1), and&lt;br /&gt;how much is wasted (3). On the bottom part of the screen (4), you can see a graph of the space used and allocated for the object. In this example,&lt;br /&gt;the pattern of the table usage has been steady—hence the straight line.&lt;br /&gt;You can perform other administrative operations on the table using the tabs for that purpose, such as "Constraints" for managing constraints.&lt;br /&gt;Performance Tuning Using EM&lt;br /&gt;&lt;br /&gt;As you've learned up to this point, although EM's look-and-feel has changed, it offers at least as much functionality as the previous Java version.&lt;br /&gt;However, unlike the latter, EM now also supports newer Oracle Database functionality. For example, EM can now handle subpartitions.&lt;br /&gt;However, experienced DBAs will want more from the tool—especially for troubleshooting problems or proactive performance tuning. Let's use an&lt;br /&gt;example. Recall from the previous section that our database is waiting on the "Application" wait class as shown in the database home page (Figure&lt;br /&gt;3 Ref 3) and that we need to diagnose the cause. One of the key things to understand in any tuning process is how various components such as&lt;br /&gt;CPU, disk, and host subsystems interact, so it helps if all these variables are viewed together in context. To do that, choose the "Performance" tab&lt;br /&gt;from the Database home page. This brings up the screen as shown in Figure 7.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdkJ4u1xqwI/AAAAAAAACNQ/q8b-lY0heIY/s1600-h/7.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 183px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdkJ4u1xqwI/AAAAAAAACNQ/q8b-lY0heIY/s320/7.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295304965860098" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 7: Performance Tab&lt;br /&gt;Note how all the metrics have been aligned on the same timeline, which makes viewing their interdependencies easier. Note the spike (3), which&lt;br /&gt;corresponds to the Scheduler task. It shows that some seven sessions were waiting for Scheduler-related waits at that time. So, what was the&lt;br /&gt;impact? Note the CPU metrics located in the same place (the green area)—they indicate the maximum CPU ever used, as shown in the graph by&lt;br /&gt;the broken line (4). Before and after that point, we don't see the CPU spikes occurring, which provides one clue. Note the spike in CPU run queue&lt;br /&gt;length (1), which is a direct consequence of the Scheduler, which might have generated an excessive memory requirement, having caused the&lt;br /&gt;increased paging activity (2). As you can see, all the symptoms fall in line to enable a better understanding of the database load "profile."&lt;br /&gt;Note the spikes at the end of the timeline—increases in Run Queue Length (5) and Paging Rate (6)—which correlate to another spike in Physical&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Reads (7). What is the cause?&lt;/strong&gt;&lt;br /&gt;By comparing the graph "Sessions: Waiting and Working" with the time the spikes were occurring, we can see that most of the sessions were&lt;br /&gt;waiting on the "Application" wait class. But we need to find out exactly what it was waiting on during that time period. Click on the area at that time,&lt;br /&gt;which brings up the Active Sessions screen as shown in Figure 8.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdkJ4OC1EsI/AAAAAAAACNI/BdVQzbwYZ18/s1600-h/8.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 181px;" src="http://1.bp.blogspot.com/_Veaf3lFF6Po/SdkJ4OC1EsI/AAAAAAAACNI/BdVQzbwYZ18/s320/8.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295296162239170" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 8: Active Sessions Waits&lt;br /&gt;The screen shows that the sessions were waiting for the wait event enq: TX – row lock contention. So what was the SQL statement that&lt;br /&gt;caused it? Simple: The SQL ID of the statement 8rkquk6u9fmd0 is shown on the screen itself (inside the red circle). Click on the SQL ID to bring&lt;br /&gt;up the SQL screen as shown in Figure 9.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdkJrDun5eI/AAAAAAAACNA/-yOX3LMTJUw/s1600-h/9.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 149px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdkJrDun5eI/AAAAAAAACNA/-yOX3LMTJUw/s320/9.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295070054835682" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 9: SQL Details&lt;br /&gt;On this screen you can see the SQL statement and relevant details about it, including the execution plan. It turns out that this SQL was causing row&lt;br /&gt;lock contention, so application design may be a source of the problem.&lt;br /&gt;Latch Contention&lt;br /&gt;Suppose that clicking on the "Performance" tab takes you to a screen similar to that shown in Figure 10.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdkJq0jD2sI/AAAAAAAACM4/8APCiUccNS8/s1600-h/10.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 185px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdkJq0jD2sI/AAAAAAAACM4/8APCiUccNS8/s320/10.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295065979804354" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 10: Performance Tab, Example 2&lt;br /&gt;In the figure, note the metrics highlighted inside the red rectangle. You can see a lot of CPU-related waits around 12:20AM, which resulted in a&lt;br /&gt;large run queue in the CPU. We need to diagnose this wait.&lt;br /&gt;First, click on the graph on the area shown for CPU contention (marked with "Click Here" on the figure) to see that particular wait in detail, shown in&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdkJq3JUtII/AAAAAAAACMw/LUGgfqEX-zs/s1600-h/11.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 187px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdkJq3JUtII/AAAAAAAACMw/LUGgfqEX-zs/s320/11.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295066677163138" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 11.&lt;br /&gt;Figure 11: Active Session Waits&lt;br /&gt;Note the shaded box in the "Active Sessions Working: CPU Used" graph (1). You can drag it using the mouse to place the focus. This operation&lt;br /&gt;causes the pie charts below (2 and 3) to be calculated only within the timeframe contained in that box. From there we see that a specific SQL with&lt;br /&gt;id 8ggw94h7mvxd7 is working extra hard (2). We also see that the user session with username ARUP and SID 265 is a top worker (3). Click on the&lt;br /&gt;session to see the details. This operation brings up a "Session Details" screen. Click on the tab "Wait Events" to bring up the details of the wait&lt;br /&gt;events experienced by the session, similar to what you see in Figure 12.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdkJqhTUCJI/AAAAAAAACMo/uyN5YJu0JFw/s1600-h/12.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 110px;" src="http://2.bp.blogspot.com/_Veaf3lFF6Po/SdkJqhTUCJI/AAAAAAAACMo/uyN5YJu0JFw/s320/12.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295060813482130" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 12: Wait Event Details&lt;br /&gt;In this screen, note the longest wait of 118 centiseconds, highlighted inside a red circle, which is waiting for a library cache. When you click on the&lt;br /&gt;hyperlink for "Latch: Library Cache," you will see a screen similar to that in &lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdkJqnSRDeI/AAAAAAAACMg/GE81KVWvxb0/s1600-h/13.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 127px;" src="http://3.bp.blogspot.com/_Veaf3lFF6Po/SdkJqnSRDeI/AAAAAAAACMg/GE81KVWvxb0/s320/13.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5321295062419705314" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 13.&lt;br /&gt;Figure 13: Wait Histogram&lt;br /&gt;This screen provides some unique information not available in pre-10g databases. While diagnosing our latch contention issue, how do you know&lt;br /&gt;whether the 118 centi-second wait comprises many small waits in several sessions or just one large wait in only one session, thereby skewing the&lt;br /&gt;data?&lt;br /&gt;The histograms come to our rescue here. From the figure, you know that some 250 times sessions had a wait of 1 millisecond (highlighted inside a&lt;br /&gt;circle). Sessions waited some 180 times somewhere between 4 and 8 milliseconds. This screen shows that the waits are typically for small&lt;br /&gt;durations, making them insignificant symptoms of latch contention.&lt;br /&gt;From the database home page you can access ADDM, SQL Access Advisor, and other Advisors by clicking on the tab marked "Advisor Central."&lt;br /&gt;ADDM runs automatically as metrics are collected and the results are posted immediately on the Advisor Central page, which when clicked shows&lt;br /&gt;the recommendations made by ADDM. The SQL Tuning Advisor also examines these metrics and communicates its recommendations on this&lt;br /&gt;page. (We'll examine ADDM and SQL Tuning Advisor in much more detail in a future installment.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-9079179254502235045?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/9079179254502235045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=9079179254502235045' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/9079179254502235045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/9079179254502235045'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/enterprise-manager-10g.html' title='Enterprise Manager 10g'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Veaf3lFF6Po/SdkKCMqumII/AAAAAAAACOA/ZcuK3Fa0gg0/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-4419738221846610698</id><published>2009-04-05T12:25:00.000-07:00</published><updated>2009-04-05T12:27:51.096-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Materialized Views'/><title type='text'>Materialized Views</title><content type='html'>&lt;strong&gt;Materialized Views&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Managing materialized views is much easier in 10g with compulsory query rewrite and the introduction of powerful new tuning advisors&lt;br /&gt;that take guesswork out of the picture&lt;br /&gt;Materialized views (MVs), also known as snapshots, have been around for quite some time now. MVs store the result of a query in a segment and&lt;br /&gt;can return that result to the user when the query is submitted, eliminating the need to re-execute the query—an advantage when the query is issued&lt;br /&gt;several times, as is typical in data warehouse environments. MVs can be refreshed from base tables either completely or incrementally using a fast&lt;br /&gt;refresh mechanism.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Assume you have defined an MV as follows:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;create materialized view mv_hotel_resv&lt;br /&gt;refresh fast&lt;br /&gt;enable query rewrite&lt;br /&gt;as&lt;br /&gt;select distinct city, resv_id, cust_name&lt;br /&gt;from hotels h, reservations r&lt;br /&gt;where r.hotel_id = h.hotel_id';&lt;br /&gt;&lt;br /&gt;How would you know that all the necessary objects have been created for this MV to work perfectly? Prior to Oracle Database 10g, this&lt;br /&gt;determination was performed with the procedures EXPLAIN_MVIEW and EXPLAIN_REWRITE in the package DBMS_MVIEW. These procedures,&lt;br /&gt;which are still available in 10g, explain very succinctly whether a specific capability—such as fast refreshability or query rewritability—are possible&lt;br /&gt;with the said MV but don't offer any recommendations to make those capabilities possible. Instead, a visual inspection of the structure of each MV&lt;br /&gt;is required, which is quite impractical.&lt;br /&gt;&lt;br /&gt;In 10g, a procedure called TUNE_MVIEW in the new package DBMS_ADVISOR makes that job very easy: You call the package with the IN&lt;br /&gt;parameter, which constitutes the whole text of the MV creation script. The procedure creates an Advisor Task, which has a specific name passed&lt;br /&gt;back to you using only the OUT parameter.&lt;br /&gt;&lt;br /&gt;Here's an example. Because the first parameter is an OUT parameter, you need to define a variable to hold it in SQL*Plus.&lt;br /&gt;&lt;br /&gt;SQL&gt; -- &lt;strong&gt;first define a variable to hold the OUT parameter&lt;/strong&gt;&lt;br /&gt;SQL&gt; var adv_name varchar2(20)&lt;br /&gt;SQL&gt; begin&lt;br /&gt;2 dbms_advisor.tune_mview&lt;br /&gt;3 (&lt;br /&gt;4 :adv_name,&lt;br /&gt;5 'create materialized view mv_hotel_resv refresh fast enable query rewrite as&lt;br /&gt;select distinct city, resv_id, cust_name from hotels h,&lt;br /&gt;reservations r where r.hotel_id = h.hotel_id');&lt;br /&gt;6* end;&lt;br /&gt;&lt;br /&gt;Now you can find out the name of the Advisor from the variable.&lt;br /&gt;SQL&gt; print adv_name&lt;br /&gt;ADV_NAME&lt;br /&gt;-----------------------&lt;br /&gt;TASK_117&lt;br /&gt;Next, get the advice provided by this Advisor by querying a new DBA_TUNE_MVIEW. Make sure you execute SET LONG 999999 before running&lt;br /&gt;this command because the column statement in this view is a CLOB and by default only 80 characters are displayed.&lt;br /&gt;select script_type, statement&lt;br /&gt;from dba_tune_mview&lt;br /&gt;where task_name = 'TASK_117'&lt;br /&gt;order by script_type, action_id;&lt;br /&gt;Here is the output:&lt;br /&gt;SCRIPT_TYPE STATEMENT&lt;br /&gt;-------------- ------------------------------------------------------------&lt;br /&gt;IMPLEMENTATION CREATE MATERIALIZED VIEW LOG ON "ARUP"."HOTELS" WITH ROWID,&lt;br /&gt;SEQUENCE ("HOTEL_ID","CITY") INCLUDING NEW VALUES&lt;br /&gt;IMPLEMENTATION ALTER MATERIALIZED VIEW LOG FORCE ON "ARUP"."HOTELS" ADD&lt;br /&gt;ROWID, SEQUENCE ("HOTEL_ID","CITY") INCLUDING NEW VALUES&lt;br /&gt;IMPLEMENTATION CREATE MATERIALIZED VIEW LOG ON "ARUP"."RESERVATIONS" WITH&lt;br /&gt;ROWID, SEQUENCE ("RESV_ID","HOTEL_ID","CUST_NAME")&lt;br /&gt;INCLUDING NEW VALUES&lt;br /&gt;IMPLEMENTATION ALTER MATERIALIZED VIEW LOG FORCE ON "ARUP"."RESERVATIONS"&lt;br /&gt;ADD ROWID, SEQUENCE ("RESV_ID","HOTEL_ID","CUST_NAME")&lt;br /&gt;INCLUDING NEW VALUES&lt;br /&gt;IMPLEMENTATION CREATE MATERIALIZED VIEW ARUP.MV_HOTEL_RESV REFRESH FAST&lt;br /&gt;WITH ROWID ENABLE QUERY REWRITE AS SELECT&lt;br /&gt;ARUP.RESERVATIONS.CUST_NAME C1, ARUP.RESERVATIONS.RESV_ID&lt;br /&gt;C2, ARUP.HOTELS.CITY C3, COUNT(*) M1 FROM ARUP.RESERVATIONS,&lt;br /&gt;ARUP.HOTELS WHERE ARUP.HOTELS.HOTEL_ID =&lt;br /&gt;ARUP.RESERVATIONS.HOTEL_ID GROUP BY&lt;br /&gt;ARUP.RESERVATIONS.CUST_NAME, ARUP.RESERVATIONS.RESV_ID,&lt;br /&gt;ARUP.HOTELS.CITY&lt;br /&gt;UNDO DROP MATERIALIZED VIEW ARUP.MV_HOTEL_RESV&lt;br /&gt;&lt;br /&gt;The column SCRIPT_TYPE shows the nature of the recommendation. Most of the lines are to be implemented, hence the name&lt;br /&gt;IMPLEMENTATION. The recommended actions, if accepted, should be followed in a specific sequence indicated by the ACTION_ID column.&lt;br /&gt;If you review these automatically-generated recommendations carefully, you'll note that they are similar to what you would have produced yourself&lt;br /&gt;via visual analysis. The recommendations are logical; the presence of fast refresh needs to have a MATERIALIZED VIEW LOG on the base tables&lt;br /&gt;with appropriate clauses such as those including new values. The STATEMENT column even provides the exact SQL statements for implementing&lt;br /&gt;these recommendations.&lt;br /&gt;&lt;br /&gt;In the final step of the implementation, the Advisor suggests changes in the way the MV is created. Note the difference in our example: a count&lt;br /&gt;(*) has been added to the MV. Because we defined this MV as fast refreshable, the count(*) has to be there, so the Advisor corrected the&lt;br /&gt;omission.&lt;br /&gt;&lt;br /&gt;The procedure TUNE_MVIEW goes beyond what was available in EXPLAIN_MVIEW and EXPLAIN_REWRITE not just in its recommendations, but&lt;br /&gt;also by identifying easier and more efficient paths for creating the same MV. Sometimes the Advisor can actually recommend more than a single&lt;br /&gt;MV to make the query more efficient.&lt;br /&gt;&lt;br /&gt;How is that useful, you may ask, when any seasoned DBA can find out what was missing in the MV creation script and then adjust it themselves?&lt;br /&gt;Well, the Advisor does exactly that: it is a seasoned, highly motivated, robotic DBA that can make recommendations comparable to a human but&lt;br /&gt;with a very important difference: it works for free and doesn't ask for vacations or raises. This benefit frees senior DBAs to offload routine tasks to&lt;br /&gt;less senior ones, allowing them to apply their expertise to more strategic goals.&lt;br /&gt;You can also pass an Advisor name as the value to the parameter in the TUNE_MVIEW procedure, which generates an Advisor with that name&lt;br /&gt;instead of a system-generated one.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Easier Implementation&lt;/strong&gt;&lt;br /&gt;Now that you can see the recommendations, you may want to implement them. One way is to select the column STATEMENT, spool to a file, and&lt;br /&gt;execute that script file. An easier alternative is to call a supplied packaged procedure:&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;dbms_advisor.create_file (&lt;br /&gt;dbms_advisor.get_task_script ('TASK_117'),&lt;br /&gt;'MVTUNE_OUTDIR',&lt;br /&gt;'mvtune_script.sql'&lt;br /&gt;);&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;This procedure call assumes that you have defined a directory object, such as:&lt;br /&gt;create directory mvtune_outdir as '/home/oracle/mvtune_outdir';&lt;br /&gt;The call to dbms_advisor will create a file called mvtune_script.sql in the directory /home/oracle/mvtune_outdir. If you take a look at this file, you will&lt;br /&gt;see:&lt;br /&gt;&lt;br /&gt;Rem SQL Access Advisor: Version 10.1.0.1 - Production&lt;br /&gt;Rem&lt;br /&gt;Rem Username: ARUP&lt;br /&gt;Rem Task: TASK_117&lt;br /&gt;Rem Execution date:&lt;br /&gt;Rem&lt;br /&gt;set feedback 1&lt;br /&gt;set linesize 80&lt;br /&gt;set trimspool on&lt;br /&gt;set tab off&lt;br /&gt;set pagesize 60&lt;br /&gt;whenever sqlerror CONTINUE&lt;br /&gt;CREATE MATERIALIZED VIEW LOG ON&lt;br /&gt;"ARUP"."HOTELS"&lt;br /&gt;WITH ROWID, SEQUENCE("HOTEL_ID","CITY")&lt;br /&gt;INCLUDING NEW VALUES;&lt;br /&gt;ALTER MATERIALIZED VIEW LOG FORCE ON&lt;br /&gt;"ARUP"."HOTELS"&lt;br /&gt;ADD ROWID, SEQUENCE("HOTEL_ID","CITY")&lt;br /&gt;INCLUDING NEW VALUES;&lt;br /&gt;CREATE MATERIALIZED VIEW LOG ON&lt;br /&gt;"ARUP"."RESERVATIONS"&lt;br /&gt;WITH ROWID, SEQUENCE("RESV_ID","HOTEL_ID","CUST_NAME")&lt;br /&gt;INCLUDING NEW VALUES;&lt;br /&gt;ALTER MATERIALIZED VIEW LOG FORCE ON&lt;br /&gt;"ARUP"."RESERVATIONS"&lt;br /&gt;ADD ROWID, SEQUENCE("RESV_ID","HOTEL_ID","CUST_NAME")&lt;br /&gt;INCLUDING NEW VALUES;&lt;br /&gt;CREATE MATERIALIZED VIEW ARUP.MV_HOTEL_RESV&lt;br /&gt;REFRESH FAST WITH ROWID&lt;br /&gt;ENABLE QUERY REWRITE&lt;br /&gt;AS SELECT ARUP.RESERVATIONS.CUST_NAME C1, ARUP.RESERVATIONS.RESV_ID C2, ARUP.HOTELS.CITY&lt;br /&gt;C3, COUNT(*) M1 FROM ARUP.RESERVATIONS, ARUP.HOTELS WHERE ARUP.HOTELS.HOTEL_ID&lt;br /&gt;= ARUP.RESERVATIONS.HOTEL_ID GROUP BY ARUP.RESERVATIONS.CUST_NAME, ARUP.RESERVATIONS.&lt;br /&gt;RESV_ID,&lt;br /&gt;ARUP.HOTELS.CITY;&lt;br /&gt;whenever sqlerror EXIT SQL.SQLCODE&lt;br /&gt;begin&lt;br /&gt;dbms_advisor.mark_recommendation('TASK_117',1,'IMPLEMENTED');&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;This file contains everything you need to implement the recommendations, saving you considerable trouble in creating a file by hand. Once again,&lt;br /&gt;the robotic DBA can do your job for you.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Rewrite or Die!&lt;/strong&gt;&lt;br /&gt;By now you must have realized how important and useful the Query Rewrite feature is. It significantly reduces I/O and processing and returns&lt;br /&gt;results faster.&lt;br /&gt;Let's imagine a situation based on the above example. The user issues the following query:&lt;br /&gt;Select city, sum(actual_rate)&lt;br /&gt;from hotels h, reservations r, trans t&lt;br /&gt;where t.resv_id = r.resv_id&lt;br /&gt;and h.hotel_id = r.hotel_id&lt;br /&gt;group by city;&lt;br /&gt;The execution stats show the following:&lt;br /&gt;0 recursive calls&lt;br /&gt;0 db block gets&lt;br /&gt;6 consistent gets&lt;br /&gt;0 physical reads&lt;br /&gt;0 redo size&lt;br /&gt;478 bytes sent via SQL*Net to client&lt;br /&gt;496 bytes received via SQL*Net from client&lt;br /&gt;2 SQL*Net roundtrips to/from client&lt;br /&gt;1 sorts (memory)&lt;br /&gt;0 sorts (disk)&lt;br /&gt;&lt;br /&gt;Note the value of consistent gets, which is 6—a very low value. This result is based on the fact that the query was rewritten to use the two MVs&lt;br /&gt;created on the three tables. The selection was not from the tables, but from the MVs, thereby consuming fewer resources such as I/O and CPU.&lt;br /&gt;But what if the query rewrite had failed? It could fail for several reasons: If the value of the initialization parameter query_rewrite_integrity is&lt;br /&gt;set to TRUSTED and the MV status is STALE, the query will not be rewritten. You could simulate this process by setting the value in the session&lt;br /&gt;before the query.&lt;br /&gt;&lt;br /&gt;alter session set query_rewrite_enabled = false;&lt;br /&gt;&lt;br /&gt;After this command, the explain plan shows the selection from all three tables and not from the MVs. The execution stats now show:&lt;br /&gt;0 recursive calls&lt;br /&gt;0 db block gets&lt;br /&gt;16 consistent gets&lt;br /&gt;0 physical reads&lt;br /&gt;0 redo size&lt;br /&gt;478 bytes sent via SQL*Net to client&lt;br /&gt;496 bytes received via SQL*Net from client&lt;br /&gt;2 SQL*Net roundtrips to/from client&lt;br /&gt;2 sorts (memory)&lt;br /&gt;0 sorts (disk)&lt;br /&gt;&lt;br /&gt;Note the value of consistent gets: it jumps to 16 from 6. In a real-life situation, this result may be unacceptable because the additional required&lt;br /&gt;resources are unavailable, and thus you may want to rewrite the query yourself. In that case, you can ensure that the query should be allowed if&lt;br /&gt;and only if it is rewritten.&lt;br /&gt;In Oracle9i Database and below, the decision is one-way: you can disable Query Rewrite but not the base table access. Oracle Database 10g,&lt;br /&gt;however, provides a mechanism to do that via a special hint, REWRITE_OR_ERROR. The above query would be written with the hint like this:&lt;br /&gt;&lt;br /&gt;select /*+ REWRITE_OR_ERROR */ city, sum(actual_rate)&lt;br /&gt;from hotels h, reservations r, trans t&lt;br /&gt;where t.resv_id = r.resv_id&lt;br /&gt;and h.hotel_id = r.hotel_id&lt;br /&gt;group by city;&lt;br /&gt;Note the error message now.&lt;br /&gt;from hotels h, reservations r, trans t&lt;br /&gt;*&lt;br /&gt;ERROR at line 2:&lt;br /&gt;ORA-30393: a query block in the statement did not rewrite&lt;br /&gt;ORA-30393 is a special type of error that indicates the statement could not be rewritten to make use of the MVs; hence, the statement failed. This&lt;br /&gt;failsafe will prevent potentially long running queries from hogging system resources. Beware of one potential pitfall, however: the query will be&lt;br /&gt;successful if one, not all, of the MVs could be used in rewriting the query. So if MV_ACTUAL_SALES but not MV_HOTEL_RESV can be used, the&lt;br /&gt;query will be rewritten and the error will not occur. In this case the execution plan will look like:&lt;br /&gt;Execution Plan&lt;br /&gt;----------------------------------------------------------&lt;br /&gt;0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=11 Card=6 Bytes=156)&lt;br /&gt;1 0 SORT (GROUP BY) (Cost=11 Card=6 Bytes=156)&lt;br /&gt;2 1 HASH JOIN (Cost=10 Card=80 Bytes=2080)&lt;br /&gt;3 2 MERGE JOIN (Cost=6 Card=80 Bytes=1520)&lt;br /&gt;4 3 TABLE ACCESS (BY INDEX ROWID) OF 'HOTELS' (TABLE) (Cost=2 Card=8 Bytes=104)&lt;br /&gt;5 4 INDEX (FULL SCAN) OF 'PK_HOTELS' (INDEX (UNIQUE)) (Cost=1 Card=8)&lt;br /&gt;6 3 SORT (JOIN) (Cost=4 Card=80 Bytes=480)&lt;br /&gt;7 6 TABLE ACCESS (FULL) OF 'RESERVATIONS' (TABLE) (Cost=3 Card=80 Bytes=480)&lt;br /&gt;8 2 MAT_VIEW REWRITE ACCESS (FULL) OF 'MV_ACTUAL_SALES' (MAT_VIEW REWRITE) (Cost=3&lt;br /&gt;Card=80 Bytes=560)&lt;br /&gt;&lt;br /&gt;The query did use MV_ACTUAL_SALES but not MV_HOTEL_RESV; thus, the tables HOTELS and RESERVATIONS are accessed. This&lt;br /&gt;approach, especially the full table scan of the latter, will definitely use more resources—a situation you would note while designing queries and&lt;br /&gt;MVs.&lt;br /&gt;&lt;br /&gt;Although you can always control resource utilization using Resource Manager, using the hint will prevent the issuance of queries even before the&lt;br /&gt;Resource Manager is called. Resource Manager estimates required resources based on optimizer statistics, so the presence or absence of&lt;br /&gt;reasonably accurate statistics will affect that process. The rewrite or error feature, however, will stop table access regardless of statistics.&lt;br /&gt;Explain Plan Explains Better&lt;br /&gt;&lt;br /&gt;In the previous example, note the line in the explain plan output:&lt;br /&gt;MAT_VIEW REWRITE ACCESS (FULL) OF 'MV_ACTUAL_SALES' (MAT_VIEW REWRITE)&lt;br /&gt;This method of access—MAT_VIEW REWRITE—is new; it shows that the MV is being accessed, not the table or segment. This procedure&lt;br /&gt;immediately tells you if the table or MV is used, even if the names don't imply the nature of the segment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-4419738221846610698?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/4419738221846610698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=4419738221846610698' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/4419738221846610698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/4419738221846610698'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/materialized-views.html' title='Materialized Views'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-8173598602953498238</id><published>2009-04-04T14:28:00.000-07:00</published><updated>2009-04-04T14:31:48.816-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN</title><content type='html'>&lt;strong&gt;RMAN&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;RMAN becomes more powerful with a redesigned incremental backup scheme, offline recovery of incremental backups, previewing&lt;br /&gt;restore, recovering through resetlogs, file compression, and much more&lt;br /&gt;Most people would agree that RMAN is the de facto tool of choice for Oracle database backup. But as powerful as they were, early versions of&lt;br /&gt;RMAN left something to be desired. Like many DBAs, I had pet peeves about the absence of what I consider to be must-have features.&lt;br /&gt;Fortunately, Oracle Database 10g addresses many of these issues by incorporating many desirable features, making RMAN an even more&lt;br /&gt;powerful and useful tool. Let's take a look.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Incremental Backups Revisited&lt;/strong&gt;&lt;br /&gt;RMAN includes an option for incremental backups. But truthfully, how often do you use it? Probably occasionally, or possibly even never.&lt;br /&gt;This option instructs the tool to back up blocks that have changed since the last incremental backup at the same level or below. For instance, a full&lt;br /&gt;backup (level_0) is taken on day 1 and two incrementals of level_1 are taken on days 2 and 3. The latter two merely back up the changed blocks&lt;br /&gt;between days 1 and 2 and days 2 and 3, not across the entire backup time. This strategy reduces backup size, requiring less space, and narrows&lt;br /&gt;the backup window, reducing the amount of data moving across the network.&lt;br /&gt;The most important reason for doing incremental backups is associated with data warehouse environments, where many operations are done in&lt;br /&gt;NOLOGGING mode and data changes do not go to the archived log files—hence, no media recovery is possible. Considering the massive size of&lt;br /&gt;data warehouses today, and the fact that most of the data in them does not change, full backups are neither desirable nor practical. Rather, doing&lt;br /&gt;incremental backups in RMAN is an ideal alternative.&lt;br /&gt;So why do many DBAs do incremental backups only rarely? One reason is that in Oracle9i and below, RMAN scans all the data blocks to identify&lt;br /&gt;candidates for backup. This process puts so much stress on the system that doing incrementals becomes impractical.&lt;br /&gt;&lt;br /&gt;Oracle Database 10g RMAN implements incremental backups in a manner that disposes of that objection. It uses a file, analogous to journals in&lt;br /&gt;filesystems, to track the blocks that have changed since the last backup. RMAN reads this file to determine which blocks are to be backed up.&lt;br /&gt;You can enable this tracking mechanism by issuing the following command:&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database enable block change tracking using file '/rman_bkups/change.log';&lt;br /&gt;This command creates a binary file called /rman_bkups/change.log for tracking purposes. Conversely, you can disable tracking with&lt;br /&gt;SQL&gt; alter database disable block change tracking;&lt;br /&gt;To see whether change tracking is currently enabled, you can query:&lt;br /&gt;SQL&gt; select filename, status from v$block_change_tracking;&lt;br /&gt;Flash Recovery Area&lt;br /&gt;&lt;br /&gt;Flashback queries, introduced in Oracle9i, depend on undo tablespace to flash-back to a prior version, thereby limiting its ability go too far into the&lt;br /&gt;past. Flash recovery provided an alternative solution by creating flashback logs, which are similar to redo logs, to revert the database to a prior&lt;br /&gt;state. In summary, you create a flash recovery area for the database, specify its size, and place the database in flash recovery mode with the&lt;br /&gt;following SQL commands:&lt;br /&gt;&lt;br /&gt;alter system set db_recovery_file_dest = '/ora_flash_area';&lt;br /&gt;alter system set db_recovery_file_dest_size = 2g;&lt;br /&gt;alter system set db_flashback_retention_target = 1440;&lt;br /&gt;alter database flashback on;&lt;br /&gt;&lt;br /&gt;The database must be in archive log mode to be flashback-enabled. That process creates Oracle Managed Files in the directory /ora_flash_area,&lt;br /&gt;with a total size of up to 2GB. The database changes are written to these files and can be used to quickly recover the database to a point in the&lt;br /&gt;past.&lt;br /&gt;&lt;br /&gt;By default, RMAN also uses /ora_flash_area to store backup files; thus, RMAN backups are stored on disk, not tape. For that reason, you have the&lt;br /&gt;ability to specify how many days you need to keep backups. After that period, the files are automatically deleted if more space is required.&lt;br /&gt;&lt;br /&gt;The flash recovery area needn't be a filesystem or a directory, however—alternatively, it could be an Automatic Storage Management (ASM)&lt;br /&gt;diskgroup. In that case, the flash recovery area is specified by:&lt;br /&gt;&lt;br /&gt;alter system set db_recovery_file_dest = '+dskgrp1';&lt;br /&gt;&lt;br /&gt;Consequently, using ASM and RMAN in combination, you can build a highly scaleable, fault-tolerant storage system using cheap disks such as&lt;br /&gt;Serial ATA or SCSI drives, with no additional software required. (For more details about ASM, see the Week 8 installment in this series.) This&lt;br /&gt;approach not only makes the backup process much faster but also cheap enough to compete with the tape-based approach.&lt;br /&gt;&lt;br /&gt;An additional benefit is protection against user errors. Because ASM files are not true filesystems, they are less likely to be corrupted accidentally&lt;br /&gt;by DBAs and sysadmins.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Incremental Merge&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Let's say you have the following backup schedule:&lt;br /&gt;Sunday - Level 0 (full), with tag level_0&lt;br /&gt;Monday - Level 1 (incremental) with tag level_1_mon&lt;br /&gt;Tuesday - Level 1 (incremental) with tag level_1_tue&lt;br /&gt;&lt;br /&gt;and so on. If the database fails on Saturday, prior to 10g you would have had to restore the tag level_0 and then apply all six incrementals. It would&lt;br /&gt;have taken a long time, which is another reason many DBAs shun incremental backups.&lt;br /&gt;Oracle Database 10g RMAN radically changes that equation. Now, your incremental backup command looks like this:&lt;br /&gt;&lt;br /&gt;RMAN&gt; backup incremental level_1 for recover of copy with tag level_0 database;&lt;br /&gt;Here we have instructed RMAN to make an incremental level_1 backup and merge that with the full backup copy with the tag level_0. After this&lt;br /&gt;command, level_0 becomes a full backup of that day.&lt;br /&gt;&lt;br /&gt;So, on Tuesday, the backup with tag level_0, when merged with incremental level_1 backup, becomes identical to the full Tuesday backup.&lt;br /&gt;&lt;br /&gt;Similarly, the incremental taken on Saturday, when applied to the backup on disk, will be equivalent to a full level_0 Saturday backup. If the&lt;br /&gt;database fails on Saturday, you just need to restore the level_0 backup plus a few archive logs to bring the database into a consistent state; there is&lt;br /&gt;no need to apply additional incrementals. This approach cuts down recovery time dramatically, speeds backup, and eliminates the need to make a&lt;br /&gt;full database backup again.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Compressed Files&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;With disk-based backups in the flash recovery area, you still have a big limitation: disk space. Especially when going across a network—as is&lt;br /&gt;usually the case—it's advisable to create as small a backup set as possible. In Oracle Database 10g RMAN, you can compress files inside the&lt;br /&gt;backup command itself:&lt;br /&gt;&lt;br /&gt;RMAN&gt; backup as compressed backupset incremental level 1 database;&lt;br /&gt;Note the use of the clause COMPRESSED. It compresses backup files with an important difference: while restoring, RMAN can read the files without&lt;br /&gt;uncompressing. To confirm compression, check for the following message in the output:&lt;br /&gt;channel ORA_DISK_1: starting compressed incremental level 1 datafile backupset&lt;br /&gt;Furthermore, you can verify that the backup was compressed by checking the RMAN list output:&lt;br /&gt;&lt;br /&gt;RMAN&gt; list output;&lt;br /&gt;BS Key Type LV Size Device Type Elapsed Time Completion Time&lt;br /&gt;------- ---- -- ---------- ----------- ------------ ---------------&lt;br /&gt;3 Incr 1 2M DISK 00:00:00 26-FEB-04&lt;br /&gt;BP Key: 3 Status: AVAILABLE Compressed: YES Tag: TAG20040226T100154&lt;br /&gt;Piece Name: /ora_flash_area/SMILEY10/backupset/2004_02_26/&lt;br /&gt;o1_mf_ncsn1_TAG20040226T100154_03w2m3lr_.bkp&lt;br /&gt;Controlfile Included: Ckp SCN: 318556 Ckp time: 26-FEB-04&lt;br /&gt;SPFILE Included: Modification time: 26-FEB-04&lt;br /&gt;As with any compression process, this approach puts pressure on CPUs. As a tradeoff, you can keep more RMAN backups on disk that are readily&lt;br /&gt;available for restore-and-recover operations. Alternatively, you can make RMAN backups at the Physical Standby Database that can be used to&lt;br /&gt;recover the primary database. That approach will offload backup resourses to another host.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Look Before You Leap: Recovery Preview&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In Oracle Database 10g, RMAN has gone one more step ahead by providing the ability to preview the backups required to perform a restore&lt;br /&gt;operation.&lt;br /&gt;&lt;br /&gt;RMAN&gt; restore database preview;&lt;br /&gt;Listing 1 shows the output of this operation. You can also preview specific restore operations; for example:&lt;br /&gt;&lt;br /&gt;restore tablespace users preview;&lt;br /&gt;&lt;br /&gt;Preview allows you to ensure the recovery readiness of your backup infrastructure by making periodic and regular checks.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resetlogs and Recovery&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Let's imagine that you have lost the current online redo log files and you have to perform an incomplete database recovery—a rare but not unheard&lt;br /&gt;of situation. The biggest problem is resetlogs; after incomplete recovery you must open the database with the resetlogs clause, which sets the&lt;br /&gt;sequence number of the log threads to 1, making your earlier backups obsolete in RMAN and making the recovery operation more of a challenge.&lt;br /&gt;In Oracle9i and below, if you need to restore the database to a version prior to resetlogs, you have to restore to a different incarnation. In Oracle&lt;br /&gt;Database 10g, you don't have to do that. Thanks to additional infrastructure in the control file, RMAN can now readily use all backups, before and&lt;br /&gt;after a resetlogs operation, to recover the Oracle database. There is no need to shut down the database to make a backup. This new capability&lt;br /&gt;means that the database can be re-opened immediately for the user community after a resetlogs operation.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ready for RMAN&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The enhancements in Oracle Database 10g RMAN make it an even more compelling tool in your backup strategy. The improvements to the&lt;br /&gt;incremental backup process alone make RMAN tough to ignore.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-8173598602953498238?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/8173598602953498238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=8173598602953498238' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/8173598602953498238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/8173598602953498238'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/rman.html' title='RMAN'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-1758504336259479731</id><published>2009-04-04T14:19:00.000-07:00</published><updated>2009-04-04T14:22:51.437-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Automatic Storage Management'/><title type='text'>Automatic Storage Management</title><content type='html'>&lt;strong&gt;Automatic Storage Management&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;You just received a brand-new server and storage subsystem for a new Oracle database. Aside from operating system configuration, what is your&lt;br /&gt;most important before you can create the database? Obviously, it's creating the storage system layout—or more specifically, choosing a level of&lt;br /&gt;protection and then building the necessary Redundant Array of Inexpensive Disks (RAID) sets.&lt;br /&gt;&lt;br /&gt;Setting up storage takes a significant amount of time during most database installations. Zeroing on a specific disk configuration from among the&lt;br /&gt;multiple possibilities requires careful planning and analysis, and, most important, intimate knowledge of storage technology, volume managers, and&lt;br /&gt;filesystems. The design tasks at this stage can be loosely described as follows (note that this list is merely representative; tasks will vary by&lt;br /&gt;configuration):&lt;br /&gt;&lt;br /&gt;1. Confirm that storage is recognized at the OS level and determine the level of redundancy protection that might already be provided&lt;br /&gt;(hardware RAID).&lt;br /&gt;2. Assemble and build logical volume groups and determine if striping or mirroring is also necessary.&lt;br /&gt;3. Build a file system on the logical volumes created by the logical volume manager.&lt;br /&gt;4. Set the ownership and privileges so that the Oracle process can open, read, and write to the devices.&lt;br /&gt;5. Create a database on that filesystem while taking care to create special files such as redo logs, temporary tablespaces, and undo&lt;br /&gt;tablespaces in non-RAID locations, if possible.&lt;br /&gt;In most shops, the majority of these steps are executed by someone with lots of knowledge about the storage system. That "someone" is usually&lt;br /&gt;not the DBA.&lt;br /&gt;Notice, however, that all these tasks—striping, mirroring, logical filesystem building—are done to serve only one type of server, our Oracle&lt;br /&gt;Database. So, wouldn't it make sense for Oracle to offer some techniques of its own to simplify or enhance the process?&lt;br /&gt;Oracle Database 10g does exactly that. A new and exciting feature, Automatic Storage Management (ASM), lets DBAs execute many of the above&lt;br /&gt;tasks completely within the Oracle framework. Using ASM you can transform a bunch of disks to a highly scalable (and the stress is on the word&lt;br /&gt;scalable) and performant filesystem/volume manager using nothing more than what comes with Oracle Database 10g software at no extra cost.&lt;br /&gt;And, no, you don't need to be an expert in disk, volume managers, or file system management.&lt;br /&gt;In this installment, you will learn enough about ASM basics to start using it in real-world applications. As you might guess, this powerful feature&lt;br /&gt;warrants a comprehensive discussion that would go far beyond our current word count, so if you want to learn more, I've listed some excellent&lt;br /&gt;sources of information at the conclusion.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is ASM?&lt;/strong&gt;&lt;br /&gt;Let's say that you have 10 disks to be used in the database. With ASM, you don't have to create anything on the OS side; the feature will group a&lt;br /&gt;set of physical disks to a logical entity known as a diskgroup. A diskgroup is analogous to a striped (and optionally mirrored) filesystem, with&lt;br /&gt;important differences: it's not a general-purpose filesystem for storing user files and it's not buffered. Because of the latter, a diskgroup offers the&lt;br /&gt;advantage of direct access to this space as a raw device yet provides the convenience and flexibility of a filesystem.&lt;br /&gt;Logical volume managers typically use a function, such as hashing to map the logical address of the blocks to the physical blocks. This computation&lt;br /&gt;uses CPU cycles. Furthermore, when a new disk (or RAID-5 set of disks) is added, this typical striping function requires each bit of the entire data&lt;br /&gt;set to be relocated.&lt;br /&gt;In contrast, ASM uses a special Oracle Instance to address the mapping of the file extents to the physical disk blocks. This design, in addition to&lt;br /&gt;being fast in locating the file extents, helps while adding or removing disks because the locations of file extents need not be coordinated. This&lt;br /&gt;special ASM instance is similar to other filesystems in that it must be running for ASM to work and can't be modified by the user. One ASM instance&lt;br /&gt;can service a number of Oracle databases instances on the same server.&lt;br /&gt;This special instance is just that: an instance, not a database where users can create objects. All the metadata about the disks are stored in the&lt;br /&gt;diskgroups themselves, making them as self-describing as possible.&lt;br /&gt;So in a nutshell, what are the advantages of ASM?&lt;br /&gt;&lt;br /&gt;l Disk Addition—Adding a disk becomes very easy. No downtime is required and file extents are redistributed automatically.&lt;br /&gt;l I/O Distribution—I/O is spread over all the available disks automatically, without manual intervention, reducing chances of a hot spot.&lt;br /&gt;l Stripe Width—Striping can be fine grained as in Redo Log Files (128K for faster transfer rate) and coarse for datafiles (1MB for transfer of a&lt;br /&gt;large number of blocks at one time).&lt;br /&gt;l Buffering—The ASM filesystem is not buffered, making it direct I/O capable by design.&lt;br /&gt;l Kernelized Asynch I/O—There is no special setup necessary to enable kernelized asynchronous I/O, without using raw or third-party&lt;br /&gt;filesystems such as Veritas Quick I/O.&lt;br /&gt;l Mirroring—Software mirroring can be set up easily, if hardware mirroring is not available.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Creating an ASM-enabled Database, Step by Step&lt;/strong&gt;&lt;br /&gt;Here's a concrete example of how you would create an ASM-enabled database:&lt;br /&gt;1. Set up an ASM Instance&lt;br /&gt;You create an ASM instance via the Database Creation Assistant by specifying the following initialization parameter:&lt;br /&gt;INSTANCE_TYPE = ASM&lt;br /&gt;You should start the instance up when the server is booted, and it should be one of the last things stopped when the server is shut down.&lt;br /&gt;By default the value of this parameter is RDBMS, for regular databases.&lt;br /&gt;2. Set up a Disk Group&lt;br /&gt;After starting the ASM instance, create a disk group with the available disks.&lt;br /&gt;CREATE DISKGROUP dskgrp1&lt;br /&gt;EXTERNAL REDUNDANCY&lt;br /&gt;DISK&lt;br /&gt;'/dev/d1',&lt;br /&gt;'/dev/d2',&lt;br /&gt;'/dev/d3',&lt;br /&gt;'/dev/d4',&lt;br /&gt;... and so on for all the specific disks ...&lt;br /&gt;;&lt;br /&gt;In the above command, we have instructed the database to create a diskgroup named dksgrp1 with the physical disks named /dev/d1, /dev/d2, and&lt;br /&gt;so on. Instead of giving disks separately, you can also specify disk names in wildcards in the DISK clause as follows.&lt;br /&gt;DISK '/dev/d*'&lt;br /&gt;&lt;br /&gt;In the above command, we have specified a clause EXTERNAL REDUNDANCY, which indicates that the failure of a disk will bring down the&lt;br /&gt;diskgroup. This is usually the case when the redundancy is provided by the hardware, such as mirroring. If there is no hardware based redundancy,&lt;br /&gt;the ASM can be set up to create a special set of disks called failgroup in the diskgroup to provide that redundancy.&lt;br /&gt;CREATE DISKGROUP dskgrp1&lt;br /&gt;NORMAL REDUNDANCY&lt;br /&gt;FAILGROUP failgrp1 DISK&lt;br /&gt;'/dev/d1',&lt;br /&gt;'/dev/d2',&lt;br /&gt;FAILGROUP failgrp2 DISK&lt;br /&gt;'/dev/d3',&lt;br /&gt;'/dev/d4';&lt;br /&gt;&lt;br /&gt;Although it may appear as such, d3 and d4 are not mirrors of d1 and d2. Rather, ASM uses all the disks to create a fault-tolerant system. For&lt;br /&gt;instance, a file on the diskgroup might be created in d1 with a copy maintained on d4. A second file may be created on d3 with copy on d2, and so&lt;br /&gt;on. Failure of a specific disk allows a copy on another disk so that the operation can continue. For example, you could lose the controller for both&lt;br /&gt;disks d1 and d2 and ASM would mirror copies of the extents across the failure group to maintain data integrity.&lt;br /&gt;3. Create Tablespace&lt;br /&gt;Now create a tablespace in the main database using a datafile in the ASM-enabled storage.&lt;br /&gt;CREATE TABLESPACE USER_DATA DATAFILE '+dskgrp1/user_data_01'&lt;br /&gt;SIZE 1024M&lt;br /&gt;/&lt;br /&gt;That's it! The setup process is complete.&lt;br /&gt;Note how the diskgroup is used as a virtual filesystem. This approach is useful not only in data files, but in other types of Oracle files as well. For&lt;br /&gt;instance, you could create online redo log files as&lt;br /&gt;LOGFILE GROUP 1 (&lt;br /&gt;'+dskgrp1/redo/group_1.258.3',&lt;br /&gt;'+dskgrp2/redo/group_1.258.3'&lt;br /&gt;) SIZE 50M,&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;Even archived log destinations can also be set to a diskgroup. Pretty much everything related to&lt;br /&gt;Oracle Database can be created in an ASM-based diskgroup. For example, backup is another great&lt;br /&gt;use of ASM. You can set up a bunch of inexpensive disks to create the recovery area of a database,&lt;br /&gt;which can be used by RMAN to create backup datafiles and archived log files. (In the next&lt;br /&gt;installment about RMAN in Oracle Database 10g, you'll learn in detail how to use that capability to&lt;br /&gt;your advantage.)&lt;br /&gt;Please bear in mind however that ASM supports files created by and read by the Oracle Database&lt;br /&gt;only; it is not a replacement for a general-purpose filesystem and cannot store binaries or flat files.&lt;br /&gt;Maintenance&lt;br /&gt;Let's examine some typical tasks needed to maintain the diskgroups. From time to time, you may&lt;br /&gt;have to add additional disks into the diskgroup dskgrp1 to accommodate growing demand. You&lt;br /&gt;would issue:&lt;br /&gt;alter diskgroup dskgrp1 add disk '/dev/d5';&lt;br /&gt;To find out what disks are in what diskgroup, you would issue:&lt;br /&gt;select * from v$asm_disk;&lt;br /&gt;This command shows all the disks managed by the ASM instance for all the client databases. Of&lt;br /&gt;these disks, you may decide to remove a disk with:&lt;br /&gt;alter diskgroup dskgrp1 drop disk diskb23;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6704140595848644566-1758504336259479731?l=appsdbaportal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://appsdbaportal.blogspot.com/feeds/1758504336259479731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6704140595848644566&amp;postID=1758504336259479731' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/1758504336259479731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6704140595848644566/posts/default/1758504336259479731'/><link rel='alternate' type='text/html' href='http://appsdbaportal.blogspot.com/2009/04/automatic-storage-management.html' title='Automatic Storage Management'/><author><name>Srinivasan .R</name><uri>http://www.blogger.com/profile/10606513288863709897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Veaf3lFF6Po/Sduo8ndFdII/AAAAAAAACPo/k8eyW5NZgOs/S220/DSC00668.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6704140595848644566.post-6516919292510635464</id><published>2009-04-04T14:11:00.000-07:00</published><updated>2009-04-04T14:15:09.110-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='10g:Flashback Table'/><title type='text'>10g:Flashback Table</title><content type='html'>&lt;strong&gt;Flashback Table&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Reinstating an accidentally dropped table is effortless using the Flashback Table feature in Oracle Database 10g&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Here's a scenario that happens more often than it should: a user drops a very important table--accidentally, of course--and it needs to be revived as&lt;br /&gt;soon as possible. (In some cases, this unfortunate user may even have been you, the DBA!)&lt;br /&gt;&lt;br /&gt;Oracle9i Database introduced the concept of a Flashback Query option to retrieve data from a point in time in the past, but it can't flash back DDL&lt;br /&gt;operations such as dropping a table. The only recourse is to use tablespace point-in-time recovery in a different database and then recreate the&lt;br /&gt;table in the current database using export/import or some other method. This procedure demands significant DBA effort as well as precious time,&lt;br /&gt;not to mention the use of a different database for cloning.&lt;br /&gt;&lt;br /&gt;Enter the Flashback Table feature in Oracle Database 10g, which makes the revival of a dropped table as easy as the execution of a few&lt;br /&gt;statements. Let's see how this feature works.&lt;br /&gt;Drop That Table!&lt;br /&gt;&lt;br /&gt;First, let's see the tables in the present schema.&lt;br /&gt;&lt;br /&gt;SQL&gt; select * from tab;&lt;br /&gt;TNAME TABTYPE CLUSTERID&lt;br /&gt;------------------------ ------- ----------&lt;br /&gt;RECYCLETEST TABLE&lt;br /&gt;Now, we accidentally drop the table:&lt;br /&gt;SQL&gt; drop table recycletest;&lt;br /&gt;Table dropped.&lt;br /&gt;Let's check the status of the table now.&lt;br /&gt;SQL&gt; select * from tab;&lt;br /&gt;TNAME TABTYPE CLUSTERID&lt;br /&gt;------------------------------ ------- ----------&lt;br /&gt;BIN$04LhcpndanfgMAAAAAANPw==$0 TABLE&lt;br /&gt;The table RECYCLETEST is gone but note the presence of the new table BIN$04LhcpndanfgMAAAAAANPw==$0. Here's what happened: The&lt;br /&gt;dropped table RECYCLETEST, instead of completely disappearing, was renamed to a system-defined name. It stays in the same tablespace, with&lt;br /&gt;the same structure as that of the original table. If there are indexes or triggers defined on the table, they are renamed too, using the same naming&lt;br /&gt;convention used by the table. Any dependent sources such as procedures are invalidated; the triggers and indexes of the original table are instead&lt;br /&gt;placed on the renamed table BIN$04LhcpndanfgMAAAAAANPw==$0, preserving the complete object structure of the dropped table.&lt;br /&gt;The table and its associated objects are placed in a logical container known as the "recycle bin," which is similar to the one in your PC. However,&lt;br /&gt;the objects are not moved from the tablespace they were in earlier; they still occupy the space there. The recycle bin is merely a logical structure&lt;br /&gt;that catalogs the dropped objects. Use the following command from the SQL*Plus prompt to see its content (you'll need SQL*Plus 10.1 to do this):&lt;br /&gt;SQL&gt; show recyclebin&lt;br /&gt;ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME&lt;br /&gt;---------------- ------------------------------ ------------ ------------------&lt;br /&gt;RECYCLETEST BIN$04LhcpndanfgMAAAAAANPw==$0 TABLE 2004-02-16:21:13:31&lt;br /&gt;This shows the original name of the table, RECYCLETEST, as well as the new name in the recycle bin, which has the same name as the new table&lt;br /&gt;we saw created after the drop. (Note: the exact name may differ by platform.) To reinstate the table, all you have to do is use the FLASHBACK&lt;br /&gt;TABLE command:&lt;br /&gt;SQL&gt; FLASHBACK TABLE RECYCLETEST TO BEFORE DROP;&lt;br /&gt;FLASHBACK COMPLETE.&lt;br /&gt;SQL&gt; SELECT * FROM TAB;&lt;br /&gt;TNAME TABTYPE CLUSTERID&lt;br /&gt;------------------------------ ------- ----------&lt;br /&gt;RECYCLETEST TABLE&lt;br /&gt;&lt;br /&gt;Voila! The table is reinstated effortlessly. If you check the recycle bin now, it will be empty.&lt;br /&gt;&lt;br /&gt;Remember, placing tables in the recycle bin does not free up space in the original tablespace. To free the space, you need to purge the bin using:&lt;br /&gt;PURGE RECYCLEBIN;&lt;br /&gt;But what if you want to drop the table completely, without needing a flashback feature? In that case, you can drop it permanently using:&lt;br /&gt;DROP TABLE RECYCLETEST PURGE;&lt;br /&gt;This command will not rename the table to the recycle bin name; rather, it will be deleted permanently, as it would have been pre-10g.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Managing the Recycle Bin&lt;/strong&gt;&lt;br /&gt;If the tables are not really dropped in this process--therefore not releasing the tablespace--what happens when the dropped objects take up all of&lt;br /&gt;that space?&lt;br /&gt;The answer is simple: that situation does not even arise. When a tablespace is completely filled up with recycle bin data such that the datafiles have&lt;br /&gt;to extend to make room for more data, the tablespace is said to be under "space pressure." In that scenario, objects are automatically purged from&lt;br /&gt;the recycle bin in a first-in-first-out manner. The dependent objects (such as indexes) are removed before a table is removed.&lt;br /&gt;Similarly, space pressure can occur with user quotas as defined for a particular tablespace. The tablespace may have enough free space, but the&lt;br /&gt;user may be running out of his or her allotted portion of it. In such situations, Oracle automatically purges objects belonging to that user in that&lt;br /&gt;tablespace.&lt;br /&gt;In addition, there are several ways you can manually control the recycle bin. If you want to purge the specific table named TEST from the recycle&lt;br /&gt;bin after its drop, you could issue&lt;br /&gt;PURGE TABLE TEST;&lt;br /&gt;or using its recycle bin name:&lt;br /&gt;PURGE TABLE "BIN$04LhcpndanfgMAAAAAANPw==$0";&lt;br /&gt;This command will remove table TEST and all dependent objects such as indexes, constraints, and so on from the recycle bin, saving some space.&lt;br /&gt;If, however, you want to permanently drop an index from the recycle bin, you can do so using:&lt;br /&gt;purge index in_test1_01;&lt;br /&gt;which will remove the index only, leaving the copy of the table in the recycle bin.&lt;br /&gt;Sometimes it might be useful to purge at a higher level. For instance, you may want to purge all the objects in recycle bin in a tablespace USERS.&lt;br /&gt;You would issue:&lt;br /&gt;PURGE TABLESPACE USERS;&lt;br /&gt;You may want to purge only the recycle bin for a particular user in that tablespace. This approach could come handy in data warehouse-type&lt;br /&gt;environments where users create and drop many transient tables. You could modify the command above to limit the purge to a specific user only:&lt;br /&gt;PURGE TABLESPACE USERS USER SCOTT;&lt;br /&gt;A user such as SCOTT would clear his own recycle bin with&lt;br /&gt;PURGE RECYCLEBIN;&lt;br /&gt;You a
