<?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:blogger='http://schemas.google.com/blogger/2008' 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-9168263658239738325</id><updated>2024-11-01T16:04:33.015+05:30</updated><category term="oracle"/><category term="database"/><category term="application server"/><category term="oas"/><category term="oracle forms"/><category term="performance tunning"/><category term="tablespace"/><category term="control file"/><category term="datafile"/><category term="Linux"/><category term="Mobile"/><category term="data pump"/><category term="fragmentation"/><category term="index"/><category term="invalid objects"/><category term="locked objects"/><category term="ods"/><category term="oracle application server"/><category term="oracle apps"/><category term="oracle reports"/><category term="port"/><category term="primary key"/><category term="spatial index"/><category term="table"/><category term="upgrade"/><category term="webutil"/><category term="AIX"/><category term="ATS"/><category term="Anti terror Squad"/><category term="Basic Commands"/><category term="Basic Linux Commands"/><category term="Blood"/><category term="Corporate World"/><category term="Good Use Of Mobiles"/><category term="Grievance forum"/><category term="Helpline"/><category term="IBM"/><category term="IOT"/><category term="Index Organized Table"/><category term="Lost Mobile"/><category term="Myth or Reality"/><category term="Need Blood"/><category term="OID"/><category term="ORA-29859"/><category term="ORA-29861"/><category term="OS"/><category term="Oracle specific windows services"/><category term="RTI"/><category term="Remove and Add Right-Click Menu Items"/><category term="Right To Information Act"/><category term="SALAAM"/><category term="Story"/><category term="Touching Story"/><category term="Vizag"/><category term="application server installation"/><category term="attach calendar to a field"/><category term="bandwidth"/><category term="bean no found"/><category term="call_form"/><category term="client_host"/><category term="clustered table"/><category term="copy"/><category term="corruption"/><category term="cpio"/><category term="cpu patches"/><category term="custom directory"/><category term="database growth"/><category term="database release"/><category term="dataguard"/><category term="datatype"/><category term="db links"/><category term="dbverify"/><category term="discoverer"/><category term="encryption"/><category term="excrypt"/><category term="export import"/><category term="hostname"/><category term="ias_admin"/><category term="in vs exists"/><category term="india"/><category term="india jagoo"/><category term="invalid"/><category term="invalid object"/><category term="kernel parameters"/><category term="keyboard shortcuts"/><category term="kill session"/><category term="last ddl"/><category term="latch"/><category term="listener"/><category term="logical standby"/><category term="login page"/><category term="media recovery"/><category term="object"/><category term="object level tunning"/><category term="ora encrypt login"/><category term="ora-01113"/><category term="ora-01804"/><category term="ora-12514"/><category term="oracle internet directory"/><category term="oracle log files"/><category term="oradim"/><category term="orapwd"/><category term="orcladmin"/><category term="password file"/><category term="patches"/><category term="physical standby"/><category term="rebuild index"/><category term="recreate"/><category term="redo logfiles"/><category term="rename database"/><category term="run command"/><category term="run oracle forms on vista"/><category term="size"/><category term="solaris"/><category term="sql"/><category term="sso"/><category term="standby"/><category term="transaction"/><category term="uninstall windows service"/><category term="vista"/><category term="wake up india"/><category term="webutil configuration"/><category term="windows"/><category term="windows service"/><title type='text'>Planet Of Solutions</title><subtitle type='html'>Place for Educationist, Bloggers, Tourists.&#xa;&#xa;Technocrats: - Find the place for your answers on this planet of solutions regarding Oracle Core DBA, Oracle Fusion DBA and Oracle Technical.&#xa;&#xa;Bloggers: - Find the place to discuss your thoughts related to current affairs to make this world, a place of happiness and prosperity.&#xa;&#xa;Tourists: - Discover the best places to visit in India&#xa;(Heaven on Earth)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>97</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-6603807286306442427</id><published>2010-07-24T13:26:00.004+05:30</published><updated>2010-07-24T13:34:49.676+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="custom directory"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle application server"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle forms"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle reports"/><title type='text'>How to change Oracle forms and reports standalone configuration for custom directory???</title><content type='html'>Recently i encountered one issue to configure Oracle Forms and Reports Standalone to point to custom directory.&lt;br /&gt;&lt;br /&gt;Below is the solution for that&lt;br /&gt;&lt;br /&gt;Got to &lt;span style=&quot;font-weight: bold;&quot;&gt;httpd.conf&lt;/span&gt; file which is located in &lt;span style=&quot;font-weight: bold;&quot;&gt;ORACLE_HOME/Apache/Apache/conf&lt;/span&gt; directory.&lt;br /&gt;&lt;br /&gt;Before changing anything in httpd.conf, take backup of httpd.conf.&lt;br /&gt;&lt;br /&gt;Change &lt;span style=&quot;font-weight: bold;&quot;&gt;DocumentRoot&lt;/span&gt; value to your directory as shown below&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;DocumentRoot &quot;your custom directory&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps!!!</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/6603807286306442427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/6603807286306442427' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/6603807286306442427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/6603807286306442427'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/07/how-to-change-oracle-forms-and-reports.html' title='How to change Oracle forms and reports standalone configuration for custom directory???'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-8435517538063615661</id><published>2010-07-24T13:22:00.002+05:30</published><updated>2010-07-24T13:25:34.431+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="discoverer"/><category scheme="http://www.blogger.com/atom/ns#" term="oas"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle application server"/><title type='text'>How to change the logo on the connection page of discoverer portal</title><content type='html'>Below is a way change the logo on the connection page of discoverer portal&lt;br /&gt;&lt;br /&gt;Go to&lt;br /&gt;E:\Oracle\10gAS_BI\j2ee\OC4J_BI_Forms\applications\discoverer\discoverer\images&lt;br /&gt;&lt;br /&gt;change &lt;span style=&quot;font-weight: bold;&quot;&gt;logo_plus.gif&lt;/span&gt; to &lt;span style=&quot;font-weight: bold;&quot;&gt;logo_plus_bak.gif&lt;/span&gt; and place your logo there and rename it to &lt;span style=&quot;font-weight: bold;&quot;&gt;logo_plus.gif&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Now relogin to the Discoverer portal you will see your logo there.&lt;br /&gt;&lt;br /&gt;Enjoy!!!</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/8435517538063615661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/8435517538063615661' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/8435517538063615661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/8435517538063615661'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/07/how-to-change-logo-on-connection-page.html' title='How to change the logo on the connection page of discoverer portal'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-8572272143672341102</id><published>2010-07-24T13:07:00.003+05:30</published><updated>2010-07-24T13:20:23.794+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="db links"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>How to extract the DB Links DDL with the encripted password???</title><content type='html'>&lt;div&gt;Below is a simple script to extract the DB Links DDL with the encripted password.&lt;br /&gt;&lt;br /&gt;SET LONG 9000 — to print the complete string&lt;br /&gt;&lt;br /&gt;SELECT DBMS_METADATA.GET_DDL (‘DB_LINK’,a.db_link,a.owner) FROM dba_db_links a;&lt;br /&gt;&lt;br /&gt;Hope this helps as it has helped in alot of times.&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/8572272143672341102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/8572272143672341102' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/8572272143672341102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/8572272143672341102'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/07/how-to-extract-db-links-ddl-with.html' title='How to extract the DB Links DDL with the encripted password???'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-7331540394365339326</id><published>2010-06-07T14:01:00.002+05:30</published><updated>2010-06-11T20:02:02.676+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application server"/><category scheme="http://www.blogger.com/atom/ns#" term="oas"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="port"/><title type='text'>How to change OAS port to 80???</title><content type='html'>If you are on a UNIX system and you are changing the Listen port to a number less than 1024, perform these steps before you change the Oracle HTTP Server Listen port.&lt;br /&gt;&lt;br /&gt;By default, Oracle HTTP Server runs as a non-root user (the user that installed Oracle Application Server). On UNIX systems, if you change the Oracle HTTP Server Listen port number to a value less than 1024, you must enable Oracle HTTP Server to run as root, as follows:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;execute the below command as root&lt;br /&gt;&lt;br /&gt;cd ORACLE_HOME/Apache/Apache/bin&lt;br /&gt;chown root .apachectl&lt;br /&gt;chmod 6750 .apachectl&lt;br /&gt;&lt;br /&gt;change the value of port and Listen in httpd.conf to 80 and restart the OAS as Oracle user.&lt;br /&gt;&lt;br /&gt;For more information refer to the below link.&lt;a href=&quot;http://download.oracle.com/docs/cd/B32110_01/core.1013/b32196/ports.htm#CIHJEEJH&quot;&gt;http://download.oracle.com/docs/cd/B32110_01/core.1013/b32196/ports.htm#CIHJEEJH&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/7331540394365339326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/7331540394365339326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/7331540394365339326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/7331540394365339326'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/06/how-to-change-oas-port-to-80.html' title='How to change OAS port to 80???'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-6783095597570142988</id><published>2010-06-07T13:47:00.005+05:30</published><updated>2010-06-07T14:01:03.358+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application server"/><category scheme="http://www.blogger.com/atom/ns#" term="oas"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="port"/><title type='text'>How to assign 2 ports to the same website on the same server (OAS)</title><content type='html'>I recently have to assign 2 ports to same portal on the same OAS server.&lt;br /&gt;&lt;br /&gt;Below is the example to do the same.&lt;br /&gt;&lt;br /&gt;add the below entries according to ur requirement in httpd.conf&lt;br /&gt;&lt;br /&gt;Listen 80&lt;br /&gt;Listen 8080&lt;br /&gt;&lt;br /&gt;NameVirtualHost 172.20.30.40:80&lt;br /&gt;NameVirtualHost 172.20.30.40:8080&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;VirtualHost 172.20.30.40:80&amp;gt;&lt;br /&gt;ServerName www.example1.com&lt;br /&gt;DocumentRoot /www/domain-80&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;VirtualHost 172.20.30.40:8080&amp;gt;&lt;br /&gt;ServerName www.example1.com&lt;br /&gt;DocumentRoot /www/domain-8080&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;VirtualHost 172.20.30.40:80&amp;gt;&lt;br /&gt;ServerName www.example2.org&lt;br /&gt;DocumentRoot /www/otherdomain-80&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;VirtualHost 172.20.30.40:8080&amp;gt;&lt;br /&gt;ServerName www.example2.org&lt;br /&gt;DocumentRoot /www/otherdomain-8080&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;br /&gt;The above information have been collected from the below link&lt;br /&gt;http://httpd.apache.org/docs/2.0/vhosts/examples.html</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/6783095597570142988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/6783095597570142988' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/6783095597570142988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/6783095597570142988'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/06/how-to-assign-2-ports-to-same-website.html' title='How to assign 2 ports to the same website on the same server (OAS)'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-6353323908104263375</id><published>2010-06-03T20:51:00.003+05:30</published><updated>2010-06-03T20:55:36.053+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application server"/><category scheme="http://www.blogger.com/atom/ns#" term="oas"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="orcladmin"/><title type='text'>orcladmin password expired???</title><content type='html'>Beginning with OID version 9.0.4, the default value for Password Expiry Time is set to 5184000 (60 days).   Unless you have changed the default password policies from the installation defaults, exactly 60 days from the date of installation all passwords will automatically expire.   Furthermore, if you keep trying to login using the old password, there exists the possibility that you will exceed the max grace logins exceeded, and consequently the account becomes locked.&lt;br /&gt;&lt;br /&gt;To clarify the fact that the superuser, cn=orcladmin ldapbind succeeds you need to understand the following:&lt;br /&gt;&lt;br /&gt;1. There are 2 orcladmin accounts,  the superuser account, cn=orcladmin and the REALM administrator cn=orcladmin.  For example cn=orcladmin,cn=users,dc=oracle,dc-com.&lt;br /&gt;&lt;br /&gt;2.  The superuser account is hard coded and you cannot see it in the Oracle Directory Manager nor the Oracle Directory Services Manager in 11g.&lt;br /&gt;&lt;br /&gt;3.  When you login to OIDDAS the REALM administrator account is the one that is being used.  Since this user account exists within the REALM it is also under control of the default password policies.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Solution&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 1.&lt;/span&gt; If the superuser, cn=orcladmin account is locked, use the oidpasswd utility to unlock the super user orcladmin account, for example:  &lt;br /&gt;$ oidpasswd connect=asdb unlock_su_acct=true&lt;br /&gt;&lt;br /&gt;This unlocks the OID Super User account, cn=orcladmin ONLY. Do not confuse this account with the default realm cn=orcladmin,cn=users,dc=xxxxx,dc=yyyyy. Again, they are two separate accounts. After resetting the orcladmin super user account, you will still not be able to login to SSO using the orcladmin account until you complete all steps in this document. Do not reset any other account passwords at this time (on this step).&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 2.&lt;/span&gt; Launch the Oracle Directory Manager Console (or the ODSM for 11g).&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Pre-11g:&lt;/span&gt;&lt;br /&gt;on Unix, type oidadmin at the unix prompt&lt;br /&gt;on Windows, Start-&gt;Programs-&gt;Oracle - SID-&gt;Integrated Management Tools/Oracle Internet Directory&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;11g:&lt;/span&gt;&lt;br /&gt;Open a browser to the Oracle Fusion Middleware Enterprise Manager.&lt;br /&gt;Select the OID instance&lt;br /&gt;Click the OID dropdown list in the right frame&lt;br /&gt;Select Oracle Directory Services Manager&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 3.&lt;/span&gt; Login as &quot;cn=orcladmin&quot; and navigate to Password Policy Management area.&lt;br /&gt;  Edit each of these and change the pwdmaxage to an appropriate value:&lt;br /&gt;    5184000 = 60 days (default)&lt;br /&gt;    7776000 = 90 days&lt;br /&gt;    10368000 = 120 days&lt;br /&gt;    15552000 = 180 days&lt;br /&gt;    31536000 = 1 year&lt;br /&gt;    999999999 = never expire&lt;br /&gt;&lt;br /&gt;Note: Realm policies can be different than the root policy, so if in doubt change both policies the first time, then change the realm policy one to different values as desired.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Step 4.&lt;/span&gt; Launch Oracle Directory Manager (or ODSM if 11g as previously described) and navigate to Entry Management and the Users container under your default realm (for example:&lt;br /&gt;cn=orcladmin,cn=users,dc=oracle,dc=com)&lt;br /&gt;Reset the UserPassword field by entering a new value.&lt;br /&gt;&lt;br /&gt;After you have changed the cn=orcladmin for the REALM, you should be able to login to SSO/OIDDAS and reset/change any user passwords that have expired or are locked.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Note:&lt;/span&gt; at 11g there is not SSO nor OIDDAS, but you can still use the ODSM to reset user passwords.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Pre-11g Only&lt;/span&gt;&lt;br /&gt;  Rerun the odisrvreg utility to reset the DIP randomly generated password, for example:&lt;br /&gt;odisrvreg -D cn=orcladmin -w -p 3060&lt;br /&gt;Already Registered...Updating DIS password...&lt;br /&gt;DIS registration successful&lt;br /&gt;&lt;br /&gt;If you are unsure of your OID Port, check $ORACLE_HOME/install/portlist.ini file, which shows the ports at install time.&lt;br /&gt;&lt;br /&gt;The above information have been collected from metalink.oracle.com</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/6353323908104263375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/6353323908104263375' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/6353323908104263375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/6353323908104263375'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/06/orcladmin-password-expired.html' title='orcladmin password expired???'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-4805545851099422271</id><published>2010-04-21T13:17:00.003+05:30</published><updated>2010-04-21T13:21:10.730+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIX"/><category scheme="http://www.blogger.com/atom/ns#" term="cpio"/><category scheme="http://www.blogger.com/atom/ns#" term="IBM"/><category scheme="http://www.blogger.com/atom/ns#" term="OS"/><title type='text'>How to unzip cpio files on IBM AIX???</title><content type='html'>I faced a lot of problems to unzip .cpio files on IBM AIX. The errors which i used to get was out of phase, the file is not proper. After doing some R&amp;amp;D i found that to unzip on IBM AIX used the below command.&lt;br /&gt;&lt;br /&gt;cpio -idcmv  [cpio_filename]&lt;br /&gt;&lt;br /&gt;It has worked for me. Hope this helps to you also......</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/4805545851099422271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/4805545851099422271' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/4805545851099422271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/4805545851099422271'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/04/how-to-unzip-cpio-files-on-ibm-aix.html' title='How to unzip cpio files on IBM AIX???'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-5400704570848641227</id><published>2010-03-14T21:40:00.001+05:30</published><updated>2010-03-14T21:42:43.989+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="fragmentation"/><category scheme="http://www.blogger.com/atom/ns#" term="index"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>How to find index is fragmented in Oracle Database?</title><content type='html'>First analyze index&lt;br /&gt;&lt;br /&gt;    SQL&gt;analyze index INDEX_NAME validate structure;&lt;br /&gt;&lt;br /&gt;Then query INDEX_STATS view&lt;br /&gt;1. If del_lf_rows/lf_rows is &gt; .2 then index should be rebuild.&lt;br /&gt;2. If height is 4 then index should be rebuild.&lt;br /&gt;3. If lf_rows is lower than lf_blks then index should be rebuild.&lt;br /&gt;&lt;br /&gt;    SQL&gt; column status format a10&lt;br /&gt;    SQL&gt; select trunc((del_lf_rows/lf_rows)*100,2)||&#39;%&#39; &quot;status&quot; from index_stats;&lt;br /&gt;    status&lt;br /&gt;    ----------&lt;br /&gt;    21.83%&lt;br /&gt;&lt;br /&gt;How to remove index fragmentation?&lt;br /&gt;&lt;br /&gt;There are two way to remove fragmentation.&lt;br /&gt;1. index coalesce&lt;br /&gt;2. index rebuild&lt;br /&gt;&lt;br /&gt;What is difference between coalesce and rebuild please go through below link for more details&lt;br /&gt;http://download.oracle.com/docs/cd/B14117_01/server.101/b10739/indexes.htm#g1007548&lt;br /&gt;&lt;br /&gt;    SQL&gt; alter index IDX_OBJ_ID coalesce;&lt;br /&gt;&lt;br /&gt;    SQL&gt; alter index IDX_OBJ_ID rebuild;&lt;br /&gt;&lt;br /&gt;    SQL&gt; alter index IDX_OBJ_ID rebuild online;&lt;br /&gt;&lt;br /&gt;Note: If any DML statement is running on base table then we have to use ONLINE keyword with index rebuilding.&lt;br /&gt;&lt;br /&gt;    SQL&gt; analyze index idx_obj_id validate structure;&lt;br /&gt;    Index analyzed.&lt;br /&gt;&lt;br /&gt;    SQL&gt; select trunc((del_lf_rows/lf_rows)*100,2)||&#39;%&#39; &quot;status&quot; from index_stats;&lt;br /&gt;    status&lt;br /&gt;    -------&lt;br /&gt;    40.85%&lt;br /&gt;&lt;br /&gt;    SQL&gt; alter index IDX_OBJ_ID rebuild online;&lt;br /&gt;    Index altered.&lt;br /&gt;&lt;br /&gt;    SQL&gt; analyze index idx_obj_id validate structure;&lt;br /&gt;    Index analyzed.&lt;br /&gt;&lt;br /&gt;    SQL&gt; select trunc((del_lf_rows/lf_rows)*100,2)||&#39;%&#39; &quot;status&quot; from index_stats;&lt;br /&gt;    status&lt;br /&gt;    --------&lt;br /&gt;    0%</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/5400704570848641227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/5400704570848641227' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/5400704570848641227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/5400704570848641227'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/how-to-find-index-is-fragmented-in.html' title='How to find index is fragmented in Oracle Database?'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-9124806681415860081</id><published>2010-03-14T21:36:00.001+05:30</published><updated>2010-03-14T21:37:41.696+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="data pump"/><category scheme="http://www.blogger.com/atom/ns#" term="export import"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>Original Export and Import Versus Data Pump Export and Import in Oracle Database</title><content type='html'>It is important to understand that many of the concepts behind them do not apply to Data Pump Export (expdp) and Data Pump Import (impdp). In particular:&lt;br /&gt;&lt;br /&gt;* Data Pump Export and Import operate on a group of files called a dump file set rather than on a single sequential dump file.&lt;br /&gt;&lt;br /&gt;* Data Pump Export and Import access files on the server rather than on the client. This results in improved performance. It also means that directory objects are required when you specify file locations.&lt;br /&gt;&lt;br /&gt;* The Data Pump Export and Import modes operate symmetrically, whereas original export and import did not always exhibit this behavior.&lt;br /&gt;&lt;br /&gt;      For example, suppose you perform an export with FULL=Y, followed by an import using SCHEMAS=HR. This will produce the same results as if you performed an export with SCHEMAS=HR, followed by an import with FULL=Y.&lt;br /&gt;&lt;br /&gt;* Data Pump Export and Import use parallel execution rather than a single stream of execution, for improved performance. This means that the order of data within dump file sets and the information in the log files is more variable.&lt;br /&gt;&lt;br /&gt;* Data Pump Export and Import represent metadata in the dump file set as XML documents rather than as DDL commands. This provides improved flexibility for transforming the metadata at import time.&lt;br /&gt;&lt;br /&gt;* Data Pump Export and Import are self-tuning utilities. Tuning parameters that were used in original Export and Import, such as BUFFER and RECORDLENGTH, are neither required nor supported by Data Pump Export and Import.&lt;br /&gt;&lt;br /&gt;* At import time there is no option to perform interim commits during the restoration of a partition. This was provided by the COMMIT parameter in original Import.&lt;br /&gt;&lt;br /&gt;* There is no option to merge extents when you re-create tables. In original Import, this was provided by the COMPRESS parameter. Instead, extents are reallocated according to storage parameters for the target table.&lt;br /&gt;&lt;br /&gt;* Sequential media, such as tapes and pipes, are not supported.&lt;br /&gt;&lt;br /&gt;* The Data Pump method for moving data between different database versions is different than the method used by original Export/Import. With original Export, you had to run an older version of Export (exp) to produce a dump file that was compatible with an older database version. With Data Pump, you can use the current Export (expdp) version and simply use the VERSION parameter to specify the target database version.&lt;br /&gt;&lt;br /&gt;* When you are importing data into an existing table using either APPEND or TRUNCATE, if any row violates an active constraint, the load is discontinued and no data is loaded. This is different from original Import, which logs any rows that are in violation and continues with the load.&lt;br /&gt;&lt;br /&gt;* Data Pump Export and Import consume more undo tablespace than original Export and Import. This is due to additional metadata queries during export and some relatively long-running master table queries during import. As a result, for databases with large amounts of metadata, you may receive an ORA-01555: snapshot too old error. To avoid this, consider adding additional undo tablespace or increasing the value of the UNDO_RETENTION initialization parameter for the database.&lt;br /&gt;&lt;br /&gt;* If a table has compression enabled, Data Pump Import attempts to compress the data being loaded. Whereas, the original Import utility loaded data in such a way that if a even table had compression enabled, the data was not compressed upon import.&lt;br /&gt;&lt;br /&gt;* Data Pump supports character set conversion for both direct path and external tables. Most of the restrictions that exist for character set conversions in the original Import utility do not apply to Data Pump. The one case in which character set conversions are not supported under the Data Pump is when using transportable tablespaces.</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/9124806681415860081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/9124806681415860081' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/9124806681415860081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/9124806681415860081'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/original-export-and-import-versus-data.html' title='Original Export and Import Versus Data Pump Export and Import in Oracle Database'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-6057958804422906604</id><published>2010-03-14T21:27:00.003+05:30</published><updated>2010-03-14T21:30:55.994+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="fragmentation"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="tablespace"/><title type='text'>How to check Tablespace Fragmentation in Oracle Database?</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;Oracle Tablespace Fragmentation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Honeycomb fragmentation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Which is easy to fix. All that needs to be done is to combine adjacent free segments into one by issuing a coalesce statement:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;alter tablespace USERS coalesce;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Bubble fragmentation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Which is more difficult to handle. Of course, the best course of action is to prevent it in the first place. And as discussed earlier, the best weapon for this is to use locally-managed tablespaces. It may sound too simple, but in reality, implementing these storage structures in your database can just about remove the need to perform full tablespace reorganizations.&lt;br /&gt;&lt;br /&gt;However, what do you do if you are in a situation where you have many databases that were set up with dictionary-managed tablespaces? You have two options, at least if you are running Oracle 8i (the version that gave birth to locally-managed tablespaces). First, you can create new locally-managed tablespaces in your database and then perform one last, full tablespace reorganization of all the database objects into the new tablespaces.&lt;br /&gt;&lt;br /&gt;Needless to say, this can be a difficult task if you have large databases and no third-party reorganization tool. However, it will be worth the effort as you will likely never have to reorganize your tablespaces again, and your objects should never again encounter a maximum extent limit.&lt;br /&gt;&lt;br /&gt;If you are using Oracle 8.1.6 or higher, you can convert any current dictionary-managed tablespaces to locally-managed tablespaces. Buried in the Oracle documentation is a procedure for converting a tablespace&#39;s extent management from dictionary to local or vice-versa.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;convert DMT to LMT:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;sys.dbms_space_admin .tablespace_migrate_to_local(&#39;USERS&#39;)&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;If you are afraid of how long this procedure might take on large tablespaces, do not be. It actually runs very fast.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;convert LMT to DMT:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;sys.dbms_space_admin .tablespace_migrate_from_local(&#39;USERS&#39;);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Detecting Oracle Tablespace Fragmentation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;How can you tell if your tablespaces are suffering from fragmentation problems and then identify the type of fragmentation? The detection and diagnosis is not hard to make at all. To determine if your tablespaces are having a problem with fragmentation, you can use the tsfrag.sql script:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;select&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;   tablespace_name,       &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;   count(*) free_chunks,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;   decode(&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;    round((max(bytes) / 1024000),2),&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;    null,0,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;    round((max(bytes) / 1024000),2)) largest_chunk,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;   nvl(round(sqrt(max(blocks)/sum(blocks))*(100/sqrt(sqrt(count(blocks)) )),2),&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;    0) fragmentation_index&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;from&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;   sys.dba_free_space &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;group by &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;   tablespace_name&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;order by &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;    2 desc, 1;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When you examine the script output, you need to hone in on a couple of columns in particular. First, notice the fragmentationindex column. This will give your tablespace an overall ranking with respect to how badly it is actually fragmented. A 100% score indicates no fragmentation at all. Lesser scores verify the presence of fragmentation.&lt;br /&gt;&lt;br /&gt;The free chunks count column will tell you how many segments of free space are scattered throughout the tablespace. One thing to keep in mind is that tablespaces with multiple datafiles will always show a free chunk count greater than one because each datafile will likely have at least one pocket of free space.</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/6057958804422906604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/6057958804422906604' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/6057958804422906604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/6057958804422906604'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/how-to-check-tablespace-fragmentation.html' title='How to check Tablespace Fragmentation in Oracle Database?'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-1869445872253938282</id><published>2010-03-14T21:20:00.002+05:30</published><updated>2010-03-14T21:22:23.053+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="latch"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>What is a Latch in Oracle Database?</title><content type='html'>Latch is a low level locking mechanism provided by oracle. In this article we will look at the latch concept and how to tune the server to reduce latch contention.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;What is a Latch ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A Latch is a low level serialization mechanism that ( released as quickly as it is acquired ) protects shared data structures. A process acquires and holds the latch as long as the the data structure is in use. The basic idea is to prevent concurrent access to shared data structures in in the SGA. In case the process dies without releasing the latch, the PMON process will clean up the lock on the data structure and releases the latch.&lt;br /&gt;&lt;br /&gt;If a process is not able to obtain a latch, it must wait for the latch to be freed up by process holding it. This causes additional spinning ( looking for availability at fixed intervals of time ) of the process, there by causing extra load on the CPU. This process will spin until the latch is available. A dba has to monitor the latches for contention and make sure that CPU cycles are not being burnt on process spinning.&lt;br /&gt;&lt;br /&gt;The Tunable Trio ( .. 3 latches I monitor )&lt;br /&gt;You cannot monitor and tune all the available internal latches in oracle. The few latches I monitor are Redo Allocation Latch, Redo Copy Latch and Row Cache objects Latch.&lt;br /&gt;•    Redo Allocation Latch controls the allocation of space for redo entries in the redo log buffer.&lt;br /&gt;•    Redo Copy Latch is used when the size of a redo entry is greater than the value of LOG_SMALL_ENTRY_MAX_SIZE.&lt;br /&gt;•    Row Cache Latch is used when a process attempts to access the data dictionary information from the cache.&lt;br /&gt;&lt;br /&gt;select c.name,a.gets,a.misses,a.sleeps, a.immediate_gets,a.immediate_misses,b.pid&lt;br /&gt;from v$latch a, v$latchholder b, v$latchname c&lt;br /&gt;where a.addr = b.laddr(+)&lt;br /&gt;and a.latch# = c.latch#&lt;br /&gt;and (c.name like &#39;redo%&#39; or c.name like &#39;row%&#39;&lt;br /&gt;order by a.latch#;&lt;br /&gt;&lt;br /&gt;When you execute the above script, the output will display the name of the latch and various other statistics about the redo and row cache latches. The values of gets, misses and sleeps are willing to wait operations, i.e, the requesting process will wait a short time, if the latch is busy, and request the latch again. The immediate_gets and immediate_misses columns represent the number of successful and unsuccessful immediate requests for the latches.&lt;br /&gt;&lt;br /&gt;To make the database perform well, try to adjust parameters to keep the miss ratio [(misses/gets)*100 ] for each of these latches to a minimum.( &lt; 1 )&lt;br /&gt;&lt;br /&gt;Tuning Process ( What to do If I have Contention )&lt;br /&gt;In case of redo allocation latch contention, try to decrease the log_small_entry_max_size so that the redo copy latch is used more.&lt;br /&gt;&lt;br /&gt;If the query shows heavy redo copy latch contention, set the value of log_simultaneous_copies to the number of cpu&#39;s. If it still does not help and the contention on the allocation latch is low, then try increasing the log_small_entry_max_size to shift some load to the allocation latch.&lt;br /&gt;&lt;br /&gt;In order to decrease the contention on the row cache latch, increase the shared_pool_size since the data dictionary is a part of the shared pool.&lt;br /&gt;&lt;br /&gt;When tuning Oracle, one has to remember that there are no absolute values for tuning and the best balance between the values has to be obtained by incremental tuning.</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/1869445872253938282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/1869445872253938282' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/1869445872253938282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/1869445872253938282'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/what-is-latch.html' title='What is a Latch in Oracle Database?'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-4797499686000332047</id><published>2010-03-14T21:12:00.002+05:30</published><updated>2010-03-14T21:15:47.671+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="kill session"/><category scheme="http://www.blogger.com/atom/ns#" term="locked objects"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>How to check locks and kill sessions in Oracle Database?</title><content type='html'>The below script will tell which session is holding the lock&lt;br /&gt;&lt;br /&gt;select&lt;br /&gt;   c.owner,&lt;br /&gt;   c.object_name,&lt;br /&gt;   c.object_type,&lt;br /&gt;   b.sid,&lt;br /&gt;   b.serial#,&lt;br /&gt;   b.status,&lt;br /&gt;   b.osuser,&lt;br /&gt;   b.machine&lt;br /&gt;from&lt;br /&gt;   v$locked_object a ,&lt;br /&gt;   v$session b,&lt;br /&gt;   dba_objects c&lt;br /&gt;where&lt;br /&gt;   b.sid = a.session_id&lt;br /&gt;and&lt;br /&gt;   a.object_id = c.object_id&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The below command is used to kill the session from oracle&lt;br /&gt;&lt;br /&gt;ALTER SYSTEM KILL SESSION &#39;SID,Searial#&#39; IMMEDIATE ;&lt;br /&gt;&lt;br /&gt;ALTER SYSTEM KILL SESSION &#39;1626,19894&#39; IMMEDIATE ;&lt;br /&gt;&lt;br /&gt;ALTER SYSTEM DISCONNECT SESSION &#39;13, 8&#39; IMMEDIATE ;</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/4797499686000332047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/4797499686000332047' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/4797499686000332047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/4797499686000332047'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/how-to-check-locks-and-kill-sessions-in.html' title='How to check locks and kill sessions in Oracle Database?'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-5330831069336976070</id><published>2010-03-14T21:04:00.002+05:30</published><updated>2010-03-14T21:08:46.581+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="invalid objects"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>How to compile all the invalid objects in Oracle Database?</title><content type='html'>Below is the script to generate dynamic script to compile all the invalid objects in Oracle Database.&lt;br /&gt;&lt;br /&gt;set echo off&lt;br /&gt;set feed off&lt;br /&gt;set sqlp &#39;&#39;&lt;br /&gt;set head off&lt;br /&gt;set pages 0&lt;br /&gt;spool spool_output.sql&lt;br /&gt;select &#39;ALTER &#39;||&lt;br /&gt;      DECODE(object_type, &#39;VIEW&#39;, &#39;VIEW&#39;, &#39;PACKAGE&#39;) || &#39; &#39;||&lt;br /&gt;      LOWER(object_name)|| &#39; COMPILE &#39;||&lt;br /&gt;      DECODE(object_type, &#39;PACKAGE&#39;, &#39;SPECIFICATION&#39;, &#39;PACKAGE BODY&#39;, &#39;BODY&#39;, &#39;&#39;)|| &#39; ; &#39; from user_objects&lt;br /&gt;where status = &#39;INVALID&#39;&lt;br /&gt;order by DECODE(object_type, &#39;VIEW&#39;, 1, &#39;PACKAGE&#39;, 2, &#39;PACKAGE BODY&#39;, 3), object_name ;&lt;br /&gt;spool off&lt;br /&gt;set echo on&lt;br /&gt;set feed on&lt;br /&gt;set sqlp &#39;SQL&gt;&#39;&lt;br /&gt;set head on&lt;br /&gt;&lt;br /&gt;select &#39;alter &#39;||object_type||&#39; &#39;||object_name||&#39; compile;&#39; from user_objects where status=&#39;INVALID&#39; order by object_type,object_name;</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/5330831069336976070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/5330831069336976070' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/5330831069336976070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/5330831069336976070'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/how-to-compile-all-invalid-objects-in.html' title='How to compile all the invalid objects in Oracle Database?'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-3110508539293576033</id><published>2010-03-14T21:00:00.001+05:30</published><updated>2010-03-14T21:03:03.449+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="control file"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>How to backup control file to trace in Oracle Database?</title><content type='html'>Below is the script to backup control file to trace on unix to user defined location.&lt;br /&gt;&lt;br /&gt;===========================================================&lt;br /&gt;#------------------------------------------------------------&lt;br /&gt;# backup controlfile&lt;br /&gt;#------------------------------------------------------------&lt;br /&gt;#------------------------------------------------------------&lt;br /&gt;# find the user_dump_dest directory through a sqlplus call&lt;br /&gt;# and assign it to an environment variable&lt;br /&gt;#------------------------------------------------------------&lt;br /&gt;ORA_DUMP=`${ORACLE_HOME}/bin/sqlplus -s &lt;&lt; EOF&lt;br /&gt;/ as sysdba&lt;br /&gt;set heading  off&lt;br /&gt;set feedback off&lt;br /&gt;SELECT value&lt;br /&gt;  FROM v\\$parameter&lt;br /&gt; WHERE name=&#39;user_dump_dest&#39;;&lt;br /&gt;exit&lt;br /&gt;EOF`&lt;br /&gt;#------------------------------------------------------------&lt;br /&gt;# create backup controlfile&lt;br /&gt;#------------------------------------------------------------&lt;br /&gt;${ORACLE_HOME}/bin/sqlplus -s &lt;&lt;&gt; /dev/null 2&gt;&amp;amp;1&lt;br /&gt;/ as sysdba&lt;br /&gt;set heading  off&lt;br /&gt;set feedback off&lt;br /&gt;ALTER DATABASE BACKUP CONTROLFILE TO trace;&lt;br /&gt;exit&lt;br /&gt;EOF&lt;br /&gt;#------------------------------------------------------------&lt;br /&gt;# find the trace file that the backup controlfile is in&lt;br /&gt;# this should be the last trace file generated&lt;br /&gt;# validate it is a controlfile and copy to backup_control.sql&lt;br /&gt;#------------------------------------------------------------&lt;br /&gt;DATETIME=&quot;`date &#39;+%d%m%y&#39;`&quot;&lt;br /&gt;CONTROL=`ls -t $ORA_DUMP/*.trc | head -1`&lt;br /&gt;if [ ! -z &quot;$CONTROL&quot; ]; then&lt;br /&gt; grep &#39;CONTROL&#39; ${CONTROL} 1&gt; /dev/null&lt;br /&gt; if test $? -eq 0; then&lt;br /&gt;   cp ${CONTROL} /home/oracle/backup_control_file_$DATETIME.sql&lt;br /&gt; fi&lt;br /&gt;fi&lt;br /&gt;#end&lt;br /&gt;=========================================================</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/3110508539293576033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/3110508539293576033' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/3110508539293576033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/3110508539293576033'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/how-to-backup-control-file-to-trace-in.html' title='How to backup control file to trace in Oracle Database?'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-591937733131880551</id><published>2010-03-14T20:58:00.001+05:30</published><updated>2010-03-14T20:59:48.434+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="size"/><title type='text'>How to check database size in Oracle Database?</title><content type='html'>Below is the script to check the size of the Oracle Database&lt;br /&gt;&lt;br /&gt;select (a.data_size+b.temp_size+c.redo_size)/(1024*1024*1024) &quot;total_size GB&quot;&lt;br /&gt;from ( select sum(bytes) data_size&lt;br /&gt;         from dba_data_files ) a,&lt;br /&gt;     ( select nvl(sum(bytes),0) temp_size&lt;br /&gt;         from dba_temp_files ) b,&lt;br /&gt;     ( select sum(bytes) redo_size&lt;br /&gt;         from sys.v_$log ) c;</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/591937733131880551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/591937733131880551' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/591937733131880551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/591937733131880551'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/how-to-check-database-size-in-oracle.html' title='How to check database size in Oracle Database?'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-7592541144777886273</id><published>2010-03-14T20:55:00.001+05:30</published><updated>2010-03-14T20:57:22.901+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="datafile"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>How to check datafile usage in Oracle Database?</title><content type='html'>Below is the script script which will list datafile wise Allocated size, Used Size and Free Size&lt;br /&gt;Size details are displayed in MB (Mega Bytes)&lt;br /&gt;&lt;br /&gt;SELECT   SUBSTR (df.NAME, 1, 40) file_name, df.bytes / 1024 / 1024 &quot;Allocated Size(MB)&quot;,&lt;br /&gt;         ((df.bytes / 1024 / 1024) - NVL (SUM (dfs.bytes) / 1024 / 1024, 0)) &quot;Used Size (MB)&quot;,&lt;br /&gt;         NVL (SUM (dfs.bytes) / 1024 / 1024, 0) &quot;Free Size(MB)&quot;&lt;br /&gt;    FROM v$datafile df, dba_free_space dfs&lt;br /&gt;   WHERE df.file# = dfs.file_id(+)&lt;br /&gt;GROUP BY dfs.file_id, df.NAME, df.file#, df.bytes&lt;br /&gt;ORDER BY file_name;</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/7592541144777886273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/7592541144777886273' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/7592541144777886273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/7592541144777886273'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/how-to-check-datafile-usage-in-oracle.html' title='How to check datafile usage in Oracle Database?'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-3963271060621677676</id><published>2010-03-14T20:45:00.003+05:30</published><updated>2010-03-14T20:48:14.277+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="tablespace"/><title type='text'>How to check the tablespace usage in Oracle Database?</title><content type='html'>Below is the script which will list tablespace wise free space and used space as well as total space.&lt;br /&gt;The Size details are displayed in MB.&lt;br /&gt;&lt;br /&gt;SELECT Total.name &quot;Tablespace Name&quot;,&lt;br /&gt;       nvl(Free_space, 0) &quot;Free Size(MB)&quot;,&lt;br /&gt;       nvl(total_space-Free_space, 0) &quot;Used Size(MB)&quot;,&lt;br /&gt;       total_space &quot;Total Size(MB)&quot;&lt;br /&gt;FROM&lt;br /&gt;  (select tablespace_name, sum(bytes/1024/1024) free_space&lt;br /&gt;     from sys.dba_free_space&lt;br /&gt;    group by tablespace_name&lt;br /&gt;  ) Free,&lt;br /&gt;  (select b.name,  sum(bytes/1024/1024) total_space&lt;br /&gt;     from sys.v_$datafile a, sys.v_$tablespace B&lt;br /&gt;    where a.ts# = b.ts#&lt;br /&gt;    group by b.name&lt;br /&gt;  ) Total&lt;br /&gt;WHERE Free.Tablespace_name(+) = Total.name&lt;br /&gt;ORDER BY Total.name;</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/3963271060621677676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/3963271060621677676' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/3963271060621677676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/3963271060621677676'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/how-to-check-tablespace-usage-in-oracle.html' title='How to check the tablespace usage in Oracle Database?'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-4347671183582162886</id><published>2010-03-14T20:40:00.002+05:30</published><updated>2010-03-14T20:44:16.208+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="tablespace"/><title type='text'>How to check which tablespace cannot extent causing tablespace full error?</title><content type='html'>Below is the script to check which tablespace cannot extent causing &lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;tablespace full error&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;select a.owner||&#39;.&#39;||a.segment_name &quot;Segment Name&quot;,&lt;br /&gt;       a.segment_type               &quot;Segment Type&quot;,&lt;br /&gt;       a.bytes/1024/1024            &quot;Size(MB)&quot;,&lt;br /&gt;       a.next_extent/1024/1024      &quot;Next Extent&quot;,&lt;br /&gt;       a.tablespace_name            &quot;Tablespace Name&quot;&lt;br /&gt;  from sys.dba_segments a&lt;br /&gt; where a.tablespace_name not like &#39;T%MP%&#39;   -- Exclude TEMP tablespaces&lt;br /&gt;   and next_extent * 1 &gt; (                  -- Cannot extend 1x, can change to 2x...&lt;br /&gt;                           select max(b.bytes)&lt;br /&gt;                             from dba_free_space b&lt;br /&gt;                            where a.tablespace_name = b.tablespace_name)&lt;br /&gt;order by 3 desc;</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/4347671183582162886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/4347671183582162886' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/4347671183582162886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/4347671183582162886'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/how-to-check-which-tablespace-cannot.html' title='How to check which tablespace cannot extent causing tablespace full error?'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-7445377179640017500</id><published>2010-03-14T20:37:00.002+05:30</published><updated>2010-03-14T20:40:05.662+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="locked objects"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>How to check the locked objects in the Oracle Database?</title><content type='html'>Below is the script to check the locked objects in the Oracle Database&lt;br /&gt;&lt;br /&gt;SELECT oracle_username USERNAME,&lt;br /&gt;owner OBJECT_OWNER,&lt;br /&gt;object_name, object_type, s.osuser,&lt;br /&gt;s.SID SID,&lt;br /&gt;s.SERIAL# SERIAL,&lt;br /&gt;DECODE(l.block,&lt;br /&gt;  0, &#39;Not Blocking&#39;,&lt;br /&gt;  1, &#39;Blocking&#39;,&lt;br /&gt;  2, &#39;Global&#39;) STATUS,&lt;br /&gt;  DECODE(v.locked_mode,&lt;br /&gt;    0, &#39;None&#39;,&lt;br /&gt;    1, &#39;Null&#39;,&lt;br /&gt;    2, &#39;Row-S (SS)&#39;,&lt;br /&gt;    3, &#39;Row-X (SX)&#39;,&lt;br /&gt;    4, &#39;Share&#39;,&lt;br /&gt;    5, &#39;S/Row-X (SSX)&#39;,&lt;br /&gt;    6, &#39;Exclusive&#39;, TO_CHAR(lmode)&lt;br /&gt;  ) MODE_HELD&lt;br /&gt;FROM gv$locked_object v, dba_objects d,&lt;br /&gt;gv$lock l, gv$session s&lt;br /&gt;WHERE v.object_id = d.object_id&lt;br /&gt;AND (v.object_id = l.id1)&lt;br /&gt;and v.session_id = s.sid&lt;br /&gt;ORDER BY oracle_username, session_id;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Note:&lt;/span&gt; Run the above select statement as sys user.</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/7445377179640017500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/7445377179640017500' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/7445377179640017500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/7445377179640017500'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/how-to-check-locked-objects-in-oracle.html' title='How to check the locked objects in the Oracle Database?'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-78245754768519789</id><published>2010-03-09T12:20:00.000+05:30</published><updated>2010-03-09T12:23:44.432+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application server"/><category scheme="http://www.blogger.com/atom/ns#" term="login page"/><category scheme="http://www.blogger.com/atom/ns#" term="oas"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="sso"/><title type='text'>How to change SSO Login page to Custom Login Page in Oracle Application server (OAS) ?</title><content type='html'>To change SSO Login page follow the below steps:&lt;br /&gt;&lt;br /&gt;1) The Login page is a jsp file &lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;login.jsp&quot;&lt;/span&gt; which can be found in &lt;span style=&quot;font-weight: bold;&quot;&gt;$INFRA_HOME/j2ee/OC4J_SECURITY/applications/sso/web/jsp&lt;/span&gt;, you can create your own login file say &lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;my_login_page.jsp&quot;&lt;/span&gt; and place it into that directory.&lt;br /&gt;&lt;br /&gt;2) Then go to &lt;span style=&quot;font-weight: bold;&quot;&gt;$INFRA_HOME/sso/conf&lt;/span&gt; and modify &lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;policy.properties&quot;&lt;/span&gt; file &lt;span style=&quot;font-weight: bold;&quot;&gt;(backup the original one first)&lt;/span&gt;. You have to find the line:&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;loginPageUrl = /sso/jsp/login.jsp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Replace &lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;login.jsp&quot;&lt;/span&gt; with your new login file name &lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;my_login_page.jsp&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;loginPageUrl = /sso/jsp/my_login_page.jsp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3) Restart OC4J_SECURITY and HTTP_Server&lt;br /&gt;&lt;br /&gt;You can however customize more, check [chapter 12|http://download.oracle.com/docs/cd/B14099_19/idmanage.1012/b14078/custom.htm#i1015535] in the SSO Administration Guide (Creating Deployment-Specific Pages) for more options.</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/78245754768519789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/78245754768519789' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/78245754768519789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/78245754768519789'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/03/how-to-change-sso-login-page-to-custom.html' title='How to change SSO Login page to Custom Login Page in Oracle Application server (OAS) ?'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-7465525262802421343</id><published>2010-02-27T17:41:00.000+05:30</published><updated>2010-02-27T17:54:22.447+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application server"/><category scheme="http://www.blogger.com/atom/ns#" term="ias_admin"/><category scheme="http://www.blogger.com/atom/ns#" term="oas"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>How to Change / Reset ias_admin Password???</title><content type='html'>— ias_admin is user required to use Enterprise Manager Web (aka Application Server Console - iASConsole) Site.&lt;br /&gt;&lt;br /&gt;— ias_admin password is set during Installation of Oracle Application Server (902, 904, 10.1.2.X) or Oracle Identity Management (Infra Tier 10.1.4.X)&lt;br /&gt;&lt;br /&gt;—ias_admin account is NOT stored in OID (Oracle Internet Directory), It is stored in XML file (JAZN-XML -  Java AuthoriZatioN)  (More on JAZN-XML &amp;amp; JAZN-LDAP coming soon..)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can reset/change ias_admin password in following ways&lt;br /&gt;&lt;br /&gt;1. Using Enterprise Manager (Application Server Control) Web Site&lt;br /&gt;    –Login to Instance Home Page&lt;br /&gt;    –Click on Preferences on top right&lt;br /&gt;    –In new screen, click on “Change Password” on left menu&lt;br /&gt;    –Enter current password and New Password&lt;br /&gt;&lt;br /&gt;2. Using Command line tool&lt;br /&gt;    emctl set password &amp;lt;old_password&amp;gt; &amp;lt;new_password&amp;gt;&lt;br /&gt;    like&lt;br /&gt;    emctl set password welcome1 welcome2&lt;br /&gt;    (Here welcome1 is current ias_admin password and welcome2 is new password which you        &lt;br /&gt;    wish to reset)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you don’t know current ias_admin password then change it in configuration file&lt;br /&gt;&lt;br /&gt;3. Change ias_admin password directly in configuration file&lt;br /&gt;    –Backup $ORACLE_HOME/sysman/j2ee/config/jazn-data.xml&lt;br /&gt;    –Search for entry like below&lt;br /&gt;&lt;br /&gt;  &amp;lt;user&amp;gt;&lt;br /&gt;    &amp;lt;name&amp;gt;ias_admin&amp;lt;/name&amp;gt;&lt;br /&gt;      &amp;lt;credentials&amp;gt;{903}8QkQ/crno3lX0f3+67dj6WxW9KJMXaCu&amp;lt;/credentials&amp;gt;&lt;br /&gt;  &amp;lt;/user&amp;gt;&lt;br /&gt;&lt;br /&gt;and Update new password (welcome1 like )&lt;br /&gt;&lt;br /&gt;  &amp;lt;user&amp;gt;&lt;br /&gt;    &amp;lt;name&amp;gt;ias_admin&amp;lt;/name&amp;gt;&lt;br /&gt;      &amp;lt;credentials&amp;gt;!welcome1&amp;lt;/credentials&amp;gt;&lt;br /&gt;  &amp;lt;/user&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Note: !&lt;/span&gt; (Exclamation Mark in front of password. This signifies that password is stored in clear text)</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/7465525262802421343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/7465525262802421343' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/7465525262802421343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/7465525262802421343'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/02/how-to-change-reset-iasadmin-password.html' title='How to Change / Reset ias_admin Password???'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-3449355275500066504</id><published>2010-02-21T13:01:00.006+05:30</published><updated>2010-02-21T13:12:20.956+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application server"/><category scheme="http://www.blogger.com/atom/ns#" term="oas"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>Managing Ports in Oracle Application Server (OAS)</title><content type='html'>The change of ports is required in Oracle Application Sever (OAS) is commonly required when doing any new Installation or reconfiguring the Installation. To change ports in Oracle Application Server (OAS) is a very difficult task and to be done very carefully.&lt;br /&gt;&lt;br /&gt;Below is the link that i generally use whenever i require to change any port in Oracle Application Server (OAS).&lt;br /&gt;Note: The below link applies to Oracle Application Server (OAS) 10g.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://download.oracle.com/docs/cd/B14099_19/core.1012/b13995/ports.htm&quot; target=&quot;_blank&quot;&gt; Managing Ports in Oracle Application Server (OAS)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you have any queries/doubts, please leave a comment I&#39;ll reply ASAP.</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/3449355275500066504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/3449355275500066504' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/3449355275500066504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/3449355275500066504'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/02/managing-ports-in-oracle-application.html' title='Managing Ports in Oracle Application Server (OAS)'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-6137081807492018926</id><published>2010-01-22T12:07:00.000+05:30</published><updated>2010-01-22T12:09:22.774+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="logical standby"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="physical standby"/><title type='text'>Difference between Physical and Logical Standby Database</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;Physical Standby Database:&lt;/span&gt;&lt;br /&gt;A physical standby database is a exact copy of the primary database. Oracle uses the primary database archive log file to recover the physical standby database.&lt;br /&gt;&lt;br /&gt;We can open a physical standby database in read only mode, but at the time of read only mode, the received logs will not be applied.&lt;br /&gt;&lt;br /&gt;When the logs are applied, the database is not accessible.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Logical Standby Database:&lt;/span&gt;&lt;br /&gt;Logical Standby database are opened in read/write mode, even while they are is applied mode. That is, they can be used to generate reports and the like. It is indeed a fully functional database.</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/6137081807492018926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/6137081807492018926' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/6137081807492018926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/6137081807492018926'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/01/difference-between-physical-and-logical.html' title='Difference between Physical and Logical Standby Database'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-96452577789671847</id><published>2010-01-22T01:44:00.005+05:30</published><updated>2010-03-31T18:44:47.934+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application server"/><category scheme="http://www.blogger.com/atom/ns#" term="OID"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle internet directory"/><title type='text'>Bulk Delete Users From Oracle Internet Directory (OID)</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;Using ldapsearch and ldapdelete commands to remove OID users&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. First, you need to know what is the directory tree of users that you want to perform the deletion on (s_UserContainerDN), source of subscriber DN.&lt;br /&gt;&lt;br /&gt;2. Get all the user entries first using ldapsearch command and spool it to a file&lt;br /&gt;&lt;br /&gt;$ ldapsearch -h [oid_hostname] -p [oid_ldap_port] -D &quot;cn=orcladmin&quot; -w [password] -s one -b &quot;cn=Users,[source subscriber DN]&quot; &quot;(objectclass=orcluserv2)&quot; &quot;cn=*&quot; &gt; users.ldif&lt;oid_hostname&gt;&lt;oid_ldap_port&gt;&lt;password&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$ ldapsearch -h [oid_hostname] -p [oid_ldap_port] -D &quot;cn=orcladmin&quot; -w [password] -s one -b &quot;cn=Users,dc=spain,dc=oracle,dc=com&quot; &quot;(objectclass=orcluserv2)&quot; &quot;cn=*&quot; &gt; users.ldif&lt;oid_hostname&gt;&lt;oid_ldap_port&gt;&lt;password&gt;&lt;br /&gt;&lt;br /&gt;3. Edit the spool output ldif file, users.ldif to remove entires which you want to preserve such as &lt;span style=&quot;font-weight: bold;&quot;&gt;orcladmin&lt;/span&gt;,Portal and public. You may want to preserve the following seeded users:&lt;br /&gt;&lt;br /&gt;cn=orcladmin,cn=Users,[source subscriber DN]&lt;br /&gt;cn=ias_admin,cn=Users,[source subscriber DN]&lt;br /&gt;cn=PUBLIC,cn=Users,[source subscriber DN]&lt;br /&gt;cn=Portal&lt;*&gt;,cn=Users,[source subscriber DN]&lt;br /&gt;cn=sample&lt;*&gt;,cn=Users,[source subscriber DN]&lt;br /&gt;cn=synd&lt;*&gt;,cn=Users,[source subscriber DN]&lt;br /&gt;cn=uddi&lt;*&gt;,cn=Users,[source subscriber DN]&lt;br /&gt;&lt;source&gt;&lt;br /&gt;(Note:Example above include users/entries that could be seeded by certain midtier installs, so they may or may not exist in a particular OID)&lt;br /&gt;&lt;br /&gt;4. Use the ldapdelete command along with the edited output ldif file to delete all the users:&lt;br /&gt;&lt;br /&gt;$ ldapdelete -h [oid_hostname] -p [oid_ldap_port] -D &quot;cn=orcladmin&quot; -w &lt;password&gt; [password] -c -v -f users.ldif&lt;oid_hostname&gt;&lt;oid_ldap_port&gt;&lt;password&gt;&lt;br /&gt;&lt;br /&gt;deleting entry cn=UNCLE_SAM,cn=Users,dc=spain,dc=oracle,dc=com&lt;br /&gt;entry removed&lt;br /&gt;deleting entry cn=LARRY_ELISSON,cn=users,dc=spain,dc=oracle,dc=com&lt;br /&gt;entry removed&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Note:&lt;/span&gt;Before removing users remove the users from the users.ldif which you dont want to delete.&lt;br /&gt;&lt;br /&gt;There is one more command which is given below which might be helpful in some cases.&lt;br /&gt;ldapadd -h myhost -p 389 -D &quot;cn=orcladmin&quot; -w welcome -f users.ldif&lt;br /&gt;&lt;br /&gt;&lt;/password&gt;&lt;/oid_ldap_port&gt;&lt;/oid_hostname&gt;&lt;/password&gt;&lt;/password&gt;&lt;/oid_ldap_port&gt;&lt;/oid_hostname&gt;&lt;/password&gt;&lt;/oid_ldap_port&gt;&lt;/oid_hostname&gt;</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/96452577789671847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/96452577789671847' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/96452577789671847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/96452577789671847'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/01/bulk-delete-users-from-oracle-internet.html' title='Bulk Delete Users From Oracle Internet Directory (OID)'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9168263658239738325.post-587777691815956837</id><published>2010-01-10T00:01:00.000+05:30</published><updated>2010-01-10T00:02:32.311+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="index"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>Identifying unused indexes in Oracle9i</title><content type='html'>PURPOSE&lt;br /&gt;-------&lt;br /&gt;&lt;br /&gt;The purpose of this document is to explain how to find unused indexes&lt;br /&gt;using the new feature in Oracle9: &quot;Identifying Unused Indexes&quot; via&lt;br /&gt;ALTER INDEX MONITORING USAGE, as mentioned in Oracle9i Database&lt;br /&gt;Administrator&#39;s Guide, Chapter 11.&lt;br /&gt;&lt;br /&gt;The clause MONITORING / NOMONITORING USAGE is useful in determining&lt;br /&gt;whether an index is being used.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SCOPE &amp;amp; APPLICATION&lt;br /&gt;-------------------&lt;br /&gt;&lt;br /&gt;This article is intended for database Administrators who want to&lt;br /&gt;identify unused indexes in their database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;IDENTIFYING UNUSED INDEXES&lt;br /&gt;--------------------------&lt;br /&gt;&lt;br /&gt;You can find indexes that are not being used by using the ALTER INDEX&lt;br /&gt;MONITORING USAGE functionality over a period of time that is&lt;br /&gt;representative of your workload.&lt;br /&gt;&lt;br /&gt;PART 1 will demonstrate the new feature using a simple example.&lt;br /&gt;&lt;br /&gt;PART 2 will give a detailed instruction how to identify all unused&lt;br /&gt;indexes in the database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PART 1 - Monitoring usage of indexes - a simple example&lt;br /&gt;---------------------------------------------------------&lt;br /&gt;&lt;br /&gt;To demonstrate the new feature, you can use the following example:&lt;br /&gt;(a) Create and populate a small test table&lt;br /&gt;(b) Create Primary Key index on that table&lt;br /&gt;(c) Query v$object_usage: the monitoring has not started yet&lt;br /&gt;(d) Start monitoring of the index usage&lt;br /&gt;(e) Query v$object_usage to see the monitoring in progress&lt;br /&gt;(f) Issue the SELECT statement which uses the index&lt;br /&gt;(g) Query v$object_usage again to see that the index has been used&lt;br /&gt;(h) Stop monitoring of the index usage&lt;br /&gt;(i) Query v$object_usage to see that the monitoring stopped&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Detailed steps:&lt;br /&gt;&lt;br /&gt;(a) Create and populate a small test table&lt;br /&gt;&lt;br /&gt;create table products&lt;br /&gt;(prod_id number(3),&lt;br /&gt;prod_name_code varchar2(5));&lt;br /&gt;&lt;br /&gt;insert into products values(1,&#39;aaaaa&#39;);&lt;br /&gt;insert into products values(2,&#39;bbbbb&#39;);&lt;br /&gt;insert into products values(3,&#39;ccccc&#39;);&lt;br /&gt;insert into products values(4,&#39;ddddd&#39;);&lt;br /&gt;commit;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(b) Create Primary Key index on that table&lt;br /&gt;&lt;br /&gt;alter table products&lt;br /&gt;add (constraint products_pk primary key (prod_id));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(c) Query v$object_usage: the monitoring has not started yet&lt;br /&gt;&lt;br /&gt;column index_name format a12&lt;br /&gt;column monitoring format a10&lt;br /&gt;column used format a4&lt;br /&gt;column start_monitoring format a19&lt;br /&gt;column end_monitoring format a19&lt;br /&gt;select index_name,monitoring,used,start_monitoring,end_monitoring&lt;br /&gt;from v$object_usage;&lt;br /&gt;&lt;br /&gt;no rows selected&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(d) Start monitoring of the index usage&lt;br /&gt;&lt;br /&gt;alter index products_pk monitoring usage;&lt;br /&gt;&lt;br /&gt;Index altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(e) Query v$object_usage to see the monitoring in progress&lt;br /&gt;&lt;br /&gt;select index_name,monitoring,used,start_monitoring,end_monitoring&lt;br /&gt;from v$object_usage;&lt;br /&gt;&lt;br /&gt;INDEX_NAME MONITORING USED START_MONITORING END_MONITORING&lt;br /&gt;------------ ---------- ---- ------------------- -------------------&lt;br /&gt;PRODUCTS_PK YES NO 04/25/2001 15:43:13&lt;br /&gt;&lt;br /&gt;Note: Column MONITORING=&#39;YES&#39;, START_MONITORING gives the timestamp.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(f) Issue the SELECT statement which uses the index&lt;br /&gt;&lt;br /&gt;First, make sure that index will be used for this statement.&lt;br /&gt;Create plan_table in your schema, as required by Oracle Autotrace&lt;br /&gt;utility:&lt;br /&gt;&lt;br /&gt;@$ORACLE_HOME/rdbms/admin/utlxplan&lt;br /&gt;&lt;br /&gt;Table created.&lt;br /&gt;&lt;br /&gt;Use Oracle Autotrace utility to obtain the execution plan:&lt;br /&gt;&lt;br /&gt;set autotrace on explain&lt;br /&gt;select * from products where prod_id = 2;&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;Execution Plan&lt;br /&gt;------------------------------------------------------&lt;br /&gt;0 SELECT STATEMENT Optimizer=CHOOSE&lt;br /&gt;1 0 TABLE ACCESS (BY INDEX ROWID) OF &#39;PRODUCTS&#39;&lt;br /&gt;2 1 INDEX (UNIQUE SCAN) OF &#39;PRODUCTS_PK&#39; (UNIQUE)&lt;br /&gt;&lt;br /&gt;set autotrace off&lt;br /&gt;&lt;br /&gt;Now, since you know the index will be used for this query, issue the&lt;br /&gt;actual SELECT statement:&lt;br /&gt;&lt;br /&gt;select * from products where prod_id = 2;&lt;br /&gt;&lt;br /&gt;PROD_ID PROD_&lt;br /&gt;---------- -----&lt;br /&gt;2 bbbbb&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(g) Query v$object_usage again to see that the index has been used&lt;br /&gt;&lt;br /&gt;select index_name,monitoring,used,start_monitoring,end_monitoring&lt;br /&gt;from v$object_usage;&lt;br /&gt;&lt;br /&gt;INDEX_NAME MONITORING USED START_MONITORING END_MONITORING&lt;br /&gt;------------ ---------- ---- ------------------- -------------------&lt;br /&gt;PRODUCTS_PK YES YES 04/25/2001 15:43:13&lt;br /&gt;&lt;br /&gt;Note: Column USED=&#39;YES&#39;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(h) Stop monitoring of the index usage&lt;br /&gt;&lt;br /&gt;alter index products_pk nomonitoring usage;&lt;br /&gt;&lt;br /&gt;Index altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(i) Query v$object_usage to see that the monitoring stopped&lt;br /&gt;&lt;br /&gt;select index_name,monitoring,used,start_monitoring,end_monitoring&lt;br /&gt;from v$object_usage;&lt;br /&gt;&lt;br /&gt;INDEX_NAME MONITORING USED START_MONITORING END_MONITORING&lt;br /&gt;------------ ---------- ---- ------------------- -------------------&lt;br /&gt;PRODUCTS_PK NO YES 04/25/2001 15:43:13 04/25/2001 15:48:44&lt;br /&gt;&lt;br /&gt;Note: Column MONITORING=&#39;NO&#39;, END_MONITORING gives the timestamp.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PART 2 - How to identify all unused indexes in the database&lt;br /&gt;-------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;To identify all unused indexes in the database, you can do the&lt;br /&gt;following:&lt;br /&gt;(a) Create a SQL script to start monitoring all indexes except those&lt;br /&gt;owned by users SYS and SYSTEM&lt;br /&gt;(b) Create another script to stop monitoring all indexes except those&lt;br /&gt;owned by users SYS and SYSTEM&lt;br /&gt;(c) Connect as a user with ALTER ANY INDEX system privilege and run&lt;br /&gt;the start monitoring script&lt;br /&gt;(d) Perform normal activities in your database&lt;br /&gt;(e) After a period of time that is representative of your workload,&lt;br /&gt;run the stop monitoring script&lt;br /&gt;(f) Query v$object_usage to see what indexes have not been used&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Detailed steps:&lt;br /&gt;&lt;br /&gt;(a) Create a SQL script to start monitoring all indexes except those&lt;br /&gt;owned by users SYS and SYSTEM&lt;br /&gt;&lt;br /&gt;set heading off&lt;br /&gt;set echo off&lt;br /&gt;set feedback off&lt;br /&gt;set pages 10000&lt;br /&gt;spool startmonitor.sql&lt;br /&gt;select &#39;alter index &#39;||owner||&#39;.&#39;||index_name||&#39; monitoring usage;&#39;&lt;br /&gt;from dba_indexes&lt;br /&gt;where owner not in (&#39;SYS&#39;,&#39;SYSTEM&#39;);&lt;br /&gt;spool off&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(b) Create another script to stop monitoring all indexes except those&lt;br /&gt;owned by users SYS and SYSTEM&lt;br /&gt;&lt;br /&gt;set heading off&lt;br /&gt;set echo off&lt;br /&gt;set feedback off&lt;br /&gt;set pages 10000&lt;br /&gt;spool stopmonitor.sql&lt;br /&gt;select &#39;alter index &#39;||owner||&#39;.&#39;||index_name||&#39; nomonitoring usage;&#39;&lt;br /&gt;from dba_indexes&lt;br /&gt;where owner not in (&#39;SYS&#39;,&#39;SYSTEM&#39;);&lt;br /&gt;spool off&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(c) Connect as a user with ALTER ANY INDEX system privilege and run&lt;br /&gt;the newly created script to start monitoring.&lt;br /&gt;&lt;br /&gt;@startmonitor&lt;br /&gt;&lt;br /&gt;(d) Perform normal activities in your database&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(e) After a period of time that is representative of your workload,&lt;br /&gt;connect as a user with ALTER ANY INDEX system privilege and run&lt;br /&gt;the script to stop monitoring.&lt;br /&gt;&lt;br /&gt;@stopmonitor&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(f) Query v$object_usage in join with dba_indexes, to see what indexes&lt;br /&gt;have not been used&lt;br /&gt;&lt;br /&gt;select d.owner, v.index_name&lt;br /&gt;from dba_indexes d, v$object_usage v&lt;br /&gt;where v.used=&#39;NO&#39; and d.index_name=v.index_name;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RELATED DOCUMENTS&lt;br /&gt;-----------------&lt;br /&gt;&lt;br /&gt;Note 1033478.6 Script Monitoring the Usage of Indexes(prior Oracle9i)&lt;br /&gt;Note 1015945.102 How to Monitor Most Recently Accessed Indexessing script&lt;br /&gt;&lt;br /&gt;Oracle9i Database Administrator&#39;s Guide</content><link rel='replies' type='application/atom+xml' href='http://planetofsolutions.blogspot.com/feeds/587777691815956837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9168263658239738325/587777691815956837' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/587777691815956837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9168263658239738325/posts/default/587777691815956837'/><link rel='alternate' type='text/html' href='http://planetofsolutions.blogspot.com/2010/01/identifying-unused-indexes-in-oracle9i.html' title='Identifying unused indexes in Oracle9i'/><author><name>planetofsolutions</name><uri>http://www.blogger.com/profile/09435659960141295667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>