<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8370545678641066072</id><updated>2012-02-12T00:21:17.621-08:00</updated><category term='Database Diagnosis'/><category term='OEM'/><category term='Apps R12 Concepts'/><category term='Oracle SOA Concepts'/><category term='Performance Tuning'/><category term='DBA Guidelines'/><category term='PL/SQL'/><category term='Apps R12 OCP'/><category term='APEX tasks'/><category term='ORACLE CAREER'/><category term='MBA'/><category term='Recovering drop table'/><category term='Database Refresh'/><category term='Application server start/stop'/><category term='Happy New Year'/><category term='DBA Queries'/><category term='Unix for DBA'/><category term='locks'/><category term='RAC'/><category term='Database Patches'/><category term='DBA Daily activities'/><category term='OCP..'/><category term='Oracle SOA Expert'/><category term='oracle11g'/><category term='RAC EXPERT'/><category term='Dataguard and Standby Database'/><category term='Database Recovery'/><category term='Partition'/><category term='Apps DBA tasks'/><category term='exp/imp'/><category term='SQL TUNING'/><category term='Oracle Weblogic'/><category term='Oracle Errors'/><category term='RMAN'/><category term='Database Migrations'/><category term='FMW_tasks'/><category term='ASM'/><category term='ITIL'/><category term='Oracle Concepts'/><category term='Application server Installation'/><category term='Oracle Data Integrator'/><category term='DBA Scripts'/><category term='INTERVIEWS'/><category term='Apps DBA Queries'/><category term='My Favourite Books'/><category term='Unix Tasks'/><category term='Oracle SOA tasks'/><category term='expdp/impdp'/><category term='DBA tasks'/><category term='Database Upgrade'/><title type='text'>******* Rafi ORACLE DBA &amp; APPS DBA Blog*******</title><subtitle type='html'>Believe that anything you can imagine you can achieve it real.
        Having the devotion,passion and dedication to learn &amp;amp; Work in Oracle field mail me @ rafidba.alvi@gmail.com.&amp;quot;Knowledge grows when it is shared&amp;quot;.

Best Carrier related guidance in Oracle DBA,Oracle Apps DBA,Oracle SOA Admin/Developers,ODI Developers,OBI Developers and Oracle Designers.


     

&amp;quot;A Catalyst for Oracle DBA &amp;amp; Apps DBA Interviews,Jobs &amp;amp; Carrier.&amp;quot;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default?start-index=101&amp;max-results=100'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>128</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-3364208404224392639</id><published>2012-02-11T11:27:00.000-08:00</published><updated>2012-02-11T11:32:06.209-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Apps DBA tasks'/><title type='text'>Changing Oracle Application user password for Oracle E-Business Suite R12 Application</title><content type='html'>As a part of system administrator's task,Apps DBA do lot of tasks&lt;br /&gt;One such task is changing or resetting Oracle Application user password.&lt;br /&gt;We can follow the below steps to do this task:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 1:&lt;/span&gt;&lt;/span&gt;Login with &lt;span style="font-weight:bold;"&gt;'sysadmin'&lt;/span&gt; user into Oracle E-Business Suite front&lt;br /&gt;end page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 2:&lt;/span&gt;&lt;/span&gt;In the Oracle Applications Home Page go to Navigator section,select the &lt;span style="font-weight:bold;"&gt;User Management&lt;/span&gt; Responsibility&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 3:&lt;/span&gt;&lt;/span&gt;Click the User Management Responsibility,In the User Management,click Users&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 4:&lt;/span&gt;&lt;/span&gt;In the Oracle User Management of page,we find lot of search options available for use,we can use % also to find the name of the Oracle Application user&lt;br /&gt;If you now the employee id than you can directly enter here.&lt;br /&gt;&lt;br /&gt;Let us say we want to change password for Employee id &lt;span style="font-style:italic;"&gt;'E0111'&lt;/span&gt; ,than I will enter &lt;span style="font-style:italic;"&gt;'EO111'&lt;/span&gt; in the place where User Name is present&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 5:&lt;/span&gt;&lt;/span&gt;Seach the user&lt;br /&gt;After entering ther User Name,click Go&lt;br /&gt;&lt;br /&gt;We can see the details as specified below:&lt;br /&gt;Last Name First Name Email User Name Status Create User Reset Password Update&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 6:Reset the password&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Click the &lt;span style="font-weight:bold;"&gt;Reset Password&lt;/span&gt; tab and Choose Enter Manually option of resetting the password.Now,we can enter the password and confirm the password and &lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Submit&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 7:Verify and inform the User&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;After resetting or changing the password,we can verify once ourself by logging from that user from the Oracle E-Business Suite front end page&lt;br /&gt;&lt;br /&gt;Let us say we have reset the password of 'E0111' to welcome123,than we can login successfully and inform  the user for the change.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps....&lt;br /&gt;&lt;br /&gt;Happy oracle Apps DBA learning..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-3364208404224392639?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/3364208404224392639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2012/02/changing-oracle-application-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/3364208404224392639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/3364208404224392639'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2012/02/changing-oracle-application-user.html' title='Changing Oracle Application user password for Oracle E-Business Suite R12 Application'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-7144182752051146467</id><published>2012-02-07T15:48:00.000-08:00</published><updated>2012-02-07T16:15:35.090-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Apps DBA tasks'/><title type='text'>Creating Soft link or Symbolic link for Concurrent Manager program files</title><content type='html'>Soft Link or Symbolic Link  is required to read a shell script (.prog file) through a concurrent program.&lt;br /&gt;&lt;br /&gt;We can  create soft links or symbolic links for Concurrent Manager program files as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 1:Go to the custom top as below:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&gt;cd $xxtest_TOP/bin&lt;br /&gt;testapp01(APPDEV)  /product/appl/apps/apps_st/appl/xxtest/12.0.0/bin&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 2: Use 'fndcpesr' command to create soft link&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Lets say we have to create two symbolic links for two .prog files xxtest_techtest_ets_loader.prog and xxtest_techtest_points_loader.prog respectively,than we can proceed as follows:&lt;br /&gt;&lt;br /&gt;$pwd&lt;br /&gt;testapp01(APPDEV)  /product/appl/apps/apps_st/appl/xxtest/12.0.0/bin&lt;br /&gt;$&lt;span style="font-weight:bold;"&gt;ln -s $FND_TOP/bin/fndcpesr xxtest_techtest_ets_loader&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$&lt;span style="font-weight:bold;"&gt;ln -s $FND_TOP/bin/fndcpesr xxtest_techtest_points_loader&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;prog_name should be without .prog extension while creating symbolic link for .prog files.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 3:Verify the two created symbolic links:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$ls -altr  xxtest_techtest*&lt;br /&gt;lrwxrwxrwx   1 applmgr  oinstall      55 Feb  7 14:29 xxtest_techtest_ets_loader -&gt; /product/appl/apps/apps_st/appl/fnd/12.0.0/bin/fndcpesr&lt;br /&gt;lrwxrwxrwx   1 applmgr  oinstall      55 Feb  7 14:29 xxtest_techtest_points_loader -&gt; /product/appl/apps/apps_st/appl/fnd/12.0.0/bin/fndcpesr&lt;br /&gt;               As we see above,after creating symbolic link the new attribute 'l' is added that is nothing but symbolic link.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;&lt;br /&gt;1)&lt;span style="font-weight:bold;"&gt;'fndcpesr'&lt;/span&gt; is a standard utility available in $FND_TOP/bin directory.&lt;br /&gt;2) Its mainly used by the application to parse arguments for shell scripts.&lt;br /&gt;3)It is located in $FND_TOP/bin path along with other FND Utilities.&lt;br /&gt;4)&lt;span style="font-weight:bold;"&gt;'fndcpesr'&lt;/span&gt; is an executable and read only file.&lt;br /&gt;&lt;br /&gt;Hope it helps.&lt;br /&gt;&lt;br /&gt;Happy Apps DBA learning...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-7144182752051146467?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/7144182752051146467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2012/02/creating-soft-link-or-symbolic-link-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/7144182752051146467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/7144182752051146467'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2012/02/creating-soft-link-or-symbolic-link-for.html' title='Creating Soft link or Symbolic link for Concurrent Manager program files'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-2923697676591616268</id><published>2012-02-06T07:21:00.000-08:00</published><updated>2012-02-06T07:27:28.467-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Reference summary of asmcmd commands</title><content type='html'>&lt;span style="font-weight:bold;"&gt;asmcmd&lt;/span&gt; is a various nice feature of ASM.It helps us understand and do things from command line itself.I find this utility  very useful.Thanks to Oracle again for making things easy.&lt;br /&gt;&lt;br /&gt;Reference summary of &lt;span style="font-weight:bold;"&gt;asmcmd&lt;/span&gt; commands:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;cd&lt;/span&gt; Changes the current directory to the specified directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;du&lt;/span&gt; Displays the total disk space occupied by ASM files in the&lt;br /&gt; specified ASM directory and all its subdirectories, recursively.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;exit&lt;/span&gt; Exits ASMCMD.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;find&lt;/span&gt; Lists the paths of all occurrences of the specified name (with&lt;br /&gt; wildcards) under the specified directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;help&lt;/span&gt; Displays the syntax and description of ASMCMD commands.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;ls&lt;/span&gt; Lists the contents of an ASM directory, the attributes of the&lt;br /&gt; specified file, or the names and attributes of all disk groups.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;lsct&lt;/span&gt; Lists information about current ASM clients.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;lsdg&lt;/span&gt; Lists all disk groups and their attributes.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;mkalias&lt;/span&gt; Creates an alias for a system-generated filename.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;mkdir&lt;/span&gt; Creates ASM directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;pwd&lt;/span&gt; Displays the path of the current ASM directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rm&lt;/span&gt; Deletes the specified ASM files or directories.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rmalias&lt;/span&gt; Deletes the specified alias, retaining the file that the alias points to.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;asm.sh&lt;/span&gt;, a Linux shell script, that demonstrates some of the asmcmd functionality.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;lsct&lt;/span&gt; &lt;span style="font-weight:bold;"&gt;:&lt;/span&gt;list all connected Oracle instances&lt;br /&gt;&lt;br /&gt;ASMCMD&gt; &lt;span style="font-weight:bold;"&gt;lsct&lt;/span&gt;&lt;br /&gt;DB_Name  Status     Software_Version  Compatible_version  Instance_Name  Disk_Group&lt;br /&gt;+ASM     CONNECTED        11.2.0.1.0          11.2.0.1.0  +ASM1          GRID_DATA_01&lt;br /&gt;+ASM     CONNECTED        11.2.0.1.0          11.2.0.1.0  +ASM1          TESTDB_DATA_01&lt;br /&gt;TESTDB    CONNECTED        11.2.0.1.0          11.2.0.0.0  TESTDB1         TESTDB_FRA_01&lt;br /&gt;TESTDB    CONNECTED        11.2.0.1.0          11.2.0.0.0  TESTDB1         TESTDB_DATA_01&lt;br /&gt;ICMQB    CONNECTED        11.2.0.1.0          11.2.0.0.0  ICMQB1         TESTDB_FRA_01&lt;br /&gt;ICMQB    CONNECTED        11.2.0.1.0          11.2.0.0.0  ICMQB1         TESTDB_REDO_01&lt;br /&gt;ICMQB    CONNECTED        11.2.0.1.0          11.2.0.0.0  ICMQB1         TESTDB_REDO_02&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;lsdg:&lt;/span&gt;List Diskgroup status and type.&lt;br /&gt;&lt;br /&gt;ASMCMD&gt; lsdg&lt;br /&gt;State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name&lt;br /&gt;MOUNTED  NORMAL  N         512   4096  1048576      5934     5002              173            2414              0             N  GRID_DATA_01/&lt;br /&gt;MOUNTED  EXTERN  N         512   4096  1048576   2161538   112220                0          112220              0             N  TESTDB_DATA_01/&lt;br /&gt;MOUNTED  EXTERN  N         512   4096  1048576    654684   560350                0          560350              0             N  TESTDB_FRA_01/&lt;br /&gt;MOUNTED  EXTERN  N         512   4096  1048576     32652    11922                0           11922              0             N  TESTDB_REDO_01/&lt;br /&gt;MOUNTED  EXTERN  N         512   4096  1048576     32652    11954                0           11954              0             N  TESTDB_REDO_02/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ASMCMD&gt; iostat&lt;br /&gt;Group_Name     Dsk_Name            Reads          Writes&lt;br /&gt;GRID_DATA_01   GRID_DATA_01_0000   3121340416     0&lt;br /&gt;GRID_DATA_01   GRID_DATA_01_0001   3616768        0&lt;br /&gt;GRID_DATA_01   GRID_DATA_01_0002   4354048        4096&lt;br /&gt;GRID_DATA_01   GRID_DATA_01_0003   2061918208     4096&lt;br /&gt;GRID_DATA_01   GRID_DATA_01_0004   3616768        0&lt;br /&gt;GRID_DATA_01   GRID_DATA_01_0005   3731456        4096&lt;br /&gt;TESTDB_DATA_01  TESTDB_DATA_01_0000  1868196700160  205746507776&lt;br /&gt;TESTDB_DATA_01  TESTDB_DATA_01_0001  1860077395968  203464622080&lt;br /&gt;TESTDB_DATA_01  TESTDB_DATA_01_0002  1860528062464  204175556608&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Reference :&lt;/span&gt;MY ORACLE SUPPORT and Oracle Documentations&lt;br /&gt;&lt;br /&gt;Hope is helps...&lt;br /&gt;&lt;br /&gt;Happy ASM learning...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-2923697676591616268?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/2923697676591616268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2012/02/reference-summary-of-asmcmd-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2923697676591616268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2923697676591616268'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2012/02/reference-summary-of-asmcmd-commands.html' title='Reference summary of asmcmd commands'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-705734625986739641</id><published>2012-02-06T07:11:00.000-08:00</published><updated>2012-02-06T07:14:48.334-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Apps DBA tasks'/><title type='text'>Changing the profile value in Oracle EBS applications</title><content type='html'>How do we change the profile value in Oracle EBS applications?&lt;br /&gt;&lt;br /&gt;Ans:   Below are the steps for changing profile value in Oracle EBS applications:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 1:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Login to EBS home page with 'SYSADMIN' or privileged application user.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 2:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the Navigator,Go to System Administrator Tab and On the right side Go to Profile=&gt;System&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 3:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Click System you will see Oracle Application Manager Form Page is opened.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 4:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Double Click Profile Tab,go to System,Click Open Tab at the bottom.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 5:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We will see form page Find System Profile Values&lt;br /&gt;&lt;br /&gt;Enter the Profile Name at the Bottom where Profile Tab is there and Click Find.&lt;br /&gt;&lt;br /&gt;Where Profile:Name_of_profile whose value we want to set.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 6:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Now we will see Form Page where&lt;br /&gt;Profile Option Name:Profile_name&lt;br /&gt;Site:Value you want to set&lt;br /&gt;&lt;br /&gt;Site=0,1...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 7:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Save the Changes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;File=&gt;Save&lt;br /&gt;&lt;br /&gt;And Close the Form.&lt;br /&gt;&lt;br /&gt;File=&gt;Close Form or Exit Oracle Applications.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps Beginners Apps DBA&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-705734625986739641?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/705734625986739641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2012/02/changing-profile-value-in-oracle-ebs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/705734625986739641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/705734625986739641'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2012/02/changing-profile-value-in-oracle-ebs.html' title='Changing the profile value in Oracle EBS applications'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-8743648380342226245</id><published>2012-01-01T02:11:00.000-08:00</published><updated>2012-01-04T04:41:42.893-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Happy New Year'/><title type='text'>HAPPY NEW YEAR 2012</title><content type='html'>Hi All,&lt;br /&gt;       Thanks for visiting,reading and giving suggestion regarding my blog,I wish you&lt;br /&gt;all very &lt;span style="font-weight:bold;"&gt;HAPPY AND PROSPEROUS NEW YEAR 2012&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;             Last year(2011) was interesting for me,as I learn new technologies Oracle &lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;SOA(Service Oriented Architecture)&lt;/span&gt;&lt;/span&gt; and &lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;ODI(Oracle Data Integrator)&lt;/span&gt;&lt;/span&gt;.Apart from these&lt;br /&gt;I stepped forward to learn Oracle 11g RAC,Dataguard and Oracle EBS 12.1.1 and later versions.&lt;br /&gt;Going forward this year(2012) I'm interested in extending my skillsets and implement &lt;br /&gt;these skillsets more in my work to gain perfection.It won't be easy,but I will be&lt;br /&gt;trying my best to maintain these skillsets by reading and practise.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;MY GOALS FOR THE YEAR 2012:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1)Practise and Master the skillsets Oracle 11g RAC,Dataguard.&lt;br /&gt;&lt;br /&gt;2)Practise and Master the skillsets Oracle EBS R12.1.1 &amp; later versions.&lt;br /&gt;&lt;br /&gt;3)Practise and Master the skillsets Oracle SOA 11g.&lt;br /&gt;&lt;br /&gt;4)Practise and Master the skillsets Oracle Data Integrator 11g.&lt;br /&gt;&lt;br /&gt;5)In order to get more perfection I need to take  Oracle 11g RAC,Dataguard training&lt;br /&gt;from Oracle which will also act as base for my prepartion of OCM Exam.&lt;br /&gt;&lt;br /&gt;6)Practise and Complete PMP Certification.&lt;br /&gt;&lt;br /&gt;7)Bring Excellence to my work by adopting best work practises in terms of technology&lt;br /&gt;and work practises.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Oracle and DBA Market Survey as per me:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;DBA Market Demanded the following major skillsets:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)RAC: &lt;/span&gt;  RAC skillset I found ruled the DBA market in the year 2011(last year).It makes sense as it is used by lot of financial and highly critical Databases.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)Dataguard:&lt;/span&gt;   Dataguard skillset was the second major skillset which I found ruled the DBA market.As many companies grow their data,they worry for protecting it from Disaster.&lt;br /&gt;ASM,RMAN,Performance tuning were not behind and were also in demand as always.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Apps DBA Market Survery:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Apps DBA market Demanded the follwing skillset:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Clonning and Patching:&lt;/span&gt;&lt;br /&gt;                        The most repeated task of the Apps DBA again ruled the last year(2011).It can be called as refreshing the Database and Application and Clonning&lt;br /&gt;in other sense.Patching is again the repeated task for the Apps DBA&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;2)SHARED APPL_TOP ,LOAD BALANCING AND PCP:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;                     As experience grows the expectation of companies for you will also.I found few companies specifically asking the combination of RAC and Apps for&lt;br /&gt;senior Apps consultant/Consultant positions on a large scale.&lt;br /&gt;&lt;br /&gt;        DMZ configuration,Apps DBA Administraion(AD Utilities) and Workflow configuration skillsets were also not behind.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;3)Oracle SOA market survey:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;                     Oracle SOA 11g market was hot last year.I found many companies&lt;br /&gt;asking for Oracle SOA Developer/Admins.Along with these,Oracle Weblogic server skillsets were in demand.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;4)ODI market survey:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;              Oracle Data Integrator 11g(ODI 11g) was the hot ETL tool last year as&lt;br /&gt;many companies were moving Data from one source to many targets.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;5)Oracle Fusion Apps DBA(Fusion DBA) market survey:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;           I found a new job role emerged in 2011,It is the combination of Oracle Apps DBA and Fusion Middleware Administration(SOA Administration + Weblogic Administration).It is a kind of profile where company is asking too much from one candidate,considering future demand of Oracle Weblogic(BEA product).Some companies&lt;br /&gt;were specific on hiring Oracle Fusion Middleware Administrators.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;The above survey is just based on my personal experience and should not be considered for any publicity or stratergy.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I will be writing my next survey in next year beginning.All the best.Have a bright and skillfull year 2012.&lt;br /&gt;&lt;br /&gt;Enjoy and Happy Oracle learning.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-8743648380342226245?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/8743648380342226245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2012/01/happy-new-year-2012.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8743648380342226245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8743648380342226245'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2012/01/happy-new-year-2012.html' title='HAPPY NEW YEAR 2012'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-6635482937888293168</id><published>2011-12-26T00:00:00.001-08:00</published><updated>2011-12-28T03:34:55.308-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DBA tasks'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle11g'/><title type='text'>Manually Installing Oracle Data Mining  in Oracle 11g</title><content type='html'>Hi,&lt;br /&gt;    If you compare Oracle 11g and previous versions there are lot of changes in terms of installing Data Mining component,&lt;br /&gt;For installing check the MY ORACLE SUPPORT note :&lt;br /&gt;&lt;span style="font-style:italic;"&gt;How To Manually Install Data Mining In Oracle 11g? [ID 818314.1]&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Information  about data mining:&lt;/span&gt;&lt;br /&gt;The brief information about Oracle Data mining can be obtained from the below link:&lt;br /&gt;&lt;br /&gt;http://docs.oracle.com/html/B14339_01/1intro.htm&lt;br /&gt;&lt;br /&gt;       In short,If you do the Oracle installation with Enterprise Edition installation type ,it selects Oracle Data Mining option by default.In Oracle Database 11g,the Data Mining metadata is created with &lt;span style="font-weight:bold;"&gt;'SYS'&lt;/span&gt; metadata when you select the Create Database option.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For verifying the installation of Oracle Data Mining:&lt;/span&gt;&lt;br /&gt;        Check if the parameter &lt;span style="font-weight:bold;"&gt;DATA MINING&lt;/span&gt; is set to &lt;span style="font-weight:bold;"&gt;TRUE&lt;/span&gt;,if it is than Oracle Data Mining component is already installed in the Database.The &lt;span style="font-weight:bold;"&gt;V$OPTION&lt;/span&gt; is very useful for checking the various functionality exist in your Database or not as seen from the below results:&lt;br /&gt;&lt;br /&gt;SQL&gt;SET LINESIZE 1000&lt;br /&gt;SQL&gt;SELECT *FROM V$OPTION;&lt;br /&gt;&lt;br /&gt;PARAMETER                                                        VALUE&lt;br /&gt;---------------------------------------------------------------- ----------------------------------------------------------------&lt;br /&gt;Partitioning                                                     TRUE&lt;br /&gt;Objects                                                          TRUE&lt;br /&gt;Real Application Clusters                                        FALSE&lt;br /&gt;Advanced replication                                             TRUE&lt;br /&gt;Bit-mapped indexes                                               TRUE&lt;br /&gt;Connection multiplexing                                          TRUE&lt;br /&gt;Connection pooling                                               TRUE&lt;br /&gt;Database queuing                                                 TRUE&lt;br /&gt;Incremental backup and recovery                                  TRUE&lt;br /&gt;Instead-of triggers                                              TRUE&lt;br /&gt;Parallel backup and recovery                                     TRUE&lt;br /&gt;&lt;br /&gt;PARAMETER                                                        VALUE&lt;br /&gt;---------------------------------------------------------------- ----------------------------------------------------------------&lt;br /&gt;Parallel execution                                               TRUE&lt;br /&gt;Parallel load                                                    TRUE&lt;br /&gt;Point-in-time tablespace recovery                                TRUE&lt;br /&gt;Fine-grained access control                                      TRUE&lt;br /&gt;Proxy authentication/authorization                               TRUE&lt;br /&gt;Change Data Capture                                              TRUE&lt;br /&gt;Plan Stability                                                   TRUE&lt;br /&gt;Online Index Build                                               TRUE&lt;br /&gt;Coalesce Index                                                   TRUE&lt;br /&gt;Managed Standby                                                  TRUE&lt;br /&gt;Materialized view rewrite                                        TRUE&lt;br /&gt;&lt;br /&gt;PARAMETER                                                        VALUE&lt;br /&gt;---------------------------------------------------------------- ----------------------------------------------------------------&lt;br /&gt;Materialized view warehouse refresh                              TRUE&lt;br /&gt;Database resource manager                                        TRUE&lt;br /&gt;Spatial                                                          TRUE&lt;br /&gt;Automatic Storage Management                                     FALSE&lt;br /&gt;Export transportable tablespaces                                 TRUE&lt;br /&gt;Transparent Application Failover                                 TRUE&lt;br /&gt;Fast-Start Fault Recovery                                        TRUE&lt;br /&gt;Sample Scan                                                      TRUE&lt;br /&gt;Duplexed backups                                                 TRUE&lt;br /&gt;Java                                                             TRUE&lt;br /&gt;OLAP Window Functions                                            TRUE&lt;br /&gt;&lt;br /&gt;PARAMETER                                                        VALUE&lt;br /&gt;---------------------------------------------------------------- ----------------------------------------------------------------&lt;br /&gt;Block Media Recovery                                             TRUE&lt;br /&gt;Fine-grained Auditing                                            TRUE&lt;br /&gt;Application Role                                                 TRUE&lt;br /&gt;Enterprise User Security                                         TRUE&lt;br /&gt;Oracle Data Guard                                                TRUE&lt;br /&gt;Oracle Label Security                                            FALSE&lt;br /&gt;OLAP                                                             TRUE&lt;br /&gt;Basic Compression                                                TRUE&lt;br /&gt;Join index                                                       TRUE&lt;br /&gt;Trial Recovery                                                   TRUE&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Data Mining                                                      TRUE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;PARAMETER                                                        VALUE&lt;br /&gt;---------------------------------------------------------------- ----------------------------------------------------------------&lt;br /&gt;Online Redefinition                                              TRUE&lt;br /&gt;Streams Capture                                                  TRUE&lt;br /&gt;File Mapping                                                     TRUE&lt;br /&gt;Block Change Tracking                                            TRUE&lt;br /&gt;Flashback Table                                                  TRUE&lt;br /&gt;Flashback Database                                               TRUE&lt;br /&gt;Transparent Data Encryption                                      TRUE&lt;br /&gt;Backup Encryption                                                TRUE&lt;br /&gt;Unused Block Compression                                         TRUE&lt;br /&gt;Oracle Database Vault                                            FALSE&lt;br /&gt;Result Cache                                                     TRUE&lt;br /&gt;&lt;br /&gt;PARAMETER                                                        VALUE&lt;br /&gt;---------------------------------------------------------------- ----------------------------------------------------------------&lt;br /&gt;SQL Plan Management                                              TRUE&lt;br /&gt;SecureFiles Encryption                                           TRUE&lt;br /&gt;Real Application Testing                                         TRUE&lt;br /&gt;Flashback Data Archive                                           TRUE&lt;br /&gt;DICOM                                                            TRUE&lt;br /&gt;Active Data Guard                                                TRUE&lt;br /&gt;Server Flash Cache                                               TRUE&lt;br /&gt;Advanced Compression                                             TRUE&lt;br /&gt;XStream                                                          TRUE&lt;br /&gt;Deferred Segment Creation                                        TRUE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PRIVILEGE REQUIRED FOR DATA MINING SCHEMA:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;        Let us say,If you want to use Data Mining feature to a specific user,than we have to grant &lt;span style="font-weight:bold;"&gt;CREATE MINING MODEL&lt;/span&gt; privilege to that user.&lt;br /&gt;&lt;br /&gt;SQL&gt; conn dmuser&lt;br /&gt;Enter password:&lt;br /&gt;Connected.&lt;br /&gt;SQL&gt; select *from session_privs;&lt;br /&gt;&lt;br /&gt;PRIVILEGE&lt;br /&gt;----------------------------------------&lt;br /&gt;CREATE SESSION&lt;br /&gt;UNLIMITED TABLESPACE&lt;br /&gt;CREATE TABLE&lt;br /&gt;CREATE CLUSTER&lt;br /&gt;CREATE SEQUENCE&lt;br /&gt;CREATE PROCEDURE&lt;br /&gt;CREATE TRIGGER&lt;br /&gt;CREATE TYPE&lt;br /&gt;CREATE OPERATOR&lt;br /&gt;CREATE INDEXTYPE&lt;br /&gt;CREATE MINING MODEL&lt;br /&gt;&lt;br /&gt;11 rows selected.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Happy Oracle DBA tasks...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-6635482937888293168?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/6635482937888293168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/12/manually-installing-oracle-data-mining.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/6635482937888293168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/6635482937888293168'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/12/manually-installing-oracle-data-mining.html' title='Manually Installing Oracle Data Mining  in Oracle 11g'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-8633603355258981740</id><published>2011-12-21T11:28:00.001-08:00</published><updated>2011-12-28T04:11:15.625-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Application server Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Apps DBA tasks'/><title type='text'>Step by steps Oracle 10g Application Server installation steps</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-uHP-xx-MbiU/TvsHQN8W_6I/AAAAAAAAAUc/ly-zP8W4qrw/s1600/Deinstall_1.png"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="http://4.bp.blogspot.com/-uHP-xx-MbiU/TvsHQN8W_6I/AAAAAAAAAUc/ly-zP8W4qrw/s320/Deinstall_1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5691150529314881442" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-5bV_wMnH9qo/TvsHMdXz9cI/AAAAAAAAAUQ/s0HKwxYJUZo/s1600/Deinstall_2.png"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="http://2.bp.blogspot.com/-5bV_wMnH9qo/TvsHMdXz9cI/AAAAAAAAAUQ/s0HKwxYJUZo/s320/Deinstall_2.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5691150464737080770" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-tL1CzNELd4Y/TvsHHEzNWQI/AAAAAAAAAUE/Ww8ugCIlNc8/s1600/Deinstall_4.png"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="http://3.bp.blogspot.com/-tL1CzNELd4Y/TvsHHEzNWQI/AAAAAAAAAUE/Ww8ugCIlNc8/s320/Deinstall_4.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5691150372241758466" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-sE_9dpR-lyo/TvsHC-xBcfI/AAAAAAAAAT4/EA5C-8KdIqA/s1600/Inst_1.png"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="http://2.bp.blogspot.com/-sE_9dpR-lyo/TvsHC-xBcfI/AAAAAAAAAT4/EA5C-8KdIqA/s320/Inst_1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5691150301902500338" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-Hbk0uWaN49U/TvsG8XqRRNI/AAAAAAAAATs/NtIObEBC7E4/s1600/Inst_2.png"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="http://4.bp.blogspot.com/-Hbk0uWaN49U/TvsG8XqRRNI/AAAAAAAAATs/NtIObEBC7E4/s320/Inst_2.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5691150188325979346" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-1ThfVpxIB5A/TvsG4e1KCaI/AAAAAAAAATg/s-gaJ9PInYs/s1600/Inst_3.png"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="http://1.bp.blogspot.com/-1ThfVpxIB5A/TvsG4e1KCaI/AAAAAAAAATg/s-gaJ9PInYs/s320/Inst_3.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5691150121531214242" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-Fv11rbXkLKM/TvsGxTubf2I/AAAAAAAAATU/cMe1i7HqPTc/s1600/New%2BPicture.png"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="http://2.bp.blogspot.com/-Fv11rbXkLKM/TvsGxTubf2I/AAAAAAAAATU/cMe1i7HqPTc/s320/New%2BPicture.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5691149998291124066" /&gt;&lt;/a&gt;&lt;br /&gt;Hi,&lt;br /&gt;    Below are the steps for Deinstallation,Installation of Oracle 10g Application Server:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Application server Deinstallation process:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Go to &lt;br /&gt;cd D:\Apps_soft\application_server\Disk1&lt;br /&gt;&lt;br /&gt;Launch setup.exe&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt; Deinstall products&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As seen in above screenshot,click all the products we need to deinstall&lt;br /&gt;And then Click Remove&lt;br /&gt;&lt;br /&gt;=&gt;Application server &lt;span style="font-weight:bold;"&gt;10g Database&lt;/span&gt;&lt;br /&gt;=&gt;Application server &lt;span style="font-weight:bold;"&gt;Infrastructure&lt;/span&gt;&lt;br /&gt;=&gt;Application  server &lt;span style="font-weight:bold;"&gt;Middle Tier&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Yes&lt;/span&gt; and than click OK each time it prompts ,which will all the products of the Oracle Application Server and hence Application server will be deinstall successfully.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Installing Oracle 10g Application Server: &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Oracle Application Server (10g Release 2) is installed as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Operating System&lt;/span&gt;:Windows XP(32-bit)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Version:&lt;/span&gt; 10.1.2.0.2&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Size on disk required:&lt;/span&gt;20 GB&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 1:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Browse to :D:\Apps_soft\application_server\Disk1&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 2:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;           Specify the name of the Application server and Home location where we will be keeping Infra and Middle Tier home components&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 3:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Gives &lt;span style="font-weight:bold;"&gt;3&lt;/span&gt; options:&lt;br /&gt;&lt;br /&gt;1)Installation of Middle Tier&lt;br /&gt;2)Installation of Infra Tier&lt;br /&gt;3)Installation of Developer kits 10g&lt;br /&gt;&lt;br /&gt;Select  option 2 for Installation of Infrastructure Tier.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;&lt;span style="font-style:italic;"&gt;span style="font-weight:bold;"&gt;Step 4:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Select option 1:It will install Identity Management and Metadata Repository&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 5:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;       We will get message as this software is not certified ignored it and proceed by clicking ok and Check the Administrator privileges which will confirm you have administrative rights to install this software.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;next&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;next&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exit and Come out&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;II)Middle tier Installation:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Select option 1 For installation of Application Server Middle Tier&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Click Next,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Select option 3 For installation of BI and Forms.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click OK and proceed.&lt;br /&gt;&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Next,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Go to D:\Apps_server_10g_home\install.&lt;br /&gt;&lt;br /&gt;And open &lt;span style="font-weight:bold;"&gt;portlist.ini&lt;/span&gt; file to see the port number for Oracle Internet Directory(OID).&lt;br /&gt;&lt;br /&gt;Enter your machine name and port for OID. Usually 389 for windows as in our case.&lt;br /&gt;&lt;br /&gt;Specify: Instance name:Middle Tier instance and ias_admin password&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Exit and Come out:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Verification:&lt;/span&gt;&lt;br /&gt;U:\&gt;cd D:\Apps_server_10g_home\opmn\bin&lt;br /&gt;&lt;br /&gt;U:\&gt;d:&lt;br /&gt;&lt;br /&gt;D:\Apps_server_10g_home\opmn\bin&gt;opmnctl status&lt;br /&gt;&lt;br /&gt;Processes in Instance: APPS_INFRA_INSTANCE.node1.abc.comp.com&lt;br /&gt;-------------------+--------------------+---------+---------&lt;br /&gt;ias-component      | process-type       |     pid | status&lt;br /&gt;-------------------+--------------------+---------+---------&lt;br /&gt;DSA                | DSA                |     N/A | Down&lt;br /&gt;LogLoader          | logloaderd         |     N/A | Down&lt;br /&gt;dcm-daemon         | dcm-daemon         |    3740 | Alive&lt;br /&gt;OC4J               | OC4J_SECURITY      |    4324 | Alive&lt;br /&gt;HTTP_Server        | HTTP_Server        |    4184 | Alive&lt;br /&gt;OID                | OID                |    1992 | Alive&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;D:\Apps_server_10g_home\opmn\bin&gt;cd D:\Apps_server_10g_home\MidTier\opmn\b&lt;br /&gt;&lt;br /&gt;D:\Apps_server_10g_home\MidTier\opmn\bin&gt;opmmctl status&lt;br /&gt;'opmmctl' is not recognized as an internal or external command,&lt;br /&gt;operable program or batch file.&lt;br /&gt;&lt;br /&gt;D:\Apps_server_10g_home\MidTier\opmn\bin&gt;opmnctl startall&lt;br /&gt;opmnctl: starting opmn and all managed processes...&lt;br /&gt;&lt;br /&gt;D:\Apps_server_10g_home\MidTier\opmn\bin&gt;opmnctl status&lt;br /&gt;&lt;br /&gt;Processes in Instance: Middle_Tier_instance_node1.abc.comp.com&lt;br /&gt;-------------------+--------------------+---------+---------&lt;br /&gt;ias-component      | process-type       |     pid | status&lt;br /&gt;-------------------+--------------------+---------+---------&lt;br /&gt;DSA                | DSA                |     N/A | Down&lt;br /&gt;LogLoader          | logloaderd         |     N/A | Down&lt;br /&gt;dcm-daemon         | dcm-daemon         |    7272 | Alive&lt;br /&gt;OC4J               | home               |    6572 | Alive&lt;br /&gt;OC4J               | OC4J_BI_Forms      |    7920 | Stop&lt;br /&gt;WebCache           | WebCache           |    6384 | Alive&lt;br /&gt;WebCache           | WebCacheAdmin      |    1996 | Alive&lt;br /&gt;HTTP_Server        | HTTP_Server        |    6360 | Alive&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Happy Oracle Apps learning...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-8633603355258981740?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/8633603355258981740/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/12/step-by-steps-oracle-10g-application.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8633603355258981740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8633603355258981740'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/12/step-by-steps-oracle-10g-application.html' title='Step by steps Oracle 10g Application Server installation steps'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-uHP-xx-MbiU/TvsHQN8W_6I/AAAAAAAAAUc/ly-zP8W4qrw/s72-c/Deinstall_1.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-559749679065242067</id><published>2011-12-14T01:21:00.000-08:00</published><updated>2011-12-14T01:39:48.617-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle SOA Expert'/><title type='text'>Completed Oracle SOA Suite 11g Certification</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-eFwZnFObZ78/TuhuqRDKyfI/AAAAAAAAAS4/yS3ABcgvoqs/s1600/OCE_clr.gif"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 126px; height: 69px;" src="http://2.bp.blogspot.com/-eFwZnFObZ78/TuhuqRDKyfI/AAAAAAAAAS4/yS3ABcgvoqs/s320/OCE_clr.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5685916201965505010" /&gt;&lt;/a&gt;&lt;br /&gt;Hi,&lt;br /&gt;   I added one more credential to my profile portfolio,this time it is my this year favourite concept Oracle SOA 11g.I've completed Oracle SOA suite 11g  foundation practitioner certificate last Saturday.Now,I'm Oracle SOA certified expert.Working on the competency servers and giving tech talk on Oracle SOA in my organization were key factors which helped me achieving this credentials.&lt;br /&gt;In addition to this I installed and configured Oracle SOA suite 11g(version 11.1.0.5.0) in my personal laptop also which is having Windows 7 Operating system helped me a lot.&lt;br /&gt;&lt;br /&gt;I passed my Oracle SOA Foundation Practitioner Certification by following below tips:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Practise needed:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;           Practise On Developing and Deploying composite application by starting with basic Hello BPEL task can be very much useful,We need to be aware of each and every service components like their functioning and usage.Work with Adapters and Integration practises will also comes handy.For getting Started with Oracle SOA below link helped lot:&lt;br /&gt;&lt;br /&gt;http://docs.oracle.com/cd/E21764_01/integration.1111/e10223/toc.htm&lt;br /&gt;&lt;br /&gt;Once this is done you can develop and deploy various composite application for your practise which will be advantageous.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Books you can follow:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Oracle SOA Suite 11g Development guide:http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/toc.htm&lt;br /&gt;Oracle SOA Suite 11g Handbook written by Lucas Jellema.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Links you can follow:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;http://docs.oracle.com/cd/E21764_01/soa.htm&lt;br /&gt;Blog from Ahmed :http://blog.ipnweb.com/&lt;br /&gt;Blog from Abhishek:http://abhishek-soablog.blogspot.com/&lt;br /&gt;Oracle SOA Suite Forum:https://forums.oracle.com/forums/forum.jspa?forumID=320&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Details about Oracle SOA Foundation Practitioner certification:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;                 Check the below link for Oracle SOA Suite 11g foundation practitioner Certificate syllabus,training and Exam Details:&lt;br /&gt;&lt;br /&gt;http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&amp;p_org_id=1080544&amp;lang=US&amp;p_exam_id=1Z0_451&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All the best for Oracle SOA 11g exam...&lt;br /&gt;&lt;br /&gt;Happy Oracle SOA learning...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-559749679065242067?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/559749679065242067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/12/completed-oracle-soa-suite-11g.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/559749679065242067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/559749679065242067'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/12/completed-oracle-soa-suite-11g.html' title='Completed Oracle SOA Suite 11g Certification'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-eFwZnFObZ78/TuhuqRDKyfI/AAAAAAAAAS4/yS3ABcgvoqs/s72-c/OCE_clr.gif' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-1077622479342154759</id><published>2011-12-12T09:53:00.000-08:00</published><updated>2011-12-14T00:37:31.250-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='My Favourite Books'/><title type='text'>My Favourite Book for Oracle SOA  suite 11g</title><content type='html'>Hi,&lt;br /&gt;    This year I devoted myself in learning and practicing Oracle SOA suite 11g.I started learning the concepts of Oracle SOA 11g and various Components involved.&lt;br /&gt;For initial learning of mine,I focused on the below link:&lt;br /&gt;&lt;br /&gt;http://docs.oracle.com/cd/E21764_01/integration.1111/e10223/toc.htm&lt;br /&gt;http://rafioracledba.blogspot.com/2011/11/oracle-soa-essential-for-soa.html&lt;br /&gt;&lt;br /&gt;   After clearing my concepts I went with installing and Configuring Oracle Suite 11g on Windows and Linux Operating systems which led the foundation of my SOA learning.&lt;br /&gt;For installation and Configuration refer my below links:&lt;br /&gt;&lt;br /&gt;http://rafioracledba.blogspot.com/2011/08/step-by-step-oracle-soa-suite-11g.html&lt;br /&gt;&lt;br /&gt;       But,One book that inspired me a lot is &lt;span style="font-weight:bold;"&gt;Oracle SOA Suite 11g Handbook&lt;/span&gt; written by &lt;span style="font-weight:bold;"&gt;Lucas Jellema&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Brief about Author:&lt;/span&gt;&lt;/span&gt;  Lucas Jellema is an Oracle ACE Director for Oracle Fusion Middleware.He is the SOA specialist based in Nieuwegein,The Netherlands.He is an author at the AMIS Technology Blog for Oracle Technology Network,and for international magazines.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Brief about Book:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;                    This books covers various the following topics which will help you work in Oracle SOA suite 11g:&lt;br /&gt;&lt;br /&gt;1)Introduction to SOA with an Example of how it is adopted.&lt;br /&gt;2)Developing Composite Applications which covers the Components of Oracle SOA Suite 11g and how this components work together by using SCA&lt;br /&gt;(Service Component Architecture which is new from Oracle SOA 11g).&lt;br /&gt;3)How we can Administer,Secure and Govern Oracle SOA components.&lt;br /&gt;4)Use of CEP(Complex Event Processing) and BAM (Business Activity Monitoring)&lt;br /&gt;5)How we can migrate from Oracle SOA Suite 10g to 11g.&lt;br /&gt;&lt;br /&gt;       What else,A SOA learner and expert can expect,really love to read this book several times to understand more better and Work in Oracle SOA suite 11g.All the best SOA learners.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Happy Oracle SOA learning&lt;/span&gt;...&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;br /&gt;&lt;br /&gt;Happy Oracle SOA&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-1077622479342154759?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/1077622479342154759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/12/my-favourite-book-for-oracle-soa-suite.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1077622479342154759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1077622479342154759'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/12/my-favourite-book-for-oracle-soa-suite.html' title='My Favourite Book for Oracle SOA  suite 11g'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-1719791128534829463</id><published>2011-11-29T10:35:00.000-08:00</published><updated>2011-12-01T04:05:07.572-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle SOA Concepts'/><title type='text'>Oracle SOA essential for SOA Administrators and Developers</title><content type='html'>Hi,&lt;br /&gt;  Oracle SOA 11g essential which can ge useful for SOA Administrators and Developers&lt;br /&gt;can be listed as given below:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding web services:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Useful links are:&lt;br /&gt;&lt;br /&gt;http://www.w3schools.com/wsdl/wsdl_intro.asp&lt;br /&gt;http://www.w3schools.com/wsdl/wsdl_uddi.asp&lt;br /&gt;http://www.oasis-open.org/committees/download.php/3343/oasis-200304-wsrp-specification-1.0.pdf&lt;br /&gt;http://www.oracle.com/technetwork/middleware/bpa/overview/index.html&lt;br /&gt;http://www.w3schools.com/xsl/&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understand ESB:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;An "Enterprise Service Bus" (ESB) is a system to which all services are connected. &lt;br /&gt;Through the enterprise service bus all connected services can also be accessed.&lt;br /&gt;&lt;br /&gt;Here is an illustration of an enterprise service bus which acts as central "bridge" or "gateway" to all applications exposing services &lt;br /&gt;underneath it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understand BPEL:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;BPEL (Business Process Execution Language) for Web services is an XML-based language designed to enable task-sharing&lt;br /&gt;for a distributed computing or grid computing environment which can be use evenly across multiple organizations and using a combination of Web service.&lt;br /&gt;BPEL is the most feature rich component in SOA suite.&lt;br /&gt;BPEL is use in large extent to orchestrate the web services.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding synchronous and Asynchronous BPEL process:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Link which will be useful.&lt;br /&gt;&lt;br /&gt;http://suryaveer-chauhan.blogspot.com/2009/06/asynchronous-process-vs.html&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understand BAM:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Oracle Business Activity Monitoring (Oracle BAM) gives business executives the ability to monitor their business services and processes in the enterprise, to correlate KPIs down to the actual business process themselves, and most important, &lt;br /&gt;to change business processes quickly or to take corrective action if the business environment changes.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; Oracle BAM is a component of both SOA Suite and BPM Suite.&lt;br /&gt;&lt;br /&gt;when we install Oracle SOA suite 11g,we can install BAM component if we have enough memory in our Operating system(Usully required 8 GB of RAM&lt;br /&gt;for good functioning) as I implemented in RHEL 5.3 (64-bit) machine.It is good practise to involve the latest version of Oracle SOA suite&lt;br /&gt;always.I've installed 11.1.1.5.0 on Windows and Unix-based machines.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understand OWSM:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Oracle Web Services Manager(OWSM) offers a comprehensive and easy-to-use solution for policy management and security of service infrastructure. It provides visibility and control of the policies through a centralized administration&lt;br /&gt;interface offered by Oracle Enterprise Manager.&lt;br /&gt;&lt;br /&gt;We will get OEM console link when we configure the weblogic domain.When we see the Home page after login after login with Oracle Fusion Middleware&lt;br /&gt;11g OEM console.The admin console is also useful for lot of SOA admin tasks as well as OEM console.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding ODI:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;*ODI stands for Oracle Data Integrator.This application is useful in processing large amount of data.&lt;br /&gt;*It works on the principle of Estraction,Loading and Transformation(ELT) unlike ETL tools where we have extract transform and load.&lt;br /&gt;*In short ODI can be called as 'ELT tool of SOA'&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding OBR:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;*OBR stands for Oracle Business Rules is a tool for writing the Business rules seperately from the code.&lt;br /&gt;*This becomes very vital when you want to understand the Business rules and code of development separately.&lt;br /&gt;*We can see Business rules with the help of User Interface provided by this tool.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding SR:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;*SR stands for Service Registry.It is used to keep track of all the services that are present in my portfolio(Which consists of past,present and future services).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Oracle JDeveloper:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;*As the name says it stands for Oracle Java Developer where you integrate Oracle,java,web,web services and XML services.&lt;br /&gt;*Oracle JDeveloper integrates development features for Java, SOA, Web 2.0,Database, XML and Web services into a single development tool.&lt;br /&gt;*Oracle JDeveloper integrates the full set of features needed for developing composite applications with specific features that address the technologies like Database,java,web,web services and XML.&lt;br /&gt;*Oracle JDeveloper integrates the full set of features needed for developing composite applications with specific features that address the technologies like Database,java,web,web services and XML&lt;br /&gt;*Oracle JDeveloper is the development environment for Oracle SOA Suite and the Oracle WebCenter Suite.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding Oracle WebLogic Server:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*An enterprise-ready Java application server.&lt;br /&gt;*Supports the deployment of mission-critical applications in a robust,secure,highly available and scalable environment. &lt;br /&gt;*Oracle WebLogic Server is an ideal foundation for building &lt;br /&gt; applications based on service-oriented architecture (SOA).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding Domain,Admin server and Managed servers in Weblogic Server:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Domain:&lt;/span&gt;&lt;br /&gt;*Logically related group of Java components.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Administration Server:&lt;/span&gt;&lt;br /&gt;*Special WebLogic Server instance which is the central point from which you&lt;br /&gt; configure and manage all resources in the domain.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Managed Servers:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*Additional WebLogic Server instances where we deploy Java components, &lt;br /&gt; such as Web applications, EJBs, and Web services.&lt;br /&gt;&lt;br /&gt;*For production environments that require increased application performance,throughput, or high availability, you can configure &lt;br /&gt;two or more Managed Servers to operate as a cluster.&lt;br /&gt;&lt;br /&gt;*Oracle instance contains one or more system components&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding Oracle SOA Suite:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*Complete set of service infrastructure components for designing,&lt;br /&gt; deploying, and managing composite applications. &lt;br /&gt;*Enables services to be created, managed, and orchestrated into&lt;br /&gt; composite applications and business processes. &lt;br /&gt;*Composites enable you to easily assemble multiple technology &lt;br /&gt; components into one SOA composite application.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding SOA Development Challenge:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*There are various standards such as BPEL, WSDL, JCA, &lt;br /&gt; Human workflow, Rules etc in the SOA solution&lt;br /&gt;*As number of technologies increase, so does number of tools a&lt;br /&gt; and skills required to build, deploy and manage them.&lt;br /&gt;*Because each tool throws its own data, it can be&lt;br /&gt; frustrating trying to make all of them work together.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding What is needed?:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*There should be a “standardized way” by which disparate SOA components like BPEL, OSB, Adapters, Human workflow, Rules etc can work together.&lt;br /&gt;&lt;br /&gt;*They should be managed from a single console.&lt;br /&gt;&lt;br /&gt;*Logically related components should be deployable together,if possible.&lt;br /&gt;&lt;br /&gt;*This “standardized way” is a framework called &lt;span style="font-weight:bold;"&gt;SCA&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding SCA:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*Stands for Service Component Architecture&lt;br /&gt;&lt;br /&gt;*SCA proposes the concept of &lt;span style="font-weight:bold;"&gt;“Composite”&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*SCA is actually the platform on which the components come together, &lt;br /&gt; and create a composite.It is technology and vendor neutral.&lt;br /&gt;&lt;br /&gt;*SCA Programming Model provides the following&lt;br /&gt; -&gt;Creating service components written with a wide range of technologies, &lt;br /&gt;   including programming languages such as Java, BPEL, C++, and declarative languages such as XSLT. &lt;br /&gt; -&gt;The use of specific programming languages and technologies (including web   services)is not required with SCA.&lt;br /&gt; -&gt;Assembling the service components into a SOA composite application.&lt;br /&gt;   In the SCA environment,service components are the building blocks of applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; Oracle SOA Suite 11g leverages SCA&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding How Oracle SOA Suite 11g leverages SCA:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;SCA simplified the entire lifecycle:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Development&lt;/span&gt;&lt;br /&gt;-&gt;JDeveloper can be used to develop all components. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)Deployment&lt;/span&gt;&lt;br /&gt;-&gt;All components are grouped together in a composite and &lt;br /&gt;  during compilation,we get a single file called SAR.&lt;br /&gt;-&gt;SAR can be versioned as one, deployed as one and managed as one &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3)Monitoring&lt;/span&gt;&lt;br /&gt;-&gt;EM allows to trace the entire flow,giving ability to drill down into &lt;br /&gt;  components of a composite.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding Service Components:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*Service components are the building blocks that you use to&lt;br /&gt; construct a SOA composite application.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;The following service components are available:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;*BPEL&lt;/span&gt;- provide process orchestration.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;*Human Task&lt;/span&gt; =&gt;provide workflow modeling.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;*Business Rules&lt;/span&gt; =&gt;enable designing a business decision based on rules.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;*Mediators &lt;/span&gt;=&gt;route events (messages) between different components.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;*Spring&lt;/span&gt; =&gt;enables you to integrate Java interfaces into SOA composite applications&lt;br /&gt;&lt;br /&gt;-&gt;There is a corresponding service engine of the same name for each service    component. &lt;br /&gt;&lt;br /&gt;-&gt;All service engines can interact in a single composite.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Understanding Binding Components:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*Binding components establish a connection between a SOA composite and the external world. &lt;br /&gt;       &lt;br /&gt;   There are &lt;span style="font-weight:bold;"&gt;two types of binding components&lt;/span&gt; &lt;br /&gt;The following service components are available:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Services&lt;/span&gt; provide the outside world with an entry point to the SOA composite application.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)References &lt;/span&gt;enable messages to be sent from the SOA composite application to&lt;br /&gt;  external services in the outside world&lt;br /&gt;&lt;br /&gt;*There is a corresponding service engine of the same name for each service component.&lt;br /&gt; &lt;br /&gt;*All service engines can interact in a single composite.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Examples of Binding Components are:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Web service SOAP over Http:&lt;/span&gt;Use for connecting to standards-based services using SOAP&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)JCA Adapters:&lt;/span&gt;Use for integrationg services and references with technologies(like databases,file systems ftp servers)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3)B2B Binding component:&lt;/span&gt;Use for browsing B2B metadata in the MDS repository and selecting document defintions&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4)ADF -BC Service:&lt;/span&gt;Use forconnecting Oracle Application Development Framework(ADF) applications using SDO(Service Data Object) with SOA platform.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5)Oracle Applications:&lt;/span&gt;Use for integrating Oracle Application Adapter with Oracle Applications.&lt;br /&gt;&lt;br /&gt;Like these se have lot of Binding components.We have to explore each and every component in SOA Suite 11g,Design various composite applications,&lt;br /&gt;Deploy them on weblogic by using Oracle JDeveloper or Weblogic server.&lt;br /&gt;SR(Service Registry) can be useful to keep track of all the web services and orchestrating this web services using BPEL.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Happy SOA learning...&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-1719791128534829463?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/1719791128534829463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/11/oracle-soa-essential-for-soa.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1719791128534829463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1719791128534829463'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/11/oracle-soa-essential-for-soa.html' title='Oracle SOA essential for SOA Administrators and Developers'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-4577518881647049574</id><published>2011-11-25T02:57:00.000-08:00</published><updated>2012-02-10T13:21:24.867-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DBA tasks'/><category scheme='http://www.blogger.com/atom/ns#' term='INTERVIEWS'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>How to tune oracle Database?</title><content type='html'>&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Collecting and analyzing the AWR reports for Oracle Database:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hi,&lt;br /&gt;                  Tuning the Database is very much essential not only for better execution of SQL statement but also for applications running well using that Database.AWR(Automatic workload repository) report gives us clear picture in Deciding and tuning Database as well as SQL statement.As Enterprise Manager we can see it easily but Enterprise manager needs license(additional cost) so some companies does not want to use Oracle Enterprise Manager.Oracle gives us flexible option in which we can generated awr report in html and plain format.&lt;br /&gt;It is better to generate in html format for seeing it clearly by using any web browser.Since performance tuning is a deep ocean I will be updating this thread based on my problems faced and the method which work fine for tuning purpose.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Collecting awr report from SQL prompt:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;           Login to the Database as 'sys' user(SYSDBA) and make sure Database is up &amp; running and Oracle Environment for the particular Database&lt;br /&gt;is set.we can gather the awr report using 'awrrpt.sql'.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;If we want the awr report in Oracle RAC environment than we have to use 'awrgrpt.sql' script,as there you have to gather the report for multiple instances running on various nodes.&lt;br /&gt;&lt;br /&gt;SQL&gt; select name from v$database;&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;---------&lt;br /&gt;TESTDB&lt;br /&gt;&lt;br /&gt;SQL&gt; select status from v$instance;&lt;br /&gt;&lt;br /&gt;STATUS&lt;br /&gt;------------&lt;br /&gt;OPEN&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;span style="font-weight:bold;"&gt;@?/rdbms/admin/awrrpt.sql&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Current Instance&lt;br /&gt;~~~~~~~~~~~~~~~~&lt;br /&gt;&lt;br /&gt;   DB Id    DB Name      Inst Num Instance&lt;br /&gt;----------- ------------ -------- ------------&lt;br /&gt; 3628069655 TESTDB             1 TESTDB&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Specify the Report Type&lt;br /&gt;~~~~~~~~~~~~~~~~~~~~~~~&lt;/span&gt;&lt;br /&gt;Would you like an HTML report, or a plain text report?&lt;br /&gt;Enter 'html' for an HTML report, or 'text' for plain text&lt;br /&gt;Defaults to 'html'&lt;br /&gt;Enter value for report_type: html&lt;br /&gt;&lt;br /&gt;Type Specified:  html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Instances in this Workload Repository schema&lt;br /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   DB Id     Inst Num DB Name      Instance     Host&lt;br /&gt;------------ -------- ------------ ------------ ------------&lt;br /&gt;* 3628069655        1 TESTDB      TESTDB      TESTNODE1.comp.com&lt;br /&gt;                                               &lt;br /&gt;                                                &lt;br /&gt;&lt;br /&gt;Using 3628069655 for database Id&lt;br /&gt;Using          1 for instance number&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Specify the number of days of snapshots to choose from&lt;br /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/span&gt;&lt;br /&gt;Entering the number of days (n) will result in the most recent&lt;br /&gt;(n) days of snapshots being listed.  Pressing &lt;return&gt; without&lt;br /&gt;specifying a number lists all completed snapshots.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Enter value for num_days: 1&lt;br /&gt;&lt;br /&gt;Listing the last day's Completed Snapshots&lt;br /&gt;&lt;br /&gt;                                                        Snap&lt;br /&gt;Instance     DB Name        Snap Id    Snap Started    Level&lt;br /&gt;------------ ------------ --------- ------------------ -----&lt;br /&gt;TESTDB      TESTDB           5590 24 Nov 2011 00:30      1&lt;br /&gt;                               5591 24 Nov 2011 01:30      1&lt;br /&gt;                               5592 24 Nov 2011 02:30      1&lt;br /&gt;                               5593 24 Nov 2011 03:30      1&lt;br /&gt;                               5594 24 Nov 2011 04:30      1&lt;br /&gt;                               5595 24 Nov 2011 05:30      1&lt;br /&gt;                               5596 24 Nov 2011 06:30      1&lt;br /&gt;                               5597 24 Nov 2011 07:30      1&lt;br /&gt;                               5598 24 Nov 2011 08:30      1&lt;br /&gt;                               5599 24 Nov 2011 09:30      1&lt;br /&gt;                               5600 24 Nov 2011 10:30      1&lt;br /&gt;                               5601 24 Nov 2011 11:30      1&lt;br /&gt;                               5602 24 Nov 2011 12:30      1&lt;br /&gt;                               5603 24 Nov 2011 13:30      1&lt;br /&gt;                               5604 24 Nov 2011 14:30      1&lt;br /&gt;                               5605 24 Nov 2011 15:30      1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Specify the Begin and End Snapshot Ids&lt;br /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/span&gt;&lt;br /&gt;Enter value for begin_snap: 5604&lt;br /&gt;Begin Snapshot Id specified: 5604&lt;br /&gt;&lt;br /&gt;Enter value for end_snap: 5605&lt;br /&gt;End   Snapshot Id specified: 5605&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Specify the Report Name&lt;br /&gt;~~~~~~~~~~~~~~~~~~~~~~~&lt;/span&gt;&lt;br /&gt;The default report file name is awrrpt_1_5604_5605.html.  To use this name,&lt;br /&gt;press &lt;return&gt; to continue, otherwise enter an alternative.&lt;br /&gt;&lt;br /&gt;Enter value for report_name: awrrpt_NOV24_2011_2_30_3_30_PM.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; exit&lt;br /&gt;          We will see the html format of the awr report in the current operating system path.&lt;br /&gt;&lt;br /&gt;[oracle@TESTNODE1 ~]$ ls -altr awr*&lt;br /&gt;-rw-r--r-- 1 oracle dba 458371 Nov 24 14:02 awrrpt_1_5590_5603.html&lt;br /&gt;-rw-r--r-- 1 oracle dba 390564 Nov 24 16:31 awrrpt_NOV24_2011_2_30_3_30_PM.html&lt;br /&gt;&lt;br /&gt;                  We can copy this html file using copying tool(winscp or ftp) to our machine and review using web browsers(mozilla or IE supported&lt;br /&gt;versions).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Analzing the awr report and suggesting possible recommendations:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;            Once we obtain the awr report our main motive is to analyze the awr report and come up with possible recommendations.Depending&lt;br /&gt;on the size of our Production Database we can come up with possible recommendations.This recommendation should be first implemented in&lt;br /&gt;test environment and after successful results should be adopted in production environments.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1) Redo logs:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We need to make sure our redo logs are large enough.Check the number of log switches, one every twenty minutes is ideal, more than this is too high and you should make them larger to reduce the number of switches.&lt;br /&gt;&lt;br /&gt;We can find the log switches in the Instance Activity Stats part of the awr report.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Instance Activity Stats - Thread Activity&lt;br /&gt;&lt;br /&gt;    * Statistics identified by '(derived)' come from sources other than SYSSTAT&lt;br /&gt;&lt;br /&gt;Statistic       Total per Hour&lt;br /&gt;log switches (derived) 2 2.00&lt;br /&gt;&lt;br /&gt;We can see in this system there are 2 log swtiches per hourly basis,which is good.So this tells us the redo logs are large enough.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)Parsing:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Check the hard parsing amount.It should be zero.If it is not, this indicates that our SGA is probably too small,increase the size of SGA and test again.  &lt;br /&gt;Hard parsing is caused by use of literals in SQL (as opposed to bind variables).If the queries in question are our own,we should change them to use bind variables.&lt;br /&gt;&lt;br /&gt;We can find this information on the first page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Load Profile              Per Second    Per Transaction   Per Exec   Per Call&lt;br /&gt;~~~~~~~~~~~~         ---------------    --------------- ---------- ----------&lt;br /&gt;...&lt;br /&gt;          Parses:               33.9                7.2&lt;br /&gt;     Hard parses:                0.5                0.1&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;We can see in this system the hard parses is almost zero, which is good.&lt;br /&gt;&lt;br /&gt;Now coming to the SGA we can focus on the below considerations:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3)Buffer hit and Library hit percentages:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Check the buffer hit and library hit percentages.  We want them to be 100%, if not we should increase the size of SGA.This is also on the first page:&lt;br /&gt;&lt;br /&gt;Instance Efficiency Percentages (Target 100%)&lt;br /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;            Buffer Nowait %:   99.82       Redo NoWait %:  100.00&lt;br /&gt;            Buffer  Hit   %:   99.52    In-memory Sort %:  100.00&lt;br /&gt;            Library Hit   %:   98.63        Soft Parse %:   98.60&lt;br /&gt;         Execute to Parse %:   50.96         Latch Hit %:   98.16&lt;br /&gt;Parse CPU to Parse Elapsd %:   66.67     % Non-Parse CPU:   97.75&lt;br /&gt;&lt;br /&gt;In this case they are also good.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4)Top 5 Timed Foreground Events:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Check the average wait times.Anything over 5ms indicates a problem.If we see database CPU events in the Top 5, this indicates that SGA is too small.We may also be missing indexes.Check the optimizer statistics.&lt;br /&gt;&lt;br /&gt;Here are the Top 5 from my environment:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Top 5 Timed Foreground Events&lt;br /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/span&gt;&lt;br /&gt;                                                           Avg&lt;br /&gt;                                                          wait   % DB&lt;br /&gt;Event                                 Waits     Time(s)   (ms)   time Wait Class&lt;br /&gt;------------------------------ ------------ ----------- ------ ------ ----------&lt;br /&gt;DB CPU                                               15          59.9&lt;br /&gt;log file sync                         1,592           8      5   32.3 Commit&lt;br /&gt;sort segment request                      1           1   1001    4.0 Configurat&lt;br /&gt;db file sequential read                 216           1      4    3.6 User I/O&lt;br /&gt;db file scattered read                   64           0      6    1.5 User I/O&lt;br /&gt;&lt;br /&gt;we can see here that the major issue is DB CPU, which generally indicates SGA is too small.  However, in this case it is high because this report was run on a VM with the database and BPM sharing the CPU and disk.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Database file sequential/scattered read&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;These indicate time spent doing table scans and index scans (respectively).If these are high (over 5ms),We should consider moving your data files to reduce disk I/O contention, or move them to faster disks. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5)Enqueue high watermark:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This indicates hardware contention that occurs when there are multiple users inserting into LOB segments at once while the database is trying to reclaim unused space. &lt;br /&gt;We should consider enabling secure files to improve LOB performance (SECURE_FILES=ALWAYS).&lt;br /&gt;&lt;br /&gt;We cannot see these in my example report, because this was not a problem in my environment, so it did not make it into the Top 5.If it did, you would see an event called:enq: HW - contention&lt;br /&gt;&lt;br /&gt;Other things to be aware of…&lt;br /&gt;&lt;br /&gt;We will also check our database configuration.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6)MEMORY_TARGET:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Do not use this setting.We should have our DBA tune the memory manually instead.This will result in a better tuned database.We should start with 60% of physical memory allocated to SGA and 20% to PGA.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7)AUDIT_TRAIL:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Usually we do not use this setting much for tuning.But auditing on Database level&lt;br /&gt;can be overhead to the Database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Happy Tuning Oracle Databases ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-4577518881647049574?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/4577518881647049574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/11/how-to-tune-oracle-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/4577518881647049574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/4577518881647049574'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/11/how-to-tune-oracle-database.html' title='How to tune oracle Database?'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-8401372082701160078</id><published>2011-11-25T01:13:00.000-08:00</published><updated>2011-11-25T01:20:45.326-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Apps DBA tasks'/><category scheme='http://www.blogger.com/atom/ns#' term='Apps DBA Queries'/><category scheme='http://www.blogger.com/atom/ns#' term='INTERVIEWS'/><title type='text'>Useful Queries for Apps DBA and possible solutions</title><content type='html'>Hi,&lt;br /&gt;         Apps DBAs use lot of queries to find the useful information from the Database.I will try to list as much as I can in the below thread.&lt;br /&gt;This thread I will update continously so that It can help one and all.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;1)How to find the E-business suite login URL?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Ans:  &lt;br /&gt;SQL&gt; conn apps&lt;br /&gt;Enter password:&lt;br /&gt;Connected.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SQL&gt; select home_url from icx_parameters;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;HOME_URL&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;http://testnode1.comp.com:8000/OA_HTML/AppsLogin&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;2)How to find the release of Apps installed or version installed in our machine?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Ans:conn apps&lt;br /&gt;Enter password:&lt;br /&gt;Connected.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SQL&gt; select release_name from fnd_product_groups;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;RELEASE_NAME&lt;br /&gt;--------------------------------------------------&lt;br /&gt;12.1.1&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;3)What is Yellow Bar Warning in Apps?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt; Oracle Applications Release 11.5.1 (11i) requires that its code run in a trusted mode and uses J-Initiator to run Java applets on a desktop client. If an applet is “trusted,” however, Java will extend the privileges of the applet.The Yellow Warning Bar is a warning that your applet is not running in a trusted mode.To indicate that an applet is trusted, it must be digitally signed using a digital Certificate,so Oracle Applications requires that all Java archive files must be digitally signed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;4)How to check the custom top installled?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SQL&gt; Select BASEPATH,PRODUCT_CODE,APPLICATION_SHORT_NAME&lt;br /&gt;     From fnd_application&lt;br /&gt;     Where application_Short_name like '%CUST_TOP_name%';&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;5)How to check multi-org is enabled in Oracle applications?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SQL&gt;  select multi_org_flag from fnd_product_groups;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;M&lt;br /&gt;-&lt;br /&gt;Y&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;For enabling multi-org check the MY ORACLE SUPPORT notes 396351.1 and 220601.1&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;6)How to compile invalid objects in Oracle Applications?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;          Check the below link for all possible ways to compile the invalid objects in Oracle Application.Usually 'adadmin' utility provides us the option to do this task.&lt;br /&gt;&lt;br /&gt;http://onlineappsdba.blogspot.com/2008/05/how-to-compile-invalid-objects-in-apps.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;7)Can we install Apps Tier and Database Tier on different Operating system while installing Oracle EBS 11i/R12?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;                Yes it is possible.We can do this by following below MY ORACLE SUPPORT notes:&lt;br /&gt;&lt;br /&gt;Oracle Apps 11i --&gt; Using Oracle EBS with a Split Configuration Database Tier on 11gR2 [ID 946413.1]&lt;br /&gt;&lt;br /&gt;Oracle Apps R12 --&gt; Oracle EBS R12 with Database Tier Only Platform on Oracle Database 11.2.0 [ID 456347.1]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;8)How to find the node details in Oracle Applications?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;  FND_NODES tables in 'apps' schema helps in finding node details after installation,clonning and migration of applications.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SQL&gt; SELECT NODE_NAME||' '||STATUS ||' '||NODE_ID||' '||HOST&lt;br /&gt;     FROM FND_NODES;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;9)How to see the products installed and their versions in Oracle Applications?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SQL&gt;  SELECT   APPLICATION_ID||''||ORACLE_ID||''||PRODUCT_VERSION||''||STATUS||''||PATCH_LEVEL&lt;br /&gt;    FROM FND_PRODUCT_INSTALLATIONS;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;O/P looks like below:&lt;br /&gt;&lt;br /&gt;172 172 12.0.0 I R12.CCT.B.1&lt;br /&gt;191 191 12.0.0 I R12.BIS.B.1&lt;br /&gt;602 602 12.0.0 I R12.XLA.B.1&lt;br /&gt;805 805 12.0.0 I R12.BEN.B.1&lt;br /&gt;8302 800 12.0.0 I R12.PQH.B.1&lt;br /&gt;8303 800 12.0.0 I R12.PQP.B.1&lt;br /&gt;809 809 12.0.0 I 11i.HXC.C&lt;br /&gt;662 662 12.0.0 I R12.RLM.B.1&lt;br /&gt;663 663 12.0.0 I R12.VEA.B.1&lt;br /&gt;298 298 12.0.0 N R12.POM.B.1&lt;br /&gt;185 185 12.0.0 I R12.XTR.B.1&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;10)How to see the concurrent Requests and jobs in Oracle Applications?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;              FND_CONCURRENT_REQUESTS can be used to see the concurrent requests and job details.These details are useful&lt;br /&gt; in troubleshooting concurrent manager related issues.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SQL&gt;SELECT REQUEST_ID||' '||REQUEST_DATE||' '||REQUESTED_BY||' '||PHASE_CODE||' '||STATUS_CODE&lt;br /&gt;    FROM FND_CONCURRENT_REQUESTS;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;O/P will be as given below:&lt;br /&gt;REQUEST_ID||''||REQUEST_DATE||''||REQUESTED_BY||''||PHASE_CODE||''||STATUS_CODE&lt;br /&gt;--------------------------------------------------------------------------------------------------------&lt;br /&gt;6088454 24-NOV-11 1318 P I&lt;br /&gt;6088455 24-NOV-11 1318 P Q&lt;br /&gt;6088403 24-NOV-11 0 C C&lt;br /&gt;6088410 24-NOV-11 0 C C&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Where:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PHASE_CODE&lt;/span&gt; column can have values:&lt;br /&gt;C Completed&lt;br /&gt;I Inactive&lt;br /&gt;P Pending&lt;br /&gt;R Running&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;STATUS_CODE&lt;/span&gt; Column can have values:&lt;br /&gt;A Waiting&lt;br /&gt;B Resuming&lt;br /&gt;C Normal&lt;br /&gt;D Cancelled&lt;br /&gt;E Error&lt;br /&gt;F Scheduled&lt;br /&gt;G Warning&lt;br /&gt;H On Hold&lt;br /&gt;I Normal&lt;br /&gt;M No Manager&lt;br /&gt;Q Standby&lt;br /&gt;R Normal&lt;br /&gt;S Suspended&lt;br /&gt;T Terminating&lt;br /&gt;U Disabled&lt;br /&gt;W Paused&lt;br /&gt;X Terminated&lt;br /&gt;Z Waiting&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;11)What is the significance of FND_INSTALL_PROCESSES and AD_DEFERRED_JOBS tables?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;   FND_INSTALL_PROCESSES and AD_DEFERRED_JOBS tables  are created and Dropped during the 'adadmin' and 'adpatch' sessions.&lt;br /&gt;    Both AD utilities (adpatch/adadmin) access the same tables to store the workers details, so both FND_INSTALL_PROCESSES and&lt;br /&gt;    AD_DEFERRED_JOBS tables need to be dropped from the failed adpatch session ,so that adadmin/adpatch session can run successfully next time.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Happy Apps DBA learning&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-8401372082701160078?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/8401372082701160078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/11/useful-queries-for-apps-dba-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8401372082701160078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8401372082701160078'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/11/useful-queries-for-apps-dba-and.html' title='Useful Queries for Apps DBA and possible solutions'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-8632641047009928488</id><published>2011-11-21T03:25:00.000-08:00</published><updated>2011-11-22T01:55:57.679-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='INTERVIEWS'/><title type='text'>DBA and APPS DBA advanced interview questions</title><content type='html'>&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;1)what is FNDLOAD?(APPS DBA interview)&lt;br /&gt;    (OR)&lt;br /&gt;How we can migrate concurrent programs of one application?(Apps DBA)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;FNDLOAD is a an Oracle utility to migrate data from one instance to another.It can be used with several different&lt;br /&gt;entities within Oracle 11i,R12 applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Usage:&lt;/span&gt; FNDLOAD logon 0 Y mode configfile datafile [ entity [ param ... ] ]&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;where:&lt;/span&gt;&lt;br /&gt;logon is username/password[@connect]&lt;br /&gt;mode is either UPLOAD or DOWNLOAD&lt;br /&gt;configfile is the configuration file&lt;br /&gt;datafile is the data file&lt;br /&gt;entity is an entity name, or - to specify all values in an upload&lt;br /&gt;param is a NAME=VALUE string used for parameter substitution&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;FNDLOAD&lt;/span&gt; can be used for lot of migration/transfering task across Oracle Applications.They are&lt;br /&gt;&lt;br /&gt;1)FNDLOAD can be used to transfer Request Groups&lt;br /&gt;2)FNDLOAD can be used for moving Concurrent Programs.&lt;br /&gt;3)FNDLOAD can be used to download and upload forms personalizations.&lt;br /&gt;4)FNDLOAD can be used to migrate Key FlexFields, Descriptive Flexfields, Responsibilities and&lt;br /&gt;almost every other FND entity&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Eg:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;##To FNDLOAD Concurrent Programs&lt;br /&gt;FNDLOAD apps/$CLIENT_APPS_PWD O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct&lt;br /&gt;XX_CUSTOM_ORACLE_INTERFACE_PROG.ldt PROGRAM APPLICATION_SHORT_NAME="XXGMS"&lt;br /&gt;CONCURRENT_PROGRAM_NAME="XX_CUSTOM_ORACLE_INTERFACE_PROG"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;2)what is SCAN with respect to RAC?(DBA interview)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans: &lt;/span&gt;Single Client Access Name (SCAN) is s a new Oracle Real Application Clusters (RAC) 11g Release 2 feature that provides&lt;br /&gt;a single name for clients to access Oracle Databases running in a cluster. The benefit is that the client’s connect information does not need to change if you add or remove nodes in the cluster. Having a single name to access the cluster allows clients to use the EZConnect client and the simple JDBC thin URL to access any database running in the cluster, independently of which server(s) in the cluster the database is active. SCAN provides load balancing and failover for client connections to the database. The SCAN works as a cluster alias for databases in the cluster.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;There are 2 options for defining the SCAN:&lt;/span&gt;&lt;br /&gt;1. Define the SCAN in your corporate DNS (Domain Name Service)&lt;br /&gt;2. Use the Grid Naming Service (GNS)&lt;br /&gt;&lt;br /&gt;In case, a 2-node-cluster is used (for which 3 IPs are still recommended for simplification reasons), one server in the cluster will host two sets of SCAN resources under normal operations. If the node where a SCAN VIP is running fails,&lt;br /&gt;the SCAN VIP and its associated listener will failover to another node in the cluster. If by means of such a failure the number of available servers in the cluster becomes less than three, one server would again host two sets of SCAN&lt;br /&gt;resources. If a node becomes available in the cluster again, the formerly mentioned dispersion will take effect and&lt;br /&gt;relocate one set accordingly.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Configuring SCAN:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#srvctl config scan_listener&lt;br /&gt;#srvctl config scan&lt;br /&gt;&lt;br /&gt;For Oracle Database 11g Release 2, SCAN is an essential part of the configuration and therefore the&lt;br /&gt;REMOTE_LISTENER parameter is set to the SCAN per default, assuming that the database is created using standard Oracle tools (e.g. the formerly mentioned DBCA).This allows the instances to register with the SCAN Listeners as remote listeners to provide information on what services are being provided by the instance, the current load, and a recommendation on how many incoming connections should be directed to the instance.&lt;br /&gt;In this context, the LOCAL_LISTENER parameter must be considered. The LOCAL_LISTENER parameter should&lt;br /&gt;be set to the node-VIP.&lt;br /&gt;&lt;br /&gt;Eg:&lt;br /&gt;&lt;br /&gt;local_listener=&gt;(DESCRIPTION=(ADDRESS_LIST=(AD&lt;br /&gt;DRESS=(PROTOCOL=TCP)(HOST=133.&lt;br /&gt;22.67.111)(PORT=1521))))&lt;br /&gt;remote_listener=&gt;sales1-scan.example.com:1521&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; ThE example Oracle 11g Release 2 client using a default TNSNAMES. ora will be as follows:&lt;br /&gt;&lt;br /&gt;ORCLservice =&lt;br /&gt;(DESCRIPTION =&lt;br /&gt;(ADDRESS = (PROTOCOL = TCP)(HOST=sales1-scan.example.com)(PORT=1521))&lt;br /&gt;(CONNECT_DATA =&lt;br /&gt;(SERVER = DEDICATED)&lt;br /&gt;(SERVICE_NAME =MYORCLservice)&lt;br /&gt;))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;3)How in R12 Jinitiator is placed?(APPS DBA interview)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;&lt;br /&gt;In App 11i, in context file we see s_sun_plugin_type set to &lt;span style="font-weight:bold;"&gt;jinit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Where as,In App R12 it is set to &lt;span style="font-weight:bold;"&gt;jdk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In Context.xml file we will find the line as given below in Apps R12&lt;br /&gt;&lt;br /&gt;&lt;sun_plugin_ver oa_var="s_sun_plugin_ver"&gt;1.6.0_07&lt;/sun_plugin_ver&gt;&lt;br /&gt;&lt;sun_plugin_type oa_var="s_sun_plugin_type"&gt;jdk&lt;/sun_plugin_type&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;4)What are the background process in Dataguard physical standby setup and Logical standby setup?(DBA interview)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans: &lt;/span&gt;In additional to Mandatory Oracle background processes,the background processes playing key role in Dataguard physical standby and Logical Standby Setup are:&lt;br /&gt;&lt;br /&gt;1)ARC0  Archiver Process on Local Server&lt;br /&gt;2)ARCH  Archiver&lt;br /&gt;3)ASYNC Asynchronous&lt;br /&gt;4)DMON  Data Guard Monitor&lt;br /&gt;5)FAL  Fetch Archive Log                                 =&gt;For Pysical Standby setup&lt;br /&gt;6)LCR  Logical Change Record                             =&gt;For Logical Standby setup&lt;br /&gt;7)LGWR  Logwriter&lt;br /&gt;8)LNS  Network Server Process&lt;br /&gt;9)LSP  Logical Standby Process (SQL Apply for Logical DG)=&gt;For Logical Standby setup&lt;br /&gt;10)MRP  Managed Recovery Process (Redo Apply for Physical DG)=&gt;For Pysical Standby setup&lt;br /&gt;11)RFS  Remote File Server&lt;br /&gt;12)SYNC Synchronous&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;5)Which background process is responsible for recovery processes in physical standby database?(DBA interview)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt; MRP(Managed recovery process) is responsible for recovery process in physical standby Database in a Dataguard Configuration.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;6)which background process is responsible for recovery in logical standby database?(DBA interview)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;LSP(Logical standby process) is responsible for recovery in logical standby database in a Dataguard configuration.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;7)What we should do if when applying patch the adpatch utility fails and Now you want to use adadmin/adpatch utility again?&lt;/span&gt;&lt;/span&gt; &lt;span style="font-weight:bold;"&gt;(Apps DBA)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans: &lt;/span&gt;     Both AD utilities (adpatch/adadmin) access the same tables to store the workers details, so both &lt;span style="font-weight:bold;"&gt;FND_INSTALL_PROCESSES &lt;/span&gt;and &lt;span style="font-weight:bold;"&gt;AD_DEFERRED_JOBS&lt;/span&gt; tables need to be dropped from the failed adpatch session ,so that adadmin/adpatch session can run successfully next time.         &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Happy Interviews&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-8632641047009928488?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/8632641047009928488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/11/dba-and-apps-dba-advanced-interview.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8632641047009928488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8632641047009928488'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/11/dba-and-apps-dba-advanced-interview.html' title='DBA and APPS DBA advanced interview questions'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-2991750776556782817</id><published>2011-11-01T03:54:00.000-07:00</published><updated>2011-11-01T09:12:56.872-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Errors'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle SOA tasks'/><title type='text'>MDS-01370: MetadataStore configuration for metadata-store-usage "soa-infra-store" is invalid</title><content type='html'>Hi,&lt;br /&gt;  In Windows 7 OS we might face an issue where SOA_INFRA is down even after starting SOA managed server,In this case we need to be aware of the below error.This error can be resolved as given below.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;MDS-01370:&lt;/span&gt;&lt;/span&gt; MetadataStore configuration for metadata-store-usage "soa-infra-store" is invalid&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Error Message:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Caused By: oracle.mds.exception.MDSExceptionList: MDS-01329: unable to load element "persistence-config"&lt;br /&gt;MDS-01370: MetadataStore configuration for metadata-store-usage "soa-infra-store" is invalid.&lt;br /&gt;ORA-04063: package body "DEV_MDS.MDS_INTERNAL_SHREDDED" has errors&lt;br /&gt;ORA-06508: PL/SQL: could not find program unit being called: "DEV_MDS.MDS_INTERNAL_SHREDDED"&lt;br /&gt;ORA-06512: at line 1&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Resolution:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 1: Uninstall the XE Database by launching Oracle XE graphical utility&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 2:Install the XE Database&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 3:Set the Oracle Environment variables 'RCU_JDBC_TRIM_BLOCKS=TRUE' &lt;br /&gt;and Go to the repository creation utility Home(rcuHome) and BIN path and execute the rcu.bat batch file&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;C:\Users\RafiAlvi&gt;set &lt;span style="font-weight:bold;"&gt;RCU_JDBC_TRIM_BLOCKS=TRUE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;C:\Users\RafiAlvi&gt;cd D:\Rafi_docs\Oracle_SOA_INSTALL\ofm_rcu_win_11.1.1.4.0_disk1_1of1\rcuHome\BIN&lt;br /&gt;&lt;br /&gt;C:\Users\RafiAlvi&gt;D:&lt;br /&gt;&lt;br /&gt;D:\Rafi_docs\Oracle_SOA_INSTALL\ofm_rcu_win_11.1.1.4.0_disk1_1of1\rcuHome\BIN&gt;rcu.bat&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 4:Drop all the Schema owner and Tablespaces and &lt;br /&gt;then run RCU again to Re-create the SOA Suite schemas and tablespaces.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;The list of Component,Schema Owner and Tablespaces are given below:&lt;br /&gt;         &lt;br /&gt;Component                   Schema Owner              Tablespaces&lt;br /&gt;SOA Infrasture              DEV_SOAINFRA             DEV_SOAINFRA&lt;br /&gt;BAM                         DEV_ORABAM               DEV_ORABAM&lt;br /&gt;UserMessaging service       DEV_ORASDPM              DEV_IAS_ORASDPM&lt;br /&gt;  &lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 5:Find and compile the Invalid objects in the XE Database&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; COLUMN object_name FORMAT A30&lt;br /&gt;SQL&gt; SELECT owner,&lt;br /&gt;            object_type,&lt;br /&gt;            object_name,&lt;br /&gt;            status&lt;br /&gt;     FROM   dba_objects&lt;br /&gt;     WHERE  status = 'INVALID'&lt;br /&gt;     ORDER BY owner, object_type, object_name;&lt;br /&gt;&lt;br /&gt;OWNER                          OBJECT_TYPE&lt;br /&gt;------------------------------ -------------------&lt;br /&gt;OBJECT_NAME                    STATUS&lt;br /&gt;------------------------------ -------&lt;br /&gt;DEV_ESS                        PACKAGE BODY&lt;br /&gt;ESSPURGE                       INVALID&lt;br /&gt;&lt;br /&gt;DEV_ESS                        PROCEDURE&lt;br /&gt;CLOSE_FILE                     INVALID&lt;br /&gt;&lt;br /&gt;DEV_ESS                        PROCEDURE&lt;br /&gt;DEBUG_PURGE                    INVALID&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OWNER                          OBJECT_TYPE&lt;br /&gt;------------------------------ -------------------&lt;br /&gt;OBJECT_NAME                    STATUS&lt;br /&gt;------------------------------ -------&lt;br /&gt;DEV_ESS                        PROCEDURE&lt;br /&gt;LOG_ERROR                      INVALID&lt;br /&gt;&lt;br /&gt;DEV_ESS                        PROCEDURE&lt;br /&gt;LOG_MESSAGE                    INVALID&lt;br /&gt;&lt;br /&gt;DEV_ESS                        PROCEDURE&lt;br /&gt;WRITE_LINE                     INVALID&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OWNER                          OBJECT_TYPE&lt;br /&gt;------------------------------ -------------------&lt;br /&gt;OBJECT_NAME                    STATUS&lt;br /&gt;------------------------------ -------&lt;br /&gt;DEV_SOAINFRA                   PROCEDURE&lt;br /&gt;PURGE_B2B_INSTANCES_DOWN       INVALID&lt;br /&gt;&lt;br /&gt;DEV_SOAINFRA                   PROCEDURE&lt;br /&gt;PURGE_RUNTIME_WITH_TIMEOUT     INVALID&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;8 rows selected.&lt;br /&gt;&lt;br /&gt;SQL&gt; conn DEV_SOAINFRA&lt;br /&gt;Enter password:&lt;br /&gt;Connected.&lt;br /&gt;SQL&gt; ALTER PROCEDURE PURGE_B2B_INSTANCES_DOWN COMPILE;&lt;br /&gt;&lt;br /&gt;Procedure altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER PROCEDURE PURGE_RUNTIME_WITH_TIMEOUT COMPILE;&lt;br /&gt;&lt;br /&gt;Procedure altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; CONN DEV_MDS&lt;br /&gt;Enter password:&lt;br /&gt;Connected.&lt;br /&gt;SQL&gt; EXEC DBMS_UTILITY.compile_schema(schema =&gt; 'DEV_MDS');&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 6:Now Bounce the Weblogic admin server and SOA Managed Server&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;weblogic_server_stop.bat:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;cd D:\oracle_middleware\user_projects\domains\Soa_suitedev_domain\bin&lt;br /&gt;D:&lt;br /&gt;stopWebLogic.cmd&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;weblogic_server_start.bat:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;cd D:\oracle_middleware\user_projects\domains\Soa_suitedev_domain\bin&lt;br /&gt;D:&lt;br /&gt;startWebLogic.cmd&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;soa_server_stop.bat:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;cd D:\oracle_middleware\user_projects\domains\Soa_suitedev_domain\bin&lt;br /&gt;D:&lt;br /&gt;stopManagedWeblogic.cmd soa_server1&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;soa_serve_start.bat:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;soa_server_start.bat:&lt;br /&gt;&lt;br /&gt;cd D:\oracle_middleware\user_projects\domains\Soa_suitedev_domain\bin&lt;br /&gt;D:&lt;br /&gt;startManagedWeblogic.cmd soa_server1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Happy SOA learning...&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-2991750776556782817?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/2991750776556782817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/11/mds-01370-metadatastore-configuration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2991750776556782817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2991750776556782817'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/11/mds-01370-metadatastore-configuration.html' title='MDS-01370: MetadataStore configuration for metadata-store-usage &quot;soa-infra-store&quot; is invalid'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-2723333142475341761</id><published>2011-10-25T05:15:00.000-07:00</published><updated>2011-10-25T05:22:20.329-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Errors'/><title type='text'>Resolving ORA-01652</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;Steps we can follow to resolve the error &lt;span style="font-weight:bold;"&gt;ORA-01652&lt;/span&gt; is as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Solution 1:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We can check for held TEMP segments with this query:&lt;br /&gt;SQL&gt; set linesize 1000&lt;br /&gt;SQL&gt;select&lt;br /&gt;   srt.tablespace,&lt;br /&gt;   srt.segfile#,&lt;br /&gt;   srt.segblk#,&lt;br /&gt;   srt.blocks,&lt;br /&gt;   a.sid,&lt;br /&gt;   a.serial#,&lt;br /&gt;   a.username,&lt;br /&gt;   a.osuser,&lt;br /&gt;   a.status&lt;br /&gt;from&lt;br /&gt;   v$session    a,&lt;br /&gt;   v$sort_usage srt&lt;br /&gt;where&lt;br /&gt;   a.saddr = srt.session_addr&lt;br /&gt;order by&lt;br /&gt;   srt.tablespace, srt.segfile#, srt.segblk#,&lt;br /&gt;   srt.blocks;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;TABLESPACE                        SEGFILE#    SEGBLK#     BLOCKS        SID    SERIAL# USERNAME                       OSUSER     STATUS&lt;br /&gt;------------------------------- ---------- ---------- ---------- ---------- ---------- ------------------------------ ------------------------------ --------&lt;br /&gt;TEMP                                   201     169216      70912         15          5 TEST1                          oracle     ACTIVE&lt;br /&gt;TEMP                                   201     178688        128          9       1450 TEST2                                      INACTIVE&lt;br /&gt;TEMP                                   201     240128        128        150        299 APEX_PUBLIC_USER               apex_admin INACTIVE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This command may remove a TEMP segment, try:&lt;br /&gt;&lt;br /&gt;alter tablespace xxxxx coalesce;&lt;br /&gt;&lt;br /&gt;alter tablespace TEMP coalesce;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;(OR)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Solution 2:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We can also use a drop segments event to remove temporary space from a tablespace:&lt;br /&gt;&lt;br /&gt;ALTER SESSION SET EVENTS 'immediate trace name drop_segments level &amp;x';&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;where:&lt;/span&gt;&lt;br /&gt;x is the value for file# from Tablespace.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;(OR)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Solution 3:Add the temp file for Temporary tablespace&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT FILE_NAME||' '||TABLESPACE_NAME||' '||BYTES/1024/1024&lt;br /&gt;  2   FROM DBA_TEMP_FILES;&lt;br /&gt;&lt;br /&gt;FILE_NAME||''||TABLESPACE_NAME||''||BYTES/1024/1024&lt;br /&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;/u04/TESTDB/TESTDB_temp_01.dbf TEMP 1900&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER TABLESPACE TEMP ADD TEMPFILE '/u04/TESTDB/TESTDB_temp_02.dbf' SIZE 200M;&lt;br /&gt;&lt;br /&gt;Tablespace altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT TABLESPACE_SIZE/1024/1024||' '||ALLOCATED_SPACE/1024/1024||' '||FREE_SPACE/1024/1024&lt;br /&gt;     FROM DBA_TEMP_FREE_SPACE;&lt;br /&gt;&lt;br /&gt;TABLESPACE_SIZE/1024/1024||''||ALLOCATED_SPACE/1024/1024||''||FREE_SPACE/1024/1024&lt;br /&gt;--------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;2100 1898 1519&lt;br /&gt;&lt;br /&gt;SQL&gt; select tablespace_name, total_blocks, used_blocks, free_blocks&lt;br /&gt;  2  FROM v$sort_segment;&lt;br /&gt;&lt;br /&gt;TABLESPACE_NAME                 TOTAL_BLOCKS USED_BLOCKS FREE_BLOCKS&lt;br /&gt;------------------------------- ------------ ----------- -----------&lt;br /&gt;TEMP                                  242688       74112      168576&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; set linesize 1000&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT tablespace_name, SUM(bytes_used)/1024/1024, SUM(bytes_free)/1024/1024&lt;br /&gt;     FROM V$temp_space_header&lt;br /&gt;     GROUP BY tablespace_name;&lt;br /&gt;  &lt;br /&gt;TABLESPACE_NAME                SUM(BYTES_USED)/1024/1024 SUM(BYTES_FREE)/1024/1024&lt;br /&gt;------------------------------ ------------------------- -------------------------&lt;br /&gt;TEMP                                                1898                       202&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then,resize or add the datafile related to a Tablespace if require or add a new datafile to current tablespace&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Addind Datafile to existing Tablespace:&lt;br /&gt;ALTER TABLESPACE RMRTM ADD DATAFILE '/u05/TESTDB/RMRTM_DATA_01.DBF' SIZE 200M;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT *FROM DBA_DATA_FILES&lt;br /&gt;     WHERE TABLESPACE_NAME LIKE '%RM%';&lt;br /&gt;&lt;br /&gt;FILE_NAME                                                                                                                        FILE_ID TABLESPACE_NAME                      BYTES     BLOCKS STATUS    RELATIVE_FNO AUT   MAXBYTES  MAXBLOCKS INCREMENT_BY USER_BYTES USER_BLOCKS ONLINE_&lt;br /&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------- ------------------------------ ---------- ---------- --------- ------------ --- ---------- ---------- ------------ ---------- ----------- -------&lt;br /&gt;/u04/TESTDB/RMRTM_DATA_01.DBF                                                                                                39 RMRTM                           3221225472     393216 AVAILABLE           39 YES 3221225472     393216        12800 3220176896   393088 ONLINE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; SET LINESIZE 1000&lt;br /&gt;SQL&gt; SELECT F.TABLESPACE_NAME,&lt;br /&gt;     TO_CHAR ((T.TOTAL_SPACEF.FREE_SPACE),'999,999')"USEDMB",&lt;br /&gt;     TO_CHAR (F.FREE_SPACE, '999,999') "FREEMB",&lt;br /&gt;     TO_CHAR (T.TOTAL_SPACE, '999,999') "TOTALMB",&lt;br /&gt;     TO_CHAR ((ROUND ((F.FREE_SPACE/T.TOTAL_SPACE)*100)),'999')||' %' FREE&lt;br /&gt;     FROM (SELECT TABLESPACE_NAME,&lt;br /&gt;     ROUND (SUM (BLOCKS*(SELECT VALUE/1024&lt;br /&gt;     FROM V$PARAMETER&lt;br /&gt;     WHERE NAME = 'db_block_size')/1024) ) FREE_SPACE&lt;br /&gt;     FROM DBA_FREE_SPACE&lt;br /&gt;     GROUP BY TABLESPACE_NAME ) F,&lt;br /&gt;     (&lt;br /&gt;     SELECT TABLESPACE_NAME,&lt;br /&gt;     ROUND (SUM (BYTES/1048576)) TOTAL_SPACE&lt;br /&gt;     FROM DBA_DATA_FILES&lt;br /&gt;     GROUP BY TABLESPACE_NAME ) T&lt;br /&gt;     WHERE F.TABLESPACE_NAME = T.TABLESPACE_NAME;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;TABLESPACE_NAME                USEDMB   FREEMB   TOTALMB  FREE&lt;br /&gt;------------------------------ -------- -------- -------- ------&lt;br /&gt;&lt;br /&gt;RMRTM                             2,748      324    3,072   11 %&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt;ALTER TABLESPACE RMRTM ADD DATAFILE '/u05/TESTDB/RMRTM_DATA_01.DBF' SIZE 200M;&lt;br /&gt;&lt;br /&gt;Tablespace altered&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;(OR)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;we can resize the existing Datafile if the mount point have enough space&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;&lt;br /&gt;Resizing Datafile can be done as givne below:&lt;br /&gt;&lt;br /&gt;ALTER DATABASE DATAFILE 'D:\ORACLEXE\ORADATA\XE\USERS.DBF' RESIZE 200M;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;(OR)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Solution 4:Create a new Temporary Tablespace and make this temporary tablespace default for our Database.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 1:Create the new temporary Tablespace&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; select name from v$database;&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;---------&lt;br /&gt;TESTDB&lt;br /&gt;&lt;br /&gt;SQL&gt; select status from v$instance;&lt;br /&gt;&lt;br /&gt;STATUS&lt;br /&gt;------------&lt;br /&gt;OPEN&lt;br /&gt;&lt;br /&gt;SQL&gt; CREATE  TEMPORARY TABLESPACE TEMP02 TEMPFILE '/u05/TESTDB/TEMP02.dbf' SIZE 256M &lt;br /&gt;REUSE AUTOEXTEND ON NEXT 256M MAXSIZE 8192M EXTENT MANAGEMENT LOCAL;&lt;br /&gt;&lt;br /&gt;Tablespace created.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 2:Make this temporary tablespace default at Database level&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMP02;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Where:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;'TEMP02'&lt;/span&gt; is the DEFAULT TEMPORARY TABLESPACE name in the above case.&lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 3:Bounce our Database so that actual temporary space is release from 'temp' Tablespace and Drop tablespace 'temp' including content&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;      we have to Make sure We delete on temp data files and the actual space is recovered.&lt;br /&gt;&lt;br /&gt;SQL&gt; shut immediate&lt;br /&gt;Database closed.&lt;br /&gt;Database dismounted.&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;SQL&gt; startup&lt;br /&gt;&lt;br /&gt;ORACLE instance started.&lt;br /&gt;&lt;br /&gt;Total System Global Area 1068937216 bytes&lt;br /&gt;Fixed Size                  2220200 bytes&lt;br /&gt;Variable Size             855641944 bytes&lt;br /&gt;Database Buffers          205520896 bytes&lt;br /&gt;Redo Buffers                5554176 bytes&lt;br /&gt;Database mounted.&lt;br /&gt;Database opened.&lt;br /&gt;SQL&gt; Drop tablespace temp including contents;&lt;br /&gt;&lt;br /&gt;Tablespace dropped.&lt;br /&gt;&lt;br /&gt;SQL&gt; select *from dba_temp_files;&lt;br /&gt;&lt;br /&gt;FILE_NAME&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;   FILE_ID TABLESPACE_NAME                     BYTES     BLOCKS STATUS&lt;br /&gt;---------- ------------------------------ ---------- ---------- -------&lt;br /&gt;RELATIVE_FNO AUT   MAXBYTES  MAXBLOCKS INCREMENT_BY USER_BYTES USER_BLOCKS&lt;br /&gt;------------ --- ---------- ---------- ------------ ---------- -----------&lt;br /&gt;/u05/TESTDB/TEMP02.dbf&lt;br /&gt;         3 TEMP02                          268435456      32768 ONLINE&lt;br /&gt;           1 YES 8589934592    1048576        32768  267386880       32640&lt;br /&gt;&lt;br /&gt; Now,we can see the new Temporary tablespace is 'TEMP02' with enough free space.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;We can adopt either of one solution&lt;br /&gt;&lt;br /&gt;Hope it helps...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Happy troubleshooting...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-2723333142475341761?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/2723333142475341761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/10/resolving-ora-01652.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2723333142475341761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2723333142475341761'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/10/resolving-ora-01652.html' title='Resolving ORA-01652'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-9012452156243657711</id><published>2011-10-25T02:11:00.000-07:00</published><updated>2011-10-26T10:52:50.332-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Data Integrator'/><title type='text'>Installation and Configuring of Oracle Data Integrator on Linux</title><content type='html'>Hi,&lt;br /&gt;   There are lot of ETL tools available in the market like Informatica,Datastage...Here is one from Oracle,This tool is called ODI(Oracle Data Integrator) which is the ELT(Estraction Loading and Transformation) tool as per Oracle concepts.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Below are few steps for Installation and Configuration of ODI:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Below I'm describing the steps which I've followed to installed the Oracle Data Integrator(ODI)11g version 11.0.1.5.0 on linux platform,The Detailed step along with the installation Roadmap is given below:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Installation Roadmap:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;The following tasks provide a brief description of the Oracle Data Integrator Installation Procedure, including a description of the installable components, pre and post-installation tasks, and process flow. This tasks are can be said  as the Installation Roadmap.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Task1: Complete the installation planning requirements&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Prior to installation you must prepare your system environment for installation. Review the general installation requirements for Oracle Fusion Middleware, as well as any specific configuration requirements for Oracle Data Integrator.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Task2:Pre-requistics Software should be installed.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Install and configure an Oracle Database&lt;/span&gt;&lt;br /&gt;          Refer previous posts of mine:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;2)Install Oracle WebLogic Server:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Weblogic pre-installation steps:&lt;br /&gt;Check the below Certification matrix wls.xls to check the supported Weblogic server for&lt;br /&gt;Various Operating system.For our operating system RHEL 5.3 the supported&lt;br /&gt;Weblogic server software is 10.3.&lt;br /&gt;&lt;br /&gt;SQL&gt; select name from v$database;&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;---------&lt;br /&gt;FMWDB&lt;br /&gt;&lt;br /&gt;SQL&gt; select status from v$instance;&lt;br /&gt;&lt;br /&gt;STATUS&lt;br /&gt;------------&lt;br /&gt;OPEN&lt;br /&gt;SQL&gt; show parameter processes &lt;br /&gt;SQL&gt; alter system set processes=1000 scope=spfile; &lt;br /&gt;SQL&gt; shutdown immediate &lt;br /&gt;SQL&gt; startup &lt;br /&gt;SQL&gt; show parameter processes&lt;br /&gt;&lt;br /&gt;export FMW_HOME=$ORACLE_BASE/product/FMW&lt;br /&gt;&lt;br /&gt;[root@testnode1FMW /]# mkdir -p Middleware/SOASuite11gR1&lt;br /&gt;[root@testnode1FMW /]# chown oracle:oinstall /Middleware/SOASuite11gR1/&lt;br /&gt;[root@testnode1FMW /]# chmod -R 755 /Middleware/SOASuite11gR1/&lt;br /&gt;&lt;br /&gt;              We have to create Middleware home directory for installation FUSION MIDDLEWARE COMPONENTS in this particular by granting the ownership to the ‘oracle’ user with all the required privileges.&lt;br /&gt;&lt;br /&gt;Once your database is ready, we can install the next step, the WebLogic server. &lt;br /&gt;When you are ready to install, complete the following.&lt;br /&gt;&lt;br /&gt;I granted all the ownership to the oracle user and permission where the executable of weblogic software is present.I launched the installation on vm server&lt;br /&gt;&lt;br /&gt;#&lt;span style="font-weight:bold;"&gt;xserver +&lt;/span&gt;&lt;br /&gt;#&lt;span style="font-weight:bold;"&gt;xclock&lt;/span&gt;&lt;br /&gt;=&gt;This shoud display time,Use GUI mode for installing weblogic so that you can see the dispaly cleary..&lt;br /&gt;&lt;br /&gt;,We have entered the Fusion  Middlware  Home path which has all the ownership and permission so that ‘oracle’ user can install weblogic server here.&lt;br /&gt;&lt;br /&gt;Enter the common path like: /Middleware/&lt;br /&gt;&lt;br /&gt;In step5 Make uninformed to ‘yes’ and proceed..&lt;br /&gt;&lt;br /&gt;Choose Typical installation and proceed...&lt;br /&gt;&lt;br /&gt;click &lt;span style="font-weight:bold;"&gt;next&lt;/span&gt;...&lt;br /&gt;proceed...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;3) Install Oracle Repository Creation Utility (RCU)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; The Oracle Repository Creation Utility (RCU) allows us to create and load a Master Repository and a Work Repository in a single database schema. RCU supports only the Oracle, Microsoft SQL Server and DB2 Databases. RCU only supports a single schema containing both the Master Repository and one Work Repository. Other technologies and configurations are supported by manually creating the repositories using the Oracle Data Integrator Studio after the installation phase.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Useful pre-requistics steps:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[oracle@testnode1FMW admin]$ hostname&lt;br /&gt;testnode1FMW.apac.bosch.com&lt;br /&gt;[oracle@testnode1FMW admin]$ tnsping fmwdb&lt;br /&gt;&lt;br /&gt;TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 29-JUL-2011 18:26:23&lt;br /&gt;&lt;br /&gt;Copyright (c) 1997, 2009, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Used parameter files:&lt;br /&gt;/u01/app//product/11.2.0/dbhome_1/network/admin/sqlnet.ora&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Used TNSNAMES adapter to resolve the alias&lt;br /&gt;Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = fmwdb.apac.bosch.com)))&lt;br /&gt;TNS-12541: TNS:no listener&lt;br /&gt;[oracle@testnode1FMW admin]$ lsnrctl start&lt;br /&gt;&lt;br /&gt;LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 29-JUL-2011 18:26:30&lt;br /&gt;&lt;br /&gt;Copyright (c) 1991, 2009, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Starting /u01/app//product/11.2.0/dbhome_1/bin/tnslsnr: please wait...&lt;br /&gt;&lt;br /&gt;TNSLSNR for Linux: Version 11.2.0.1.0 - Production&lt;br /&gt;System parameter file is /u01/app//product/11.2.0/dbhome_1/network/admin/listener.ora&lt;br /&gt;Log messages written to /u01/app/diag/tnslsnr/testnode1FMW/listener/alert/log.xml&lt;br /&gt;Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))&lt;br /&gt;Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testnode1FMW.apac.bosch.com)(PORT=1521)))&lt;br /&gt;&lt;br /&gt;Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))&lt;br /&gt;STATUS of the LISTENER&lt;br /&gt;------------------------&lt;br /&gt;Alias                     LISTENER&lt;br /&gt;Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production&lt;br /&gt;Start Date                29-JUL-2011 18:26:32&lt;br /&gt;Uptime                    0 days 0 hr. 0 min. 0 sec&lt;br /&gt;Trace Level               off&lt;br /&gt;Security                  ON: Local OS Authentication&lt;br /&gt;SNMP                      OFF&lt;br /&gt;Listener Parameter File   /u01/app//product/11.2.0/dbhome_1/network/admin/listener.ora&lt;br /&gt;Listener Log File         /u01/app/diag/tnslsnr/testnode1FMW/listener/alert/log.xml&lt;br /&gt;Listening Endpoints Summary...&lt;br /&gt;  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))&lt;br /&gt;  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testnode1FMW.apac.bosch.com)(PORT=1521)))&lt;br /&gt;The listener supports no services&lt;br /&gt;The command completed successfully&lt;br /&gt;[oracle@testnode1FMW admin]$ &lt;span style="font-weight:bold;"&gt;tnsping&lt;/span&gt; fmwdb&lt;br /&gt;&lt;br /&gt;TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 29-JUL-2011 18:26:40&lt;br /&gt;&lt;br /&gt;Copyright (c) 1997, 2009, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Used parameter files:&lt;br /&gt;/u01/app//product/11.2.0/dbhome_1/network/admin/sqlnet.ora&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Used TNSNAMES adapter to resolve the alias&lt;br /&gt;Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = fmwdb.apac.bosch.com)))&lt;br /&gt;OK (30 msec)&lt;br /&gt;&lt;br /&gt;2) Please do below step in Database side,If you are installing all the Oracle Fusion Middleware products,For SOA installation alone setting open_cursors=300,but as we are installating all the Oracle Fusion middleware products we need to set open_cursors=1000.&lt;br /&gt;&lt;br /&gt;Conn “/as sysdba”  in Database.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter system set open_cursors=1000;&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;SQL&gt;  show parameter &lt;span style="font-weight:bold;"&gt;open_cursors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NAME                                 TYPE        VALUE&lt;br /&gt;------------------------------------ ----------- ------------------------------&lt;br /&gt;open_cursors                         integer     1000&lt;br /&gt;&lt;br /&gt;Now it is time to set up the database schema. &lt;br /&gt;Note: If we have installed SOA 11g before and you are not upgrading, you must drop your existing database schema before reinstalling or create a second schema for this installation. We cannot reuse an existing schema. &lt;br /&gt;&lt;br /&gt;Configure Schema using RCU&lt;br /&gt;Now create the new schema. &lt;br /&gt;&lt;br /&gt;Give the ownership and permission to ‘oracle’ user to run the repository creation utility.&lt;br /&gt;&lt;br /&gt;[root@testnode1FMW /]# chown oracle:oinstall /Reposit_create_soft/&lt;br /&gt;[root@testnode1FMW /]# chmod -R 755 /Reposit_create_soft/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@testnode1FMW Reposit_create_soft]# su - oracle&lt;br /&gt;[oracle@testnode1FMW ~]$ pwd&lt;br /&gt;/home/oracle&lt;br /&gt;[oracle@testnode1FMW ~]$ cd /Reposit_create_soft/&lt;br /&gt;[oracle@testnode1FMW Reposit_create_soft]$ ls -altr&lt;br /&gt;total 389240&lt;br /&gt;-rwxr-xr-x  1 root   root     398173821 Jul 26 18:53 ofm_rcu_linux_11.1.1.5.0_disk1_1of1.zip&lt;br /&gt;drwxr-xr-x  2 oracle oinstall      4096 Jul 27 10:36 .&lt;br /&gt;drwxr-xr-x 37 root   root          4096 Jul 28 10:26 ..&lt;br /&gt;[oracle@testnode1FMW Reposit_create_soft]$ unzip ofm_rcu_linux_11.1.1.5.0_disk1_1of1.zip&lt;br /&gt;&lt;br /&gt;[oracle@testnode1FMW /]$ cd Reposit_create_soft/&lt;br /&gt;[oracle@testnode1FMW Reposit_create_soft]$ ls -altr&lt;br /&gt;total 389244&lt;br /&gt;drwxr-xr-x 32 oracle oinstall      4096 Apr 26 05:04 rcuHome&lt;br /&gt;-rwxr-xr-x  1 root   root     398173821 Jul 26 18:53 ofm_rcu_linux_11.1.1.5.0_disk1_1of1.zip&lt;br /&gt;drwxr-xr-x 37 root   root          4096 Jul 28 10:26 ..&lt;br /&gt;drwxr-xr-x  3 oracle oinstall      4096 Jul 28 11:41 .&lt;br /&gt;[oracle@testnode1FMW Reposit_create_soft]$ cd rcuHome/&lt;br /&gt;[oracle@testnode1FMW rcuHome]$ ls&lt;br /&gt;assistants  common         inventory  jdk   lib      nls            oraInst.loc  plsql    rcu         relnotes  sqlplus  xdk&lt;br /&gt;BC4J        css            javavm     jlib  modules  oracleRoot.sh  owm          portal   rdbms       root.sh   srvm&lt;br /&gt;bin         instantclient  jdbc       ldap  network  oracore        perl         precomp  readme.htm  sqlj      util&lt;br /&gt;[oracle@testnode1FMW rcuHome]$ cd bin&lt;br /&gt;&lt;br /&gt;Go to path  ‘/Reposit_create_soft_/rcuHome/bin’ as seen in the screenshot.&lt;br /&gt;&lt;br /&gt;$ export Display&lt;br /&gt;&lt;br /&gt;On Linux(UNIX):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;./rcu&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 4:&lt;/span&gt;&lt;/span&gt; Install Oracle Data Integrator 11g&lt;br /&gt;Run Oracle Universal Installer (OUI) to install Oracle Data Integrator 11g. The Oracle Universal Installer automates many of the ODI installation and configuration tasks.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;:&lt;/span&gt;&lt;/span&gt;Create ODI_HOME directory and grant ‘oracle’ user ownership&lt;br /&gt;Create the ‘ODI_HOME’ directory.and Grant the ownership and permission to ‘oracle’ user for accessing  ‘ODI_HOME’ directory.&lt;br /&gt;[root@testnode1FMW Middleware]# cd /Middleware/&lt;br /&gt;[root@testnode1FMW Middleware]# ls&lt;br /&gt;JDev11g  SOASuite11gR1&lt;br /&gt;[root@testnode1FMW Middleware]# mkdir ODI_HOME&lt;br /&gt;[root@testnode1FMW Middleware]# chown oracle:oinstall /Middleware/ODI_HOME/&lt;br /&gt;[root@testnode1FMW Middleware]# chmod -R 755 /Middleware/ODI_HOME/&lt;br /&gt;[root@testnode1FMW Middleware]# ls&lt;br /&gt;JDev11g  ODI_HOME  SOASuite11gR1&lt;br /&gt;[root@testnode1FMW Middleware]# ls -altr&lt;br /&gt;total 24&lt;br /&gt;drwxr-xr-x 37 root   root     4096 Jul 28 10:26 ..&lt;br /&gt;drwxr-x--- 13 oracle oinstall 4096 Aug  1 14:45 SOASuite11gR1&lt;br /&gt;drwxr-xr-x  2 oracle oinstall 4096 Aug  2 18:24 JDev11g&lt;br /&gt;drwxr-xr-x  2 oracle oinstall 4096 Aug  3 12:56 ODI_HOME&lt;br /&gt;drwxr-xr-x  5 root   root     4096 Aug  3 12:56 .&lt;br /&gt;[oracle@testnode1FMW common]$ cd&lt;br /&gt;[oracle@testnode1FMW ~]$ cd /ODI_11gsoft/&lt;br /&gt;[oracle@testnode1FMW ODI_11gsoft]$ ls -altr&lt;br /&gt;total 1887820&lt;br /&gt;drwxrwxr-x  3 root   root           4096 Apr 23 09:27 Disk2&lt;br /&gt;drwxr-xr-x  5 root   root           4096 Apr 30 03:14 Disk1&lt;br /&gt;drwxr-xr-x 37 root   root           4096 Jul 28 10:26 ..&lt;br /&gt;-rw-r--r--  1 root   root     1931212170 Aug  4 11:44 ofm_odi_generic_11.1.1.5.0_disk1_1of1.zip&lt;br /&gt;drwxr-xr-x  4 oracle oinstall       4096 Aug  4 14:29 .&lt;br /&gt;[oracle@testnode1FMW ODI_11gsoft]$ su&lt;br /&gt;Password:&lt;br /&gt;[root@testnode1FMW ODI_11gsoft]# unzip ofm_odi_linux_11.1.1.5.0_32_disk1_1of1.zip&lt;br /&gt;&lt;br /&gt;Verify the JDK home before launching the installation:&lt;br /&gt;&lt;br /&gt;Our JDK home = /Middleware/SOASuite11gR1/jdk160_24&lt;br /&gt;&lt;br /&gt;Granting ‘oracle’ user ownership and permission:&lt;br /&gt;&lt;br /&gt;[root@testnode1FMW ~]# cd /ODI_11gsoft/&lt;br /&gt;[root@testnode1FMW ODI_11gsoft]# ls -altr&lt;br /&gt;total 1887820&lt;br /&gt;drwxrwxr-x  3 root   root           4096 Apr 23 09:27 Disk2&lt;br /&gt;drwxr-xr-x  5 root   root           4096 Apr 30 03:14 Disk1&lt;br /&gt;drwxr-xr-x 37 root   root           4096 Jul 28 10:26 ..&lt;br /&gt;-rw-r--r--  1 root   root     1931212170 Aug  4 11:44 ofm_odi_generic_11.1.1.5.0                                             _disk1_1of1.zip&lt;br /&gt;drwxr-xr-x  4 oracle oinstall       4096 Aug  4 14:29 .&lt;br /&gt;[root@testnode1FMW ODI_11gsoft]# chown -R oracle:oinstall /ODI_11gsoft/Disk1&lt;br /&gt;[root@testnode1FMW ODI_11gsoft]# chown -R oracle:oinstall /ODI_11gsoft/Disk2&lt;br /&gt; [root@testnode1FMW ODI_11gsoft]# ls -altr&lt;br /&gt;total 1887820&lt;br /&gt;drwxrwxr-x  3 oracle oinstall       4096 Apr 23 09:27 Disk2&lt;br /&gt;drwxr-xr-x  5 oracle oinstall       4096 Apr 30 03:14 Disk1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Login as &lt;span style="font-weight:bold;"&gt;‘oracle’&lt;/span&gt; user for launching the ODI 11g installation.&lt;br /&gt;&lt;br /&gt;- Download the Oracle Data Integrator 11g and start the installer.&lt;br /&gt;- Note: JDK home = /Middleware/SOASuite11gR1/jdk160_24&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Next&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- ODI step 2 : Select the ODI components to install. ODI Studio is the main component.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Select the components which you want…Select All for complete installations..&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Next&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Next&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note: An Application server should already be installed,We had installed Weblogic server in the same path.&lt;br /&gt;&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Next&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Select the Configure Repositories option, to configure the ODI Studio and the Stand Alone Agent with an existing Master and Work repositories pair.&lt;br /&gt;&lt;br /&gt;Provide the Database Connection information&lt;br /&gt;Enter     User:DEV_ODI_REPO =&gt;User used for odi metadata repository in Database ‘FMWDB’&lt;br /&gt;&lt;br /&gt;Pass:welcome123&lt;br /&gt;&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Next&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Create the SUPERVISOR password&lt;br /&gt;ODI Pass:welcome123&lt;br /&gt;&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Next&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note: &lt;/span&gt;If we are installing agent we can provide the installation information as Agent=ODI_AGENT and Port:20910(Default port)=&gt;This is the port which Agent will be listening…&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Select the WorkRepository created with RCU &lt;br /&gt;&lt;br /&gt;I created one response file in /home/oracle directory to review installation steps later&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Install&lt;/span&gt;  to install ODI 11g&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Our ODI 11g installation and Configuration is successful &lt;br /&gt;&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Next&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;I created the configuration file to refer later.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Click OK&lt;br /&gt;Click Finish….&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps...&lt;br /&gt;&lt;br /&gt;Happy ODI learning&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-9012452156243657711?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/9012452156243657711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/10/installation-and-configuring-of-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/9012452156243657711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/9012452156243657711'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/10/installation-and-configuring-of-oracle.html' title='Installation and Configuring of Oracle Data Integrator on Linux'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-2303520189145423610</id><published>2011-10-18T10:40:00.000-07:00</published><updated>2011-10-18T11:11:32.118-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DBA tasks'/><title type='text'>HOW TO RESOLVE ROW-CHAINING</title><content type='html'>We know the row-chaining happen,when a row that is too large cannot  fit on a single block.  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Eg:&lt;/span&gt; If we have a 2k blocksize but our row size is 4k, we will use 3 blocks to store that row in pieces. &lt;br /&gt; &lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Row-chaining can occur because of below reasons:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1)A table have a long/long raw Data types in some cases&lt;br /&gt;2) A table's  rowsize exceeds the blocksize and&lt;br /&gt;3)Any table with more then 255 columns &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;We can resolve ROW-CHAINING by following below 2 steps:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step:1.FIND OUT IF ROW-CHAINING IS OCCURING&lt;/span&gt;&lt;/span&gt;.&lt;br /&gt; $sqlplus scott/tiger&lt;br /&gt;SQL&gt;exec dbms_stats.gather_schema_stat(‘scott’)&lt;br /&gt; OR&lt;br /&gt;SQL&gt;exec dbms_stat.gather_table_stat('scott','emp')&lt;br /&gt;SQL&gt;select chaint_cnt from user_tables where TABLE_NAME='EMP';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;NOTE:&lt;/span&gt; Any non-zero value means there is row-chaining.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 2:RESOLVE THE CHAINING&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; RUN THE FOLLOWING COMMAND TO CREATE chained_rows table.&lt;br /&gt;&lt;br /&gt;$sqlplus "/as sysdba"&lt;br /&gt;&lt;br /&gt;SQL&gt;@$ORACLE_HOME/rdbms/admin/utlchain.sql&lt;br /&gt;&lt;br /&gt;SQL&gt;ANALYZE TABLE EMP LIST CHAINED ROWS INTO CHAINED_ROWS;&lt;br /&gt;&lt;br /&gt;SQL&gt;create table temp_emp as &lt;br /&gt;    Select * from emp&lt;br /&gt;    Where rowid in (select HEAD_ROWID from chained_rows&lt;br /&gt;    where   TABLE_NAME= ‘EMP’;&lt;br /&gt;&lt;br /&gt;SQL&gt;DELETE FROM EMP WHERE ROWID IN(&lt;br /&gt;    select HEAD_ROWID from chained_rows &lt;br /&gt;    where TABLE_NAME= ‘EMP’);&lt;br /&gt;&lt;br /&gt;SQL&gt;INSERT INTO EMP SELECT * FROM TEMP_EMP;&lt;br /&gt;&lt;br /&gt;SQL&gt;DROP TABLE TEM-_EMP;&lt;br /&gt;SQL&gt;DROP TABLE CHAINED_ROWS;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;Remember,ROW CHAINING occurs because of UPDATE operations and not because of INSERT operations.&lt;br /&gt;&lt;br /&gt;Hope it helps...&lt;br /&gt;&lt;br /&gt;  Happy Oracle DBA learning&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;br /&gt;&lt;br /&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-2303520189145423610?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/2303520189145423610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/10/how-to-resolve-row-chaining.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2303520189145423610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2303520189145423610'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/10/how-to-resolve-row-chaining.html' title='HOW TO RESOLVE ROW-CHAINING'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-1777622358337033672</id><published>2011-10-14T03:41:00.000-07:00</published><updated>2011-10-14T03:57:24.249-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='expdp/impdp'/><category scheme='http://www.blogger.com/atom/ns#' term='DBA tasks'/><category scheme='http://www.blogger.com/atom/ns#' term='Database Refresh'/><title type='text'>Refreshing schemas in oracle Databases</title><content type='html'>Hi,&lt;br /&gt;    Schema refresh task might be regular for DBA's working on Database migration project.Schema refresh is done to make our production Database data in sync with developmnent,test and performance environment.&lt;br /&gt;&lt;br /&gt;Below I'm describing one such task.Lot of time we might need to do a set of schemas so it is very important we make a document or plan for doing this task effectively.In the below task we have 2 environments .&lt;span style="font-weight:bold;"&gt;PRODDB(production)&lt;/span&gt; and &lt;span style="font-weight:bold;"&gt;TESTDB(test)&lt;/span&gt;.I'm refreshing &lt;span style="font-weight:bold;"&gt;TESTDB&lt;/span&gt; by taking Data from &lt;span style="font-weight:bold;"&gt;PRODB&lt;/span&gt;,here only one schema is refreshed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Source side:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Preparatory Steps:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;       Create directory or use an exiting directory by giving read and write permission for 'system' Database user to use that direcotry(TEST_MIG).&lt;br /&gt;&lt;br /&gt;SQL&gt; grant read,write on directory  TEST_MIG to system;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter user system identified by TESTDBdba account unlock;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PRODDB:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 1:Exporting the Data from the source Database(PRODDB in our case)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;vi expdp_refresh_schema_sep27.sh&lt;br /&gt;&lt;br /&gt;$ &lt;span style="font-weight:bold;"&gt;expdp&lt;/span&gt; system/PRODDB@PRODDB DUMPFILE=REFRESH_SCHEMA.DMP DIRECTORY=DATA_PUMP_DIR SCHEMAS=REFRESH_SCHEMA LOGFILE=REFRESH_SCHEMA.log&lt;br /&gt;&lt;br /&gt;$ &lt;span style="font-weight:bold;"&gt;nohup&lt;/span&gt; sh expdp_refresh_schema_sep27.sh&gt;refresh_schema.out &amp;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 2:Copying the dump file(Source Data) to Target Database server&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;              We can use 'winscp' tool(A graphical utility for copying files from windows to linux or viceversa) or ftp or scp or tar or rsync for coping Data from source server to target server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 3:Moving Data into the target Database&lt;/span&gt;.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$ &lt;span style="font-weight:bold;"&gt;impdp&lt;/span&gt; system/TESTDBdba@TESTDB DUMPFILE=REFRESH_SCHEMA.DMP DIRECTORY=TEST_MIG REMAP_SCHEMA=REFRESH_SCHEMA:REFRESH_SCHEMA LOGFILE=REFRESH_SCHEMA.log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 4:Verify the Data in Source and Target Databases.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;&lt;br /&gt;In oracle 11g rel2,version:11.2.0.1.0 there are about &lt;span style="font-weight:bold;"&gt;44&lt;/span&gt; Distinct object_types comparing to previous versions this number is huge.&lt;br /&gt;&lt;br /&gt;SQL&gt; select *from v$version;&lt;br /&gt;&lt;br /&gt;BANNER&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production&lt;br /&gt;PL/SQL Release 11.2.0.1.0 - Production&lt;br /&gt;CORE    11.2.0.1.0      Production&lt;br /&gt;TNS for Linux: Version 11.2.0.1.0 - Production&lt;br /&gt;NLSRTL Version 11.2.0.1.0 - Production&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; select distinct object_type from dba_objects;&lt;br /&gt;&lt;br /&gt;OBJECT_TYPE&lt;br /&gt;-------------------&lt;br /&gt;EDITION&lt;br /&gt;INDEX PARTITION&lt;br /&gt;CONSUMER GROUP&lt;br /&gt;SEQUENCE&lt;br /&gt;TABLE PARTITION&lt;br /&gt;SCHEDULE&lt;br /&gt;QUEUE&lt;br /&gt;RULE&lt;br /&gt;JAVA DATA&lt;br /&gt;PROCEDURE&lt;br /&gt;OPERATOR&lt;br /&gt;&lt;br /&gt;OBJECT_TYPE&lt;br /&gt;-------------------&lt;br /&gt;LOB PARTITION&lt;br /&gt;DESTINATION&lt;br /&gt;WINDOW&lt;br /&gt;SCHEDULER GROUP&lt;br /&gt;DATABASE LINK&lt;br /&gt;LOB&lt;br /&gt;PACKAGE&lt;br /&gt;PACKAGE BODY&lt;br /&gt;LIBRARY&lt;br /&gt;PROGRAM&lt;br /&gt;RULE SET&lt;br /&gt;&lt;br /&gt;OBJECT_TYPE&lt;br /&gt;-------------------&lt;br /&gt;CONTEXT&lt;br /&gt;TYPE BODY&lt;br /&gt;JAVA RESOURCE&lt;br /&gt;XML SCHEMA&lt;br /&gt;TRIGGER&lt;br /&gt;JOB CLASS&lt;br /&gt;UNDEFINED&lt;br /&gt;DIRECTORY&lt;br /&gt;MATERIALIZED VIEW&lt;br /&gt;TABLE&lt;br /&gt;INDEX&lt;br /&gt;&lt;br /&gt;OBJECT_TYPE&lt;br /&gt;-------------------&lt;br /&gt;SYNONYM&lt;br /&gt;VIEW&lt;br /&gt;FUNCTION&lt;br /&gt;JAVA CLASS&lt;br /&gt;JAVA SOURCE&lt;br /&gt;INDEXTYPE&lt;br /&gt;CLUSTER&lt;br /&gt;TYPE&lt;br /&gt;RESOURCE PLAN&lt;br /&gt;JOB&lt;br /&gt;EVALUATION CONTEXT&lt;br /&gt;&lt;br /&gt;44 rows selected.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Source Database:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;PRODDB:&lt;br /&gt;---------&lt;br /&gt;&lt;br /&gt;SQL&gt; select count(*) from dba_objects&lt;br /&gt;     where owner='REFRESH_SCHEMA';&lt;br /&gt;&lt;br /&gt;  COUNT(*)&lt;br /&gt;----------&lt;br /&gt;       132&lt;br /&gt;&lt;br /&gt;SQL&gt; select count(*) from dba_tables&lt;br /&gt;    where owner='REFRESH_SCHEMA';&lt;br /&gt;&lt;br /&gt;  COUNT(*)&lt;br /&gt;----------&lt;br /&gt;        34&lt;br /&gt;&lt;br /&gt;SELECT COUNT(*) FROM DBA_OBJECTS &lt;br /&gt;WHERE OWNER='REFRESH_SCHEMA' &lt;br /&gt;AND OBJECT_TYPE IN('TABLE','JOB','VIEW','PACKAGE','TRIGGER','SYNONYM','FUNCTION','PROCEDURE','TYPE')&lt;br /&gt;ORDER BY OBJECT_TYPE;&lt;br /&gt;SQL&gt; SELECT COUNT(*) FROM DBA_OBJECTS&lt;br /&gt;WHERE OWNER='REFRESH_SCHEMA'&lt;br /&gt;AND OBJECT_TYPE IN('TABLE','JOB','VIEW','PACKAGE','TRIGGER','SYNONYM','FUNCTION','PROCEDURE','TYPE')&lt;br /&gt;ORDER BY OBJECT_TYPE;&lt;br /&gt;  2    3    4&lt;br /&gt;  COUNT(*)&lt;br /&gt;----------&lt;br /&gt;        62&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT COUNT(*) FROM DBA_OBJECTS &lt;br /&gt;WHERE OWNER='REFRESH_SCHEMA' &lt;br /&gt;AND OBJECT_TYPE IN&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;TARGET DATABASE:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;TESTDB:&lt;br /&gt;-------------&lt;br /&gt;SQL&gt; select count(*) from dba_objects&lt;br /&gt;     where owner='REFRESH_SCHE';  2&lt;br /&gt;&lt;br /&gt;  COUNT(*)&lt;br /&gt;----------&lt;br /&gt;       131&lt;br /&gt;&lt;br /&gt;SQL&gt; select count(*) from dba_tables&lt;br /&gt;    where owner='APEX4_DEV';  2&lt;br /&gt;&lt;br /&gt;  COUNT(*)&lt;br /&gt;----------&lt;br /&gt;        34&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT COUNT(*) FROM DBA_OBJECTS&lt;br /&gt;WHERE OWNER='REFRESH_SCHEMA'&lt;br /&gt;AND OBJECT_TYPE IN('TABLE','JOB','VIEW','PACKAGE','TRIGGER','SYNONYM','FUNCTION','PROCEDURE','TYPE')&lt;br /&gt;ORDER BY OBJECT_TYPE;&lt;br /&gt;  &lt;br /&gt;  COUNT(*)&lt;br /&gt;----------&lt;br /&gt;        62&lt;br /&gt;&lt;br /&gt;Hope it helps.Happy refreshing our Database environments&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-1777622358337033672?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/1777622358337033672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/10/refreshing-schemas-in-oracle-databases.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1777622358337033672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1777622358337033672'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/10/refreshing-schemas-in-oracle-databases.html' title='Refreshing schemas in oracle Databases'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-5405915928671252725</id><published>2011-09-28T02:12:00.000-07:00</published><updated>2011-10-26T10:25:03.505-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='INTERVIEWS'/><title type='text'>Master DBA and Apps DBA interview questions</title><content type='html'>Hi,&lt;br /&gt;   Below are some of the Master DBA and Apps DBA:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;1)Explain the installation and configuration of Oracle SOA?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What steps you followed for building Oracle SOA setup?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What were the major issues faced by you during Oracle SOA installation and configuration?&lt;br /&gt;(Oracle Fusion DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;               Check the below link for the installation and configuration process:&lt;br /&gt;http://rafioracledba.blogspot.com/search/label/Oracle%20SOA%20tasks&lt;br /&gt;&lt;br /&gt;                                When installing and configuring SOA.The Repository creation utility(RCU) and SOA version should be same.&lt;br /&gt;Eg: If we are using Oracle RCU version 11.1.1.5.0 than we have to SOA version also 11.1.1.5.0.&lt;br /&gt;          I Installed the Oracle RCU version 11.1.1.5.0 and SOA version  11.1.1.2.0 so was facing the issue like SOA infra was not coming up so I upgraded the Oracle SOA version to 11.1.1.5.0 by using upgrade option,while using Oracle SOA version 11.1.1.5.0 than after upgradation,I started SOA managed server it worked.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For Starting the SOA(Service-Oriented Architecture) managed server:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Set the SERVER_NAME and ADMIN_URL environment variables, then run the script with no arguments.&lt;br /&gt;&lt;br /&gt;[oracle@nodefmw bin]$ pwd&lt;br /&gt;/Middleware/SOASuite11gR1/wlserver_10.3/common/bin&lt;br /&gt;Usage: startManagedWebLogic [SERVER_NAME] [ADMIN_URL]&lt;br /&gt;&lt;br /&gt;for example:&lt;br /&gt;&lt;br /&gt;startManagedWebLogic managedserver1 http://localhost:7001&lt;br /&gt;./startManagedWegLogic nodefmw.apac.abc.com  http:// nodefmw.apac.abc.com:7001&lt;br /&gt;(OR)&lt;br /&gt;#&lt;span style="font-weight:bold;"&gt;./startManagedWeblogic.sh soa_server1&lt;/span&gt; &lt;br /&gt;User:weblogic&lt;br /&gt;Pass:welcome123&lt;br /&gt;&lt;br /&gt;For Starting the BAM(Business Authentication Module) managed server:&lt;br /&gt;&lt;br /&gt;#&lt;span style="font-weight:bold;"&gt;./startManagedWeblogic.sh bam_server1&lt;/span&gt;&lt;br /&gt;User:weblogic&lt;br /&gt;Pass:welcome123&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;2)Have you done DMZ setup?What are the steps followed in doing DMZ setup?&lt;br /&gt;(Oracle Apps DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans: &lt;/span&gt;                Thanks Navdeep for explaing the things beautifully and clearly.For detail steps please&lt;br /&gt;check the Navdeep's link.&lt;br /&gt;Reference: &lt;br /&gt;http://practicalappsdba.wordpress.com/2007/03/26/dmz-configuration-for-irecruitment/&lt;br /&gt;&lt;br /&gt;For implementing DMS check the MY ORACLE SUPPORT note:&lt;br /&gt;Oracle E-Business Suite R12 Configuration in a DMZ [ID 380490.1]&lt;br /&gt;&lt;br /&gt;A DMZ (De-Militarized Zone) is a separate part of an organization’s network which is a shielded and &lt;span style="font-weight:bold;"&gt;'cut off'&lt;/span&gt; from the main corporate network and its systems.The DMZ contains technical equipment to prevent access from external parties(say on the Internet) from gaining access to your main systems. &lt;br /&gt;&lt;br /&gt;In the IT industry,a demilitarized zone is a single or multi-segment perimeter network that demarks the portion of the corporate network that lies between the intranet and outside networks.Corporate DMZ borders are enforced by firewalls and other dedicated networking devices.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When configuring Oracle E-Business Suite in a DMZ configuration, &lt;br /&gt;firewalls are deployed at various levels to ensure that only the traffic that the architecture expects is allowed to cross the firewall boundaries. &lt;br /&gt;The firewalls ensure that if intrusion attempts against machines in the DMZ are successful,the intrusion is contained within the DMZ and the machines in the intranet are not affected. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The steps followed in doing DMZ setup are as follows:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To make Oracle E-Business Suite modules as secure as possible, the following tasks may need to be performed.&lt;br /&gt;&lt;br /&gt;    * Use of separate web node for external usage&lt;br /&gt;    * Setting of server level profile values&lt;br /&gt;    * Associate trust levels to application middle tier nodes&lt;br /&gt;    * Mark a subset of responsibilities as available on an external web node&lt;br /&gt;    * Deploy a Reverse proxy in front of the external web node&lt;br /&gt;    * Configuring a URL firewall and mod security in the reverse proxy&lt;br /&gt;    * Run only the required Oracle E-Business Suite Application services on the external web tier&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;3)What are the background processes in Oracle ASM explain?(oracle DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;              The following background processes are an integral part of Automatic Storage Management:&lt;br /&gt;&lt;br /&gt;    &lt;span style="font-weight:bold;"&gt;1)ARBn(Actual Rebalance)&lt;/span&gt; &lt;br /&gt;      * ARBn(Actual Rebalance) performs the actual rebalance data extent movements in an Automatic Storage Management instance. &lt;br /&gt;      * There can be many of these processes running at a time, named ARB0, ARB1, and so on.&lt;br /&gt;&lt;br /&gt;   &lt;span style="font-weight:bold;"&gt; 2)ASMB(ASM Balance)&lt;/span&gt;&lt;br /&gt;      * ASMB(ASM Balance) runs in a database instance that is using an ASM disk group. &lt;br /&gt;      * ASMB communicates with the ASM instance, managing storage and providing statistics. &lt;br /&gt;      * ASMB can also run in the ASM instance. ASMB runs in ASM instances when the ASMCMD cp command runs or&lt;br /&gt;      * when the database instance first starts if the SPFILE is stored in ASM.&lt;br /&gt;&lt;br /&gt;    &lt;span style="font-weight:bold;"&gt;3)GMON(Global monitor)&lt;/span&gt;&lt;br /&gt;      * GMON(Global monitor) maintains disk membership in ASM disk groups.&lt;br /&gt;&lt;br /&gt;    &lt;span style="font-weight:bold;"&gt;4)MARK(Marking)&lt;/span&gt;&lt;br /&gt;      * MARK marks ASM allocation units as stale following a missed write to an offline disk. &lt;br /&gt;      * This essentially tracks which extents require resync for offline disks and&lt;br /&gt;&lt;br /&gt;    &lt;span style="font-weight:bold;"&gt;5)RBAL(Rebalance)&lt;/span&gt;&lt;br /&gt;      * RBAL runs in both database and ASM instances.&lt;br /&gt;      * In the database instance,it does a global open of ASM disks. &lt;br /&gt;      * In an ASM instance, it also coordinates rebalance activity for disk groups.&lt;br /&gt;&lt;br /&gt;          &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;4)What are the parameters specific to Oracle ASM explain?(oracle DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:  &lt;/span&gt;    The following parameters for specific to ASM instance They are:&lt;br /&gt;&lt;br /&gt;    1)ASM_DISKGROUPS&lt;br /&gt;    2)ASM_DISKSTRING&lt;br /&gt;    3)ASM_POWER_LIMIT&lt;br /&gt;    4)ASM_PREFERRED_READ_FAILURE_GROUPS&lt;br /&gt;    5)INSTANCE_TYPE&lt;br /&gt;                   Ofcourse,there are other parameters also like:&lt;br /&gt;      DB_CACHE_SIZE,DIAGNOSTIC_DEST,LARGE_POOL_SIZE,PROCESSES,REMOTE_LOGIN_PASSWORDFILE,SHARED_POOL_SIZE&lt;br /&gt;    &lt;br /&gt;          Let us briefly discuss them,&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)ASM_DISKGROUPS:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The ASM_DISKGROUPS initialization parameter specifies a list of the names of disk groups that an ASM instance mounts at startup. Oracle ignores the value that you set for ASM_DISKGROUPS when you specify the NOMOUNT option at startup or when you issue the ALTER DISKGROUP ALL MOUNT statement. The default value of the ASM_DISKGROUPS parameter is a NULL string. If the parameter value is NULL or is not specified, then ASM does not mount any disk groups.&lt;br /&gt;&lt;br /&gt;The ASM_DISKGROUPS parameter is dynamic. If you are using a server parameter file (SPFILE), then you should not need to manually alter the value of ASM_DISKGROUPS. ASM automatically adds a disk group to this parameter when the disk group is successfully created or mounted. ASM also automatically removes a disk group from this parameter when the disk group is dropped or dismounted. The following is an example of setting the ASM_DISKGROUPS parameter dynamically:&lt;br /&gt;&lt;br /&gt;SQL&gt; ALTER SYSTEM SET ASM_DISKGROUPS = 'CONTROLFILE, DATAFILE, LOGFILE, STANDBY'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)ASM_DISKSTRING:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The ASM_DISKSTRING initialization parameter specifies a comma-delimited list of strings that limits the set of disks that an ASM instance discovers. The discovery strings can include wildcard characters. Only disks that match one of the strings are discovered. The same disk cannot be discovered twice.&lt;br /&gt;&lt;br /&gt;The discovery string format depends on the ASM library and the operating system that are in use. Pattern matching is supported; refer to your operating system-specific installation guide for information about the default pattern matching. For example, on a Linux server that does not use ASMLIB, to limit the discovery process to only include disks that are in the /dev/rdsk/ directory, set ASM_DISKSTRING to:&lt;br /&gt;&lt;br /&gt;/dev/rdsk/*&lt;br /&gt;&lt;br /&gt;The asterisk is required. To limit the discovery process to only include disks that have a name that ends in disk3 or disk4, set ASM_DISKSTRING to:&lt;br /&gt;&lt;br /&gt;/dev/rdsk/*disk3, /dev/rdsk/*disk4&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3)ASM_POWER_LIMIT:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The ASM_POWER_LIMIT initialization parameter specifies the default power for disk rebalancing. &lt;br /&gt;The default value is 1 and the range of allowable values is 0 to 11 inclusive. A value of 0 disables rebalancing. &lt;br /&gt;Higher numeric values enable the rebalancing operation to complete more quickly, but might result in higher I/O overhead.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4)ASM_PREFERRED_READ_FAILURE_GROUPS:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The ASM_PREFERRED_READ_FAILURE_GROUPS initialization parameter value is a comma-delimited list of strings that specifies the failure groups that should be preferentially read by the given instance. This parameter is generally used only for clustered ASM instances and its value can be different on different nodes. For example:&lt;br /&gt;&lt;br /&gt;diskgroup_name1.failure_group_name1, ...&lt;br /&gt;&lt;br /&gt;The ASM_PREFERRED_READ_FAILURE_GROUPS parameter setting is instance specific. &lt;br /&gt;This parameter is only valid for clustered ASM instances and the default value is NULL.&lt;br /&gt;Note:&lt;br /&gt;The ASM_PREFERRED_READ_FAILURE_GROUPS parameter is valid only in Oracle RAC environments.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5)INSTANCE_TYPE:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The INSTANCE_TYPE initialization parameter must be set to ASM for an ASM instance. &lt;br /&gt;This is a required parameter and cannot be modified. The following is an example of the INSTANCE_TYPE parameter &lt;br /&gt;in the initialization file:&lt;br /&gt;&lt;br /&gt;INSTANCE_TYPE=ASM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6)DB_CACHE_SIZE&lt;br /&gt;&lt;br /&gt;You do not need to set a value for the DB_CACHE_SIZE initialization parameter if you use automatic memory management.&lt;br /&gt;&lt;br /&gt;The setting for the DB_CACHE_SIZE parameter determines the size of the buffer cache. &lt;br /&gt;This buffer cache is used to store metadata blocks. The default value for this parameter is suitable for most environments.&lt;br /&gt;&lt;br /&gt;7)DIAGNOSTIC_DEST&lt;br /&gt;&lt;br /&gt;The DIAGNOSTIC_DEST initialization parameter specifies the directory where diagnostics for an instance are located.&lt;br /&gt;The value for an ASM instance is of the form:&lt;br /&gt;&lt;br /&gt;diagnostic_dest/diag/asm/db_name/instance_name&lt;br /&gt;&lt;br /&gt;For an ASM instance, db_name defaults to +asm.&lt;br /&gt;&lt;br /&gt;8)LARGE_POOL_SIZE&lt;br /&gt;&lt;br /&gt;You do not need to set a value for the LARGE_POOL_SIZE initialization parameter if you use automatic memory management.&lt;br /&gt;&lt;br /&gt;The setting for the LARGE_POOL_SIZE parameter is used for large allocations. &lt;br /&gt;The default value for this parameter is suitable for most environments.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;5)What all the possible ways to convert/copy/transfer non-asm filesystem to asm or viceversa?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;What all the conversions possible in asm?(oracle DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;    In 10g the possible ways to migrate - DBMS_FILE_TRANSFER, rman (copy vs.&lt;br /&gt;backup), or XMLDB FTP&lt;br /&gt;In 11g, we introduced the asmcmd copy command. Key point here is that copy files&lt;br /&gt;out is great for:&lt;br /&gt;1. archive logs&lt;br /&gt;2. Controlfiles&lt;br /&gt;3. Datafiles for debugging&lt;br /&gt;4. Dumpsets (can be done across platforms)&lt;br /&gt;Copying files in:&lt;br /&gt;TTS&lt;br /&gt;Copy in only supported files.&lt;br /&gt;28&lt;br /&gt;ASMCMD Copy&lt;br /&gt;ASMCMD&gt; ls&lt;br /&gt;+fra/dumpsets/expdp_5_5.dat&lt;br /&gt;ASMCMD&gt; cp expdp_5_5.dat sys@rac1.orcl1:+DATA/dumpsets/ex&lt;br /&gt;pdp_5_5.dat&lt;br /&gt;source +fra/dumpsets/expdp_5_5.dat&lt;br /&gt;target +DATA/dumpsets/expdp_5_5.dat&lt;br /&gt;copying file(s)...&lt;br /&gt;file, +DATA/dumpsets/expdp_5_5.dat,&lt;br /&gt;copy committed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;6)What is ACFS?what are the advantages of ACFS?(oracle DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt; The new feature added in Oracle11g release2 for ASM is ACFS(ASM cluster file system)&lt;br /&gt;ACFS is available in 11gR2 for LINUX and few unix platforms and Windows operating system&lt;br /&gt;also have  a similar solution is available.&lt;br /&gt;&lt;br /&gt;ACFS will work with Single Instance Installations as well as Cluster Databases. &lt;br /&gt;It is strongly integrated with the Oracle Clusterware 11g release2. &lt;br /&gt;One more point to note is - Supported protocols for NAS are NFS(Network file system and CIFS(Common Internet File System).&lt;br /&gt;&lt;br /&gt;This new feature is also named Unified Storage Management and allows for storing the following data in ASM:&lt;br /&gt;&lt;br /&gt;1)Application File Data&lt;br /&gt;2)Oracle Cluster Registry (OCR)&lt;br /&gt;3)Voting Disk and &lt;br /&gt;4)Oracle Binaries&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Major advantages of ACFS are:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1)We will have all the trace files, alert.log,reports in ASM which makes ASM a complete storage management system .Because of this reason both database and non-database files are stored ins ASM and it completely eliminates the need for any third party cluster file systems like veritas and sun clusters.&lt;br /&gt;&lt;br /&gt;2) ACFS uses a journaling mechanism and uses endian independent metadata to support large files and file systems to an extent up to exabytes.  &lt;br /&gt;A special metadata log structure is maintained for integrity checks and fast recovery through a metadata transaction engine and&lt;br /&gt;&lt;br /&gt;3)File systems in ASM can dynamically be expended and contracted with no downtime. &lt;br /&gt;High availability is fully supported through mirroring and striping capabilities for all files now with ASM.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;7)what is interconnect(Cache fusion) in Oracle rac?(oracle DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt; Starting with Oracle 9i, RAC can transfer blocks from one instance to another this can be called as &lt;span style="font-weight:bold;"&gt;interconnect (cache fusion)&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;8)Have you done workflow configuration?(oracle Apps DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Ans:            Best link with explaination I found:&lt;br /&gt;http://onlineappsdba.com/index.php/2008/08/01/workflow-notification-mailer-configuration-using-autoconfig-for-outbound-processing/&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;9)Explain the importance of autoconfig file?(oracle Apps DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans: &lt;/span&gt;   &lt;br /&gt;      AutoConfig uses a file called context file, which is used to configure changes.Context file is a XML file having all the parameters of application system. &lt;br /&gt;These parameters are part of some configuration file for some services or it may be part of some environment file.When we create an application system (using Rapid install),context file gets created automatically will all the parameters &lt;br /&gt;and there values. Most of the parameters take default value,where as some parameters takes the value that is supplied &lt;br /&gt;at the time of installation.   &lt;br /&gt;&lt;br /&gt;All the information required to configure Oracle Apps 11i/R12 are stored in files called as Context file.So there are two context file, one for Apps Tier(Middle Tier) and one for DB Tier.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Oracle apps 11i Context file location is as follows:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Apps Tier:$APPL_TOP/admin/$TWO_TASK.xml&lt;br /&gt;DB Tier:$ORACLE_HOME/appsutil/$TWO_TASK.xml&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Oracle apps R12 Context file location is as follows:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Apps Tier:$INST_TOP/appl/admin/$TWO_TASK_&lt;hostname&gt;.xml&lt;br /&gt;DB Tier:$ORACLE_HOME/appsutil/$TWO_TASK_&lt;hostname&gt;.xml&lt;br /&gt;&lt;br /&gt;Where: &lt;span style="font-weight:bold;"&gt;TWO_TASK&lt;/span&gt; is the &lt;span style="font-weight:bold;"&gt;SID&lt;/span&gt; set for EBS Database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;More details about autoconfig can be extracted from the below mentioned link with nice explaination:&lt;br /&gt;&lt;br /&gt;http://onlineappsdba.com/index.php/2008/01/28/autoconfig-in-oracle-apps-11i-r12-12i/&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Context file is repository for configuration stored in xml format. &lt;br /&gt;Its xml file and file name format is &lt;SID&gt;_&lt;HOSTNAME&gt;.xml in Oracle Apps 11i&lt;br /&gt;        &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;10)What all the techniques to improve oracle application patching mechanism?&lt;br /&gt;(oracle Apps DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;&lt;br /&gt;      To improve the oracle application patching mechanism in terms of performance and other criteria we can apply&lt;br /&gt;patches as given below:&lt;br /&gt;&lt;br /&gt;1)Merge Patches using &lt;span style="font-weight:bold;"&gt;admrgpch&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;admrgpch utility is used to merge two or more patches in oracle applications. &lt;br /&gt;The advantage of merging patches is that it reduces downtime and thus very much useful.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 1:&lt;/span&gt; The syntax for using admrgpch utility is as given below:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;admrgpch&lt;/span&gt; -s &lt;source&gt; -d &lt;dest&gt; -merge_name &lt;mergename&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For eg:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;admrgpch -s &lt;/patch/mergesource_location&gt; -d &lt;/patch/mergedest_location&gt; -merge_name &lt;admergerup6&gt;&lt;br /&gt;&lt;br /&gt;We have to make sure the the merge path log file "admrgpch.log" does not contain any error,once the two patches&lt;br /&gt;are merged.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 2:&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;'admrgpch'&lt;/span&gt; utility will not merge patches of different Oracle applications releases and operating systems platforms and with different parallel modes and we cannot use 'admrgpch' utility to merge AD and Non-AD patches.&lt;br /&gt;&lt;br /&gt;2)To improve the performance while applying patch using &lt;span style="font-weight:bold;"&gt;'adpatch'&lt;/span&gt;(auto patch utility) has lot of options like:&lt;br /&gt;options=nocopyportion noautoconfig nogenerateportion hotpatch ... We can use as per our convenience.&lt;br /&gt;&lt;br /&gt;Eg:&lt;br /&gt;$adpatch options=noautoconfig &lt;br /&gt;$&lt;br /&gt;&lt;br /&gt;3)If you cannot afford downtime than you can apply patch using options=hotpatch,very much useful for production environment here it is not required to keep the application in maintainance mode.&lt;br /&gt;&lt;br /&gt;Eg:&lt;br /&gt;$&lt;span style="font-weight:bold;"&gt;adpatch&lt;/span&gt; options=&lt;span style="font-weight:bold;"&gt;hotpatch&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;11)How we register new products in Oracle applications?(oracle Apps DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;    &lt;span style="font-weight:bold;"&gt;'adsplice'&lt;/span&gt; is an ad utility which is used to add off-cycle/new product  to oracle apps. &lt;br /&gt;i.e. products released between maintenance packs.&lt;br /&gt;&lt;br /&gt;Download the product patch which contains information about the new product,'adsplice' control file and other associated files. Go through the readme and apply pre-reqs if any.Now for using 'adsplice' there is a control file newprods.txt. A typical newprods.txt  looks like as given below:&lt;br /&gt;&lt;br /&gt;product=zsa&lt;br /&gt;base_product_top=*APPL_TOP*&lt;br /&gt;oracle_schema=zsa&lt;br /&gt;sizing_factor=100&lt;br /&gt;main_tspace=ZSAD&lt;br /&gt;index_tspace=ZSAX&lt;br /&gt;temp_tspace=TEMP&lt;br /&gt;default_tspace=ZSAD&lt;br /&gt;&lt;br /&gt;If we are using OFA tablespace model then we need to change the last 4 parameters else for OATM(Oracle Application tablespace Model) it is optional.&lt;br /&gt;&lt;br /&gt;We have to copy the new-product in $APPL_TOP/admin location and run 'adsplice' utility from &lt;span style="font-weight:bold;"&gt;'applmgr'&lt;/span&gt; OS user and follow the prompts.Then we can verify that product is correctly spliced or not using adutconf.sql (AD Configuration report).&lt;br /&gt;We need to logout and login again so that the new environment is set.&lt;br /&gt;We can then verify that new &lt;PROD&gt;_TOP environment variable is set and  need to apply the patches for newly added product.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;12)What is SHARED APPL_TOP?What are the major advantages and disadvantages of SHARED APPL_TOP?&lt;/span&gt;&lt;br /&gt;(oracle Apps DBA interview question)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;                Basically Shared APPL_TOP's means sharing APPL_TOP and&lt;br /&gt;COMMON_TOP across the Application Servers.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Benefits:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1)Administration tasks only need to be performed on any one node.&lt;br /&gt;2)Application patches only need to be applied to any one node in the system.&lt;br /&gt;3)Allows the use of "Distributed AD" to reduce downtime (check MetaLink 236469.1).&lt;br /&gt;4)Reduces overall disk space requirements.&lt;br /&gt;5)Makes it easier to add additional nodes to our Applications system.&lt;br /&gt;6)Create single node clones from a shared APPL_TOP multi node system and&lt;br /&gt;7)Merge APPL_TOP(Merge TOPs) from different application tiers into a single application tier APPL_TOP.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Disadvantages:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1)Single point of failure.&lt;br /&gt;2)Performance might be an issue,if shared APPL_TOP's filesystem will be a 'nfs'(network file system) mount.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;13)Explain the architecture of Oracle Golden Gate?(Oracle DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans: &lt;/span&gt;                   The Oracle GoldenGate software architecture is comprised of three primary components: &lt;br /&gt;1)Capture, &lt;br /&gt;2)Trail Files and &lt;br /&gt;3)Delivery. &lt;br /&gt;          As shown in the figure,&lt;br /&gt;This modular approach allows each component to perform its tasks independently of the others, &lt;br /&gt;accelerating data replication and ensuring data integrity.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Capture:&lt;/span&gt;&lt;br /&gt;Oracle GoldenGate’s Capture module resides on the source database and looks for new transactional activity.The Capture module reads the result of insert, update, and delete operations by directly accessing the database transaction (redo) logs, and then immediately captures new and changed data for distribution.&lt;br /&gt;     The Capture module only moves committed transactions—filtering out intermediate activities and rolled-back operations—which not only reduces infrastructure load but also eliminates potential data inconsistencies.Further optimization is achieved through transaction grouping and optional compression features.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)Trail Files:&lt;/span&gt;&lt;br /&gt;Oracle GoldenGate’s Trail Files contain the database operations for the changed data in a transportable,platform-independent data format. &lt;br /&gt;Trail Files are a critical component within Oracle GoldenGate’s optimized queuing mechanism. &lt;br /&gt;They reside on the source and/or target server but exist outside of the database to ensure heterogeneity,improved reliability, and minimal data loss.&lt;br /&gt;This architecture minimizes impact to the source system because no additional tables or queries to the database are required to support the data capture process. The Capture module reads once, and then immediately moves the captured data to the external Trail File for delivery to the target(s).&lt;br /&gt;&lt;br /&gt;In the event of an outage at the source and/or target, the Trail Files contain the most-recent&lt;br /&gt; changed data up to the point of the outage, and the data is applied once the systems are back online again.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3)Delivery:&lt;/span&gt;&lt;br /&gt;Oracle GoldenGate’s Delivery module takes the changed data from the latest Trail File and applies it to the target database using native SQL for the appropriate relational database management system.Delivery can be made to any open database connectivity–compliant database. &lt;br /&gt;  The Delivery module applies each transaction in the same order as it was committed and within the same transactional context as at the source, enabling consistency and referential integrity at the target.&lt;br /&gt;  To enhance IT flexibility, captured data can also be delivered to a Java Message Service destination or as a flat file using Oracle GoldenGate Application Adapters.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;14)What is difference between Socket &amp; Servlet Mode in Apps Forms?(oracle Apps DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;          When forms run SOCKET Mode these are dedicated connection between Client Machine &amp; Form Server (Started by adfrmctl.sh).When Forms run in servlet mode the forms requests are fulfilled by Jserv in Apache . &lt;br /&gt;There will be additional JVM for Forms Request in that case and we won't start form via adfrmctl.sh.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;15)How to compile Forms in 11i and R12?(oracle Apps DBA interview question)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;             We can Compile Forms in 11i using 'f60gen' utility as follows:&lt;br /&gt;&lt;br /&gt;$f60gen module=&lt;formname&gt;.fmb userid=apps/&lt;apps_pwd&gt; output_file=$XX_TOP/forms/US/&lt;formname&gt;.fmx&lt;br /&gt;&lt;br /&gt;  Where as,In R12 we can Compile Forms using 'frmcmp_batch' utility as follows:&lt;br /&gt;&lt;br /&gt;$frmcmp_batch &lt;formname&gt;.fmb userid=apps/&lt;apps_pwd&gt; output_file=$XX_TOP/12.0.0/form/US/&lt;formname&gt;.fmx module_type=form compile_all=special&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;16)If a patch fail how to proceed in Oracle Application?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt; I like the below link for this:&lt;br /&gt;&lt;br /&gt;http://oracleappsdba1.blogspot.com/2009/02/oracle-apps-patch-fails.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;17)Describe the steps involved in the upgradation from Oracle 11i to R12 Appplications?&lt;br /&gt;(oracle Apps DBA interview question)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans: &lt;/span&gt;                 Atul again described these upgradation steps beautifully in the below mentioned link:&lt;br /&gt;&lt;br /&gt;http://onlineappsdba.com/index.php/2008/07/09/upgrade-oracle-apps-11i-to-r1212i-1204-key-points/&lt;br /&gt;http://onlineappsdba.com/index.php/2007/10/13/upgrade-oracle-applications-to-release-1202/&lt;br /&gt;http://onlineappsdba.com/index.php/2008/03/26/upgrade-oracle-applications-to-1204/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;               We usually prepare the below documents for doing upgrade of Oracle Applications:&lt;br /&gt;1)xls document for preparing a plan and to record the steps of upgrade.&lt;br /&gt;2)Word document for the actual implemented steps in details the steps.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-5405915928671252725?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/5405915928671252725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/master-dba-and-apps-dba-interview_28.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/5405915928671252725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/5405915928671252725'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/master-dba-and-apps-dba-interview_28.html' title='Master DBA and Apps DBA interview questions'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-1242098312147640334</id><published>2011-09-26T04:45:00.000-07:00</published><updated>2011-09-26T05:09:50.479-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Cost based optimizer approach</title><content type='html'>Hi,&lt;br /&gt;   Performance tuning of Database and queries is very important from DBA's point of view it is no-doubt very vast and many people say it is a deep ocean and tuning can&lt;br /&gt;be done to unlimited extent when we really know our data very well but many times&lt;br /&gt;developers and designers will be having details of data in a better way so tuning as per me is a combined effort where DBA's,developers and Database Designers work together to make a well tune system.In the below example I'm starting with the basics&lt;br /&gt;but in my future posts I will surely put some real time tuning techniques in a detailed way.&lt;br /&gt;             We all know how important is the 'optimizer' as  depending on setting&lt;br /&gt;of the optimizer and statistics the query will execute better.We all know there are two types of optimizers&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Rule-based optimizer&lt;br /&gt;2)cost-based optimizer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Let us start with the below example:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;For checking the optimizer mode we can use the below approach:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SELECT * FROM V$PARAMETER WHERE NAME = 'optimizer_mode';&lt;br /&gt;    (OR)&lt;br /&gt;SQL&gt; show parameter %OPTIMIZER%&lt;br /&gt;&lt;br /&gt;NAME                                 TYPE        VALUE&lt;br /&gt;------------------------------------ ----------- ------------------------------&lt;br /&gt;optimizer_capture_sql_plan_baselines boolean     FALSE&lt;br /&gt;optimizer_dynamic_sampling           integer     2&lt;br /&gt;optimizer_features_enable            string      11.2.0.1&lt;br /&gt;optimizer_index_caching              integer     0&lt;br /&gt;optimizer_index_cost_adj             integer     100&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;optimizer_mode &lt;/span&gt;                      string      &lt;span style="font-weight:bold;"&gt;ALL_ROWS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will tell us the mode for the database. If the value is 'CHOOSE' than the&lt;br /&gt;database is in Cost-Based.However,if there are no statistics on the tables&lt;br /&gt;that a query is based upon, then it is in RULE mode.&lt;br /&gt;&lt;br /&gt;To tell for a particular query,we will need to do an EXPLAIN PLAN on the&lt;br /&gt;query. If we see costs associated with the query, then the query is in&lt;br /&gt;COST-BASED mode. Otherwise it is in RULE-BASED mode.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 1:&lt;/span&gt; we can use the RULE hint to force rule-based mode on any query.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 2:&lt;/span&gt;&lt;br /&gt;1) Possible values for optimizer_mode = choose/ all_rows/ first_rows/ first_rows[n]&lt;br /&gt;2) The ALL_ROWS optimizer mode uses a cost-based approach to determine the best access path to access your tables. &lt;br /&gt;&lt;br /&gt;I'm not focusing on rule-based much as it is not suggested much to use.&lt;br /&gt;&lt;br /&gt;Eg:&lt;br /&gt;&lt;br /&gt;SQL&gt; conn schema_test&lt;br /&gt;Enter password:&lt;br /&gt;Connected.&lt;br /&gt;SQL&gt; select *from TTTT;&lt;br /&gt;&lt;br /&gt;no rows selected&lt;br /&gt;&lt;br /&gt;SQL&gt; SET AUTOTRACE TRACEONLY;&lt;br /&gt;SQL&gt;  select *from TTTT;&lt;br /&gt;&lt;br /&gt;no rows selected&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Execution Plan&lt;br /&gt;----------------------------------------------------------&lt;br /&gt;&lt;br /&gt;----------------------------------------------------------&lt;br /&gt;| Id  | Operation         | Name | Rows  | Bytes | Cost  |&lt;br /&gt;----------------------------------------------------------&lt;br /&gt;|   0 | SELECT STATEMENT  |      |     1 |    13 |     2 |&lt;br /&gt;|   1 |  TABLE ACCESS FULL| TTTT |     1 |    13 |     2 |&lt;br /&gt;----------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Note&lt;br /&gt;-----&lt;br /&gt;   - 'PLAN_TABLE' is old version&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Statistics&lt;br /&gt;----------------------------------------------------------&lt;br /&gt;          1  recursive calls&lt;br /&gt;          0  db block gets&lt;br /&gt;          3  consistent gets&lt;br /&gt;          0  physical reads&lt;br /&gt;          0  redo size&lt;br /&gt;        330  bytes sent via SQL*Net to client&lt;br /&gt;        512  bytes received via SQL*Net from client&lt;br /&gt;          1  SQL*Net roundtrips to/from client&lt;br /&gt;          0  sorts (memory)&lt;br /&gt;          0  sorts (disk)&lt;br /&gt;          0  rows processed&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps...&lt;br /&gt;&lt;br /&gt;Happy Oracle Performance tuning learning...&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-1242098312147640334?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/1242098312147640334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/cost-based-optimizer-approach.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1242098312147640334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1242098312147640334'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/cost-based-optimizer-approach.html' title='Cost based optimizer approach'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-2939908980117122613</id><published>2011-09-23T05:15:00.000-07:00</published><updated>2011-09-28T02:23:08.141-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='INTERVIEWS'/><title type='text'>Challenging DBA and Apps DBA interview questions</title><content type='html'>Hi,&lt;br /&gt;     I find some time to write on the challenging Apps DBA interview questions.I found these questions challenging as these questions will surely need some time tolearn,practise along with practical experience on the tasks and concepts of Oracle Apps,RAC.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;1)Explain Database migration steps in details?&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;(DBA interview question)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;        Database migration or Data migration involves a team effort of DBAs,Developers,Data Modelors/Database Designers&lt;br /&gt;Applications Administrator if the other applications servers like JBOSS/tomcat is involved.When we are working&lt;br /&gt;in team the best way to complete this task is to prepare a plan of tasks along with time and table well in advance on an excell sheet and intimate each of the team members to communicate effectively.&lt;br /&gt;From DBA's point below is an example of one such task,Check the below link for the details:&lt;br /&gt;&lt;br /&gt;http://rafioracledba.blogspot.com/2011/04/step-by-step-migration-of-schemas-from.html&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;2)What are the 3 ips used in RAC configuration,explain them in brief?&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;(DBA interview question)&lt;/span&gt;&lt;br /&gt;Ans:     3 IPs used in RAC configuration are public,private and virtual IP.&lt;br /&gt;In brief we can describe them as follows:&lt;br /&gt;&lt;br /&gt;1.Public IP address:Public IP adress is the normal IP address typically used to manage storage,system and database.&lt;br /&gt;2.private IP address:Private IP address is used only for internal clustering processing (i.e Cache Fusion or as interconnect).&lt;br /&gt;3.Virtual IP address:VIP is used by database applications to enable fail over when one cluster node fails.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;3)What is cache fusion?&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;(DBA interview question)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;     Oracle RAC uses Cache Fusion to synchronize the data stored in the buffer cache of each database instance. Cache Fusion moves current data blocks (which reside in memory) between database instances, rather than having one database instance write the data blocks to disk and requiring another database instance to reread the data blocks from disk. When a data block located in the buffer cache of one instance is required by another instance, Cache Fusion transfers the data block directly between the instances using the interconnect, enabling the Oracle RAC database to access and modify data as if the data resided in a single buffer cache.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;4)What is voting Disk,what is the major use of it?&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;(DBA interview question)&lt;/span&gt;&lt;br /&gt;Ans:Voting disk Manages cluster membership and arbitrates cluster ownership&lt;br /&gt;between the nodes in case of network failures.The voting disk is a file that&lt;br /&gt;resides on shared storage.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;5)What is OCR,what is the major use of it?&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;(DBA interview question)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;Oracle Cluster Registry (OCR)–Maintains cluster configuration information as well as configuration information about any cluster database within the cluster. The OCR contains information such as which database instances run on which nodes and which services run on which databases. The OCR also stores information about processes that Oracle Clusterware controls. The OCR&lt;br /&gt;resides on shared storage that is accessible by all the nodes in your cluster.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;6)In RAC 11g as we all know ASM can be used for storing OCR and voting disk,if that is the case how the clusterware start?&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;(DBA interview question)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;   The clusterware starts and works properly because of the new feature added in Oracle11g release2 for ASM i.e &lt;span style="font-weight:bold;"&gt;ACFS&lt;/span&gt;(ASM cluster file system).ACFS is available in 11gR2 for LINUX and few unix platforms and Windows operating system&lt;br /&gt;also have a similar solution available.&lt;br /&gt;&lt;br /&gt;* ACFS will work with Single Instance Installations as well as Cluster Databases. &lt;br /&gt;It is strongly integrated with the Oracle Clusterware 11g release2. &lt;br /&gt;One more point to note is - Supported protocols for NAS are NFS(Network file system and CIFS(Common Internet File System).&lt;br /&gt;&lt;br /&gt;This new feature is also named &lt;span style="font-weight:bold;"&gt;Unified Storage Management&lt;/span&gt; and allows for storing the following data in ASM:&lt;br /&gt;&lt;br /&gt;1)Application File Data&lt;br /&gt;2)Oracle Cluster Registry (OCR)&lt;br /&gt;3)Voting Disk and &lt;br /&gt;4)Oracle Binaries&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Major advantages of ACFS are:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1)We will have all the trace files, alert.log,reports in ASM which makes ASM a complete storage management system .Because of this reason  both database and non-database files are stored ins ASM and it completely eliminates the need for any third party cluster file systems like veritas and sun clusters.&lt;br /&gt;&lt;br /&gt;2) ACFS uses a journaling mechanism and uses &lt;span style="font-weight:bold;"&gt;endian independent metadata&lt;/span&gt; to support large files and file systems to an extent up to exabytes.A special metadata log structure is maintained for integrity checks and fast recovery through a metadata transaction engine and&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3)File systems in ASM can dynamically be expended and contracted with no downtime. &lt;br /&gt;High availability is fully supported through &lt;span style="font-weight:bold;"&gt;mirroring and striping&lt;/span&gt; capabilities for all files now with ASM.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;7)How you change apps password?Explain the syntax of FNDCPASS?&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;(Apps DBA interview question)&lt;/span&gt;&lt;br /&gt;Ans: FNDCPASS utility is used to change the password of apps/applsys and all other application products users like gl,ar.FNDCPASS utilliy is supplied with various parameters and options,details are given below along&lt;br /&gt;with one task for complete understanding.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 1:&lt;/span&gt; We use FNDCPASS to change apps password,as the APPLSYS (APPS) password became corrupted using ALTER USER because an applications session was not maintained at the same time. This apps session is necessary to change the APPLSYS password in: 'Security&gt; Oracle&gt; Register' WHILE being in SQL*PLUS as the SYSTEM user thas why we use The supported method FNDCPASS to change the password.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 2:&lt;/span&gt;Backup FND_ORACLE_USERID and FND_USER tables before using FNDCPASS utility for safety purpose.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To implement the solution, please execute the following steps:&lt;br /&gt;&lt;br /&gt;1. Restore the FND_ORACLE_USERID and FND_USER tables from a backup.&lt;br /&gt;&lt;br /&gt;2. Then run FNDCPASS to change the APPLSYS password. Ex.&lt;br /&gt;&lt;br /&gt;FNDCPASS apps/ 0 Y system/ SYSTEM APPLSYS WELCOME&lt;br /&gt;&lt;br /&gt;FNDCPASS apps/apps 0 Y system/manager SYSTEM APPLSYS WELCOME&lt;br /&gt;&lt;br /&gt;FNDCPASS apps/apps 0 Y system/manager SYSTEM APPLSYS apps&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Eg:&lt;br /&gt;-bash-3.2$ FNDCPASS apps/apps 0 Y system/manager SYSTEM APPLSYS apps&lt;br /&gt;Log filename : L6021164.log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Report filename : O6021164.out&lt;br /&gt;-bash-3.2$ less  L6021164.log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;+---------------------------------------------------------------------------+&lt;br /&gt;Application Object Library: Version : 12.0.0&lt;br /&gt;&lt;br /&gt;Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.&lt;br /&gt;&lt;br /&gt; module:&lt;br /&gt;+---------------------------------------------------------------------------+&lt;br /&gt;&lt;br /&gt;Current system time is 23-SEP-2011 03:53:32&lt;br /&gt;&lt;br /&gt;+---------------------------------------------------------------------------+&lt;br /&gt;&lt;br /&gt;Working...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;+---------------------------------------------------------------------------+&lt;br /&gt;Concurrent request completed successfully&lt;br /&gt;Current system time is 23-SEP-2011 03:53:38&lt;br /&gt;&lt;br /&gt;+---------------------------------------------------------------------------+&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For example,the following command changes the GL user password to 'gl'.&lt;br /&gt;&lt;br /&gt;FNDCPASS apps/apps 0 Y system/manager ORACLE GL gl&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-bash-3.2$ FNDCPASS apps/apps 0 Y system/manager ORACLE GL gl&lt;br /&gt;Log filename : L6021170.log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Report filename : O6021170.out&lt;br /&gt;&lt;br /&gt;-bash-3.2$ less  L6021164.log&lt;br /&gt;&lt;br /&gt;+---------------------------------------------------------------------------+&lt;br /&gt;Application Object Library: Version : 12.0.0&lt;br /&gt;&lt;br /&gt;Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.&lt;br /&gt;&lt;br /&gt; module:&lt;br /&gt;+---------------------------------------------------------------------------+&lt;br /&gt;&lt;br /&gt;Current system time is 23-SEP-2011 03:59:01&lt;br /&gt;&lt;br /&gt;+---------------------------------------------------------------------------+&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;+---------------------------------------------------------------------------+&lt;br /&gt;Concurrent request completed successfully&lt;br /&gt;Current system time is 23-SEP-2011 03:59:01&lt;br /&gt;&lt;br /&gt;+---------------------------------------------------------------------------+&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 1:&lt;/span&gt; Passwords for APPLSYS and the APPS schemas -- including the MRC schema -- must be the same. &lt;br /&gt;If you change the password for one, FNDCPASS automatically changes the others&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 2:&lt;/span&gt;After changing the password as the golden rule for apps dba check the log file if it gives&lt;br /&gt;error than password is unchaged.Error details in log file can be as give below:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;ERRORs:&lt;/span&gt;&lt;br /&gt;APP-FND-01496 Results From FNDCPASS Chaning The APPLSYS password&lt;br /&gt;APP-FND-01496: Cannot access application ORACLE password&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Cause:&lt;/span&gt; Application Object Library was unable access your ORACLE password&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 3:&lt;/span&gt;When changing 'apps' password it is important to run &lt;span style="font-weight:bold;"&gt;autoconfig&lt;/span&gt; to propagate the change across the application or else we will need change the 'apps' password in following files manually which can be a tedious task.&lt;br /&gt;&lt;br /&gt;1. $IAS_ORACLE_HOME\Apache\modplsql\cfg\wdbsvr.app file&lt;br /&gt;2. $FND_TOP/resource/wfmail.cfg&lt;br /&gt;3. $COMMON_TOP/admin/scripts/&lt;context_name&gt;/adcmctl.ch&lt;br /&gt;4. $OA_HTML/bin/appsweb.cfg&lt;br /&gt;5. $AD_TOP/admin/template/CGIcmd.dat&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Q 8) What is wdbsvr.app file used for? What's full path of this file? What's significance of this file ?&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;(Apps DBA inteview question)&lt;/span&gt;&lt;br /&gt;Ans: If we lost the 'apps' user password we can see this password in wdbsvr.app file.&lt;br /&gt;The file wdbsvr.app file is located under $IAS_ORACLE_HOME/Apache/modplsql/cfg&lt;br /&gt;&lt;br /&gt;Based on file location I am sure you can say this is related to Apache, &amp; looking into modplsql/cfg , I am sure you will say its related to mod_pls (mod plsql component of Apache/Oracle 11i WebServer) configuration file. This file is used by mod_plsql component of Apache to connect to database. So when you type url http://hostname:port/pls/SID , whenever Apache(11i Web Server) finds that request is for /pls/ then Apache delegates this request to mod_pls component which in turn pick this file &amp; check if there is any DAD with name SID (in our example its VISION11I) &amp;&lt;br /&gt;Sample entry in wdbsvr.app&lt;br /&gt;[DAD_VISION11I]&lt;br /&gt;connect_string = VISION11I&lt;br /&gt;password = apps&lt;br /&gt;username = APPS&lt;br /&gt;default_page = fnd_web.ping&lt;br /&gt;&lt;br /&gt;On typing http://hostname:port/pls/VISION11I , &lt;br /&gt;it will connect to database using apps schema &amp; will return you page fnd_web.ping ( where fnd_web is package &amp; ping is procedure or vise versa).So story about this file doesn't stop here,this URL which I mentioned about is quite useful in troubleshooting so you can check if database connection is working fine &lt;br /&gt;or not. Another thing you want to check about this file is since it stores APPS password you need to change here whenever you change apps password . &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;In Apps 11i we have apps password without encrypted form in the below mentioned locations:&lt;br /&gt;&lt;br /&gt;• iAS_TOP/Apache/modplsql/cfg/wdbsvr.app&lt;br /&gt;• ORACLE_HOME/reports60/server/CGIcmd.dat&lt;br /&gt;&lt;br /&gt;In R12 you won't see these files anymore because Modplsql module got removed and we won't be seeing the files with apps password.   &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;9)Explain the process when we login with 'sysadmin' what happens at the backend?&lt;span style="font-weight:bold;"&gt;(Apps DBA interview question)&lt;/span&gt;&lt;br /&gt;Which table is involved?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Ans: When we login using 'sysadmin' user and password there is a validation takes place,once the user gets validated than E-business suite home page is displayed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;8)How you troubleshoot apps login issue?&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;(Apps DBA interview question)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;Atul's link explain this in best way,please go through it even for troubleshooting at our work environment also.&lt;br /&gt;&lt;br /&gt;http://becomeappsdba.blogspot.com/2006/10/troubleshoot-oracle-apps-web-server.html&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;9)Explain the major troubling which you had done in Oracle Apps?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Ans:We have to explain the recent troubeshooting which we had done recently.Whenever we are doing troubleshooting in Oracle Applications,it is very important to get familiar with the log file locations,depending&lt;br /&gt;on release of Apps.In Apps 11i and R12 the log file locations have changed,so best link I found to remember this locations is given below:&lt;br /&gt;&lt;br /&gt;http://easyoracleapps.wordpress.com/category/r12/&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;10)What do we have in FND_NODES?when do we run FND_CONC_CLONE.SETUP_CLEAN ?&lt;/span&gt;&lt;/span&gt;(&lt;span style="font-weight:bold;"&gt;Apps DBA interview question)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;FND_NODES have the information about node_name,node_mode, support_cp.&lt;br /&gt;we use FND_CONC_CLONE.SETUP_CLEAN  to cleanup FND_NODES table to clear corrupted setup after performing&lt;br /&gt;clonning of Applications.&lt;br /&gt;&lt;br /&gt;##&lt;br /&gt;## before cleanup&lt;br /&gt;##&lt;br /&gt;&lt;br /&gt;SQL&gt;select node_name, node_mode, support_cp,&lt;br /&gt;    support_web, support_admin, support_forms&lt;br /&gt;    from FND_NODES&lt;br /&gt;&lt;br /&gt;NODE_NAME                      N S S S S&lt;br /&gt;------------------------------ - - - - -&lt;br /&gt;HOST01                         O Y N Y N&lt;br /&gt;MIDTIER01                      O N Y N Y&lt;br /&gt;APPSERVER21                    N Y N Y   &lt;-- bogust host&lt;br /&gt;APPSERVER22                    N Y N Y   &lt;-- bogust host&lt;br /&gt;APPSERVER23                    N Y N Y   &lt;-- bogust host&lt;br /&gt;AUTHENTICATION                 O N N N N&lt;br /&gt;&lt;br /&gt;6 rows selected.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;##&lt;br /&gt;## Cleanup&lt;br /&gt;##&lt;br /&gt;    login as 'applmgr'(application filesystem owner),set the application environment and run&lt;br /&gt;FND_CONC_CLONE script to remove bogust host entries.Now login with 'apps' user in Database.&lt;br /&gt;&lt;br /&gt;SQL&gt; sho user&lt;br /&gt;USER is "APPS"&lt;br /&gt;SQL&gt; EXEC FND_CONC_CLONE.SETUP_CLEAN;&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;SQL&gt; commit;&lt;br /&gt;&lt;br /&gt;Commit complete.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;##&lt;br /&gt;## After cleanup&lt;br /&gt;##&lt;br /&gt;&lt;br /&gt;SQL&gt; select node_name, node_mode, support_cp,&lt;br /&gt;     support_web, support_admin, support_forms&lt;br /&gt;     from FND_NODES  &lt;br /&gt;     /&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;##&lt;br /&gt;## Run AutoConfig&lt;br /&gt;##&lt;br /&gt;Note:Context file location &lt;br /&gt;In Apps 11i:$APPL_TOP/admin/$TWO_TASK.xml  &lt;br /&gt;In Apps R12:$INST_TOP/appl/admin/TWO_TASK_&lt;hostname&gt;.xml&lt;br /&gt;&lt;br /&gt;## Host01&lt;br /&gt;In Apps 11i:&lt;br /&gt;$AD_TOP/bin/adconfig.sh contextfile=$APPL_TOP/admin/ appspass=&lt;pass&gt;&lt;br /&gt;&lt;br /&gt;In Apps R12:&lt;br /&gt;$AD_TOP/bin/adconfig.sh contextfile=$INST_TOP/appl/admin/TWO_TASK_&lt;hostname&gt;.xml&lt;br /&gt;appspass=apps&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;## Host&lt;br /&gt;$AD_TOP/bin/adconfig.sh contextfile=$APPL_TOP/admin/XTPR_host02.xml appspass=&lt;pass&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;##&lt;br /&gt;## After AutoConfig runs&lt;br /&gt;##&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; select node_name, node_mode, support_cp,&lt;br /&gt;          support_web, support_admin, support_forms&lt;br /&gt;         from FND_NODES&lt;br /&gt;&lt;br /&gt;NODE_NAME                      N S S S S&lt;br /&gt;------------------------------ - - - - -&lt;br /&gt;MIDTIER01                      O N Y N Y&lt;br /&gt;AUTHENTICATION                 O N N N N&lt;br /&gt;HOST01                         O Y N Y N&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;11)Where do we find the details of all the ports in Oracle Apps?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;   Details of all the ports for various severs are present in portlist.ini file.&lt;br /&gt;This file is located inside technology stack in the below mentioned path:&lt;br /&gt;&lt;br /&gt;/oraAPP/apps/tech_st/10.1.2/install&lt;br /&gt;&lt;br /&gt;The portlist.ini file have the details of all the ports information of all the servers like HTTP,Java,Oracle Notification&lt;br /&gt;Server,Oracle Developer suite,DATABASE LISTENER,Web Cache,Reports Services,DCM Discovery,Log Loader which can be&lt;br /&gt;seen below.&lt;br /&gt;&lt;br /&gt;-bash-3.2$ view portlist.ini&lt;br /&gt;&lt;br /&gt;;OracleAS Components reserve the following ports at install time.&lt;br /&gt;;As a post-installation step, you can reconfigure a component to use a different port.&lt;br /&gt;;Those changes will not be visible in this file.&lt;br /&gt;&lt;br /&gt;[System]&lt;br /&gt;Host Name = TESTNODEebs.in.apps.com&lt;br /&gt;&lt;br /&gt;[Ports]&lt;br /&gt;Oracle HTTP Server port =  7778&lt;br /&gt;Oracle HTTP Server Listen port = 7779&lt;br /&gt;Oracle HTTP Server SSL port = 8250&lt;br /&gt;Oracle HTTP Server Listen (SSL) port = 4444&lt;br /&gt;Java Object Cache port = 7000&lt;br /&gt;Oracle Notification Server Request port = 6003&lt;br /&gt;Oracle Notification Server Local port = 6102&lt;br /&gt;Oracle Notification Server Remote port = 6201&lt;br /&gt;Oracle Developer Suite HTTP port = 8888&lt;br /&gt;Oracle Developer Suite JMS port = 9240&lt;br /&gt;Oracle Developer Suite RMI port = 23910&lt;br /&gt;ASG port = 7891&lt;br /&gt;Oracle HTTP Server Diagnostic port = 7200&lt;br /&gt;Log Loader port = 44000&lt;br /&gt;Application Server Control RMI port = 1850&lt;br /&gt;DCM Discovery port = 7100&lt;br /&gt;Oracle Net Listener = 1521&lt;br /&gt;Oracle Management Agent Port = 1157&lt;br /&gt;Application Server Control port = 1156&lt;br /&gt;Web Cache HTTP Listen port = 7778&lt;br /&gt;Web Cache HTTP Listen (SSL) port = 8250&lt;br /&gt;Web Cache Administration port = 9400&lt;br /&gt;Web Cache Invalidation port = 9401&lt;br /&gt;Web Cache Statistics port = 9402&lt;br /&gt;Reports Services bridge port = 14011&lt;br /&gt;Reports Services discoveryService port = 14021&lt;br /&gt;Reports Services SQL*Net port = 1950&lt;br /&gt;&lt;br /&gt;If you don't know port number of your web server you can check it in file&lt;br /&gt;$IAS_ORACLE_HOME/Apache/Apache/conf/httpd.conf with directive Listen &amp; Port&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;12)How we check the sysadmin password which we are using to login Oracle E-business suite home page is correct?&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;(Apps DBA interview question)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt;We Use Following query to check whether 'sysadmin' password that we are&lt;br /&gt;using is correct or incorrect.&lt;br /&gt;&lt;br /&gt;select fnd_web_sec.validate_login('SYSADMIN','Passord_for_sysadmin')&lt;br /&gt; from dual;&lt;br /&gt;&lt;br /&gt;If it returns Y then sysadmin password is correct&lt;br /&gt;If it returns N then sysadmin password that we are using&lt;br /&gt;is wrong. We have  to change sysadmin password using 'FNDCPASS' utility.&lt;br /&gt;&lt;br /&gt;Eg:&lt;br /&gt;&lt;br /&gt;SQL&gt; select fnd_web_sec.validate_login('SYSADMIN','Passord_for_sysadmin')&lt;br /&gt; from dual;&lt;br /&gt;&lt;br /&gt;FND_WEB_SEC.VALIDATE_LOGIN('SYSADMIN','sysadmin')&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;N&lt;br /&gt;&lt;br /&gt;SQL&gt; select fnd_web_sec.validate_login('SYSADMIN','welcome')&lt;br /&gt; from dual;  2&lt;br /&gt;&lt;br /&gt;FND_WEB_SEC.VALIDATE_LOGIN('SYSADMIN','WELCOME')&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Y&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;13)How to check the Standby Database is in sync with production Database?&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;(Apps DBA interview question)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans:&lt;/span&gt; Check the below link for useful details:&lt;br /&gt;&lt;br /&gt;http://www.oraclemasters.in/?p=1255&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-2939908980117122613?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/2939908980117122613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/challenging-dba-and-apps-dba-interview.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2939908980117122613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2939908980117122613'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/challenging-dba-and-apps-dba-interview.html' title='Challenging DBA and Apps DBA interview questions'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-7402516405338201455</id><published>2011-09-21T09:42:00.000-07:00</published><updated>2011-09-21T10:01:31.997-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN COMMANDS</title><content type='html'>Hi,&lt;br /&gt;   We use RMAN COMMANDS for doing lot of tasks like backup,cloning,conversion of filesystems from NON-ASM to ASM and vice-versa.The commands of RMAN are many so I decided to make a note of few crucial ones,hope it can be useful.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;There are two types of RMAN commands:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Stand-alone:&lt;/span&gt;Executed at the RMAN prompt and are generally self-contained. CHANGE, CONNECT,CREATE CATALOG, RESYNC CATALOG. CREATE SCRIPT, DELETE SCRIPT, REPLACE SCRIPT etc.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)JOB:&lt;/span&gt;These are usually grouped and RMAN executes this commands inside of RUN command block sequentially. If any command fails, RMAN ceases processing, no further commands within the block are executed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;•THE CONFIGURE COMMAND :&lt;/span&gt;&lt;br /&gt; CONFIGURE AUTOMATIC CHANNEL :&lt;br /&gt; RMAN &gt; CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT ‘/db01/backup/%U’;&lt;br /&gt;&lt;br /&gt; IMPLEMENT RETENTION POLICY BY SPECIFYING RECOVERY WINDOW :&lt;br /&gt; RMAN &gt;CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 days ;&lt;br /&gt;- Recovery window: a period of time that begins with the current time and extends backward in time to the point of recoverability. In above example, the command ensures that for each data file, one back up that is older than the point of recoverability (7 days) must be retained.&lt;br /&gt;&lt;br /&gt; IMPLEMENT RETENTION POLICY BY SPECIFYING REDUNDANCY:&lt;br /&gt; RMAN &gt;CONFIGURE REDUNDANCY POLICY TO REDUNDANCY 2;&lt;br /&gt;- Redundancy value indicates that any number of backups or copies beyond a specified number need not be retained. The default is 1 day.&lt;br /&gt;&lt;br /&gt; CONFIGURE DUPLEXED BACKUP SETS:&lt;br /&gt; RMAN &gt;CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE disk TO 2;&lt;br /&gt;&lt;br /&gt;- We can create up to 4 copies (in above example 2) of each back up piece in a backup set for all backup commands that use automatic channels. This applies only for datafiles and archived redo log files.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt; CONFIGURE BACKUP OPTIMIZATION:&lt;/span&gt;&lt;br /&gt; RMAN &gt;CONFIGURE BACKUP OPTIMIZATION ON;&lt;br /&gt;- With this setting on, the BACKUP command does not backup files to a device type if the identical file has already been backed up to the device type. For two files to be identical, there contents must be exactly the same. Default value is off.&lt;br /&gt;&lt;br /&gt; USE THE CLEAR OPTION TO RETURN TO THE DEFAULT VALUE:&lt;br /&gt; RMAN &gt;CONFIGURE RETENTION POLICY CLEAR;&lt;br /&gt; RMAN &gt;CONFIGURE CHANNEL DEVICE TYPE sbt CLEAR;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;•THE SHOW COMMAND :&lt;/span&gt;&lt;br /&gt;- This command displays persistent configuration settings.&lt;br /&gt; AUTOMATIC CHANNEL CONFIGURATION SETTINGS:&lt;br /&gt; RMAN&gt;SHOW CHANNEL;&lt;br /&gt; RMAN&gt;SHOW DEVICE TYPE;&lt;br /&gt; RMAN&gt;SHOW DEFAULT DEVICE TYPE;&lt;br /&gt;&lt;br /&gt; RMAN RETENTION POLICY CONFIGURATION SETTINGS:&lt;br /&gt; RMAN&gt;SHOW RETENTION POLICY;&lt;br /&gt;&lt;br /&gt; NUMBER OF BACKUP COPIES:&lt;br /&gt; SHOW DATAFILE BACKUP COPIES;&lt;br /&gt;&lt;br /&gt; MAXIMUM SIZE OF BACKUP SETS:&lt;br /&gt; SHOW MAXSETSIZE;&lt;br /&gt;&lt;br /&gt; TABLESPACES EXCLUDED FROM WHOLE DATABASE BACKUP:&lt;br /&gt; SHOW EXCLUDE;&lt;br /&gt;&lt;br /&gt; STATUS OF BACKUP OPTIMIZATON:&lt;br /&gt; SHOW BACKUP OPTIMIZATION;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;•LIST COMMAND:&lt;/span&gt;&lt;br /&gt;- LIST command is used to produce a detailed report listing all information for the following.&lt;br /&gt;&lt;br /&gt; LIST BACKUPS OF ALL FILES IN THE DATABASE:&lt;br /&gt; RMAN &gt;LIST BACKUP OF DATABASE;&lt;br /&gt;&lt;br /&gt; LIST ALL BACKUP SETS CONTAINING THE uses1.dbf DATAFILE:&lt;br /&gt; RMAN &gt;LIST BACKUP OF DATAFILE ”/db1/oradata/u03/users1.dbf”;&lt;br /&gt;&lt;br /&gt; LIST ALL COPIES OF DATAFILES IN THE SYSTEM TABLESPACE:&lt;br /&gt; RMAN &gt;LIST COPY OF TABLESPACE “SYSTEM”;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;•THE REPORT COMMAND:&lt;/span&gt;&lt;br /&gt;- This command helps to analyze information in the RMAN repository in more detail.&lt;br /&gt;&lt;br /&gt; WHAT IS THE STRUCTURE OF THE DATABASE?&lt;br /&gt; RMAN &gt;REPORT SCHEMA;&lt;br /&gt;&lt;br /&gt; WHICH FILES NEED TO BE BACKED UP?&lt;br /&gt; RMAN &gt;REPORT NEED BACKUP …;&lt;br /&gt;&lt;br /&gt;WHICH BACKUPS CAN BE DELETED?&lt;br /&gt; RMAN &gt;REPORT OBSOLETE;&lt;br /&gt;&lt;br /&gt; WHICH FILES ARE NOT RECOVERABLE B’COS OF UNRECOVERABLE OPERATIONS:&lt;br /&gt; RMAN &gt;REPORT UNRECOVERABLE …;&lt;br /&gt;&lt;br /&gt;•THE REPORT NEED BACKUP COMMAND :&lt;br /&gt;- This command is used to identify all data files that need a backup. There are three options with this command.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt; INCREMENTAL:&lt;/span&gt; An integer specifies the maximum number of incremental backups that should be restored during recovery. If this number or more is required then the data file needs a new full backup.&lt;br /&gt;&lt;br /&gt; RMAN &gt;REPORT NEED BACKUP incremental 3 database;&lt;br /&gt;This example will report files needing three or more incremental backups for recovery.&lt;br /&gt;&lt;br /&gt; DAYS: An integer specifies max. number of days since the last full or incremental backup of file. The file needs a backup if the most recent backup is equal to or greater than this number.&lt;br /&gt; RMAN &gt;REPORT NEED BACKUP days 3 tablespace system;&lt;br /&gt;To report what system files have not been backed up for three days, use above command.&lt;br /&gt;&lt;br /&gt; REDUNDANCY: An integer specifies the min. level of redundancy considered necessary. For example, redundancy level two requires a backup if there are not two or more backups.&lt;br /&gt; RMAN &gt;REPORT NEED BACKUP redundancy 3;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;•RECOVERY MANAGER PACKAGES:&lt;/span&gt;&lt;br /&gt;- Two packages named DBMS_RCVCAT AND DBMS_RCVMAN are used by RMAN to perform its tasks.&lt;br /&gt;-DBMS_RCVMAN is created in target database. It queries the control file or recovery catalog.&lt;br /&gt;-DBMS_RCVCAT is used by recovery manager to maintain the information in the recovery catalog.&lt;br /&gt;-DBMS_BACKUP_RESTORE package is created by dbmsbkrs.sql and prvtbkrs.plb script called by catproc.sql. it is used to interface with oracle and os to create,restore and recover bkups of datafiles and archived redo log files.&lt;br /&gt;&lt;br /&gt;Hope it helps...I will increase this thread continously as Oracle 11g has lot of new commands.&lt;br /&gt; &lt;br /&gt;Happy Oracle learning...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-7402516405338201455?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/7402516405338201455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/rman-commands.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/7402516405338201455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/7402516405338201455'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/rman-commands.html' title='RMAN COMMANDS'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-3302577754072418933</id><published>2011-09-19T07:29:00.000-07:00</published><updated>2011-09-19T07:45:40.068-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Apps DBA tasks'/><title type='text'>CLONING OF APPLICATIONS IN APPS 11i</title><content type='html'>Hi,&lt;br /&gt;   Lot of times Apps DBAs have to do the task of Cloning,It is one of the frequently doing task for Apps DBA.Below I'm describing one such task.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Concept of Cloning:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;* Cloning is the act of  creating an identical copy of an existing Oracle applications  system.&lt;br /&gt;* The new system, including component versions, operating system and platform type, is identical to the existing system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Steps for cloning with E-business suite version 11.5.10.2 on linux are as follows:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Why to clone:&lt;/span&gt;&lt;br /&gt;- Create a copy of a production system for testing updates.&lt;br /&gt;- Migrate an existing system to new hardware.&lt;br /&gt;- Create a stage area to reduce patching downtime.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;* PREREQUISITE TASKS:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;1) PREPARE THE SOOURCE SYSTEM:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;LOG ON TO SOURCE SYSTEM AS ORACLE USER, RUN THE FOLLOWING COMMANDS.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;a)Preparing source system for dbTier:&lt;/span&gt;&lt;br /&gt;$cd /apps11i/proddb/9.2.0/appsutil/scripts/PROD_node1&lt;br /&gt;$perl &lt;span style="font-weight:bold;"&gt;adpreclone.pl&lt;/span&gt; dbTier&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;b)Preparing source system for applicaton tier (appsTier):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$cd /apps11i/prodcomn/admin/scripts/PROD_node1&lt;br /&gt;$perl &lt;span style="font-weight:bold;"&gt;adpreclone.pl&lt;/span&gt; appsTier&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;2)COPY THE SOURCE SYSTEM TO THE TARGET SYSTEM:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Properly shutdown the database from the database terminal i.e. the terminal where database environment is set and shutdown the application from application terminal where application environment is set.&lt;br /&gt;- Copy base directory including all its sub-directory (prodappl, prodcomn, proddb, prodora, proddata) manually using OS command.&lt;br /&gt;- The directory should be same on the target machine as on the source machine for easiness.&lt;br /&gt;- Copy the database configuration file and application configuration file i.e. .db and .app from source to target machine.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;3)Edit the .db file, change the machine name i.e. from source to target m/c name.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;. /apps11i/proddb/9.2.0/PROD_node2.env&lt;br /&gt;PATH=$PATH:/apps11i/proddb/9.2.0/appsutil/scripts/PROD_node2&lt;br /&gt;PATH=$PATH:/apps11i/prodcomn/admin/scripts/PROD_node2&lt;br /&gt;export PATH&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;4)Now run the post script for dbtier:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$cd /apps11i/proddb/9.2.0/appsutil/clone/bin&lt;br /&gt;$perl adcfgclone.pl dbTier&lt;br /&gt;&lt;br /&gt;and supply the required values prompt by script like:&lt;br /&gt;&lt;br /&gt;enter APPS password : apps&lt;br /&gt;virtual hostname for tgt node:  y&lt;br /&gt;Tgt hostbane ; node2.server.com&lt;br /&gt;Tgt rac instance:  n&lt;br /&gt;Tgt. System databse name:  PROD&lt;br /&gt;Tgt. System RDBMS oracle_home dir:  choose the default (just press enter)&lt;br /&gt;System util_file accessible dirs list:&lt;br /&gt; /apps11i/proddb/9.2.0/appsutil/outbound/PROD_node2&lt;br /&gt;(how to find this path:&lt;br /&gt; On target machine,&lt;br /&gt; Sho parameter %util% )&lt;br /&gt;&lt;br /&gt;No of DATA_TOPS on the target system : 1&lt;br /&gt;Tgt system DATA_TOP: select the default&lt;br /&gt;Do u want to preserve the display set to node1:0.0: yes&lt;br /&gt;Do u want to preserve the port values from the src system on the tgt. System:  yes&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;5)Now edit the .app file i.e. change the source name to target name:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;. /apps11i/prodappl/APPSPROD_node2.env&lt;br /&gt;PATH=$PATH:/apps11i/prodcomn/admin/scripts/PROD_node2&lt;br /&gt;PATH=$PATH:/apps11i/proddb/9.2.0/appsutil/scripts/PROD_node2&lt;br /&gt;export PATH&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;6)Now run the .app file and the environment for application:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$cd /apps11i/prodcomn/clone/bin&lt;br /&gt;$perl adcfgclone.pl appsTier&lt;br /&gt;&lt;br /&gt;provide the required values prompt by the script.&lt;br /&gt;Do you want to use the virtual host name for the target node: y&lt;br /&gt;Tgt host name: node2.server.com&lt;br /&gt;Tgt system dabase sid: PROD&lt;br /&gt;Tgt. System database server node: node2.server.com&lt;br /&gt;Tgt. System database domain name: server.com&lt;br /&gt;Does the TGT. System has more then one application Tier: no&lt;br /&gt;Is the tgt. System APPL_TOP devided in to multiple mount points: no&lt;br /&gt;Tgt system APPL_TOP mount point: &lt;br /&gt; /apps11i/prodcomn/&lt;br /&gt;Tgt. System 8.0.6 ORACLE_HOME DIR: choose dfault&lt;br /&gt;Tgt system iAS ORACLE_HOME DIR : choose default\&lt;br /&gt;Preserve the display: yes\&lt;br /&gt;Preserve the port value: yes&lt;br /&gt;Web listner port is : 8000&lt;br /&gt;UTL_FILE_DIR on database tier consist of the following dirs.&lt;br /&gt;1. . /usr/tmp&lt;br /&gt;2. /apps11i/prod2.0/appsutil/util/outbound/PROD_node2&lt;br /&gt;3. /apps11i/proddb/9.2.0/appsutil/outbound/PROD_node2&lt;br /&gt;4. /usr/tmp&lt;br /&gt;Choose a value which will be set as APPLTMP value on the target node.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Important Scripts used for Apps DBA:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-Run the .app profile to set the environment for applications&lt;br /&gt;1) addbctl.sh   start    To start the database&lt;br /&gt;2) addlnctl.sh  start  PROD  To start the corresponding listener&lt;br /&gt;3) adstrtal.sh  apps/apps  To start all the application services&lt;br /&gt;4) adstpall.sh  stop   To stop all services&lt;br /&gt;&lt;br /&gt;Hope it helps.&lt;br /&gt;&lt;br /&gt;Happy Apps DBA learning&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-3302577754072418933?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/3302577754072418933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/cloning-of-applications-in-apps-11i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/3302577754072418933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/3302577754072418933'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/cloning-of-applications-in-apps-11i.html' title='CLONING OF APPLICATIONS IN APPS 11i'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-8155439361136884028</id><published>2011-09-13T02:02:00.000-07:00</published><updated>2011-09-13T02:09:23.063-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DBA tasks'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Concepts'/><title type='text'>Proxy user in Oracle</title><content type='html'>&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Proxy user -&lt;/span&gt;&lt;/span&gt; A proxy user is a user who can assume the identity of other user/users.It is basically created for the application user to access the target user data without knowing its password.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Creating Proxy User:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; create user proxy1 identified by proxy1;&lt;br /&gt;&lt;br /&gt;User created.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter user target grant connect through proxy1;&lt;br /&gt;&lt;br /&gt;User altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; select * from dba_proxies;&lt;br /&gt;&lt;br /&gt;PROXY                          CLIENT                         AUT&lt;br /&gt;------------------------------ ------------------------------ ---&lt;br /&gt;AUTHORIZATION_CONSTRAINT            ROLE                           PROXY_AUT&lt;br /&gt;----------------------------------- ------------------------------ ---------&lt;br /&gt;proxy1                        target                      NO&lt;br /&gt;PROXY MAY ACTIVATE ALL CLIENT ROLES                                DATABASE&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Connecting with Proxy User:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;C:\WINDOWS\system32&gt;sqlplus sys@TESTDB AS SYSDBA&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.4.0 - Production on Thu Aug 25 11:33:45 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.&lt;br /&gt;&lt;br /&gt;Enter password:&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production&lt;br /&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&gt; conn proxy1[target]&lt;br /&gt;Enter password:&lt;br /&gt;Connected.&lt;br /&gt;SQL&gt; SHOW USER&lt;br /&gt;USER is "target"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps...&lt;br /&gt;&lt;br /&gt;Happy Oracle learning.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-8155439361136884028?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/8155439361136884028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/proxy-user-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8155439361136884028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8155439361136884028'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/proxy-user-in-oracle.html' title='Proxy user in Oracle'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-8500306691818533433</id><published>2011-09-03T00:02:00.000-07:00</published><updated>2011-09-03T00:10:16.758-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MBA'/><title type='text'>Completed MBA successfully</title><content type='html'>Hi,&lt;br /&gt;  I completed my MBA in Information Technology from Sikkim Manipal University.This MBA is a second attempt to combine the Business and technology.ITIL v3 completion was the first step.Database management,Financial Accounting,Strategic Management &amp; Business policies,Enterprise Resource planning,Statistics are some of the subjects which I found interesting,rest all were Ok.It was some time difficult to manage job and this study together but some how by almighty's grace and excellent support from people around me,had help me completing this MBA degree on time.Let's hope this can be useful to upgrade my carrier and gives me an idea of understanding business and technology together along with managerial point of view of the technology(Oracle),which I'm working currently.Oracle and MBA seems to be different concepts all together but I believe the main purpose of technology is Business as the final end product.I hope this journey will be more interesting now.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-8500306691818533433?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/8500306691818533433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/completed-mba-successfully.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8500306691818533433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8500306691818533433'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/09/completed-mba-successfully.html' title='Completed MBA successfully'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-7648373439273573899</id><published>2011-08-30T01:55:00.000-07:00</published><updated>2011-08-30T03:13:24.446-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DBA tasks'/><title type='text'>Cloning of ORACLE_HOME in Oracle 11g</title><content type='html'>&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Cloning of ORACLE_HOME in Oracle 11g:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;                             We have to clone ORACLE_HOME for few of the reasons like&lt;br /&gt;1)Whenever a mount point disk space is insufficient.&lt;br /&gt;2)Copy the software from one machine to other withour intstalling.&lt;br /&gt;&lt;br /&gt;When we are doing Cloning of the ORACLE_HOME(i.e software) in Oracle11g we need to specify &lt;span style="font-weight:bold;"&gt;ORACLE_BASE&lt;/span&gt; by executing &lt;span style="font-weight:bold;"&gt;clone.pl&lt;/span&gt; perl script below is the experiment to do this ORACLE_HOME cloning for Oracle 10g ORACLE_HOME the steps remain the same only difference is ORACLE_BASE environment variable is not required.We have to request for the downtime of 30 minutes for performing this task because after cloning ORACLE_HOME&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;we need to verify and change the below things:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1).bash_profile(.profile on solaris,hp/ux,aix) file on linux.&lt;br /&gt;&lt;br /&gt;2)/etc/oratab file(/var/opt/oracle/oratab on solaris) on linux.&lt;br /&gt;&lt;br /&gt;3)listener.ora file in $TNS_ADMIN($ORACLE_HOME/network/admin) path.&lt;br /&gt;&lt;br /&gt;4)expdp(export job script) and RMAN scripts or other scripts using ORACLE_HOME and ORACLE_BASE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 1:Collect the environment variable of your current ORACLE_HOME from the .bash_profile (.profile in any other unix environment):&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Below are the current settings:&lt;br /&gt;&lt;br /&gt;# .bash_profile&lt;br /&gt;&lt;br /&gt;export ORACLE_BASE=/u01/oracle11g&lt;br /&gt;&lt;br /&gt;export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1&lt;br /&gt;&lt;br /&gt;export PATH=$ORACLE_HOME/bin:$PATH&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 2:Set the Display environmet variable:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;DISPLAY=":0.0" export DISPLAY&lt;br /&gt;  (or)&lt;br /&gt;xclock -display machine_name:0.0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 3:Now,zipped and extract using tar in a mount point where you have sufficient diskspace:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$ export OLD_ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1&lt;br /&gt;$ cd $OLD_ORACLE_HOME/..&lt;br /&gt;$ &lt;span style="font-weight:bold;"&gt;tar -cvf /u05/TAR_ORACLE_HOME1/OH.tar /u01/oracle11g/product/11.2.0/dbhome_1 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;&lt;br /&gt;tar -cvf destination_location source_location&lt;br /&gt;Where:Destination_location=u05/TAR_ORACLE_HOME1/OH.tar&lt;br /&gt;      Source_location=/u01/oracle11g/product/11.2.0/dbhome_1 &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 4:Destination ORACLE_HOME Creation:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[oracle@testnode1 u03]$ cd /u05&lt;br /&gt;[oracle@testnode1 u05]$ mkdir app&lt;br /&gt;[oracle@testnode1 u05]$ cd app/&lt;br /&gt;[oracle@testnode1 app]$ ls&lt;br /&gt;[oracle@testnode1 app]$ mkdir db11g2&lt;br /&gt;[oracle@testnode1 app]$ cd db11g2/&lt;br /&gt;[oracle@testnode1 db11g2]$ mkdir product&lt;br /&gt;[oracle@testnode1 db11g2]$ cd product/&lt;br /&gt;[oracle@testnode1 product]$ pwd&lt;br /&gt;/u05/app/db11g2/product&lt;br /&gt;[oracle@testnode1 product]$ mkdir 11.2&lt;br /&gt;[oracle@testnode1 product]$ cd 11.2/&lt;br /&gt;[oracle@testnode1 11.2]$ pwd&lt;br /&gt;/u05/app/db11g2/product/11.2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;export ORACLE_BASE=/u05/app/db11g2&lt;br /&gt;export ORACLE_HOME=/u05/app/db11g2/product/11.2&lt;br /&gt;&lt;br /&gt;[oracle@testnode1 11.2]$ pwd&lt;br /&gt;/u05/app/db11g2/product/11.2&lt;br /&gt;$cd /u05/app/db11g2/product/11.2&lt;br /&gt;$ tar -xvf /u05/TAR_ORACLE_HOME1/OH.tar&lt;br /&gt;&lt;br /&gt;=&gt;This will create the ORACLE_HOME as present is /u01 mount point in /u05 mount point&lt;br /&gt;Next,&lt;br /&gt;&lt;br /&gt;$export PATH=$ORACLE_HOME/bin:$PATH&lt;br /&gt;$export ORACLE_HOME=/u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1&lt;br /&gt;$echo $ORACLE_HOME&lt;br /&gt;/u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1&lt;br /&gt;$cd /u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1&lt;br /&gt;$perl $ORACLE_HOME/clone/bin/clone.pl ORACLE_HOME=/u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1 ORACLE_BASE=/u05/app/db11g2/product/11.2/u01/oracle11g ORACLE_HOME_NAME=OraDb11g_home2 &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Result:&lt;/span&gt;&lt;br /&gt;--------------------------------------&lt;/span&gt;&lt;br /&gt;WARNING:&lt;br /&gt;The following configuration scripts need to be executed as the "root" user.&lt;br /&gt;/u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1/root.sh&lt;br /&gt;To execute the configuration scripts:&lt;br /&gt;    1. Open a terminal window&lt;br /&gt;    2. Log in as "root"&lt;br /&gt;    3. Run the scripts&lt;br /&gt;    &lt;br /&gt;The cloning of OraDb11g_home_2 was successful.&lt;br /&gt;Please check '/u01/oraInventory/logs/cloneActions2011-08-29_04-23-59PM.log' for more details.&lt;br /&gt;[oracle@testnode1 dbhome_1]$ &lt;br /&gt;[oracle@testnode1 dbhome_1]$ &lt;br /&gt;[oracle@testnode1 dbhome_1]$ &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 5:Execute root.sh script:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Log in as "root"&lt;br /&gt;[oracle@testnode1 dbhome_1]$ su&lt;br /&gt;Password: &lt;br /&gt;[root@testnode1 dbhome_1]# cd /u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1&lt;br /&gt;[root@testnode1 dbhome_1]#pwd&lt;br /&gt;/u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1&lt;br /&gt; [root@testnode1 dbhome_1]# sh root.sh&lt;br /&gt;Check /u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1/install/root_testnode1.in.bosch.com_2011-08-29_16-32-46.log &lt;br /&gt;for the output of root script&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 6:Copy the spfiles and password files:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Copy the spfiles and password files of Databases from previous $ORACLE_HOME/dbs( $ORACLE_HOME/database in windows) &lt;br /&gt;to new $ORACLE_HOME/dbs path&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 7:Post ORACLE_HOME clonning steps are as given below:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Modify .bash_profile file:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If we have created separate profile for each databases environment than we have update there and&lt;br /&gt;check we are able to login the Database successfully&lt;br /&gt;&lt;br /&gt;vi .bash_profile&lt;br /&gt;&lt;br /&gt;# User specific environment and startup programs&lt;br /&gt;&lt;br /&gt;PATH=$PATH:$HOME/bin&lt;br /&gt;&lt;br /&gt;export PATH&lt;br /&gt;export ORACLE_BASE=/u05/app/db11g2/product/11.2/u01/oracle11g&lt;br /&gt;export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1&lt;br /&gt;export PATH=$ORACLE_HOME/bin:$PATH&lt;br /&gt;export LD_LIBRARY_PATH=$ORACLE_HOME/lib&lt;br /&gt;export sq='sqlplus "/as sysdba"'&lt;br /&gt;export ORACLE_SID=TESTDB1&lt;br /&gt;&lt;br /&gt;:wq =&gt;save and quit.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)Modify /etc/oratab file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Modify the /etc/oratab entry in linux with the neW ORACLE_HOME path&lt;br /&gt;&lt;br /&gt;# Multiple entries with the same $ORACLE_SID are not allowed.&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;#TESTDB2:/u01/oracle11g/product/11.2.0/dbhome_1:Y&lt;br /&gt;#TESTDB1:/u01/oracle11g/product/11.2.0/dbhome_1:Y&lt;br /&gt;&lt;br /&gt;#New ORACLE_HOME&lt;br /&gt;TESTDB2:/u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1:Y&lt;br /&gt;TESTDB1:/u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1:Y&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3)Modify listener.ora file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; If we are not able to connect from other machine or client machine after ORACLE_HOME cloning don't get shocked as we have to update listener.ora with the new ORACLE_HOME path.Before modifying listener.ora file create a backup file&lt;br /&gt;if it does not exists.Now you cand set the new ORACLE_HOME path here as given below.&lt;br /&gt;&lt;br /&gt;[oracle@testnode1 oracle11g]$ cd $TNS_ADMIN&lt;br /&gt;[oracle@testnode1 admin]$ pwd&lt;br /&gt;/u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1/network/admin&lt;br /&gt;[oracle@testnode1 admin]$ ls -altr&lt;br /&gt;-rw-r--r--  1 oracle dba  431 May 13 15:36 sqlnet.ora&lt;br /&gt;-rw-r--r--  1 oracle dba  959 Aug 29 17:15 tnsnames.ora&lt;br /&gt;-rw-r--r--  1 oracle dba  405 Aug 29 19:32 listener.ora_bkp29082011&lt;br /&gt;-rw-r--r--  1 oracle dba  461 Aug 29 19:34 listener.ora&lt;br /&gt;drwxr-xr-x  3 oracle dba 4096 Aug 30 11:04 .&lt;br /&gt;[oracle@testnode1 admin]$ vi listener.ora&lt;br /&gt;&lt;br /&gt;LISTENER =&lt;br /&gt;  (DESCRIPTION_LIST =&lt;br /&gt;    (DESCRIPTION =&lt;br /&gt;      (ADDRESS = (PROTOCOL = TCP)(HOST =testnode1)(PORT = 1521))&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;SID_LIST_LISTENER =&lt;br /&gt;  (SID_LIST =&lt;br /&gt;    (SID_DESC =&lt;br /&gt;      (SID_NAME = TESTDB1)&lt;br /&gt;      (ORACLE_HOME = /u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1)&lt;br /&gt;    )&lt;br /&gt;   (SID_DESC =&lt;br /&gt;      (SID_NAME = TESTDB2)&lt;br /&gt;      (ORACLE_HOME = /u05/app/db11g2/product/11.2/u01/oracle11g/product/11.2.0/dbhome_1)&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;:wq =&gt;save and quit.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4)Modify expdp(export job script) and RMAN scripts or other scripts using ORACLE_HOME and ORACLE_BASE for their executions.&lt;/span&gt;&lt;br /&gt;          If we don't modify the Backup scripts or other scripts using ORACLE_HOME and ORACLE_BASE than next morning we might see backups or jobs getting failed so please make sure you modify the ORACLE_HOME and ORACLE_BASE.&lt;br /&gt;&lt;br /&gt;                    Now,we can test ourself in our local system whether we are able to connect to the Databases with the new ORACLE_HOME and than request the end users to use the system.Thus our task can be successfully completed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Enjoy DBA tasks&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-7648373439273573899?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/7648373439273573899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/cloning-of-oraclehome-in-oracle-11g.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/7648373439273573899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/7648373439273573899'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/cloning-of-oraclehome-in-oracle-11g.html' title='Cloning of ORACLE_HOME in Oracle 11g'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-6181462904056149666</id><published>2011-08-24T22:25:00.000-07:00</published><updated>2011-08-24T23:33:24.186-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Apps DBA tasks'/><title type='text'>Compiling JSP files automatically and manually in R12</title><content type='html'>Hi,&lt;br /&gt;   In R12 Application we can compile JSP files&lt;br /&gt;1)Automatically or&lt;br /&gt;2)Manually&lt;br /&gt;              Below are some useful steps to do the compilation of JSP files:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;1)Automatic JSP files compilation:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Command to complie jsp files automatically has some changes compared to 11i (See metalink notes 458338.1):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;2)Manual JSP files compilation:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Preparatory Step:&lt;/span&gt; Set the Oracle Application environment.&lt;br /&gt;# su - applmgr&lt;br /&gt;$ cd /oraAPP/apps/apps_st&lt;br /&gt;$TEST_node1.env&lt;br /&gt;&lt;br /&gt;We can follow below steps to compile a single jsp file (seeded or custom) in Oracle Applications 11i/R12.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;1)Copy the jsp file to $COMMON_TOP/webapps/oacore/html (this location translates to $OA_HTML):&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;We can use 'winscp' to copy the jsp file from windows to linux in a frequent manner each time.&lt;br /&gt;&lt;br /&gt;Placing the file under $OA_HTML enables end users to access the file using the url http://hostname.domain:port/OA_HTML/[jspfile.jsp]&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;2)Give ownership and permission for &lt;span style="font-weight:bold;"&gt;'applmgr'&lt;/span&gt;(Application file system owner) to compile jsp file.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#chown applmgr:dba /oraAPP/apps/apps_st/comn/webapps/oacore/html/test1.jsp&lt;br /&gt;#chmod -R 755 /oraAPP/apps/apps_st/comn/webapps/oacore/html/test1.jsp&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;3) Flush and Compile the jsp file using 'applmgr' user:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;# su - applmgr&lt;br /&gt;$ cd $OAH_TOP/html       =&gt;location of all jsp files&lt;br /&gt;&lt;br /&gt;-bash-3.2$ &lt;span style="font-weight:bold;"&gt;/oraAPP/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/ojspCompile.pl --compile --flush -p 2&lt;/span&gt;&lt;br /&gt;logfile set: /oraAPP/inst/apps/VIS_kor300949v20ebs/logs/appl/rgf/ojsp/ojspc_error.log&lt;br /&gt;starting...(compiling all)&lt;br /&gt;using 10i internal ojsp ver: 10&lt;br /&gt;synchronizing dependency file:&lt;br /&gt;  loading deplist...8052&lt;br /&gt;  enumerating jsps...8054&lt;br /&gt;  updating dependency...2&lt;br /&gt;  parsing jsp...2&lt;br /&gt;  writing deplist...8053&lt;br /&gt;initializing compilation:&lt;br /&gt;  eliminating children...5985 (-2069)&lt;br /&gt;translating and compiling:&lt;br /&gt;  translating jsps...5985/5985 in 6m51s&lt;br /&gt;  compiling jsps...5985/5985 [failed: 1] in 17m11s&lt;br /&gt;Finished!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Linux/Unix:&lt;/span&gt;&lt;br /&gt;cd $FND_TOP/patch/115/bin&lt;br /&gt;perl ojspCompile.pl --compile --flush -p 2&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Windows:&lt;/span&gt;&lt;br /&gt;cd %FND_TOP%\patch\115\bin&lt;br /&gt;perl -x ojspCompile.pl –compile –flush&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;4)Restart the Middle Tier(applications) services:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For Stopping the Middle-Tier services in R12:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-bash-3.2$ cd $ADMIN_SCRIPTS_HOME&lt;br /&gt;-bash-3.2$ ./adstpall.sh&lt;br /&gt;Enter the APPS username: apps&lt;br /&gt;&lt;br /&gt;Enter the APPS password:&lt;br /&gt;The logfile for this session is located at /oraAPP/inst/apps/TESTDB_TESTNODEebs/logs/appl/admin/log/adstpall.log&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For Starting the Middle-Tier Services in R12:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-bash-3.2$ ./adstrtal.sh&lt;br /&gt;&lt;br /&gt;You are running adstrtal.sh version 120.15&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Enter the APPS username: apps&lt;br /&gt;&lt;br /&gt;Enter the APPS password:&lt;br /&gt;The logfile for this session is located at /oraAPP/inst/apps/TESTDB_TESTNODEebs/logs/appl/admin/log/adstrtal.log&lt;br /&gt;&lt;br /&gt;                     Once the Middle-Tier services are started successfully,We have to check the URL for JSP file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;5)Verify the URL:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;The URL format will be as given below:&lt;br /&gt;http://hostname.domain:port/OA_HTML/[jspfile.jsp]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps...&lt;br /&gt;&lt;br /&gt;Happy Apps DBA learning.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-6181462904056149666?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/6181462904056149666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/compiling-jsp-files-automatically-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/6181462904056149666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/6181462904056149666'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/compiling-jsp-files-automatically-and.html' title='Compiling JSP files automatically and manually in R12'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-7782718150609223938</id><published>2011-08-20T12:15:00.000-07:00</published><updated>2011-08-20T12:30:18.523-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DBA tasks'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Errors'/><title type='text'>Setting the Oracle Environment for various Oracle Database versions</title><content type='html'>Hi,&lt;br /&gt;   When in we install different Oracle Software in our machine.It is very important we set the correct PATH and ORACLE_HOME environment variables in order to connect them always.Below is one such way which will be helpful.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Error messages:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;C:\Windows\system32&gt;sqlplus&lt;br /&gt;Error 6 initializing SQL*Plus&lt;br /&gt;Message file sp1&lt;lang&gt;.msb not found&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SP2-0750:&lt;/span&gt; You may need to set ORACLE_HOME to your Oracle software directory&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Pre-requistic step:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;On Windows OS:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;       Delete the environment variable &lt;span style="font-weight:bold;"&gt;'PATH'&lt;/span&gt; by going to computer=&gt;properties=&gt;Advanced&lt;br /&gt;system properties=&gt;Advanced=&gt;Environment variable=&gt;path and delete this Click OK.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;On linux OS:&lt;/span&gt;&lt;br /&gt;          We have to remove the &lt;span style="font-weight:bold;"&gt;'PATH'&lt;/span&gt; variable from .bash_profile or we can set separate .bash_profile for each Oracle Database versions and we have to use &lt;span style="font-weight:bold;"&gt;export&lt;/span&gt; in place of set command.&lt;br /&gt;&lt;br /&gt;C:\&gt;set ORACLE_HOME=&lt;your Oracle Home&gt;&lt;br /&gt;C:\&gt;set PATH=%ORACLE_HOME%\bin;%PATH%&lt;br /&gt;C:\&gt;set ORACLE_SID=&lt;your SID&gt;&lt;br /&gt;C:\&gt;sqlplus "/ as sysdba"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Oracle 11g:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Pre-requistics step:&lt;/span&gt;Make sure you started the services for Oracle 11g listener&lt;br /&gt;and Database in your machine(services.msc at run prompt and start Oracle 11g listener and Database services).&lt;br /&gt;&lt;br /&gt;set ORACLE_HOME=D:\app\RafiAlvi\product\11.2.0\dbhome_1&lt;br /&gt;set PATH=%ORACLE_HOME%\bin;%PATH%&lt;br /&gt;set ORACLE_SID=ORCL&lt;br /&gt;sqlplus "/as sysdba"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Oracle 10g:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Pre-requistics step:&lt;/span&gt; Make sure you are started services for Oracle 10g listener and Database in your machine.&lt;br /&gt;&lt;br /&gt;set ORACLE_HOME=D:\oracle\product\10.2.0\db_1&lt;br /&gt;set PATH=%ORACLE_HOME%\bin;%PATH%&lt;br /&gt;set ORACLE_SID=TESTDB&lt;br /&gt;sqlplus "/as sysdba"&lt;br /&gt;&lt;br /&gt;Hope it helps.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-7782718150609223938?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/7782718150609223938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/setting-oracle-environment-for-various.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/7782718150609223938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/7782718150609223938'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/setting-oracle-environment-for-various.html' title='Setting the Oracle Environment for various Oracle Database versions'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-2557779632899161452</id><published>2011-08-18T03:47:00.000-07:00</published><updated>2011-08-24T23:35:25.055-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FMW_tasks'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Weblogic'/><category scheme='http://www.blogger.com/atom/ns#' term='APEX tasks'/><title type='text'>Apex Deployment on Weblogic Server</title><content type='html'>Hi,&lt;br /&gt;     I started my Oracle fusion middleware journey with some good experiments.&lt;br /&gt;Below are the steps which I performed for deploying Apex on Weblogic Server.&lt;br /&gt;(Installation and configuration of Weblogic Server I will cover in separate post and Apex installation and configuration you can get from Apex_tasks Label link)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Apex can be integrated with weblogic by follwing below experiment:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;I)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Case study:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;WebLogic Server and APEX:&lt;/span&gt;&lt;br /&gt;When a WebLogic Server (WLS) is the primary Web server, accessing APEX pages though the WLS requires a proxy. The configuration of APEX generally follows one of two configurations – Apache with mod_plsql or the Embedded PL/SQL gateway. When WebLogic (without Apache) is the main HTTP server, getting APEX to surface on the same port as WebLogic requires some form of proxy.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Overall Approach:&lt;/span&gt;&lt;br /&gt;This solution creates a very simple Web Application that invokes a Java Proxy Servlet when a user tries to access APEX pages. Wrapping this Web Application around the Java Proxy Servlet lets the WLS serve APEX without any port conflicts. The WLS Proxy Servlet is a fully documented out of the box tool.&lt;br /&gt; To create and deploy the Web Application simply build the files outlined in this document, deploy the application and then access APEX.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Exploded deployment:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For convenience, this solution takes advantage of the exploded deployment feature of the WLS. In addition to the ability to deploy jar, war and ear files, the WLS can deploy Web Applications as an exploded directory that contains the same contents of the archive file. An exploded archive directory contains the same files and directories as a jar archive. However, the files and directories reside directly in the file system instead of as a single archive file (JAR). This example uses the exploded deployment style to create the Web Application for this example.&lt;br /&gt;Default WebLogic application&lt;br /&gt;The default Web Application is what the server sends to browser clients who do not specify a recognized URI (or specify only “/” as the URI). Each server has only one default Web Application and for this solution to work, this application must be set as the default. If there is already a default, this servlet could be added to the existing application by using an exploded deployment of the default with modification to the web.xml to register the APEX proxy.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;II)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Pre-requisites:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1)An Oracle database successfully serving APEX pages. The APEX instance may be on the same or different machine and served from either Apache or the Embedded PL/SQL gateway. In this example, APEX uses the xdb feature of Database which is included in Oracle 11g Database and database is  running on the same machine as the WebLogic server and natively appears at the http://10.47.33.10:8080/apex URL.&lt;br /&gt;Database side task:&lt;br /&gt;Open the Apex http port from the Database side &lt;br /&gt;SQL&gt; begin &lt;br /&gt;dbms_xdb.sethttpport('8080'); &lt;br /&gt;end; &lt;br /&gt;/ &lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed. &lt;br /&gt;&lt;br /&gt;SQL&gt; select dbms_xdb.gethttpport as "HTTP-Port" &lt;br /&gt;from dual; &lt;br /&gt;&lt;br /&gt;HTTP-Port &lt;br /&gt;---------- &lt;br /&gt;8080&lt;br /&gt;&lt;br /&gt;2) An Oracle WebLogic Server 10.3(11g)  running a Node Manger, the Administration Console and a Managed server. This example uses a domain created specifically for this exercise named APEXDemo. The WLS Administration console uses port 7001 and the SOA Managed Server uses port 8001.We are using SOA Managed Server for Deploying Apex&lt;br /&gt;&lt;br /&gt;3) There is no other “default” WebLogic application for the Managed Server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;III)Experiment:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Create the APEX Proxy Servlet&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;1)Create the following directory structure somewhere on disk. This experment assumes the /  root disk  is used. Note: the apexproxy.war directory name mimics the normal J2EE naming convention for Web Application archive (WAR).&lt;br /&gt;&lt;br /&gt;Create the directory structure as given below in linux OS:&lt;br /&gt;&lt;br /&gt;#mkdir APEX_PROXY&lt;br /&gt;#cd /APEX_PROXY&lt;br /&gt;#mkdir apexproxy.war &lt;br /&gt;#cd /APEX_PROXY/apexproxy.war&lt;br /&gt;&lt;br /&gt;Rest of the steps with screen shots very well documented in the below link:&lt;br /&gt;&lt;br /&gt;http://christopherbeck.wordpress.com/2008/09/15/weblogic-server-and-apex/&lt;br /&gt;&lt;br /&gt;Thanks Christopherbeck.&lt;br /&gt;&lt;br /&gt;Enjoy Oracle Fusion Middleware learning&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-2557779632899161452?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/2557779632899161452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/apex-deployment-on-weblogic-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2557779632899161452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2557779632899161452'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/apex-deployment-on-weblogic-server.html' title='Apex Deployment on Weblogic Server'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-7041867251828316566</id><published>2011-08-16T03:28:00.000-07:00</published><updated>2011-08-16T03:52:10.051-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='APEX tasks'/><title type='text'>Apex listener starting issue</title><content type='html'>Hi,&lt;br /&gt;   Usually we start the apex listener as given below,But when you see the error messages as given below don't get shock as it is because the apex war file is not able to pick the right jdk version(jdk6) while starting apex listener.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Error message:&lt;/span&gt;&lt;/span&gt;-bash-3.2$ java -Dapex.images=/apex_4.0.2/apex/images -Dapex.port=8080 -jar apex.war&lt;br /&gt;INFO: Starting: /apex_4.0.2/apex.war&lt;br /&gt;See: 'java -jar apex.war --help' for full range of configuration options&lt;br /&gt;INFO: Extracting to: /tmp/apex&lt;br /&gt;SEVERE: method java.lang.System.console with signature ()Ljava.io.Console; was not found.&lt;br /&gt;java.lang.NoSuchMethodError: method java.lang.System.console with signature ()Ljava.io.Console; was not found.&lt;br /&gt;at ____embedded.____EntryPoint.apexImages(____EntryPoint.java:104)&lt;br /&gt;at ____embedded.____EntryPoint.main(____EntryPoint.java:91)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Solution: &lt;/span&gt;&lt;/span&gt;Installed the jdk6 update version latest one and execute the .war file directly as given below.&lt;br /&gt;&lt;br /&gt;# rpm -Uvh jdk-6u26-linux-i586-rpm.bin&lt;br /&gt;&lt;br /&gt;Go to the path where we unzip the apex_listener.zip file:&lt;br /&gt;&lt;br /&gt;In an EBS R12 environment don't set the environment for oracle or apps and execute the 'apex.war' file with 'oracle' user.&lt;br /&gt;&lt;br /&gt;-bash-3.2$ &lt;span style="font-weight:bold;"&gt;./apex.war&lt;/span&gt;&lt;br /&gt;INFO: Starting: /apex_listener_status/apex.war&lt;br /&gt; See: 'java -jar apex.war --help' for full range of configuration options&lt;br /&gt;INFO: Extracting to: /tmp/apex&lt;br /&gt;Enter the path to the directory containing the APEX static resources&lt;br /&gt;          Example:  /Users/myuser/apex/images&lt;br /&gt;         or press Enter to skip: /apex_4.0.2/apex/images/&lt;br /&gt;INFO: Using classpath: file:/tmp/apex/apex/____embedded/start.jar:file:/tmp/apex/apex/WEB-INF/lib/xmlparserv2-11.2.0.jar:file:/tmp/apex/apex/WEB-INF/lib/ojmisc.jar:file:/tmp/apex/apex/WEB-INF/lib/commons-fileupload-1.2.1.jar:file:/tmp/apex/apex/WEB-INF/lib/poi-3.6-20091214.jar:file:/tmp/apex/apex/WEB-INF/lib/ucp.jar:file:/tmp/apex/apex/WEB-INF/lib/xdb-11.2.0.jar:file:/tmp/apex/apex/WEB-INF/lib/ojdbc6.jar:file:/tmp/apex/apex/WEB-INF/lib/apex.jar:file:/tmp/apex/apex/WEB-INF/lib/je-4.0.103.jar:&lt;br /&gt;INFO: Starting Embedded Web Container in: /tmp/apex&lt;br /&gt;Enter a username for the APEX Listener Administrator [adminlistener]: admin&lt;br /&gt;Enter a password for admin:&lt;br /&gt;Confirm password for admin:&lt;br /&gt;Enter a username for the APEX Listener Manager [managerlistener]: apex&lt;br /&gt;Enter a password for apex:&lt;br /&gt;Confirm password for apex:&lt;br /&gt;Aug 17, 2011 3:22:06 AM ____bootstrap.Deployer deploy&lt;br /&gt;INFO: Will deploy application path=/tmp/apex/apex/WEB-INF/web.xml&lt;br /&gt;Aug 17, 2011 3:22:10 AM ____bootstrap.Deployer deploy&lt;br /&gt;INFO: deployed application path=/tmp/apex/apex/WEB-INF/web.xml&lt;br /&gt;Using config file: /tmp/apex/apex-config.xml&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;In Database side:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;alter user apex_public_user identified by apex_public_user;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Listener configuration:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;URL: http://&lt;host&gt;:&lt;port&gt;/apex/listenerConfigure&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;where:&lt;/span&gt;host=ipadrress/machine name,port:8080(default)&lt;br /&gt;&lt;br /&gt;Now,&lt;br /&gt;   We are ready to configure the apex listener and carry the remaining workspace administration tasks or leave to the apex team to do rest of the task.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Happy APEX learning.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-7041867251828316566?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/7041867251828316566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/javalangnosuchmethoderror-method.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/7041867251828316566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/7041867251828316566'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/javalangnosuchmethoderror-method.html' title='Apex listener starting issue'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-6287299802778622487</id><published>2011-08-09T07:03:00.000-07:00</published><updated>2011-09-13T05:53:03.707-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Weblogic'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle SOA tasks'/><title type='text'>Step by step Oracle SOA suite 11g installation on RHEL 5.3</title><content type='html'>Hi,&lt;br /&gt;     Below are the lists of steps I have followed for installing Oracle SOA Suite 11g,I have not put screenshots but tried to put explain without screenshots.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Oracle SOA Suite 11g Installation plan:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Downloads:&lt;/span&gt;&lt;br /&gt;1)DATABASE :11.2.0.1.0(x86 32-bit LINUX):&lt;br /&gt;2)WEBLOGICSERVER&lt;br /&gt;3)RCU(REPOSITORY CREATION UTILITY&lt;br /&gt;4) SOA&lt;br /&gt;5) JDEVELOPER&lt;br /&gt;6)SOA EXTENSION&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Preparatory step:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;[oracle@fmwtestnode /]$ mkdir Web_logic_soft&lt;br /&gt;[oracle@fmwtestnode /]$ su&lt;br /&gt;Password:&lt;br /&gt;[root@fmwtestnode /]# mkdir Oracle11gR2soft&lt;br /&gt;[root@fmwtestnode /]# chown oracle:oinstall /Oracle11gR2soft/&lt;br /&gt;[root@fmwtestnode /]# chmod -R 755 /Oracle11gR2soft/&lt;br /&gt;[root@fmwtestnode /]# mkdir Web_logic_soft&lt;br /&gt;[root@fmwtestnode /]# mkdir Jdev_soft&lt;br /&gt;[root@fmwtestnode /]# mkdir SOA_SUITE_11g_soft&lt;br /&gt;[root@fmwtestnode /]# chown -R oracle:oinstall /Web_logic_soft/&lt;br /&gt;[root@fmwtestnode /]# mkdir Reposit_create_soft&lt;br /&gt;[root@fmwtestnode /]# chown -R oracle:oinstall /Jdev_soft/&lt;br /&gt;[root@fmwtestnode /]# chown -R oracle:oinstall /SOA_SUITE_11g_soft/&lt;br /&gt;[root@fmwtestnode /]# chown -R oracle:oinstall Reposit_create_soft/&lt;br /&gt;[root@fmwtestnode /]# chmod -R 755 /Oracle10gsoft/&lt;br /&gt;[root@fmwtestnode /]# chmod -R 755 /Web_logic_soft/&lt;br /&gt;[root@fmwtestnode /]# chmod -R 755 /Reposit_create_soft/&lt;br /&gt;[root@fmwtestnode /]# chmod -R 755 /Jdev_soft/&lt;br /&gt;[root@fmwtestnode /]# chmod -R 755 /SOA_SUITE_11g_soft/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Check your browser:&lt;/span&gt;&lt;br /&gt;Enterprise Manager requires Firefox 3, Safari 4+ or IE 7+. &lt;br /&gt;BAM requires IE 7 or 8 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Check your JDK: &lt;/span&gt;&lt;br /&gt;The WebLogic server installation exe is packaged with a JDK. The JDeveloper exe also comes with a JDK. &lt;br /&gt;If you are going to install WebLogic server and JDeveloper on the same machine,we use the JDK from WebLogic for JDeveloper too. However, if you are going to install on separate machines, you need to have Oracle Sun Java 1.6 update 21+ JDK for JDeveloper. You can get it from the Oracle Sun downloads page. Be sure to get the JDK not the JRE: http://java.sun.com/products/archive/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Installations:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Install the database:&lt;/span&gt;&lt;br /&gt;Check my previous post for Oracle Database 11g rel2 installation on linux.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2) Install WebLogic server:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Weblogic pre-installation steps:&lt;br /&gt;Check the Certification matrix  to check the supported Weblogic server for&lt;br /&gt;Various Operating system.For our operating system RHEL 5.3 the supported&lt;br /&gt;Weblogic server software is 10.3.&lt;br /&gt;&lt;br /&gt;SQL&gt; select name from v$database;&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;---------&lt;br /&gt;FMWDB&lt;br /&gt;&lt;br /&gt;SQL&gt; select status from v$instance;&lt;br /&gt;&lt;br /&gt;STATUS&lt;br /&gt;------------&lt;br /&gt;OPEN&lt;br /&gt;SQL&gt; show parameter processes &lt;br /&gt;SQL&gt; alter system set processes=1000 scope=spfile; &lt;br /&gt;SQL&gt; shutdown immediate &lt;br /&gt;SQL&gt; startup &lt;br /&gt;SQL&gt; show parameter processes&lt;br /&gt;&lt;br /&gt;[root@fmwtestnode /]# mkdir -p Middleware/SOASuite11gR1&lt;br /&gt;[root@fmwtestnode /]# chown oracle:oinstall /Middleware/SOASuite11gR1/&lt;br /&gt;[root@fmwtestnode /]# chmod -R 755 /Middleware/SOASuite11gR1/&lt;br /&gt;&lt;br /&gt;              We have to create Middleware home directory for installation FUSION MIDDLEWARE COMPONENTS in this particular by granting the ownership to the ‘oracle’ user with all the required privileges&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1)DATABASE	&lt;br /&gt;2)WEBLOGIC SERVER	&lt;br /&gt;3)RCU&lt;br /&gt;4)SOA	&lt;br /&gt;5)JDeveloper	&lt;br /&gt;6)SOA Extension&lt;br /&gt;&lt;br /&gt;Once your database is ready, we can install the next step, the WebLogic server. &lt;br /&gt;When you are ready to install, complete the following:&lt;br /&gt;&lt;br /&gt;I granted all the ownership to the oracle user and permission where the executable of weblogic software is present.I launched the installation on vm server as follows:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here ,I have entered the Fusion  Middlware  Home path which has all the ownership and permission so that ‘oracle’ user can install weblogic server here.&lt;br /&gt;&lt;br /&gt;Choose 'Graphical' method to install Weblogic server to have pictorial representation:&lt;br /&gt;&lt;br /&gt;Press ‘Enter’  and proceed……..&lt;br /&gt;&lt;br /&gt;Press ‘Enter’……..&lt;br /&gt;&lt;br /&gt;Make uninformed to ‘yes’ as shown below in screenshot and proceed:&lt;br /&gt;&lt;br /&gt;Select Typical, click Next&lt;br /&gt;&lt;br /&gt;Press ‘Enter’ and proceed……..&lt;br /&gt;&lt;br /&gt;Here,As we see above Along with Weblogic platform 10.3.5.0,JDKs and other JDBC ,weblogic server plugins and other products get installed…&lt;br /&gt;&lt;br /&gt;Press ‘Enter’ proceed…….&lt;br /&gt;&lt;br /&gt;That’s it.Weblogic installation is proceeding as see in the above screen shot…………..&lt;br /&gt;&lt;br /&gt;First JDK files are installed,OCM,domains…….&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;As we see from the screenshot Weblogic installation Completed successfully….&lt;br /&gt;Press ‘Enter’  and it is done……….&lt;br /&gt;&lt;br /&gt;Once the Weblogic installation is done we need to Configure Domain,And we have to  make sure weblogic server is up &amp; running.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;What is a weblogic server domain?&lt;/span&lt;/span&gt;&gt;&lt;br /&gt;A domain is the basic administration unit for Weblogic Server instances. A domain consists of an Administration Server and Managed application servers and resources. The main configuration file in the domain is config.xml, which is in the domain directory(where you install your weblogic server domain) under config directory.&lt;br /&gt;We can use Administration Server to do the configuration tasks. A web based console comes with the domain installation, where an administrator can login and perform the administration tasks.&lt;br /&gt;Weblogic domain can have multiple servers in a cluster or multiple clusters. A domain can have an Administration Server which can act as an Administration Server and managed server. This architecture is mostly used by the developers in developing and deploying applications in there local environments.&lt;br /&gt;Production and Development Modes&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Weblogic domain can be configured in two different modes:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1.Development Mode&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.Production Mode&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;1. Development Mode:&lt;/span&gt;&lt;/span&gt; In the development mode of configuration,Weblogic server domain has minimum security and is used for the development of application purposes. In this mode, you can also auto-deploy the application.&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;2. Productions Mode:&lt;/span&gt;&lt;/span&gt; This is the final mode of the domain configuration, where you deploy the application which will be directly used by the customers. This is a very important environment, with maximum security.&lt;br /&gt;Now, as we got a general idea on what a weblogic server domain is, we will now configure the weblogic server domain on Linux operating system can be done as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 1:&lt;/span&gt; Go to /Middleware/SOASuite11gR1/wlserver_10.3/common/bin and look for file name "config.sh".&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[oracle@fmwtestnode bin]$ cd /Middleware/SOASuite11gR1/wlserver_10.3/common/bin&lt;br /&gt;[oracle@fmwtestnode bin]$ ls -altr&lt;br /&gt;total 128&lt;br /&gt;-rwxr-x---  1 oracle oinstall 13740 Jul 28 11:10 wlsifconfig.sh&lt;br /&gt;drwxr-x--- 11 oracle oinstall  4096 Jul 28 11:10 ..&lt;br /&gt;-rwxr-x---  1 oracle oinstall   761 Jul 28 11:11 wlst.sh&lt;br /&gt;-rwxr-x---  1 oracle oinstall 31126 Jul 28 11:11 wlscontrol.sh&lt;br /&gt;-rwxr-x---  1 oracle oinstall  3298 Jul 28 11:11 upgrade.sh&lt;br /&gt;-rwxr-x---  1 oracle oinstall  2087 Jul 28 11:11 unpack.sh&lt;br /&gt;-rwxr-x---  1 oracle oinstall  1448 Jul 28 11:11 stopDerby.sh&lt;br /&gt;-rwxr-x---  1 oracle oinstall  4082 Jul 28 11:11 startDerby.sh&lt;br /&gt;-rwxr-x---  1 oracle oinstall  2579 Jul 28 11:11 pack.sh&lt;br /&gt;-rwxr-x---  1 oracle oinstall  2274 Jul 28 11:11 &lt;span style="font-weight:bold;"&gt;config.sh&lt;/span&gt;&lt;br /&gt;-rwxr-x---  1 oracle oinstall  2122 Jul 28 11:11 config_builder.sh&lt;br /&gt;-rwxr-x---  1 oracle oinstall 22511 Jul 28 11:11 commEnv.sh&lt;br /&gt;-rwxr-x---  1 oracle oinstall  2746 Jul 28 11:11 setPatchEnv.sh&lt;br /&gt;-rwxr-x---  1 oracle oinstall  4156 Jul 28 16:36 startManagedWebLogic.sh&lt;br /&gt;drwxr-xr-x  3 oracle oinstall  4096 Jul 28 16:36 servers&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 2: &lt;/span&gt;Run the &lt;span style="font-weight:bold;"&gt;'config.sh'&lt;/span&gt;  file for the domain configuration.&lt;br /&gt;‘Config.sh’ will do the Domain Configure.There are 3 ways you can do this configuration&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Graphical&lt;/span&gt;&lt;br /&gt;2)Console&lt;br /&gt;3)Silent&lt;br /&gt;            We are using ‘Graphical’ method as it display all the information to our screen…&lt;br /&gt;For doing this we need to set  the ‘DISPLAY’ as follows:&lt;br /&gt;Check ‘xclock’ command is working and showing the current time.If it shows than we just need to export ‘DISPLAY’ environment Variable.&lt;br /&gt;&lt;br /&gt;$xclock&lt;br /&gt;$ export DISPLAY&lt;br /&gt;$./config.sh&lt;br /&gt;&lt;br /&gt;    Proceed with the configuration,supply 'weblogic' user with credential.Choose&lt;br /&gt;Development or Production depending on our requirement and obtain the&lt;br /&gt;final URL.After completion of Domain configuration,we will obtain:&lt;br /&gt;&lt;br /&gt;Domain Location:/Middleware/SOASuite11gR1/user_projects/domain/base_domain&lt;br /&gt;Admin Server URL:http://fmwtestnode.apac.xyz.com:7001/console&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;&lt;/span&gt;3)Install database schema using RCU (REPOSITORY CREATING UTILITY)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Useful pre-requistics steps:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[oracle@fmwtestnode admin]$ hostname&lt;br /&gt;fmwtestnode.apac.bosch.com&lt;br /&gt;[oracle@fmwtestnode admin]$ tnsping fmwdb&lt;br /&gt;&lt;br /&gt;TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 29-JUL-2011 18:26:23&lt;br /&gt;&lt;br /&gt;Copyright (c) 1997, 2009, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Used parameter files:&lt;br /&gt;/u01/app//product/11.2.0/dbhome_1/network/admin/sqlnet.ora&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Used TNSNAMES adapter to resolve the alias&lt;br /&gt;Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = fmwdb.apac.bosch.com)))&lt;br /&gt;TNS-12541: TNS:no listener&lt;br /&gt;[oracle@fmwtestnode admin]$ lsnrctl start&lt;br /&gt;&lt;br /&gt;LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 29-JUL-2011 18:26:30&lt;br /&gt;&lt;br /&gt;Copyright (c) 1991, 2009, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Starting /u01/app//product/11.2.0/dbhome_1/bin/tnslsnr: please wait...&lt;br /&gt;&lt;br /&gt;TNSLSNR for Linux: Version 11.2.0.1.0 - Production&lt;br /&gt;System parameter file is /u01/app//product/11.2.0/dbhome_1/network/admin/listener.ora&lt;br /&gt;Log messages written to /u01/app/diag/tnslsnr/fmwtestnode/listener/alert/log.xml&lt;br /&gt;Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))&lt;br /&gt;Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fmwtestnode.apac.bosch.com)(PORT=1521)))&lt;br /&gt;&lt;br /&gt;Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))&lt;br /&gt;STATUS of the LISTENER&lt;br /&gt;------------------------&lt;br /&gt;Alias                     LISTENER&lt;br /&gt;Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production&lt;br /&gt;Start Date                29-JUL-2011 18:26:32&lt;br /&gt;Uptime                    0 days 0 hr. 0 min. 0 sec&lt;br /&gt;Trace Level               off&lt;br /&gt;Security                  ON: Local OS Authentication&lt;br /&gt;SNMP                      OFF&lt;br /&gt;Listener Parameter File   /u01/app//product/11.2.0/dbhome_1/network/admin/listener.ora&lt;br /&gt;Listener Log File         /u01/app/diag/tnslsnr/fmwtestnode/listener/alert/log.xml&lt;br /&gt;Listening Endpoints Summary...&lt;br /&gt;  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))&lt;br /&gt;  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fmwtestnode.apac.bosch.com)(PORT=1521)))&lt;br /&gt;The listener supports no services&lt;br /&gt;The command completed successfully&lt;br /&gt;[oracle@fmwtestnode admin]$ tnsping fmwdb&lt;br /&gt;&lt;br /&gt;TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 29-JUL-2011 18:26:40&lt;br /&gt;&lt;br /&gt;Copyright (c) 1997, 2009, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Used parameter files:&lt;br /&gt;/u01/app//product/11.2.0/dbhome_1/network/admin/sqlnet.ora&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Used TNSNAMES adapter to resolve the alias&lt;br /&gt;Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = fmwdb.apac.bosch.com)))&lt;br /&gt;OK (30 msec)&lt;br /&gt;&lt;br /&gt;2) Please do below step in Database side,If you are installing all the Oracle Fusion Middleware products,For SOA installation alone setting open_cursors=300,but as we are installating all the Oracle Fusion middleware products we need to set open_cursors=1000.&lt;br /&gt;&lt;br /&gt;Conn “/as sysdba”  in Database.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter system set open_cursors=1000;&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;SQL&gt;  show parameter open_cursors&lt;br /&gt;&lt;br /&gt;NAME                                 TYPE        VALUE&lt;br /&gt;------------------------------------ ----------- ------------------------------&lt;br /&gt;open_cursors                         integer     1000&lt;br /&gt;&lt;br /&gt;Now it is time to set up the database schema. &lt;br /&gt;Note: If we have installed SOA 11g before and you are not upgrading, you must drop your existing database schema before reinstalling or create a second schema for this installation. We cannot reuse an existing schema. &lt;br /&gt;&lt;br /&gt;Configure Schema using RCU&lt;br /&gt;Now create the new schema. &lt;br /&gt;&lt;br /&gt;Give the ownership and permission to ‘oracle’ user to run the repository creation utility.&lt;br /&gt;&lt;br /&gt;[root@fmwtestnode /]# chown oracle:oinstall /Reposit_create_soft/&lt;br /&gt;[root@fmwtestnode /]# chmod -R 755 /Reposit_create_soft/&lt;br /&gt;&lt;br /&gt;[root@fmwtestnode Reposit_create_soft]# su - oracle&lt;br /&gt;[oracle@fmwtestnode ~]$ pwd&lt;br /&gt;/home/oracle&lt;br /&gt;[oracle@fmwtestnode ~]$ cd /Reposit_create_soft/&lt;br /&gt;[oracle@fmwtestnode Reposit_create_soft]$ ls -altr&lt;br /&gt;total 389240&lt;br /&gt;-rwxr-xr-x  1 root   root     398173821 Jul 26 18:53 ofm_rcu_linux_11.1.1.5.0_disk1_1of1.zip&lt;br /&gt;drwxr-xr-x  2 oracle oinstall      4096 Jul 27 10:36 .&lt;br /&gt;drwxr-xr-x 37 root   root          4096 Jul 28 10:26 ..&lt;br /&gt;[oracle@fmwtestnode Reposit_create_soft]$ unzip ofm_rcu_linux_11.1.1.5.0_disk1_1of1.zip&lt;br /&gt;&lt;br /&gt;[oracle@fmwtestnode /]$ cd Reposit_create_soft/&lt;br /&gt;[oracle@fmwtestnode Reposit_create_soft]$ ls -altr&lt;br /&gt;total 389244&lt;br /&gt;drwxr-xr-x 32 oracle oinstall      4096 Apr 26 05:04 rcuHome&lt;br /&gt;-rwxr-xr-x  1 root   root     398173821 Jul 26 18:53 ofm_rcu_linux_11.1.1.5.0_disk1_1of1.zip&lt;br /&gt;drwxr-xr-x 37 root   root          4096 Jul 28 10:26 ..&lt;br /&gt;drwxr-xr-x  3 oracle oinstall      4096 Jul 28 11:41 .&lt;br /&gt;[oracle@fmwtestnode Reposit_create_soft]$ cd rcuHome/&lt;br /&gt;[oracle@fmwtestnode rcuHome]$ ls&lt;br /&gt;assistants  common         inventory  jdk   lib      nls            oraInst.loc  plsql    rcu         relnotes  sqlplus  xdk&lt;br /&gt;BC4J        css            javavm     jlib  modules  oracleRoot.sh  owm          portal   rdbms       root.sh   srvm&lt;br /&gt;bin         instantclient  jdbc       ldap  network  oracore        perl         precomp  readme.htm  sqlj      util&lt;br /&gt;[oracle@fmwtestnode rcuHome]$ cd bin&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Go to path  ‘/Reposit_create_soft_/rcuHome/bin’ as seen in the screenshot.&lt;br /&gt;&lt;br /&gt;$ export Display&lt;br /&gt;&lt;br /&gt;On Linux(UNIX):&lt;br /&gt;./rcu&lt;br /&gt;&lt;br /&gt; Give all the permission to the ‘rcu’ file to launch the installation:&lt;br /&gt;&lt;br /&gt;Note: During installation, give the details of the Oracle database created in step 2, select all the SOA schemas to install and select default settings for all other options during the installtion.&lt;br /&gt;&lt;br /&gt;Login as ‘root’ user:&lt;br /&gt; #xhost +&lt;br /&gt;        To set display correctly and for avoiding java related errors:&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;$./rcu  =&gt;For installing repository Creation Utility.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;On the welcome screen, click Next &lt;br /&gt;Select Create&lt;br /&gt;&lt;br /&gt;Click Next &lt;br /&gt;Enter the database information&lt;br /&gt;Before that:&lt;br /&gt;[oracle@fmwtestnode admin]$ sqlplus "/as sysdba"&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 11.2.0.1.0 Production on Fri Jul 29 18:19:44 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2009, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production&lt;br /&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&gt; alter user sys identified by fmwsysdba;&lt;br /&gt;&lt;br /&gt;User altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Enter the information as above.&lt;br /&gt;&lt;br /&gt;Click Next &lt;br /&gt;&lt;br /&gt;When complete, click OK. The utility moves to the next page – with a slight delay, just wait for it.&lt;br /&gt;&lt;br /&gt;On the Select Components screen, enter DEV in the field for creating a new prefix. &lt;br /&gt;Select the component SOA,DATA INTEGRATOR and BPM Infrastructure and all the components for our Oracle Fusion Middleware setup..&lt;br /&gt; Dependent schemas are selected automatically. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click Next &lt;br /&gt;The pre-requisites for this step are checked. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please do below step in Database side and click ok:&lt;br /&gt;&lt;br /&gt;Conn “/as sysdba”  in Database.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter system set open_cursors=1000;&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;SQL&gt;  show parameter open_cursors&lt;br /&gt;&lt;br /&gt;NAME                                 TYPE        VALUE&lt;br /&gt;------------------------------------ ----------- ------------------------------&lt;br /&gt;open_cursors                         integer     1000&lt;br /&gt;&lt;br /&gt;When completed, click OK&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Select the radio button to Use the same password for all schemas. &lt;br /&gt;Enter a schema password. The password welcome123 is assumed in this document, but we should choose your own secure password or a different one for each schema and be sure to record your passwords as you will need them later &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click Next &lt;br /&gt;&lt;br /&gt;Accepting the defaults, click Next &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;When the pre-requisites for this step are completed, click OK&lt;br /&gt;&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;Create&lt;/span&gt; to create the tables. This takes about 60 minutes,as we are creating the repository&lt;br /&gt;For all the fusion middleware products. ‘Portal’ repository creation take more than 30 minutes.&lt;br /&gt; &lt;br /&gt;I took screenshots of this step:&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;COMPLETION SUMMARY :&lt;br /&gt;&lt;br /&gt;When completed, click Close &lt;br /&gt;                    Our Repository Creation for All fusion Middleware product is Completed…&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4)Install SOA Suite 11g:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. Download the software from here:&lt;/span&gt;&lt;br /&gt;http://download.oracle.com/otn/nt/middleware/11g/ofm_soa_generic_11.1.1.5.0_disk1_1of1.zip&lt;br /&gt;             Also present in our shard drive:&lt;br /&gt;\\bmh2fs01\bmhapp01_projects\Ebs1_Vss\DB_services\FMW\FMW_SOFTWARES\ORACLE_SOA_SUITE_INSTALL_SOFT&lt;br /&gt;&lt;br /&gt;Once the schema has been created, you are ready to install the SOA server. &lt;br /&gt;Login as ‘root’ user:&lt;br /&gt;&lt;br /&gt;#xserver +&lt;br /&gt;#xclock&lt;br /&gt;&lt;br /&gt;Perform the following:&lt;br /&gt;unzip ofm_soa_generic_11.1.1.5.0_disk1_1of2.zip&lt;br /&gt;&lt;br /&gt;[root@fmwtestnode /]# cd SOA_SUITE_11g_soft/&lt;br /&gt;[root@fmwtestnode SOA_SUITE_11g_soft]# unzip ofm_soa_generic_11.1.1.5.0_disk1_2of2.zip&lt;br /&gt;[root@fmwtestnode SOA_SUITE_11g_soft]# ls&lt;br /&gt;Disk1  Disk2  Disk3  Disk4 Disk5&lt;br /&gt;&lt;br /&gt;Give &lt;span style="font-weight:bold;"&gt;'Oracle'&lt;/span&gt; user ownership and permission to install Oracle SOA Suite software.&lt;br /&gt;root@fmwtestnode /]#chown Oracle:ointall /SOA_SUITE_11g_soft/Disk*&lt;br /&gt;Login as ‘oracle’ user and do the Oracle SOA software installation:&lt;br /&gt;&lt;br /&gt;[oracle@fmwtestnode Disk1]# cd /SOA_SUITE_11g_soft/Disk1/&lt;br /&gt;[oracle@fmwtestnode Disk1]# ls -altr&lt;br /&gt;total 108&lt;br /&gt;-rwxrwxr-x  1 root   root     73728 Aug 21  2009 setup.exe&lt;br /&gt;-rwxrwxr-x  1 root   root     11460 Oct 28  2009 runInstaller&lt;br /&gt;drwxrwxr-x 10 root   root      4096 Nov  4  2009 install&lt;br /&gt;drwxr-xr-x  5 root   root      4096 Nov  4  2009 .&lt;br /&gt;drwxrwxr-x  9 root   root      4096 Nov  4  2009 doc&lt;br /&gt;drwxr-xr-x 13 root   root      4096 Nov  4  2009 stage&lt;br /&gt;drwxr-xr-x  5 oracle oinstall  4096 Aug  1 13:59 ..&lt;br /&gt;&lt;br /&gt;Login as ‘root’ user:&lt;br /&gt; #xhost +&lt;br /&gt;        To set display correctly and for avoiding java related errors:&lt;br /&gt;&lt;br /&gt;$./runInstaller -jreLoc /Middleware/SOASuite11gR1/jdk160_24&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When the install wizard welcome screen comes up, click Next &lt;br /&gt;&lt;br /&gt;Now ,All Prerequistics checks are passed…With no errors……..&lt;br /&gt;&lt;br /&gt;Click Next &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;On the Specify Installation Location screen, select the Middleware home: &lt;br /&gt; /Middleware/SOASuite11gR1/&lt;br /&gt;Accept the default Oracle home: Oracle_SOA1 &lt;br /&gt;&lt;br /&gt;Click Next&lt;br /&gt;&lt;br /&gt;I created one response file to see the installation flow,Before going for install.&lt;br /&gt;&lt;br /&gt;Click Install&lt;br /&gt;&lt;br /&gt;Thats it SOA Installation started Successfully,&lt;br /&gt;&lt;br /&gt;click Next…&lt;br /&gt;                     Very much happy to see below screen.Our Oracle SOA suite 11g installation finished successfully.&lt;br /&gt;&lt;br /&gt; Click Finish………&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Create the SOA domain:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;1.  Perform the following:&lt;br /&gt;$cd /Middleware/SOASuite11gR1/Oracle_SOA1/common/bin&lt;br /&gt;$&lt;span style="font-weight:bold;"&gt;./config.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Choose Extend to existing  Weblogic domain &lt;br /&gt;Click 'Next'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Select  Generate a domain configured automatically to support the following products:&lt;br /&gt;Check all to select all the products…&lt;br /&gt;Domains&lt;br /&gt;&lt;br /&gt;Click 'Next'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Name:weblogic&lt;br /&gt;Pass:weblogic123&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click ‘Next’&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Select the JRocket SDK  as it will yield beter performance for Oracle SOA and leave Development Mode checked&lt;br /&gt;&lt;br /&gt;Check 'Oracle SOA Suite - 11.1.5.0 [Oracle_SOA1]'&lt;br /&gt;Check 'Oracle Enterprise Manager - 11.1.1.0 [oracle_common]'&lt;br /&gt;Check 'Oracle Business Activity Monitoring - 11.1.5.0 [Oracle_SOA1]'&lt;br /&gt;Click 'Next'&lt;br /&gt;Click 'Next'&lt;br /&gt;User password:                welcome123&lt;br /&gt;Confirm user password:    welcome123&lt;br /&gt;Click 'Next'&lt;br /&gt;Click 'Next'&lt;br /&gt;Check 'BAM Schema', 'SOA Infrastructure', 'User Messaging Service', 'OWSM MDS Schema', 'SOA MDS Schema'&lt;br /&gt;DBMS/Service:    orcl.ipnweb.com&lt;br /&gt;Host Name:    oradev.ipnweb.com&lt;br /&gt;Schema Password:    welcome1&lt;br /&gt;Click 'Next'&lt;br /&gt;Click 'Next'&lt;br /&gt;Click 'Next'&lt;br /&gt;&lt;br /&gt;Click &lt;span style="font-weight:bold;"&gt;'Create'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If all are successful, click Next, otherwise click Previous and correct any errors. &lt;br /&gt; &lt;br /&gt;Now you must choose whether to have your server run as a managed server or in a single server configuration. &lt;br /&gt;As we have chosen the developer’s configuration, there will be one admin server and one managed server for BAM. &lt;br /&gt;Don’t check any of the boxes here and click Next, unless you want to make changes to the default configuration&lt;br /&gt; &lt;br /&gt;Click Next &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;This is the summary page for the Configuration. Click Extend to extend to  the domain. &lt;br /&gt;Wait for the create to finish – takes just a minute&lt;br /&gt;&lt;br /&gt;Check the box to start the admin server and Click Done. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Add the machine entry:&lt;/span&gt;&lt;br /&gt;       We have to add the host entry in windows 'hosts' file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Internet explorer settings: &lt;/span&gt;  &lt;br /&gt;Go to Tools=&gt;Internet Options=&gt;Connections=&gt;LAN Settings and Uncheck  Use automatic configuration script =&gt;click ok =&gt;click ok&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Now access the Admin Server URL:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Admin Server URL:&lt;/span&gt;&lt;br /&gt;http://fmwtestnode.apac.abc.com:7001&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;We have to use compatible version of Oracle Repository creation utility and Oracle SOA i.e  If rcu is 11.1.1.5.0 than use SOA also with the same version&lt;br /&gt;11.1.1.5.0&lt;br /&gt;&lt;br /&gt;Happy Oracle SOA learning...&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-6287299802778622487?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/6287299802778622487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/step-by-step-oracle-soa-suite-11g.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/6287299802778622487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/6287299802778622487'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/step-by-step-oracle-soa-suite-11g.html' title='Step by step Oracle SOA suite 11g installation on RHEL 5.3'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-2908151375287175928</id><published>2011-08-09T06:43:00.000-07:00</published><updated>2011-08-09T06:58:04.199-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='APEX tasks'/><title type='text'>Integrating APEX 4.0.2  with E-business Suite Release 12.1.1</title><content type='html'>Hi,&lt;br /&gt;    Apex can be integrated with E-business Suite release R12.In the below example my Database vesion is 11.1.0.7.0,I'm using APEX LISTENER for doing this task which is very secure and convenient way.Below are the steps I used for this purpose.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 1:Create one Tablespace for holding the Apex users Data&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;create tablespace APEX402 datafile '/oraDB/db/apps_st/data/apex402.dbf' size 1G autoextend on;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 2:Upgrade Apex to 4.0.2&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;                  E-business suite Database 11.1.0.7.0  comes with Apex 3.0.2 installed,For upgrading to the latest apex component follow the below steps:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For upgrading apex 4.0.2:&lt;br /&gt;----------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Go to apex 4.0.2 path:&lt;br /&gt;&lt;br /&gt;sqlplus "/as sysdba"&lt;br /&gt;@apexins.sql apex402 apex402 temp /i/&lt;br /&gt;&lt;br /&gt;Message while upgrading coming to end:&lt;br /&gt;&lt;br /&gt;Thank you for installing Oracle Application Express.&lt;br /&gt;&lt;br /&gt;Oracle Application Express is installed in the APEX_040000 schema.&lt;br /&gt;&lt;br /&gt;The structure of the link to the Application Express administration services is as follows:&lt;br /&gt;http://host:port/pls/apex/apex_admin (Oracle HTTP Server with mod_plsql)&lt;br /&gt;http://host:port/apex/apex_admin     (Oracle XML DB HTTP listener with the embedded PL/SQL gateway)&lt;br /&gt;&lt;br /&gt;The structure of the link to the Application Express development interface is as follows:&lt;br /&gt;http://host:port/pls/apex (Oracle HTTP Server with mod_plsql)&lt;br /&gt;http://host:port/apex     (Oracle XML DB HTTP listener with the embedded PL/SQL gateway)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Message while validating APEX componnent:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;.Compiled 676 out of 2720 objects considered, 0 failed compilation 05:22:43&lt;br /&gt;...234 packages&lt;br /&gt;...227 package bodies&lt;br /&gt;...426 tables&lt;br /&gt;...12 functions&lt;br /&gt;...19 procedures&lt;br /&gt;...3 sequences&lt;br /&gt;...439 triggers&lt;br /&gt;...1177 indexes&lt;br /&gt;...175 views&lt;br /&gt;...0 libraries&lt;br /&gt;...4 types&lt;br /&gt;...0 type bodies&lt;br /&gt;...0 operators&lt;br /&gt;...0 index types&lt;br /&gt;...Begin key object existence check 05:22:43&lt;br /&gt;...Completed key object existence check 05:22:43&lt;br /&gt;...Setting DBMS Registry 05:22:43&lt;br /&gt;...Setting DBMS Registry Complete 05:22:43&lt;br /&gt;...Exiting validate 05:22:43&lt;br /&gt;timing for: Validate Installation&lt;br /&gt;Elapsed: 00:44:26.45&lt;br /&gt;timing for: Development Installation&lt;br /&gt;Elapsed: 01:06:23.02&lt;br /&gt;Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production&lt;br /&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;JOB_QUEUE_PROCESSES: 2&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Check after validation in Database:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt;  SELECT COMP_NAME||' '||VERSION||' '||STATUS FROM DBA_REGISTRY;&lt;br /&gt;&lt;br /&gt;COMP_NAME||''||VERSION||''||STATUS&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Oracle Application Express 4.0.2.00.07 VALID&lt;br /&gt;Oracle Ultra Search 11.1.0.7.0 VALID&lt;br /&gt;Oracle Label Security 10.2.0.3.0 OPTION OFF&lt;br /&gt;Oracle XML Database 11.1.0.7.0 VALID&lt;br /&gt;Oracle Application Server Syndication Services 10.1.2.0.2 VALID&lt;br /&gt;Oracle Application Server Single Sign-On 10.1.2.0.2 VALID&lt;br /&gt;Oracle Workflow 10.1.2.0.2 VALID&lt;br /&gt;Oracle Data Mining 11.1.0.7.0 VALID&lt;br /&gt;OLAP Catalog 11.1.0.7.0 VALID&lt;br /&gt;Oracle Text 11.1.0.7.0 VALID&lt;br /&gt;Spatial 11.1.0.7.0 VALID&lt;br /&gt;&lt;br /&gt;COMP_NAME||''||VERSION||''||STATUS&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Oracle Multimedia 11.1.0.7.0 VALID&lt;br /&gt;Oracle Database Catalog Views 11.1.0.7.0 VALID&lt;br /&gt;Oracle Database Packages and Types 11.1.0.7.0 VALID&lt;br /&gt;JServer JAVA Virtual Machine 11.1.0.7.0 VALID&lt;br /&gt;Oracle Database Java Packages 11.1.0.7.0 VALID&lt;br /&gt;Oracle XDK 11.1.0.7.0 VALID&lt;br /&gt;Oracle Real Application Clusters 11.1.0.7.0 INVALID&lt;br /&gt;OLAP Analytic Workspace 11.1.0.7.0 VALID&lt;br /&gt;Oracle OLAP API 11.1.0.7.0 VALID&lt;br /&gt;Oracle Application Server Integration B2B 10.1.2.0.2 VALID&lt;br /&gt;Oracle Application Server Integration BAM 10.1.2.0.2 VALID&lt;br /&gt;&lt;br /&gt;COMP_NAME||''||VERSION||''||STATUS&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Oracle Application Server Certificate Authority 10.1.2.0.2 VALID&lt;br /&gt;Oracle Internet Directory 10.1.2.0.2 VALID&lt;br /&gt;Oracle Application Server Metadata Repository Version-R 10.1.2.0.2 VALID&lt;br /&gt;Oracle Application Server Distributed Configuration Management 10.1.2.0.2 VALID&lt;br /&gt;Oracle Business Intelligence Discoverer 10.1.2.0.2 VALID&lt;br /&gt;Oracle Application Server UDDI Registry 10.1.2.0.2 VALID&lt;br /&gt;Oracle Application Server Web Clipping 10.1.2.0.2 VALID&lt;br /&gt;Oracle Application Server Wireless 10.1.2.0.2 VALID&lt;br /&gt;&lt;br /&gt;30 rows selected.&lt;br /&gt;                              Now,We have successfully upgraded  APEX to 4.0.2.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 3:Start the http services using the ‘root’ user&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#/etc/init.d/httpd start&lt;br /&gt;[root@testnode1ebs apex]# /etc/init.d/httpd status&lt;br /&gt;httpd (pid 13319 13318 13317 13316 13315 13314 13313 13312 13310) is running...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 4: Open the Apex http port from the Database &lt;/span&gt;side&lt;/span&gt; &lt;br /&gt;SQL&gt; begin&lt;br /&gt;dbms_xdb.sethttpport('8080');&lt;br /&gt;end;&lt;br /&gt;  /  &lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;SQL&gt; select dbms_xdb.gethttpport as "HTTP-Port"&lt;br /&gt;    from dual;&lt;br /&gt;&lt;br /&gt; HTTP-Port&lt;br /&gt;----------&lt;br /&gt;      8080&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 5:Download  JDK6 from oracle and  unzip it in the E-business suite server.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 6:Download and Install the Apex Listener&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; Launch Oracle Application Express Listener in standalone mode:&lt;br /&gt;&lt;br /&gt;1. Download and unzip Oracle Application Express Listener. &lt;br /&gt;&lt;br /&gt;2. Execute the following command:&lt;br /&gt;&lt;br /&gt;bash-3.2$ java -jar /apex_4.0.2/apex.war&lt;br /&gt;INFO: Starting: /apex_4.0.2/apex.war&lt;br /&gt; See: 'java -jar apex.war --help' for full range of configuration options&lt;br /&gt;INFO: Extracting to: /tmp/apex&lt;br /&gt;Enter the path to the directory containing the APEX static resources&lt;br /&gt;          Example:  /Users/myuser/apex/images&lt;br /&gt;         or press Enter to skip: /oraAPP/apps/tech_st/10.1.3/images&lt;br /&gt;INFO: Using classpath: file:/tmp/apex/apex/____embedded/start.jar:file:/tmp/apex/apex/WEB-INF/lib/xmlparserv2-11.2.0.jar:file:/tmp/apex/apex/WEB-INF/lib/ojmisc.jar:file:/tmp/apex/apex/WEB-INF/lib/commons-fileupload-1.2.1.jar:file:/tmp/apex/apex/WEB-INF/lib/poi-3.6-20091214.jar:file:/tmp/apex/apex/WEB-INF/lib/ucp.jar:file:/tmp/apex/apex/WEB-INF/lib/xdb-11.2.0.jar:file:/tmp/apex/apex/WEB-INF/lib/ojdbc6.jar:file:/tmp/apex/apex/WEB-INF/lib/apex.jar:file:/tmp/apex/apex/WEB-INF/lib/je-4.0.103.jar:&lt;br /&gt;INFO: Starting Embedded Web Container in: /tmp/apex&lt;br /&gt;Enter a username for the APEX Listener Administrator [adminlistener]: apex&lt;br /&gt;Enter a password for apex:welcome&lt;br /&gt;Confirm password for apex:&lt;br /&gt;&lt;br /&gt;Enter a username for the APEX Listener Manager [managerlistener]: apex&lt;br /&gt;Enter a password for apex:welcome&lt;br /&gt;Confirm password for apex:&lt;br /&gt;Aug 10, 2011 2:32:41 AM ____bootstrap.Deployer deploy&lt;br /&gt;INFO: Will deploy application path=/tmp/apex/apex/WEB-INF/web.xml&lt;br /&gt;Aug 10, 2011 2:32:48 AM ____bootstrap.Deployer deploy&lt;br /&gt;INFO: deployed application path=/tmp/apex/apex/WEB-INF/web.xml&lt;br /&gt;Using config file: /tmp/apex/apex-config.xml&lt;br /&gt;APEX Listener version : 1.1.2.131.15.23&lt;br /&gt;APEX Listener server info: Grizzly/1.9.18-o&lt;br /&gt;INFO: http://localhost:8080/apex started&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 7:Configure the Apex listener.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;http://testnode1ebs:8080/apex/listenerConfigure&lt;br /&gt;&lt;br /&gt;                To configure the Apex listener Open IE 8 browser or Mozilla 3.0….&lt;br /&gt;And provide the information and password as mentioned :&lt;br /&gt;&lt;br /&gt;SID:VIS&lt;br /&gt;Host:10.47.33.56&lt;br /&gt;Password: welcome&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 8:Request Apex team to create WORKSPACE by giving  ‘admin’ user password.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; ‘admin’ user should be entered in Lower case letters.&lt;br /&gt;&lt;br /&gt;User:admin&lt;br /&gt;Password:welcome&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 9:If You are getting ADMIN/ADMIN_PASSWORD as "Invalid Login Credential Error", then run&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Connect as sys user at the EBS Database and execute this procedure:&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;SQL&gt; begin&lt;br /&gt;wwv_flow_api.set_security_group_id(p_security_group_id=&gt;10);&lt;br /&gt;wwv_flow_fnd_user_api.create_fnd_user(&lt;br /&gt;p_user_name =&gt; 'ADMIN',&lt;br /&gt;p_email_address =&gt; 'xxx@xxxdomain.com',&lt;br /&gt;p_web_password =&gt; 'welcome') ;&lt;br /&gt;end;&lt;br /&gt;/  &lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 10:Verify now with the APEX team and ask them to change the password for security reason..&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;  Username:workspace&lt;br /&gt;  Pass:welcome&lt;br /&gt;                               &lt;br /&gt; Happy Apex learning job is done...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-2908151375287175928?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/2908151375287175928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/integrating-apex-402-with-e-business.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2908151375287175928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2908151375287175928'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/08/integrating-apex-402-with-e-business.html' title='Integrating APEX 4.0.2  with E-business Suite Release 12.1.1'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-4148583817907080561</id><published>2011-07-28T10:07:00.000-07:00</published><updated>2011-07-28T10:59:36.708-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle11g'/><title type='text'>RMAN backup types and Usage</title><content type='html'>Hi,&lt;br /&gt;     Here I'm descrbing RMAN backups Types,Commands and Usage in Brief in Oracle 11g Database.Hope it will help one and all.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;RMAN BACKUPS:&lt;br /&gt;----------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)RMAN HOT BACKUP&lt;/span&gt;  =&gt;database up &amp; running&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)RMAN COLD BACKUP&lt;/span&gt; =&gt;database is not up(shutdown =&gt;mount(now take backup).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1)RMAN HOT BACKUP: OPEN STATE  (ARCHIVE_LOG MODE)&lt;br /&gt;2)RMAN COLD BACKUP:MOUNT STATE (NO ARCHIVE LOG MODE)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;INCREMENTAL BACKUP:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;1)DIFFERENTIAL BACKUP =&gt;BY DEFAULT INCREMENTAL BACKUP IS DIFFERENTIAL.&lt;br /&gt;                      =&gt;BACKUP FROM SAME OR LOWER LEVEL.&lt;br /&gt;                      =&gt;LEVEL 0,LEVEL 1,LEVEL 2.....&lt;br /&gt;2)CUMMULATIVE BACKUP  =&gt;BACKUP FROM LEVEL 0(LOWEST LEVEL)&lt;br /&gt;                      =&gt;LEVEL 0,LEVEL 1,LEVEL 2.....&lt;br /&gt;&lt;br /&gt;WHERE: &lt;br /&gt;LEVEL 0=FULL BACKUP&lt;br /&gt;LEVEL 1=CHANGE DATA FROM LEVEL 0 &lt;br /&gt;LEVEL 2=CHANGE DATA FROM LEVEL 1...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;BACKUP STRATERGY:&lt;br /&gt;--------------------&lt;br /&gt;&lt;br /&gt;SUNDAY =LEVEL 0  =&gt;INCREMENTAL (DIFFERENTIAL)=&gt;BACKUP LEVEL 0(LOWEST LEVEL)&lt;br /&gt;MONDAY =LEVEL 1  =&gt;INCREMENTAL&lt;br /&gt;TUESDAY=LEVEL 2  =&gt;INCREMENTAL&lt;br /&gt;WED    =LEVEL 0  =&gt;INCREMENTAL (CUMMULATIVE) =&gt;BACKUP LEVEL 0(LOWEST LEVEL)&lt;br /&gt;THUR   =LEVEL 1  =&gt;INCREMENTAL&lt;br /&gt;FRI    =LEVEL 2  =&gt;INCREMENTAL &lt;br /&gt;SAT=   =LEVEL 1  =&gt;CUMMULATIVE =&gt;BACKUP LEVEL 1(CHANGE DATA FROM LEVEL 0) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;TIMESTAMP SYMBOLS:&lt;br /&gt;-------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;%U=UNIQUE BACKUPSET NAME&lt;br /&gt;%T= TIMESTAMP OF TIME OF BACKUPSET&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;RMAN COMMANDS:&lt;br /&gt;----------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;INCREMENTAL BACKUP:&lt;br /&gt;---------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)DIFFERENTIAL BACKUP&lt;br /&gt;2)CUMULATIVE BACKUP&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)DIFFERENTIAL BACKUP:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- INCREMENTAL LEVEL 0&lt;/span&gt;&lt;br /&gt;run{&lt;br /&gt;Allocate channel ch1 type disk format 'D:\RMAN_BACKUP\ORCL_data_BACKUP2_%T_%U';&lt;br /&gt;Backup incremental level=0 database tag='complete_backup';&lt;br /&gt;Release channel ch1;&lt;br /&gt;allocate channel c1 type disk;&lt;br /&gt;copy current controlfile to 'D:\RMAN_BACKUP\ORCL_ctrl_BACKUP2_%U_%T';&lt;br /&gt;Release channel c1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- INCREMENTAL LEVEL 1&lt;/span&gt;&lt;br /&gt;run{&lt;br /&gt;Allocate channel ch1 type disk format 'D:\RMAN_BACKUP\ORCL_data_BACKUP2_%T_%U';&lt;br /&gt;Backup incremental level=1 database tag='complete_backup';&lt;br /&gt;Release channel ch1;&lt;br /&gt;allocate channel c1 type disk;&lt;br /&gt;copy current controlfile to 'D:\RMAN_BACKUP\ORCL_ctrl_BACKUP2_%U_%T';&lt;br /&gt;Release channel c1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- INCREMENTAL LEVEL 2&lt;/span&gt;&lt;br /&gt;run{&lt;br /&gt;Allocate channel ch1 type disk format 'D:\RMAN_BACKUP\ORCL_data_BACKUP2_%T_%U';&lt;br /&gt;Backup incremental level=2 database tag='complete_backup';&lt;br /&gt;Release channel ch1;&lt;br /&gt;allocate channel c1 type disk;&lt;br /&gt;copy current controlfile to 'D:\RMAN_BACKUP\ORCL_ctrl_BACKUP2_%U_%T';&lt;br /&gt;Release channel c1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;2)CUMULATIVE BACKUP:&lt;br /&gt;----------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- CUMMULATIVE BACKUP&lt;/span&gt;&lt;br /&gt;RMAN&gt; run{&lt;br /&gt;2&gt; Allocate channel ch1 type disk format 'D:\RMAN_BACKUP\ORCL_data_BACKUP2_%T_%U';&lt;br /&gt;3&gt; Backup incremental level=0 CUMULATIVE database tag='complete_backup';&lt;br /&gt;4&gt; Release channel ch1;&lt;br /&gt;5&gt; allocate channel c1 type disk;&lt;br /&gt;6&gt; copy current controlfile to 'D:\RMAN_BACKUP\ORCL_ctrl_BACKUP2_%U_%T';&lt;br /&gt;7&gt; Release channel c1;&lt;br /&gt;8&gt; }&lt;br /&gt;&lt;br /&gt;released channel: ORA_DISK_1&lt;br /&gt;allocated channel: ch1&lt;br /&gt;channel ch1: SID=73 device type=DISK&lt;br /&gt;&lt;br /&gt;Starting backup at 24-JUL-11&lt;br /&gt;channel ch1: starting incremental level 0 datafile backup set&lt;br /&gt;channel ch1: specifying datafile(s) in backup set&lt;br /&gt;input datafile file number=00004 name=D:\APP\RAFIALVI\ORADATA\ORCL\USERS01.DBF&lt;br /&gt;channel ch1: starting piece 1 at 24-JUL-11&lt;br /&gt;channel ch1: finished piece 1 at 24-JUL-11&lt;br /&gt;piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110724_1HMI7EPO_1_1 tag=COMPLETE_BACKUP comment=NONE&lt;br /&gt;channel ch1: backup set complete, elapsed time: 00:00:01&lt;br /&gt;channel ch1: starting incremental level 0 datafile backup set&lt;br /&gt;channel ch1: specifying datafile(s) in backup set&lt;br /&gt;input datafile file number=00001 name=D:\APP\RAFIALVI\ORADATA\ORCL\SYSTEM01.DBF&lt;br /&gt;input datafile file number=00002 name=D:\APP\RAFIALVI\ORADATA\ORCL\SYSAUX01.DBF&lt;br /&gt;input datafile file number=00003 name=D:\APP\RAFIALVI\ORADATA\ORCL\UNDOTBS01.DBF&lt;br /&gt;input datafile file number=00005 name=D:\APP\RAFIALVI\ORADATA\ORCL\EXAMPLE01.DBF&lt;br /&gt;channel ch1: starting piece 1 at 24-JUL-11&lt;br /&gt;channel ch1: finished piece 1 at 24-JUL-11&lt;br /&gt;piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110724_1IMI7EPP_1_1 tag=COMPLETE_BACKUP comment=NONE&lt;br /&gt;channel ch1: backup set complete, elapsed time: 00:01:15&lt;br /&gt;channel ch1: starting incremental level 0 datafile backup set&lt;br /&gt;channel ch1: specifying datafile(s) in backup set&lt;br /&gt;including current control file in backup set&lt;br /&gt;including current SPFILE in backup set&lt;br /&gt;channel ch1: starting piece 1 at 24-JUL-11&lt;br /&gt;channel ch1: finished piece 1 at 24-JUL-11&lt;br /&gt;piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110724_1JMI7ES5_1_1 tag=COMPLETE_BACKUP comment=NONE&lt;br /&gt;channel ch1: backup set complete, elapsed time: 00:00:01&lt;br /&gt;Finished backup at 24-JUL-11&lt;br /&gt;&lt;br /&gt;released channel: ch1&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- CUMULATIVE BACKUP LEVEL LOWEST(0)&lt;/span&gt;&lt;br /&gt;run{&lt;br /&gt;Allocate channel ch1 type disk format 'D:\RMAN_BACKUP\ORCL_data_BACKUP2_%T_%U';&lt;br /&gt;BACKUP INCREMENTAL LEVEL=0 CUMULATIVE DATABASE FILESPERSET 4 tag='cumulative';&lt;br /&gt; tag='complete_cummulative_backup';&lt;br /&gt;Release channel ch1;&lt;br /&gt;allocate channel c1 type disk;&lt;br /&gt;copy current controlfile to 'D:\RMAN_BACKUP\ORCL_ctrl_BACKUP2_%U_%T';&lt;br /&gt;Release channel c1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-- CUMULATIVE BACKUP LEVEL LOWEST(1)&lt;/span&gt;&lt;br /&gt;run{&lt;br /&gt;Allocate channel ch1 type disk format 'D:\RMAN_BACKUP\ORCL_data_BACKUP2_%T_%U';&lt;br /&gt;BACKUP INCREMENTAL LEVEL=1 CUMULATIVE DATABASE tag='cumulative_LEVEL1';&lt;br /&gt;Release channel ch1;&lt;br /&gt;allocate channel c1 type disk;&lt;br /&gt;copy current controlfile to 'D:\RMAN_BACKUP\ORCL_ctrl_BACKUP2_%U_%T';&lt;br /&gt;Release channel c1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;RMAN&gt; run{&lt;br /&gt;2&gt; Allocate channel ch1 type disk format 'D:\RMAN_BACKUP\ORCL_data_BACKUP2_%T_%U';&lt;br /&gt;3&gt; BACKUP INCREMENTAL LEVEL=1 CUMULATIVE DATABASE tag='cumulative_LEVEL1';&lt;br /&gt;4&gt; Release channel ch1;&lt;br /&gt;5&gt; allocate channel c1 type disk;&lt;br /&gt;6&gt; copy current controlfile to 'D:\RMAN_BACKUP\ORCL_ctrl_BACKUP2_%U_%T';&lt;br /&gt;7&gt; Release channel c1;&lt;br /&gt;8&gt; }&lt;br /&gt;&lt;br /&gt;released channel: ORA_DISK_1&lt;br /&gt;allocated channel: ch1&lt;br /&gt;channel ch1: SID=73 device type=DISK&lt;br /&gt;&lt;br /&gt;Starting backup at 24-JUL-11&lt;br /&gt;channel ch1: starting incremental level 1 datafile backup set&lt;br /&gt;channel ch1: specifying datafile(s) in backup set&lt;br /&gt;input datafile file number=00004 name=D:\APP\RAFIALVI\ORADATA\ORCL\USERS01.DBF&lt;br /&gt;channel ch1: starting piece 1 at 24-JUL-11&lt;br /&gt;channel ch1: finished piece 1 at 24-JUL-11&lt;br /&gt;piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110724_1NMI7F9M_1_1 tag=CUMULATIVE_LEVEL1 comment=NONE&lt;br /&gt;channel ch1: backup set complete, elapsed time: 00:01:25&lt;br /&gt;channel ch1: starting incremental level 1 datafile backup set&lt;br /&gt;channel ch1: specifying datafile(s) in backup set&lt;br /&gt;input datafile file number=00001 name=D:\APP\RAFIALVI\ORADATA\ORCL\SYSTEM01.DBF&lt;br /&gt;input datafile file number=00002 name=D:\APP\RAFIALVI\ORADATA\ORCL\SYSAUX01.DBF&lt;br /&gt;input datafile file number=00003 name=D:\APP\RAFIALVI\ORADATA\ORCL\UNDOTBS01.DBF&lt;br /&gt;input datafile file number=00005 name=D:\APP\RAFIALVI\ORADATA\ORCL\EXAMPLE01.DBF&lt;br /&gt;channel ch1: starting piece 1 at 24-JUL-11&lt;br /&gt;channel ch1: finished piece 1 at 24-JUL-11&lt;br /&gt;piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110724_1OMI7FCC_1_1 tag=CUMULATIVE_LEVEL1 comment=NONE&lt;br /&gt;channel ch1: backup set complete, elapsed time: 00:00:35&lt;br /&gt;channel ch1: starting incremental level 1 datafile backup set&lt;br /&gt;channel ch1: specifying datafile(s) in backup set&lt;br /&gt;including current control file in backup set&lt;br /&gt;including current SPFILE in backup set&lt;br /&gt;channel ch1: starting piece 1 at 24-JUL-11&lt;br /&gt;channel ch1: finished piece 1 at 24-JUL-11&lt;br /&gt;piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110724_1PMI7FDF_1_1 tag=CUMULATIVE_LEVEL1 comment=NONE&lt;br /&gt;channel ch1: backup set complete, elapsed time: 00:00:01&lt;br /&gt;Finished backup at 24-JUL-11&lt;br /&gt;&lt;br /&gt;released channel: ch1&lt;br /&gt;&lt;br /&gt;allocated channel: c1&lt;br /&gt;channel c1: SID=73 device type=DISK&lt;br /&gt;&lt;br /&gt;Starting backup at 24-JUL-11&lt;br /&gt;channel c1: starting datafile copy&lt;br /&gt;copying current control file&lt;br /&gt;output file name=D:\RMAN_BACKUP\ORCL_CTRL_BACKUP2_CF_D-ORCL_ID-1280115002_1QMI7FDK_20110724 tag=TAG20110724T055044 R&lt;br /&gt;D=31 STAMP=757317045&lt;br /&gt;channel c1: datafile copy complete, elapsed time: 00:00:01&lt;br /&gt;Finished backup at 24-JUL-11&lt;br /&gt;&lt;br /&gt;released channel: c1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;ARCHIVE LOG DELETION POLICY FOR A DATABASE:&lt;br /&gt;----------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;run {&lt;br /&gt;allocate channel for maintenance device type disk;&lt;br /&gt;delete archivelog until time 'sysdate -5';&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; I do backups from the primary database to a local drive and have been puzzled &lt;br /&gt;how to delete the standby archive logs after they ship.&lt;br /&gt;The ‘obvious’ solution is the documented feature in RMAN:&lt;br /&gt;&lt;br /&gt;CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;COMPRESSION LEVEL ORACLE 11g:&lt;br /&gt;----------------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;basic =DEFAULT&lt;br /&gt;none  =Not recomended&lt;br /&gt;medium = license&lt;br /&gt;high =license&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Drawbacks:&lt;br /&gt;------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;medium =&gt;consume hight system resource&lt;br /&gt;high =&gt;consume high system resource&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;II)RMAN COLD BACKUP:&lt;br /&gt;----------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;=&gt;NOARCHIVE LOG MODE&lt;br /&gt;=&gt;MOUNT STATE&lt;br /&gt;=&gt; DEVELOPMENT  =&gt; MUCH DISK SPACE IS NOT THERE&lt;br /&gt;=&gt;DOWNTIME TOLERABLE..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;run_orcl.txt&lt;/span&gt;:&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*&lt;span style="font-weight:bold;"&gt;SNAPSHOT CONTROLFILE:&lt;/span&gt;RMAN USES FOR BACKUP OF CONTROL FILE.&lt;br /&gt;&lt;br /&gt;Configure setting in RMAN :&lt;br /&gt;----------------------------&lt;br /&gt;              We can use configure command to change any setting in RMAN.I would definetly like to outside my script like below.&lt;br /&gt;&lt;br /&gt;$rman target / catalog rman/rman@catdb&lt;br /&gt;RMAN&gt;CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\RMAN_BACKUP\snapcf_orcl.f';&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rman_cold.txt:&lt;br /&gt;--------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;run{&lt;br /&gt;shutdown immediate;&lt;br /&gt;startup mount;&lt;br /&gt;allocate channel ch1 device type disk format 'D:\RMAN_BACKUP\orcl_BK_SET1_%U_%T' maxpiecesize 5G;&lt;br /&gt;allocate channel ch2 device type disk format 'D:\RMAN_BACKUP\orcl_BK_SET2_%U_%T';&lt;br /&gt;backup database TAG='ORCL_BACKUP_WEEKLY';&lt;br /&gt;allocate channel c1 type disk;&lt;br /&gt;copy current controlfile to 'D:\RMAN_BACKUP\TESTDB_ctrl_%U_%T';&lt;br /&gt;Release channel c1;&lt;br /&gt;configure retention policy to recovery window of 7 days;&lt;br /&gt;CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\RMAN_BACKUP\snapcf_orcl.f';&lt;br /&gt;CROSSCHECK BACKUP;&lt;br /&gt;release channel ch1;&lt;br /&gt;release channel ch2;&lt;br /&gt;alter database open;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;rman_orcl.bat:&lt;br /&gt;---------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- orcl DB RMAN COLD BACKUP&lt;br /&gt;set ORACLE_SID=orcl&lt;br /&gt;set ORACLE_HOME=D:\app\RafiAlvi\product\11.2.0\dbhome_1&lt;br /&gt;set ORACLE_BASE=D:\app\RafiAlvi\&lt;br /&gt;rman target sys/orcldba @D:\RMAN_BACKUP_SCRIPTS\run_ORCL.txt log=D:\RMAN_BACKUP_SCRIPTS\LOGS\rman_cold_orcl_24july_cum.log&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; In Unix environment use &lt;span style="font-weight:bold;"&gt;export&lt;/span&gt; for setting the enviromnmet and Write shell script 'rman_orcl.sh',rest all script is almost same and can fit as per our path in Unix environment.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;RMAN BACKUP DETAILS Views:&lt;br /&gt;---------------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; We can use Dictionary Views for checking the status of rman backups.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)USE AFTER SCHEDULING RMAN BACKUP:&lt;/span&gt;&lt;br /&gt;SELECT START_TIME||' '||END_TIME||' '||STATUS FROM V$RMAN_BACKUP_JOB_DETAILS;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)USE TO CHECK BYYES PROCESSED IN RMAN BACKUP:&lt;/span&gt;&lt;br /&gt;SELECT SID||' '||STATUS||' '||MBYTES_PROCESSED||' '||START_TIME||' '||END_TIME&lt;br /&gt;FROM V$RMAN_STATUS;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3)USE TO CHECK SESSION AND RMAN BACKUP OUTPUT:&lt;/span&gt;&lt;br /&gt;SELECT SID||' '||RECID||' '||OUTPUT||' '||SESSION_STAMP&lt;br /&gt;FROM V$RMAN_OUTPUT;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;On Unix terminal,It will be very much useful to check the process in order to check the status by using 'ps' command.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;$ps -eaf|grep rman&lt;/span&gt;&lt;br /&gt;                   &lt;br /&gt;Hope it helps... &lt;br /&gt;&lt;br /&gt;Enjoy Oracle learning.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-4148583817907080561?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/4148583817907080561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/07/rman-backup-types-and-usage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/4148583817907080561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/4148583817907080561'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/07/rman-backup-types-and-usage.html' title='RMAN backup types and Usage'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-1436399321984846879</id><published>2011-07-25T11:48:00.000-07:00</published><updated>2011-07-26T22:27:34.298-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN Recovery Catalog Database Creation and Configuration</title><content type='html'>Hi,&lt;br /&gt;    RMAN Recovery Catalog is an excellent way of keeping our backup safe.Since backup is the medicine of Database in case of failure or Data loss,so we don't want to keep the medicine and poison in the same bottle(which will be the case when target Database 'Controlfile' will be using for keeping the information of Backup.If the 'Controlfile' is corrupted or deleted(usually it is multiplexed),but still 'Controlfile' will be acting as poison and medicine.Hence Best option will be to use the 'Recovery Catalog'(Other Database to keep the RMAN metadata) where our backup can be safe.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Below are some steps for Creating and Configuring Recovery Catalog for our Database which might be production,test or Development:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 1:Create a new database for RMAN – Recovery catalog database-&gt;'CATDB'  Database created using dbca.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; We can create a small database with minimal sizes of tablespaces and others, and we can name the database as CATDB for naming convention and to avoid the confusion between our production and rman databases.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 2:Create a new tablespace in the new database (CATDB)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$ sqlplus /nolog&lt;br /&gt;&lt;br /&gt;CONNECT SYS/welcome@catdb AS SYSDBA;&lt;br /&gt;&lt;br /&gt;CREATE TABLESPACE rman&lt;br /&gt;DATAFILE 'D:\rafi\catdb\rman\rman01.dbf' size 200m;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 3:Create the Recovery Catalog Owner in the new database (CATDB)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;CREATE USER rman IDENTIFIED BY rman&lt;br /&gt;DEFAULT TABLESPACE rman&lt;br /&gt;QUOTA UNLIMITED ON rman;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 4:Grant the necessary privileges to the schema owner&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; GRANT recovery_catalog_owner TO rman;&lt;br /&gt;&lt;br /&gt;Here the role "RECOVERY_CATALOG_OWNER" provides the user with all privileges required to maintain and query the recovery catalog.RECOVERY_CATALOG_OWNER role has the CREATE_SESSION privileges so need to grant separately.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 5:Creating the Recovery Catalog&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Connect to the database which will contain the catalog as the catalog owner. &lt;br /&gt;For example:'rman' user is catalog owner in our example.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;On Linux(UNIX):&lt;br /&gt;------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Run the &lt;span style="font-weight:bold;"&gt;'CREATE CATALOG'&lt;/span&gt; command to create the catalog&lt;br /&gt;&lt;br /&gt;$ rman target / catalog rman/rman@catdb&lt;br /&gt;RMAN&gt; &lt;span style="font-weight:bold;"&gt;CREATE CATALOG;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;recovery catalog created&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;On Windows:&lt;/span&gt;&lt;br /&gt;--------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;C:\Windows\system32&gt;rman target / catalog rman/rman@catdb&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jun 21 00:44:02 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.&lt;br /&gt;&lt;br /&gt;connected to recovery catalog database&lt;br /&gt;&lt;br /&gt;RMAN&gt; &lt;span style="font-weight:bold;"&gt;CREATE CATALOG;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;recovery catalog created&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 6:Registering a Database in the Recovery Catalog&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Connect to the target database and recovery catalog database.&lt;br /&gt;&lt;br /&gt;$  export ORACLE_SID=ORCL&lt;br /&gt;$ rman target / catalog rman/rman@catdb&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 11.2.0.1.0 - Production on Sun July 1 14:25:30 2007&lt;br /&gt;Copyright (c) 1982, 2010, Oracle. All rights reserved.&lt;br /&gt;connected to target database: ORCL (DBID=3677528376)&lt;br /&gt;connected to recovery catalog database&lt;br /&gt;&lt;br /&gt;windows:&lt;br /&gt;-------------&lt;br /&gt;C:\Windows\system32&gt;set ORACLE_SID=ORCL&lt;br /&gt;&lt;br /&gt;C:\Windows\system32&gt; rman target / catalog rman/rman@catdb&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jun 21 01:03:19 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.&lt;br /&gt;&lt;br /&gt;connected to target database: ORCL (DBID=1280115002)&lt;br /&gt;connected to recovery catalog database&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 7:Register and Verify after connection&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;RMAN&gt; &lt;span style="font-weight:bold;"&gt;REGISTER DATABASE;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;database registered in recovery catalog&lt;br /&gt;starting full resync of recovery catalog&lt;br /&gt;full resync complete&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;On Windows (OR) Linux Environment:&lt;br /&gt;-------------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;RMAN&gt; &lt;span style="font-weight:bold;"&gt;REGISTER DATABASE;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;database registered in recovery catalog&lt;br /&gt;starting full resync of recovery catalog&lt;br /&gt;full resync complete&lt;br /&gt;&lt;br /&gt;          Register the target Database using &lt;span style="font-weight:bold;"&gt;'REGISTER DATABASE'&lt;/span&gt; command as seen above.&lt;br /&gt;&lt;br /&gt;Make sure that the registration is successful by running &lt;span style="font-weight:bold;"&gt;REPORT SCHEMA&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;RMAN&gt; REPORT SCHEMA;&lt;br /&gt;&lt;br /&gt;Report of database schema&lt;br /&gt;&lt;br /&gt;RMAN&gt; REPORT SCHEMA;&lt;br /&gt;&lt;br /&gt;Report of database schema for database with db_unique_name ORCL&lt;br /&gt;&lt;br /&gt;List of Permanent Datafiles&lt;br /&gt;===========================&lt;br /&gt;File Size(MB) Tablespace           RB segs Datafile Name&lt;br /&gt;---- -------- -------------------- ------- ------------------------&lt;br /&gt;1    690      SYSTEM               YES     D:\APP\RAFIALVI\ORADATA\ORCL\SYSTEM01.DBF&lt;br /&gt;2    570      SYSAUX               NO      D:\APP\RAFIALVI\ORADATA\ORCL\SYSAUX01.DBF&lt;br /&gt;3    55       UNDOTBS1             YES     D:\APP\RAFIALVI\ORADATA\ORCL\UNDOTBS01.DBF&lt;br /&gt;4    6144     USERS                NO      D:\APP\RAFIALVI\ORADATA\ORCL\USERS01.DBF&lt;br /&gt;5    100      EXAMPLE              NO      D:\APP\RAFIALVI\ORADATA\ORCL\EXAMPLE01.DBF&lt;br /&gt;&lt;br /&gt;List of Temporary Files&lt;br /&gt;=======================&lt;br /&gt;File Size(MB) Tablespace           Maxsize(MB) Tempfile Name&lt;br /&gt;---- -------- -------------------- ----------- --------------------&lt;br /&gt;1    20       TEMP                 32767       D:\APP\RAFIALVI\ORADATA\ORCL\TEMP01.DBF&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;In Windows:&lt;br /&gt;---------------&lt;br /&gt;For Connecting to recovery catalog Database 'CATDB' with rman for Target Database 'ORCL':&lt;br /&gt;C:\Windows\system32&gt;set ORACLE_SID=ORCL&lt;br /&gt;C:\Windows\system32&gt;rman target / CATALOG rman/rman@CATDB&lt;br /&gt;&lt;br /&gt;In Linux:&lt;br /&gt;-----------------&lt;br /&gt;For Connecting to recovery catalog Database 'CATDB' with rman for Target Database 'ORCL':&lt;br /&gt;$export ORACLE_SID=ORCL&lt;br /&gt;$rman target / CATALOG rman/rman@CATDB&lt;br /&gt;&lt;br /&gt;Rest all steps are prety much similar in both environment.....&lt;br /&gt;&lt;br /&gt;Hope it helps.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-1436399321984846879?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/1436399321984846879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/07/rman-recovery-catalog-database-creation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1436399321984846879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1436399321984846879'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/07/rman-recovery-catalog-database-creation.html' title='RMAN Recovery Catalog Database Creation and Configuration'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-556704045305123419</id><published>2011-07-25T11:29:00.000-07:00</published><updated>2011-07-25T11:42:02.873-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Recovery'/><title type='text'>Recover Database  from rman cold backup</title><content type='html'>Hi,&lt;br /&gt;    If we have the rman cold backup we can recover the Database upto that point we have the backup.Below is our experiment to prove this point.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Recovery of Database from complete loss of all files:&lt;br /&gt;---------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; Our Database is in noarchive log mode as verified below:&lt;br /&gt;&lt;br /&gt;SQL&gt; ARCHIVE LOG LIST&lt;br /&gt;Database log mode              No Archive Mode&lt;br /&gt;Automatic archival             Disabled&lt;br /&gt;Archive destination            D:\app\RafiAlvi\product\11.2.0\dbhome_1\RDBMS&lt;br /&gt;Oldest online log sequence     1&lt;br /&gt;Current log sequence           2&lt;br /&gt;k&lt;br /&gt; I'm having rman cold backup of all database files and image copy of controlfile.&lt;br /&gt;Below are our scripts which I used for taking cold backup:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;run_ORCL.txt:&lt;/span&gt;&lt;br /&gt;-----------------&lt;/span&gt;&lt;br /&gt;run{&lt;br /&gt;shutdown immediate;&lt;br /&gt;startup mount;&lt;br /&gt;allocate channel ch1 device type disk format 'D:\RMAN_BACKUP\orcl_BK_SET1_%U_%T' maxpiecesize 5G;&lt;br /&gt;allocate channel ch2 device type disk format 'D:\RMAN_BACKUP\orcl_BK_SET2_%U_%T';&lt;br /&gt;backup database TAG='ORCL_BACKUP_WEEKLY';&lt;br /&gt;allocate channel c1 type disk;&lt;br /&gt;copy current controlfile to 'D:\RMAN_BACKUP\orcl_ctrl_%U_%T';&lt;br /&gt;Release channel c1;&lt;br /&gt;configure retention policy to recovery window of 7 days;&lt;br /&gt;CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\RMAN_BACKUP\snapcf_orcl.f';&lt;br /&gt;CROSSCHECK BACKUP;&lt;br /&gt;release channel ch1;&lt;br /&gt;release channel ch2;&lt;br /&gt;alter database open;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;rman_coldb_backup.bat:&lt;br /&gt;------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;-- orcl DB RMAN COLD BACKUP&lt;br /&gt;set ORACLE_SID=orcl&lt;br /&gt;set ORACLE_HOME=D:\app\RafiAlvi\product\11.2.0\dbhome_1&lt;br /&gt;set ORACLE_BASE=D:\app\RafiAlvi\&lt;br /&gt;rman target sys/orcldba @D:\RMAN_BACKUP_SCRIPTS\run_ORCL.txt log=D:\RMAN_BACKUP_SCRIPTS\LOGS\rman_cold_orcl_25july_cold.log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;rman_cold_orcl_25july_cold.log:&lt;br /&gt;--------------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 11.2.0.1.0 - Production on Mon Jul 25 09:04:41 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.&lt;br /&gt;&lt;br /&gt;connected to target database: ORCL (DBID=1280115002, not open)&lt;br /&gt;&lt;br /&gt;RMAN&gt; run{&lt;br /&gt;2&gt; shutdown immediate;&lt;br /&gt;3&gt; startup mount;&lt;br /&gt;4&gt; allocate channel ch1 device type disk format 'D:\RMAN_BACKUP\orcl_BK_SET1_%U_%T' maxpiecesize 5G;&lt;br /&gt;5&gt; allocate channel ch2 device type disk format 'D:\RMAN_BACKUP\orcl_BK_SET2_%U_%T';&lt;br /&gt;6&gt; backup database TAG='ORCL_BACKUP_WEEKLY';&lt;br /&gt;7&gt; allocate channel c1 type disk;&lt;br /&gt;8&gt; copy current controlfile to 'D:\RMAN_BACKUP\orcl_ctrl_%U_%T';&lt;br /&gt;9&gt; Release channel c1;&lt;br /&gt;10&gt; configure retention policy to recovery window of 7 days;&lt;br /&gt;11&gt; CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\RMAN_BACKUP\snapcf_orcl.f';&lt;br /&gt;12&gt; CROSSCHECK BACKUP;&lt;br /&gt;13&gt; release channel ch1;&lt;br /&gt;14&gt; release channel ch2;&lt;br /&gt;15&gt; alter database open;&lt;br /&gt;16&gt; }&lt;br /&gt;17&gt; &lt;br /&gt;using target database control file instead of recovery catalog&lt;br /&gt;database dismounted&lt;br /&gt;Oracle instance shut down&lt;br /&gt;&lt;br /&gt;connected to target database (not started)&lt;br /&gt;Oracle instance started&lt;br /&gt;database mounted&lt;br /&gt;&lt;br /&gt;Total System Global Area     217157632 bytes&lt;br /&gt;&lt;br /&gt;Fixed Size                     2174320 bytes&lt;br /&gt;Variable Size                159384208 bytes&lt;br /&gt;Database Buffers              50331648 bytes&lt;br /&gt;Redo Buffers                   5267456 bytes&lt;br /&gt;&lt;br /&gt;allocated channel: ch1&lt;br /&gt;channel ch1: SID=134 device type=DISK&lt;br /&gt;&lt;br /&gt;allocated channel: ch2&lt;br /&gt;channel ch2: SID=5 device type=DISK&lt;br /&gt;&lt;br /&gt;Starting backup at 25-JUL-11&lt;br /&gt;channel ch1: starting full datafile backup set&lt;br /&gt;channel ch1: specifying datafile(s) in backup set&lt;br /&gt;input datafile file number=00004 name=D:\APP\RAFIALVI\ORADATA\ORCL\USERS01.DBF&lt;br /&gt;input datafile file number=00005 name=D:\APP\RAFIALVI\ORADATA\ORCL\EXAMPLE01.DBF&lt;br /&gt;channel ch1: starting piece 1 at 25-JUL-11&lt;br /&gt;channel ch2: starting full datafile backup set&lt;br /&gt;channel ch2: specifying datafile(s) in backup set&lt;br /&gt;input datafile file number=00001 name=D:\APP\RAFIALVI\ORADATA\ORCL\SYSTEM01.DBF&lt;br /&gt;input datafile file number=00002 name=D:\APP\RAFIALVI\ORADATA\ORCL\SYSAUX01.DBF&lt;br /&gt;input datafile file number=00003 name=D:\APP\RAFIALVI\ORADATA\ORCL\UNDOTBS01.DBF&lt;br /&gt;channel ch2: starting piece 1 at 25-JUL-11&lt;br /&gt;channel ch1: finished piece 1 at 25-JUL-11&lt;br /&gt;piece handle=D:\RMAN_BACKUP\ORCL_BK_SET1_21MIAF62_1_1_20110725 tag=ORCL_BACKUP_WEEKLY comment=NONE&lt;br /&gt;channel ch1: backup set complete, elapsed time: 00:00:11&lt;br /&gt;channel ch1: starting full datafile backup set&lt;br /&gt;channel ch1: specifying datafile(s) in backup set&lt;br /&gt;including current control file in backup set&lt;br /&gt;channel ch1: starting piece 1 at 25-JUL-11&lt;br /&gt;channel ch1: finished piece 1 at 25-JUL-11&lt;br /&gt;piece handle=D:\RMAN_BACKUP\ORCL_BK_SET1_23MIAF6E_1_1_20110725 tag=ORCL_BACKUP_WEEKLY comment=NONE&lt;br /&gt;channel ch1: backup set complete, elapsed time: 00:00:08&lt;br /&gt;channel ch2: finished piece 1 at 25-JUL-11&lt;br /&gt;piece handle=D:\RMAN_BACKUP\ORCL_BK_SET2_22MIAF62_1_1_20110725 tag=ORCL_BACKUP_WEEKLY comment=NONE&lt;br /&gt;channel ch2: backup set complete, elapsed time: 00:01:21&lt;br /&gt;Finished backup at 25-JUL-11&lt;br /&gt;&lt;br /&gt;allocated channel: c1&lt;br /&gt;channel c1: SID=48 device type=DISK&lt;br /&gt;&lt;br /&gt;Starting backup at 25-JUL-11&lt;br /&gt;channel ch1: starting datafile copy&lt;br /&gt;copying current control file&lt;br /&gt;output file name=D:\RMAN_BACKUP\ORCL_CTRL_CF_D-ORCL_ID-1280115002_24MIAF8O_20110725 tag=TAG20110725T090632 RECID=32 STAMP=757415193&lt;br /&gt;channel ch1: datafile copy complete, elapsed time: 00:00:01&lt;br /&gt;Finished backup at 25-JUL-11&lt;br /&gt;&lt;br /&gt;released channel: c1&lt;br /&gt;&lt;br /&gt;old RMAN configuration parameters:&lt;br /&gt;CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;&lt;br /&gt;new RMAN configuration parameters:&lt;br /&gt;CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;&lt;br /&gt;new RMAN configuration parameters are successfully stored&lt;br /&gt;&lt;br /&gt;old RMAN configuration parameters:&lt;br /&gt;CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\RMAN_BACKUP\snapcf_orcl.f';&lt;br /&gt;old RMAN configuration parameters:&lt;br /&gt;CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\RMAN_BACKUP\SNAPCF_ORCL.F';&lt;br /&gt;new RMAN configuration parameters:&lt;br /&gt;CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\RMAN_BACKUP\snapcf_orcl.f';&lt;br /&gt;new RMAN configuration parameters are successfully stored&lt;br /&gt;&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\APP\RAFIALVI\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_06_04\O1_MF_NCSNF_TAG20110604T133433_6YO5PVD8_.BKP RECID=1 STAMP=752938475&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\APP\RAFIALVI\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_06_21\O1_MF_NNNDF_TAG20110621T011243_700NMVS9_.BKP RECID=8 STAMP=754362763&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\APP\RAFIALVI\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_06_21\O1_MF_NCSNF_TAG20110621T011243_700NO02P_.BKP RECID=9 STAMP=754362800&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\APP\RAFIALVI\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_06_21\O1_MF_NNND0_TAG20110621T013343_700OV861_.BKP RECID=10 STAMP=754364024&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\APP\RAFIALVI\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_06_21\O1_MF_NCSN0_TAG20110621T013343_700OYC20_.BKP RECID=11 STAMP=754364123&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\APP\RAFIALVI\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_06_21\O1_MF_NNND1_TAG20110621T013544_700OZ19R_.BKP RECID=12 STAMP=754364145&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\APP\RAFIALVI\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_06_21\O1_MF_NCSN1_TAG20110621T013544_700P3CKP_.BKP RECID=13 STAMP=754364283&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110724_1HMI7EPO_1_1 RECID=20 STAMP=757316409&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110724_1IMI7EPP_1_1 RECID=21 STAMP=757316410&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110724_1JMI7ES5_1_1 RECID=22 STAMP=757316486&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110724_1NMI7F9M_1_1 RECID=23 STAMP=757316919&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110724_1OMI7FCC_1_1 RECID=24 STAMP=757317004&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110724_1PMI7FDF_1_1 RECID=25 STAMP=757317040&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_BK_SET1_1RMI7GM4_1_1_20110724 RECID=26 STAMP=757318341&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_BK_SET1_1TMI7GMD_1_1_20110724 RECID=27 STAMP=757318368&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_BK_SET1_1UMI7GN7_1_1_20110724 RECID=28 STAMP=757318377&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_BK_SET2_1SMI7GM5_1_1_20110724 RECID=29 STAMP=757318347&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_BK_SET1_21MIAF62_1_1_20110725 RECID=30 STAMP=757415106&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_BK_SET1_23MIAF6E_1_1_20110725 RECID=31 STAMP=757415136&lt;br /&gt;crosschecked backup piece: found to be 'AVAILABLE'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_BK_SET2_22MIAF62_1_1_20110725 RECID=32 STAMP=757415110&lt;br /&gt;Crosschecked 20 objects&lt;br /&gt;&lt;br /&gt;crosschecked backup piece: found to be 'EXPIRED'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_20110618_04MF7PSK_1_1 RECID=2 STAMP=754182037&lt;br /&gt;crosschecked backup piece: found to be 'EXPIRED'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_20110618_05MF7PVA_1_1 RECID=3 STAMP=754182123&lt;br /&gt;crosschecked backup piece: found to be 'EXPIRED'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_BK_SET1_07MF7TM1_1_1_20110619 RECID=4 STAMP=754185922&lt;br /&gt;crosschecked backup piece: found to be 'EXPIRED'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_BK_SET1_09MF7TM4_1_1_20110619 RECID=5 STAMP=754185933&lt;br /&gt;crosschecked backup piece: found to be 'EXPIRED'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_BK_SET1_0AMF7TML_1_1_20110619 RECID=6 STAMP=754185943&lt;br /&gt;crosschecked backup piece: found to be 'EXPIRED'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_BK_SET2_08MF7TM2_1_1_20110619 RECID=7 STAMP=754185924&lt;br /&gt;crosschecked backup piece: found to be 'EXPIRED'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110723_0LMI4OJ5_1_1 RECID=14 STAMP=757228134&lt;br /&gt;crosschecked backup piece: found to be 'EXPIRED'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110723_0MMI4OM5_1_1 RECID=15 STAMP=757228232&lt;br /&gt;crosschecked backup piece: found to be 'EXPIRED'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110723_0OMI4PES_1_1 RECID=16 STAMP=757229020&lt;br /&gt;crosschecked backup piece: found to be 'EXPIRED'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110723_0PMI4PJ3_1_1 RECID=17 STAMP=757229156&lt;br /&gt;crosschecked backup piece: found to be 'EXPIRED'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110723_0RMI4QET_1_1 RECID=18 STAMP=757230046&lt;br /&gt;crosschecked backup piece: found to be 'EXPIRED'&lt;br /&gt;backup piece handle=D:\RMAN_BACKUP\ORCL_DATA_BACKUP2_20110723_0SMI4QJ5_1_1 RECID=19 STAMP=757230182&lt;br /&gt;Crosschecked 12 objects&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;released channel: ch1&lt;br /&gt;&lt;br /&gt;released channel: ch2&lt;br /&gt;&lt;br /&gt;database opened&lt;br /&gt;&lt;br /&gt;Recovery Manager complete.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;     We are dropping our Database and assuming that all our Database files are lost&lt;br /&gt;or corrupted including the controlfile.I'm including that step also.&lt;br /&gt;&lt;br /&gt;Dropping Database:&lt;br /&gt;---------------------&lt;br /&gt;     We have to drop Database in mount restrict mode as given below:&lt;br /&gt;&lt;br /&gt;To make sure we are dropping the correct Database,please make sure we do the below steps:&lt;br /&gt;&lt;br /&gt;C:\Users\RafiAlvi&gt;set ORACLE_SID=ORCL&lt;br /&gt;&lt;br /&gt;C:\Users\RafiAlvi&gt;sqlplus "/as sysdba"&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 11.2.0.1.0 Production on Mon Jul 25 09:14:41 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2010, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production&lt;br /&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&gt; select name from v$database;&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;---------&lt;br /&gt;ORCL&lt;br /&gt;&lt;br /&gt;SQL&gt; select status from v$instance;&lt;br /&gt;&lt;br /&gt;STATUS&lt;br /&gt;------------&lt;br /&gt;OPEN&lt;br /&gt;&lt;br /&gt;SQL&gt; shut immediate&lt;br /&gt;Database closed.&lt;br /&gt;Database dismounted.&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;SQL&gt; startup mount restrict&lt;br /&gt;ORACLE instance started.&lt;br /&gt;&lt;br /&gt;Total System Global Area  217157632 bytes&lt;br /&gt;Fixed Size                  2174320 bytes&lt;br /&gt;Variable Size             159384208 bytes&lt;br /&gt;Database Buffers           50331648 bytes&lt;br /&gt;Redo Buffers                5267456 bytes&lt;br /&gt;Database mounted.&lt;br /&gt;SQL&gt; drop database;&lt;br /&gt;&lt;br /&gt;Database dropped.&lt;br /&gt;&lt;br /&gt; Now I will try to connect the Database,&lt;br /&gt;&lt;br /&gt;C:\Users\RafiAlvi&gt;set ORACLE_SID=ORCL&lt;br /&gt;&lt;br /&gt;C:\Users\RafiAlvi&gt;sqlplus "/as sysdba"&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 11.2.0.1.0 Production on Mon Jul 25 09:18:12 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2010, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to an idle instance.&lt;br /&gt;&lt;br /&gt;SQL&gt; startup nomount&lt;br /&gt;ORACLE instance started.&lt;br /&gt;&lt;br /&gt;Total System Global Area  217157632 bytes&lt;br /&gt;Fixed Size                  2174320 bytes&lt;br /&gt;Variable Size             159384208 bytes&lt;br /&gt;Database Buffers           50331648 bytes&lt;br /&gt;Redo Buffers                5267456 bytes&lt;br /&gt;SQL&gt; alter database mount;&lt;br /&gt;alter database mount&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-00205: error in identifying control file, check alert log for more info&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Now,Restore and recovery of Database can be done by following below steps:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 1: Startup Database with pfile:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; Create one pfile in location where previous pfile was existing:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;INITORCL.ora:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;db_name=ORCL&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 2:Restore the controlfile with 'RMAN':&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;RMAN&gt; restore controlfile;&lt;br /&gt;&lt;br /&gt;Starting restore at 24-JUL-11&lt;br /&gt;using channel ORA_DISK_1&lt;br /&gt;&lt;br /&gt;channel ORA_DISK_1: restoring control file&lt;br /&gt;channel ORA_DISK_1: copied control file copy&lt;br /&gt;input file name=D:\RMAN_BACKUP\ORCL_CTRL_CF_D-ORCL_ID-1280115002_1VMI7GP2_20110724&lt;br /&gt;output file name=D:\APP\RAFIALVI\PRODUCT\11.2.0\DBHOME_1\DATABASE\CTL1ORCL.ORA&lt;br /&gt;Finished restore at 24-JUL-11&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 3: Mount the Database.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;C:\Users\RafiAlvi&gt;set ORACLE_SID=ORCL&lt;br /&gt;&lt;br /&gt;C:\Users\RafiAlvi&gt;sqlplus "/as sysdba"&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 11.2.0.1.0 Production on Sun Jul 24 08:31:24 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2010, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to an idle instance.&lt;br /&gt;&lt;br /&gt;SQL&gt; startup nomount pfile='D:\APP\RAFIALVI\PRODUCT\11.2.0\DBHOME_1\DATABASE\INITORCL.ORA'&lt;br /&gt;ORACLE instance started.&lt;br /&gt;&lt;br /&gt;Total System Global Area  217157632 bytes&lt;br /&gt;Fixed Size                  2174320 bytes&lt;br /&gt;Variable Size             159384208 bytes&lt;br /&gt;Database Buffers           50331648 bytes&lt;br /&gt;Redo Buffers                5267456 bytes&lt;br /&gt;SQL&gt; select status from v$instance;&lt;br /&gt;&lt;br /&gt;STATUS&lt;br /&gt;------------&lt;br /&gt;STARTED&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database mount;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; select status from v$instance;&lt;br /&gt;&lt;br /&gt;STATUS&lt;br /&gt;------------&lt;br /&gt;MOUNTED&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 4: Restore ,recover and open the Database.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;RMAN&gt; restore Database;&lt;br /&gt;&lt;br /&gt;Starting restore at 24-JUL-11&lt;br /&gt;released channel: ORA_DISK_1&lt;br /&gt;allocated channel: ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: SID=5 device type=DISK&lt;br /&gt;&lt;br /&gt;channel ORA_DISK_1: starting datafile backup set restore&lt;br /&gt;channel ORA_DISK_1: specifying datafile(s) to restore from backup set&lt;br /&gt;channel ORA_DISK_1: restoring datafile 00004 to D:\APP\RAFIALVI\ORADATA\ORCL\USERS01.DBF&lt;br /&gt;channel ORA_DISK_1: restoring datafile 00005 to D:\APP\RAFIALVI\ORADATA\ORCL\EXAMPLE01.DBF&lt;br /&gt;channel ORA_DISK_1: reading from backup piece D:\RMAN_BACKUP\ORCL_BK_SET1_1RMI7GM4_1_1_20110724&lt;br /&gt;channel ORA_DISK_1: piece handle=D:\RMAN_BACKUP\ORCL_BK_SET1_1RMI7GM4_1_1_20110724 tag=ORCL_BACKUP_WEEKLY&lt;br /&gt;channel ORA_DISK_1: restored backup piece 1&lt;br /&gt;channel ORA_DISK_1: restore complete, elapsed time: 00:01:55&lt;br /&gt;channel ORA_DISK_1: starting datafile backup set restore&lt;br /&gt;channel ORA_DISK_1: specifying datafile(s) to restore from backup set&lt;br /&gt;channel ORA_DISK_1: restoring datafile 00001 to D:\APP\RAFIALVI\ORADATA\ORCL\SYSTEM01.DBF&lt;br /&gt;channel ORA_DISK_1: restoring datafile 00002 to D:\APP\RAFIALVI\ORADATA\ORCL\SYSAUX01.DBF&lt;br /&gt;channel ORA_DISK_1: restoring datafile 00003 to D:\APP\RAFIALVI\ORADATA\ORCL\UNDOTBS01.DBF&lt;br /&gt;channel ORA_DISK_1: reading from backup piece D:\RMAN_BACKUP\ORCL_BK_SET2_1SMI7GM5_1_1_20110724&lt;br /&gt;channel ORA_DISK_1: piece handle=D:\RMAN_BACKUP\ORCL_BK_SET2_1SMI7GM5_1_1_20110724 tag=ORCL_BACKUP_WEEKLY&lt;br /&gt;channel ORA_DISK_1: restored backup piece 1&lt;br /&gt;channel ORA_DISK_1: restore complete, elapsed time: 00:01:06&lt;br /&gt;Finished restore at 24-JUL-11&lt;br /&gt;&lt;br /&gt;RMAN&gt; recover database;&lt;br /&gt;&lt;br /&gt;Starting recover at 24-JUL-11&lt;br /&gt;using channel ORA_DISK_1&lt;br /&gt;&lt;br /&gt;starting media recovery&lt;br /&gt;media recovery failed&lt;br /&gt;RMAN-00571: ===========================================================&lt;br /&gt;RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============&lt;br /&gt;RMAN-00571: ===========================================================&lt;br /&gt;RMAN-03002: failure of recover command at 07/24/2011 08:55:16&lt;br /&gt;ORA-00283: recovery session canceled due to errors&lt;br /&gt;RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed&lt;br /&gt; start until cancel using backup controlfile&lt;br /&gt;ORA-00283: recovery session canceled due to errors&lt;br /&gt;ORA-38760: This database instance failed to turn on flashback database&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 5:0RA-38760 is because flashback Database is turned ON.&lt;br /&gt;We have to turn OFF and try now,It will work.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CASE 1:IN ARCHIVE LOG MODE:&lt;br /&gt;------------------------------&lt;br /&gt;&lt;br /&gt;SQL&gt; select flashback_on from v$database;&lt;br /&gt;&lt;br /&gt;FLASHBACK_ON&lt;br /&gt;------------------&lt;br /&gt;YES&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database open;&lt;br /&gt;alter database open&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-38760: This database instance failed to turn on flashback database&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database flashback off;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database open;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; select status from v$instance;&lt;br /&gt;&lt;br /&gt;STATUS&lt;br /&gt;------------&lt;br /&gt;OPEN&lt;br /&gt;&lt;br /&gt;SQL&gt; select flashback_on from v$database;&lt;br /&gt;&lt;br /&gt;FLASHBACK_ON&lt;br /&gt;------------------&lt;br /&gt;NO&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;CASE 2:IN NOARCHIVELOG MODE&lt;br /&gt;-------------------------------&lt;br /&gt;&lt;br /&gt;RMAN&gt; recover database;&lt;br /&gt;&lt;br /&gt;Starting recover at 25-JUL-11&lt;br /&gt;using channel ORA_DISK_1&lt;br /&gt;&lt;br /&gt;starting media recovery&lt;br /&gt;media recovery failed&lt;br /&gt;RMAN-00571: ===========================================================&lt;br /&gt;RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============&lt;br /&gt;RMAN-00571: ===========================================================&lt;br /&gt;RMAN-03002: failure of recover command at 07/25/2011 10:29:40&lt;br /&gt;ORA-00283: recovery session canceled due to errors&lt;br /&gt;RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed&lt;br /&gt; start until cancel using backup controlfile&lt;br /&gt;ORA-00283: recovery session canceled due to errors&lt;br /&gt;ORA-00275: media recovery has already been started&lt;br /&gt;&lt;br /&gt;(OR)&lt;br /&gt;&lt;br /&gt;SQL&gt; recover database;&lt;br /&gt;ORA-00283: recovery session canceled due to errors&lt;br /&gt;ORA-00275: media recovery has already been started&lt;br /&gt;&lt;br /&gt;           &lt;br /&gt;SQL&gt; alter database open;&lt;br /&gt;alter database open&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-01589: must use RESETLOGS or NORESETLOGS option for database open&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database open resetlogs;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; select status from v$instance;&lt;br /&gt;&lt;br /&gt;STATUS&lt;br /&gt;------------&lt;br /&gt;OPEN&lt;br /&gt;&lt;br /&gt;SQL&gt; select name from v$database;&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;---------&lt;br /&gt;ORCL&lt;br /&gt;&lt;br /&gt;SQL&gt; select log_mode from v$database;&lt;br /&gt;&lt;br /&gt;LOG_MODE&lt;br /&gt;------------&lt;br /&gt;ARCHIVELOG&lt;br /&gt;                 Oracle is amazing :) BECAUSE my Database was in NOARCHIVELOG mode after recovery as I resetlogs it is converted to ARCHIVELOG MODE.&lt;br /&gt;&lt;br /&gt;        Hope we enjoyed recovery.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-556704045305123419?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/556704045305123419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/07/recover-database-from-rman-cold-backup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/556704045305123419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/556704045305123419'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/07/recover-database-from-rman-cold-backup.html' title='Recover Database  from rman cold backup'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-8559808634867362204</id><published>2011-07-17T21:51:00.000-07:00</published><updated>2011-07-17T21:56:59.037-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Errors'/><title type='text'>Resolving ORA-31626,ORA-31633 while running Datapump job</title><content type='html'>Resolving ORA-31626,ORA-31633 while running Datapump job:&lt;br /&gt;-------------------------------------------------------------&lt;br /&gt;        When I check my expdp logs(Datapump backup logs) and backup for one of my development Database I found both the logs and backup for the previous day missing,than I checked the cron job log and found the job actually ran the previous day.After some thinking I decided to run the expdp job(Datapump job) once again manually with the help of one my favourite command 'nohup' as follows:&lt;br /&gt;$nohup sh expdp_FULL_DB_DEVDB.sh&gt;a.out&amp;&lt;br /&gt;&lt;br /&gt;         In the a.out(log file for nohup job used for running expdp job) I found the below error:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;ORA-31626: job does not exist&lt;br /&gt;ORA-31633: unable to create master table "SYSTEM.FULL_EXPDP_DEVDB"&lt;/span&gt;&lt;br /&gt;ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95&lt;/span&gt;&lt;br /&gt;ORA-06512: at "SYS.KUPV$FT", line 1020&lt;br /&gt;ORA-00955: name is already used by an existing object&lt;br /&gt;&lt;br /&gt;          After some research,I found the cause of this error as given below:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Cause:&lt;/span&gt;&lt;/span&gt; This error occured because Job creation failed because a Master Table(A table created when a Datapump job is started and dropped when a Datapump job is completed) and its indexes could not be created,most commonly due to the pre-existance of a table with the same name (job name) in the user schema&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Solution:&lt;/span&gt;&lt;/span&gt; I decided to &lt;span style="font-weight:bold;"&gt;Change the JOB_NAME&lt;/span&gt; in the expdp script and run the expdp script once again with the help of the 'nohup' command again as given below:&lt;br /&gt;&lt;br /&gt;$vi expdp_FULL_DB_DEVDB.sh&lt;br /&gt;JOB_NAME=EXPD_JOB_NEW_NAME&lt;br /&gt;:wq&lt;br /&gt;&lt;br /&gt;$nohup sh expdp_FULL_DB_DEVDB.sh&gt;a.out&amp;&lt;br /&gt;&lt;br /&gt;     This time the 'nohup' command ran successfully,I checked the 'expdp' job it started successfully and the log file also looks fine.&lt;br /&gt;&lt;br /&gt;$ps -eaf|grep expdp&lt;br /&gt;=&gt;Datapump(expdp) job found running&lt;br /&gt;&lt;br /&gt;$tail -f expdp-18072011_095042.log&lt;br /&gt;=&gt;show running log file and I've verified here that expdp job is running fine and completed successfully.&lt;br /&gt;&lt;br /&gt;      After some time expdp job completed successfully,My only concern is next time this issue should not occur for this I'm not getting any clue if you have any please reply to this post.&lt;br /&gt;&lt;br /&gt;Hope it helps...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-8559808634867362204?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/8559808634867362204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/07/resolving-ora-31626ora-31633-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8559808634867362204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/8559808634867362204'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/07/resolving-ora-31626ora-31633-while.html' title='Resolving ORA-31626,ORA-31633 while running Datapump job'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-3398394491214919429</id><published>2011-07-13T02:42:00.000-07:00</published><updated>2011-07-13T23:51:35.632-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Errors'/><title type='text'>Resolving DRG-10502 and ORA-06512</title><content type='html'>Hi,&lt;br /&gt;    When I checked my Datapump export backup(logical backup) log file,I saw the below error message,In the below post I'm explaining the cause and the posible solution to get rid of this error in our next Datapump export backup.Remember,we need&lt;br /&gt;to check our log files regularly for resolving such errors and to make sure our backup is complete error free as this is very much vital for DBA to avoid any future issues.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Error message:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ORA-39127: unexpected error from call to local_str := SYS.DBMS_EXPORT_EXTENSION.GET_DOMAIN_INDEX_METADATA('WWV_FLOW_OH_IDX','APEX_040000','TEXTINDEXMETHODS','CTXSYS',11.02.00.00.00,newblock,0)&lt;br /&gt;ORA-20000: Oracle Text error:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;DRG-10502:&lt;/span&gt; index APEX_040000"."WWV_FLOW_OH_IDX does not exist&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;ORA-06512&lt;/span&gt;: at "SYS.DBMS_EXPORT_EXTENSION", line 270&lt;br /&gt;ORA-06512: at line 1&lt;br /&gt;ORA-06512: at "SYS.DBMS_METADATA", line 6300&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Cause:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We got this error because,In my 11g rel2 database Because of the below reason:&lt;br /&gt;&lt;br /&gt;The errors are thrown because &lt;span style="font-weight:bold;"&gt;the domain index has status FAILED&lt;/span&gt;, visible in USER_/DBA_INDEXES view, and no entry exists in Text data dictionary, ctxsys schema.Only metadata of valid domain indexes are exported.&lt;br /&gt;I tried to rebuild the index but still the same error thrown.So finally decided to&lt;br /&gt;drop it.&lt;br /&gt;&lt;br /&gt;SQL&gt; select name from v$database;&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;---------&lt;br /&gt;TESTDB&lt;br /&gt;&lt;br /&gt;SQL&gt;  select index_name, status, domidx_status, domidx_opstatus&lt;br /&gt;     from dba_indexes&lt;br /&gt;      where index_type = 'DOMAIN'&lt;br /&gt;      and domidx_opstatus = 'FAILED';  2    3    4&lt;br /&gt;&lt;br /&gt;INDEX_NAME                     STATUS   DOMIDX_STATU DOMIDX&lt;br /&gt;------------------------------ -------- ------------ ------&lt;br /&gt;WWV_FLOW_OH_IDX                VALID    VALID        FAILED&lt;br /&gt;&lt;br /&gt;SQL&gt;  ALTER INDEX APEX_040000.WWV_FLOW_OH_IDX REBUILD ONLINE;&lt;br /&gt; ALTER INDEX APEX_040000.WWV_FLOW_OH_IDX REBUILD ONLINE&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-29858: error occurred in the execution of ODCIINDEXALTER routine&lt;br /&gt;ORA-20000: Oracle Text error:&lt;br /&gt;DRG-10561: index WWV_FLOW_OH_IDX is not valid for requested operation&lt;br /&gt;ORA-06512: at "CTXSYS.DRUE", line 160&lt;br /&gt;ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 614&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Solution:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;To implement the solution, please execute the following steps:&lt;br /&gt;&lt;br /&gt;    * if the indexes are required in your application drop and re-create them&lt;br /&gt;    * if the indexes are not used by your application then drop them&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Resolution:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;          I have drop the index as I know it is not used by our application and one valid reason i.e &lt;span style="font-weight:bold;"&gt;ctxsys:&lt;/span&gt;The owner of Oracle text (formerly: interMedia text) and not used by our application. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; Before dropping WWV_FLOW_OH_IDX,please make sure it is not used by your application or else drop and recreate.&lt;br /&gt;&lt;br /&gt;SQL&gt; DROP INDEX APEX_040000.WWV_FLOW_OH_IDX;&lt;br /&gt;&lt;br /&gt;Index dropped.&lt;br /&gt;&lt;br /&gt;SQL&gt; select index_name, status, domidx_status, domidx_opstatus&lt;br /&gt;     from dba_indexes&lt;br /&gt;      where index_type = 'DOMAIN'&lt;br /&gt;      and domidx_opstatus = 'FAILED';  2    3    4&lt;br /&gt;&lt;br /&gt;no rows selected&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;References:&lt;/span&gt;MY ORACLE SUPPORT,ORACLE FORUM&lt;br /&gt;&lt;br /&gt;Hope it helps...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-3398394491214919429?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/3398394491214919429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/07/resolving-drg-10502.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/3398394491214919429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/3398394491214919429'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/07/resolving-drg-10502.html' title='Resolving DRG-10502 and ORA-06512'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-2245453048700025352</id><published>2011-07-06T04:20:00.000-07:00</published><updated>2011-07-06T05:01:17.911-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Errors'/><title type='text'>Resolving UDE-12545 and ORA-12545 error</title><content type='html'>Hi,&lt;br /&gt;     Oracle networking errors can test our patience some times.Below is one such error.Changing the host or domain name of a server can lead to UDE-12545 and&lt;br /&gt;ORA-12545 error.Below I'm discussing the cause of this error,possible ways to diagnose and resolve this error in a very simple manner.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Error message:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;UDE-12545: operation generated ORACLE error 12545&lt;br /&gt;ORA-12545: Connect failed because target host or object does not exist&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Diagnosis:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;            We can solve this error as follows:&lt;br /&gt;&lt;br /&gt;1)Check the listener is up &amp; running&lt;br /&gt;&lt;br /&gt;[oracle@node1 Backup_Scipts]$ &lt;span style="font-weight:bold;"&gt;lsnrctl status&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 06-JUL-2011 10:55:48&lt;br /&gt;&lt;br /&gt;Copyright (c) 1991, 2009, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=node1.in.company.com)(PORT=1521)))&lt;br /&gt;STATUS of the LISTENER&lt;br /&gt;------------------------&lt;br /&gt;Alias                     LISTENER&lt;br /&gt;Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production&lt;br /&gt;Start Date                02-JUL-2011 11:00:36&lt;br /&gt;Uptime                    3 days 23 hr. 55 min. 13 sec&lt;br /&gt;Trace Level               off&lt;br /&gt;Security                  ON: Local OS Authentication&lt;br /&gt;SNMP                      OFF&lt;br /&gt;Listener Parameter File   /u01/oracle11g/product/11.2.0/dbhome_1/network/admin/listener.ora&lt;br /&gt;Listener Log File         /u01/oracle11g/diag/tnslsnr/node1/listener/alert/log.xml&lt;br /&gt;Listening Endpoints Summary...&lt;br /&gt;  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=node1.in.company.com)(PORT=1521)))&lt;br /&gt;Services Summary...&lt;br /&gt;Service "TESTDB" has 1 instance(s).&lt;br /&gt;  Instance "TESTDB", status UNKNOWN, has 1 handler(s) for this service...&lt;br /&gt;Service "TESTDB2" has 1 instance(s).&lt;br /&gt;  Instance "TESTDB2", status UNKNOWN, has 1 handler(s) for this service...&lt;br /&gt;The command completed successfully&lt;br /&gt;&lt;br /&gt;2)Use the &lt;span style="font-weight:bold;"&gt;tnsping&lt;/span&gt; to check the connection string(TNS entry) for Database is working fine or not,for checking network connectivity:&lt;br /&gt;&lt;br /&gt;Here we will get the error as given below:&lt;br /&gt;&lt;br /&gt;[oracle@node1 Backup_Scipts]$&lt;span style="font-weight:bold;"&gt; tnsping&lt;/span&gt; TESTDB&lt;br /&gt;&lt;br /&gt;TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 06-JUL-2011 10:55:56&lt;br /&gt;&lt;br /&gt;Copyright (c) 1997, 2009, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Used parameter files:&lt;br /&gt;/u01/oracle11g/product/11.2.0/dbhome_1/network/admin/sqlnet.ora&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Used TNSNAMES adapter to resolve the alias&lt;br /&gt;Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = node1.apac.company.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = TESTDB)))&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;TNS-12545: Connect failed because target host or object does not exist&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;Here,TESTDB is connection string(tns entry) present in tnsnames.ora file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Resolving:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;        Now,We have to check our hostname and verify it with the connection string present in the tnsnames.ora file.&lt;br /&gt;&lt;br /&gt;Verify the host details and connection string details and validate:&lt;br /&gt;&lt;br /&gt;[oracle@node1 Backup_Scipts]$ &lt;span style="font-weight:bold;"&gt;hostname&lt;/span&gt;&lt;br /&gt;node1.in.company.com&lt;br /&gt;                As we noticed we need to change the domain name from 'apac' to 'in' in the connetion string present&lt;br /&gt;in tnsnames.ora file and save it and than try 'tnsping'&lt;br /&gt;&lt;br /&gt;[oracle@node1 admin]$ tnsping TESTDB&lt;br /&gt;&lt;br /&gt;TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 06-JUL-2011 10:57:58&lt;br /&gt;&lt;br /&gt;Copyright (c) 1997, 2009, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Used parameter files:&lt;br /&gt;/u01/oracle11g/product/11.2.0/dbhome_1/network/admin/sqlnet.ora&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Used TNSNAMES adapter to resolve the alias&lt;br /&gt;Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = node1.in.company.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = TESTDB)))&lt;br /&gt;OK (10 msec)&lt;br /&gt;&lt;br /&gt;Now,we can perform the tasks related to rman,datapump or other tasks dealing with the connection string it will work fine.&lt;br /&gt;&lt;br /&gt;Hope it helps.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-2245453048700025352?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/2245453048700025352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/07/resolving-ude-12545-and-ora-12545-error.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2245453048700025352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2245453048700025352'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/07/resolving-ude-12545-and-ora-12545-error.html' title='Resolving UDE-12545 and ORA-12545 error'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-2829583536874543904</id><published>2011-06-24T06:47:00.000-07:00</published><updated>2011-06-30T02:33:24.118-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='APEX tasks'/><title type='text'>APEX Installation,Uninstallation and Administration in Oracle Database</title><content type='html'>Hi,&lt;br /&gt;   As a DBA we might come across doing the Below task for APEX Component existing&lt;br /&gt;in our Database from Oracle 11g onwards.&lt;br /&gt;&lt;br /&gt;Before Uninstalling any component(apex) from Oracle Database(Oracle 11g rel2) discuss with team and inform clearly and once this is confirmed,than follow the below steps,By default in Oracle 11g rel2 Database APEX Component is installed (Apex version 3.2.1.00.10).&lt;br /&gt;&lt;br /&gt;SQL&gt; select *from v$version;&lt;br /&gt;&lt;br /&gt;BANNER&lt;br /&gt;-------------------------------------------------------------------------------&lt;br /&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production&lt;br /&gt;&lt;br /&gt;SQL&gt;SELECT COMP_NAME||' '||VERSION||' '||STATUS FROM DBA_REGISTRY;&lt;br /&gt;&lt;br /&gt;COMP_NAME||''||VERSION||''||STATUS&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;OWB 11.2.0.1.0 VALID&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Oracle Application Express 3.2.1.00.10 VALID&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Oracle Enterprise Manager 11.2.0.1.0 VALID&lt;br /&gt;OLAP Catalog 11.2.0.1.0 VALID&lt;br /&gt;Spatial 11.2.0.1.0 VALID&lt;br /&gt;Oracle Multimedia 11.2.0.1.0 VALID&lt;br /&gt;Oracle XML Database 11.2.0.1.0 VALID&lt;br /&gt;Oracle Text 11.2.0.1.0 VALID&lt;br /&gt;Oracle Expression Filter 11.2.0.1.0 VALID&lt;br /&gt;Oracle Rules Manager 11.2.0.1.0 VALID&lt;br /&gt;Oracle Workspace Manager 11.2.0.1.0 VALID&lt;br /&gt;Oracle Database Catalog Views 11.2.0.1.0 VALID&lt;br /&gt;Oracle Database Packages and Types 11.2.0.1.0 VALID&lt;br /&gt;JServer JAVA Virtual Machine 11.2.0.1.0 VALID&lt;br /&gt;Oracle XDK 11.2.0.1.0 VALID&lt;br /&gt;Oracle Database Java Packages 11.2.0.1.0 VALID&lt;br /&gt;OLAP Analytic Workspace 11.2.0.1.0 VALID&lt;br /&gt;Oracle OLAP API 11.2.0.1.0 VALID&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Apex Uninstallation:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;              Apex uninstallation can be done as follows:&lt;br /&gt;[oracle@node1 apex]$ cd $ORACLE_HOME/apex&lt;br /&gt;SQL&gt; &lt;span style="font-weight:bold;"&gt;@apxremov.sql&lt;/span&gt;&lt;br /&gt;...Removing Application Express&lt;br /&gt;old   1: alter session set current_schema = &amp;APPUN&lt;br /&gt;new   1: alter session set current_schema = APEX_030200&lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;begin&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-04063: package body "APEX_030200.WWV_FLOW_UPGRADE" has errors&lt;br /&gt;ORA-06508: PL/SQL: could not find program unit being called:&lt;br /&gt;"APEX_030200.WWV_FLOW_UPGRADE"&lt;br /&gt;ORA-06512: at line 2&lt;br /&gt;no rows selected&lt;br /&gt;old   2:     if '&amp;UPGRADE' = '1' then&lt;br /&gt;new   2:     if '1' = '1' then&lt;br /&gt;begin&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-04063: package body "APEX_030200.WWV_FLOW_UPGRADE" has errors&lt;br /&gt;ORA-06508: PL/SQL: could not find program unit being called:&lt;br /&gt;"APEX_030200.WWV_FLOW_UPGRADE"&lt;br /&gt;ORA-06512: at line 3&lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;old   1: drop user &amp;APPUN cascade&lt;br /&gt;new   1: drop user APEX_030200 cascade&lt;br /&gt;&lt;br /&gt;User dropped.&lt;br /&gt;&lt;br /&gt;old   2:     if '&amp;UPGRADE' = '1' then&lt;br /&gt;new   2:     if '1' = '1' then&lt;br /&gt;begin&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-01940: cannot drop a user that is currently connected&lt;br /&gt;ORA-06512: at line 4&lt;br /&gt;&lt;br /&gt;old   5:     if '&amp;UPGRADE' = '1' then&lt;br /&gt;new   5:     if '1' = '1' then&lt;br /&gt;declare&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-24231: database access descriptor (DAD) APEX not found&lt;br /&gt;ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86&lt;br /&gt;ORA-06512: at "SYS.DBMS_EPG", line 67&lt;br /&gt;ORA-06512: at "SYS.DBMS_EPG", line 261&lt;br /&gt;ORA-06512: at line 15&lt;br /&gt;&lt;br /&gt;old   2:     if '&amp;UPGRADE' = '1' then&lt;br /&gt;new   2:     if '1' = '1' then&lt;br /&gt;begin&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-04043: object VALIDATE_APEX does not exist&lt;br /&gt;ORA-06512: at line 3&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;...Application Express Removed&lt;br /&gt;&lt;br /&gt;After running the above script if some APEX Schemas and synonyms still exist in our Database than we have to drop them manually.Below is the query to find public synonym and drop them .Spool into some sql file,for making this task simpler.&lt;br /&gt;&lt;br /&gt;SQL)Spool Drop_pub_synonym.sql&lt;br /&gt;&lt;br /&gt;SQL&gt;select 'drop public synonym ' || synonym_name || CHR(10) || '/' &lt;br /&gt;from sys.dba_synonyms &lt;br /&gt;where table_owner in ('FLOWS_010500','FLOWS_010600','FLOWS_020000',&lt;br /&gt;'FLOWS_020100','FLOWS_020200','FLOWS_030000','FLOWS_030100','APEX_030200',&lt;br /&gt;'APEX_040000','FLOWS_FILES');&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'DROPPUBLICSYNONYM'||SYNONYM_NAME||CHR(10)||'/'&lt;br /&gt;----------------------------------------------------&lt;br /&gt;drop public synonym APEX_ACTIVITY_LOG&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_APPLICATION&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_APPLICATION_FILES&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_APPLICATION_GLOBAL&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;'DROPPUBLICSYNONYM'||SYNONYM_NAME||CHR(10)||'/'&lt;br /&gt;----------------------------------------------------&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_APPLICATION_INSTALL&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_COLLECTION&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_COLLECTIONS&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_CSS&lt;br /&gt;&lt;br /&gt;'DROPPUBLICSYNONYM'||SYNONYM_NAME||CHR(10)||'/'&lt;br /&gt;----------------------------------------------------&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_CUSTOM_AUTH&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_DEBUG_MESSAGE&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_FEEDBACK_TYPES&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'DROPPUBLICSYNONYM'||SYNONYM_NAME||CHR(10)||'/'&lt;br /&gt;----------------------------------------------------&lt;br /&gt;drop public synonym APEX_INSTANCE_ADMIN&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_ITEM&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_JAVASCRIPT&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_LANG&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;'DROPPUBLICSYNONYM'||SYNONYM_NAME||CHR(10)||'/'&lt;br /&gt;----------------------------------------------------&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_LDAP&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_LOGIN&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_MAIL&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_MAIL_ATTACHMENTS&lt;br /&gt;&lt;br /&gt;'DROPPUBLICSYNONYM'||SYNONYM_NAME||CHR(10)||'/'&lt;br /&gt;----------------------------------------------------&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_MAIL_LOG&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_MAIL_QUEUE&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_PLSQL_JOB&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'DROPPUBLICSYNONYM'||SYNONYM_NAME||CHR(10)||'/'&lt;br /&gt;----------------------------------------------------&lt;br /&gt;drop public synonym APEX_PLSQL_JOBS&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_PLUGIN&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_PLUGIN_UTIL&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_REST&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;'DROPPUBLICSYNONYM'||SYNONYM_NAME||CHR(10)||'/'&lt;br /&gt;----------------------------------------------------&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_SITE_ADMIN_PRIVS&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_UI_DEFAULT&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_USER_ACCESS_LOG&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_UTIL&lt;br /&gt;&lt;br /&gt;'DROPPUBLICSYNONYM'||SYNONYM_NAME||CHR(10)||'/'&lt;br /&gt;----------------------------------------------------&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym APEX_WEB_SERVICE&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym HTMLDB_ACTIVITY_LOG&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym HTMLDB_APPLICATION&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'DROPPUBLICSYNONYM'||SYNONYM_NAME||CHR(10)||'/'&lt;br /&gt;----------------------------------------------------&lt;br /&gt;drop public synonym HTMLDB_APPLICATION_FILES&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym HTMLDB_APPLICATION_GLOBAL&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym HTMLDB_COLLECTION&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym HTMLDB_COLLECTIONS&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;'DROPPUBLICSYNONYM'||SYNONYM_NAME||CHR(10)||'/'&lt;br /&gt;----------------------------------------------------&lt;br /&gt;&lt;br /&gt;drop public synonym HTMLDB_LDAP&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym HTMLDB_MAIL&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym HTMLDB_MAIL_LOG&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym HTMLDB_MAIL_QUEUE&lt;br /&gt;&lt;br /&gt;'DROPPUBLICSYNONYM'||SYNONYM_NAME||CHR(10)||'/'&lt;br /&gt;----------------------------------------------------&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym HTMLDB_PLSQL_JOB&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop public synonym HTMLDB_PLSQL_JOBS&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;all synonyms are dropped for apex users:&lt;br /&gt;---------------------------------=------------&lt;br /&gt;&lt;br /&gt;SQL&gt; select synonym_name from sys.dba_synonyms where owner = 'FLOWS_FILES';&lt;br /&gt;no rows selected&lt;br /&gt;&lt;br /&gt;SQL&gt;SPOOL OFF&lt;br /&gt;SQL&gt;@Drop_pub_synonym.sql&lt;br /&gt;               All the synonyms are dropped.&lt;br /&gt;We have to make sure the below all the APEX related schemas are dropped or else drop them manually,In my case I upgraded to Apex 4.x so additional user APEX_040000 is also present:&lt;br /&gt;SQL&gt;DROP USER APEX_040000 CASCADE;&lt;br /&gt;SQL&gt;DROP USER APEX_PUBLIC_USER CASCADE;&lt;br /&gt;SQLDROP USER FLOW_FILES CASCADE;&lt;br /&gt;SQLDROP USER APEX_03000 CASCADE;&lt;br /&gt;             Now our Apex Uninstallation is successful.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Apex Installation:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1) Go to $ORACLE_HOME/apex path: For Oracle 11g rel2 Database apex component is already present when we install the software in our Operating system in &lt;span style="font-weight:bold;"&gt;'$ORACLE_HOME/apex'&lt;/span&gt; path.&lt;br /&gt;&lt;br /&gt;$cd $ORACLE_HOME/apex&lt;br /&gt;$pwd&lt;br /&gt;/u01/oracle11g/product/11.2.0/dbhome_1/apex&lt;br /&gt;&lt;br /&gt;2)Connect to SQL-PLUS and execute apexins for installing apex&lt;br /&gt;SQL&gt;&lt;span style="font-weight:bold;"&gt;@apexins&lt;/span&gt; SYSAUX SYSAUX TEMP /i/&lt;br /&gt;&lt;br /&gt;Apply any upgraded Apex Component if required by following same process as above.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Apex Patching:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;For patching the apex component,Run apxpatch.sql. &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For example:&lt;/span&gt;&lt;br /&gt;SQL&gt;@apxpatch.sql&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Apex ADMIN user password change:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We might get request from our APEX team to change the APEX ADMIN user password after Apex installation,We can change the APEX ADMIN user password by executing &lt;span style="font-weight:bold;"&gt;'apxchpwd.sql'&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;$cd $ORACLE_HOME/apex&lt;br /&gt;SQL&gt;&lt;span style="font-weight:bold;"&gt;@apxchpwd.sql&lt;/span&gt;&lt;br /&gt;Enter a value below for the password for the Application Express ADMIN user.&lt;br /&gt;&lt;br /&gt;Enter a password for the ADMIN user              []&lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;&lt;br /&gt;...changing password for ADMIN&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;Commit complete.&lt;br /&gt;&lt;br /&gt;Hope it helps in doing APEX administration.If I come across some other Apex&lt;br /&gt;related task than I will be posting the same.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-2829583536874543904?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/2829583536874543904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/installationuninstallation-and.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2829583536874543904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/2829583536874543904'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/installationuninstallation-and.html' title='APEX Installation,Uninstallation and Administration in Oracle Database'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-4179188242893287119</id><published>2011-06-20T07:29:00.000-07:00</published><updated>2011-06-20T07:39:21.897-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DBA tasks'/><title type='text'>Automate Startup and Shutdown of Oracle Database,Listener and HTTP Serivices on Linux</title><content type='html'>Hi,&lt;br /&gt;   Automating Regular Database tasks is the key priority of &lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;DBA&lt;/span&gt;&lt;/span&gt;.In the below script we can automate Databases,Listerners,HTTP services start and stop.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 1: Please make sure that oratab file is correct and complete.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Check for oratab file either in /etc/oratab or in /u01/app/oracle/oratab. &lt;br /&gt;Database entries in the oratab file have the following format:&lt;br /&gt;$ORACLE_SID:$ORACLE_HOME:[Y|N]&lt;br /&gt;Here Y indicates that the database can be started up and shutdown using dbstart/dbshut script.&lt;br /&gt;&lt;br /&gt;If in my database there is two database named testdb1 and testdb2 then my oratab file will contain the entry like,&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;testdb1:/u01/app/oracle/product/10.2.0/db_1:Y&lt;br /&gt;testdb2:/u01/app/oracle/product/10.2.0/db_1:Y&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;where :&lt;/span&gt;/u01/app/oracle/product/10.2.0/db_1 is the $ORACLE_HOME of my database.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 2: Create a script to call dbstart and dbshut.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;In this example I will create one script that will do both startup and shutdown operation. I will name this script as dbora and will be placed in '/etc/init.d'.&lt;br /&gt;&lt;br /&gt;a) Login as &lt;span style="font-weight:bold;"&gt;'root'&lt;/span&gt;.&lt;br /&gt;b) Change directories to /etc/init.d &lt;br /&gt;$cd /etc/init.d&lt;br /&gt;c) Create an empty file called 'dbora' with &lt;span style="font-weight:bold;"&gt;'touch'&lt;/span&gt; command and Grant permission with &lt;span style="font-weight:bold;"&gt;chmod&lt;/span&gt; as 750.&lt;br /&gt;&lt;br /&gt;# touch dbora&lt;br /&gt;# chmod 750 dbora&lt;br /&gt;d)Edit the dbora file and make the contents of it like below.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;dbora:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;#&lt;br /&gt;# chkconfig: 35 99 10   &lt;br /&gt;# description: Starts and stops Oracle processes&lt;br /&gt;#&lt;br /&gt;ORA_HOME=/u01/app/oracle/product/10.2.0/db_1&lt;br /&gt;ORA_OWNER=oracle&lt;br /&gt;&lt;br /&gt;case "$1" in&lt;br /&gt;'start')&lt;br /&gt;&lt;br /&gt;# Start the TNS Listener&lt;br /&gt;su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start"&lt;br /&gt;# Start the Oracle databases:&lt;br /&gt;su - $ORA_OWNER -c $ORA_HOME/bin/dbstart&lt;br /&gt;# Start the Intelligent Agent&lt;br /&gt;if [ -f $ORA_HOME/bin/emctl ];&lt;br /&gt;then&lt;br /&gt;su - $ORA_OWNER -c "$ORA_HOME/bin/emctl start agent"&lt;br /&gt;elif [ -f $ORA_HOME/bin/agentctl ]; then&lt;br /&gt;&lt;br /&gt;su - $ORA_OWNER -c "$ORA_HOME/bin/agentctl start"&lt;br /&gt;else&lt;br /&gt;su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl dbsnmp_start"&lt;br /&gt;fi&lt;br /&gt;# Start Management Server&lt;br /&gt;if [ -f $ORA_HOME/bin/emctl ]; then&lt;br /&gt;su - $ORA_OWNER -c "$ORA_HOME/bin/emctl start dbconsole"&lt;br /&gt;elif [ -f $ORA_HOME/bin/oemctl ]; then&lt;br /&gt;su - $ORA_OWNER -c "$ORA_HOME/bin/oemctl start oms"&lt;br /&gt;fi&lt;br /&gt;# Start HTTP Server&lt;br /&gt;if [ -f $ORA_HOME/Apache/Apache/bin/apachectl]; then&lt;br /&gt;su - $ORA_OWNER -c "$ORA_HOME/Apache/Apache/bin/apachectl start"&lt;br /&gt;fi&lt;br /&gt;touch /var/lock/subsys/dbora&lt;br /&gt;;;&lt;br /&gt;'stop')&lt;br /&gt;# Stop HTTP Server&lt;br /&gt;if [ -f $ORA_HOME/Apache/Apache/bin/apachectl ]; then&lt;br /&gt;&lt;br /&gt;su - $ORA_OWNER -c "$ORA_HOME/Apache/Apache/bin/apachectl stop"&lt;br /&gt;fi&lt;br /&gt;# Stop the TNS Listener&lt;br /&gt;&lt;br /&gt;su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop"&lt;br /&gt;# Stop the Oracle databases:&lt;br /&gt;su - $ORA_OWNER -c $ORA_HOME/bin/dbshut&lt;br /&gt;rm -f /var/lock/subsys/dbora&lt;br /&gt;;;&lt;br /&gt;esac&lt;br /&gt;# End of script dbora&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 3:As 'root' user perform the following to create symbolic links:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# ln -s /etc/init.d/dbora /etc/rc3.d/S99oracle&lt;br /&gt;# ln -s /etc/init.d/dbora /etc/rc0.d/K01oracle&lt;br /&gt;&lt;br /&gt;Alternatively we can register the Service using&lt;br /&gt;/sbin/chkconfig --add dbora&lt;br /&gt;&lt;br /&gt;This action registers the service to the Linux service mechanism.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Step 4: Test the script to make sure it works.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The real test is to reboot unix box and then see whether oracle is started up automatically or not.&lt;br /&gt;&lt;br /&gt;However to test the script created in step 2, without rebooting, do the following:&lt;br /&gt;&lt;br /&gt;Login as root and then,&lt;br /&gt;# /etc/init.d/dbora start (for startup)&lt;br /&gt;# /etc/init.d/dbora stop (for shutdown)&lt;br /&gt;&lt;br /&gt;If we restart,start and stop oracle database is successful then we are almost done.The real Beauty of the above shell script is It will start and stop all the listener,Databases,HTTP Services whenever server is rebooted for start and stop.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;The above Shell Script we can modify as per our convenience.Suppose if we want to Start only Databases and Listener Sevices than comment the portion of the shell script for Starting HTTP services.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-4179188242893287119?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/4179188242893287119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/automate-startup-and-shutdown-of-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/4179188242893287119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/4179188242893287119'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/automate-startup-and-shutdown-of-oracle.html' title='Automate Startup and Shutdown of Oracle Database,Listener and HTTP Serivices on Linux'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-7649360017954619150</id><published>2011-06-14T06:18:00.000-07:00</published><updated>2011-06-14T06:32:07.265-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>Scheduling RMAN cold backup and copy controlfile</title><content type='html'>Hi,&lt;br /&gt;      RMAN cold backup has its own advantage compare to the traditional cold backup:&lt;br /&gt;1)RMAN as we all know backup only used blocks so it is fast.Here entire Database I'm taking backup.&lt;br /&gt;2)In my below script I'm copying the control file to have the latest copy with me in case of recovery.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;This is because of below factors:&lt;br /&gt;-------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;"copy current controlfile"&lt;/span&gt;&lt;br /&gt;Personally I like and use this,Because of below reasons:&lt;br /&gt;&lt;br /&gt;*restore after total loss.&lt;br /&gt;&lt;br /&gt;I run this command as the *final* command of my database, &lt;br /&gt;  run {allocate channel c1 type disk;  &lt;span style="font-style:italic;"&gt;copy current controlfile&lt;/span&gt; to '/some OS location'.&lt;br /&gt;&lt;br /&gt;Effectively,I'm backing up my "Backup Meta Data" at the end of each RMAN backup.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;My RMAN shell scripts look like this:&lt;br /&gt;--------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1)&lt;span style="font-weight:bold;"&gt;Backup database in mount State&lt;/span&gt; because rman expect Database to be in mount state for taking cold backup&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;2)copy current controlfile&lt;/span&gt; to some location&lt;br /&gt;I'm not saying do not use these other options, just be sure we know ,What we are getting and whether we are able to recover the Database.Test your backups in competency servers and be sure that you can do restore &amp; recovery in case of failure.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3)In my rman scripts&lt;/span&gt;,I've used&lt;br /&gt;&lt;span style="font-style:italic;"&gt;%U&lt;/span&gt;=To have unique backupset number&lt;br /&gt;&lt;span style="font-style:italic;"&gt;%T&lt;/span&gt;=Date of backup&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4)Snapshot Controlfile:&lt;/span&gt;&lt;br /&gt;Snapshot controlfile is used by rman to backup control file.Personal speaking not required to do so.If we have copy of current controlfile.Here I have used to save one in the current location of rman backup location.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5)Retention policy&lt;/span&gt;:&lt;br /&gt;              It is that period of time,till when you want to keep the backup in rman repository.Usually decide this policy well in advance and inform the team.In my case till 7 days I can obtain the backup for restore and recovery purpose.&lt;br /&gt;&lt;br /&gt;Below are my scripts:&lt;br /&gt;------------------------&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)run_TESTDB.txt&lt;/span&gt;:&lt;br /&gt;---------------------&lt;br /&gt;                     &lt;span style="font-weight:bold;"&gt;run_TESTDB.txt&lt;/span&gt; is for the setting I'm going to configure for RMAN.We have to create this file first than the actual shell script for taking rman backup.&lt;br /&gt;&lt;br /&gt;-- RMAN Configured&lt;br /&gt;run{&lt;br /&gt;   shutdown immediate;&lt;br /&gt;   startup mount;&lt;br /&gt;   allocate channel ch1 device type disk format '/u05/DB_BACKUP_TESTDB/RMAN_COLDBACKUP_WEEKLY/TESTDB_BK_SET1_%U_%T' maxpiecesize 5G;&lt;br /&gt;   allocate channel ch2 device type disk format '/u05/DB_BACKUP_TESTDB/RMAN_COLDBACKUP_WEEKLY/TESTDB_BK_SET2_%U_%T';&lt;br /&gt;   backup database TAG='TESTDB_BACKUP_WEEKLY';&lt;br /&gt;   allocate channel c1 type disk;&lt;br /&gt;   copy current controlfile to '/u05/DB_BACKUP_TESTDB/RMAN_COLDBACKUP_WEEKLY/TESTDB_ctrl_%U_%T';&lt;br /&gt;   Release channel c1;&lt;br /&gt;   configure retention policy to recovery window of 7 days;&lt;br /&gt;   CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u05/DB_BACKUP_TESTDB/RMAN_COLDBACKUP_WEEKLY/snapcf_TESTDB.f';&lt;br /&gt;   CROSSCHECK BACKUP;&lt;br /&gt;   release channel ch1;&lt;br /&gt;   release channel ch2;&lt;br /&gt;   alter database open;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)rman_TESTDB.sh&lt;/span&gt;:&lt;br /&gt;--------------------&lt;br /&gt;                     &lt;span style="font-weight:bold;"&gt;rman_TESTDB.sh&lt;/span&gt; consist of setting Oracle Environment Variables and calling the run_TESTDB.txt file for taking the rman cold backup.&lt;br /&gt;&lt;br /&gt;-- TESTDB RMAN COLD BACKUP&lt;br /&gt;export ORACLE_SID=TESTDB&lt;br /&gt;export ORACLE_HOME=/u01/oracle11g/product/11.2.0/dbhome_1&lt;br /&gt;export ORACLE_BASE=/u01/oracle11g&lt;br /&gt;PATH=$ORACLE_HOME/bin:$PATH&lt;br /&gt;LD_LIBRARY_PATH=$ORACLE_HOME/lib&lt;br /&gt;rman target sys/TESTDBdba @/u05/DB_BACKUP_TESTDB/Backup_Scipts/run_TESTDB.txt log=/u05/DB_BACKUP_TESTDB/logs/rman_cold_weekly_backup_logs/rman_TESTDB.log&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Scheduling RMAN Backup job:&lt;/span&gt;&lt;br /&gt;-------------------------------&lt;br /&gt;If I want to schedule this backup every sunday at 9pm.The cronjob script will be:&lt;br /&gt;$vi crontab.oracle&lt;br /&gt;&lt;br /&gt;#Script for RMAN COLD BACKUP WEEKLY TESTDB DATABASE&lt;br /&gt;################################################################&lt;br /&gt;00 21 * * 0 /u05/DB_BACKUP_TESTDB/SCRIPTS/rman_TESTDB.sh 2&gt;&amp;1 &gt;/u05/DB_BACKUP_TESTDB/logs/CRONJOBS_LOGS/testdb_rman_cron.log&lt;br /&gt;&lt;br /&gt;$crontab crontab.oracle =&gt;scheduling job using &lt;span style="font-weight:bold;"&gt;'crontab'&lt;/span&gt; command at 9pm every sundays.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Verifying cronjob:&lt;br /&gt;-----------------------&lt;/span&gt;&lt;br /&gt;$crontab -l     =&gt;List the jobs that are scheduled using Cronjob.Verify the rman job also if we have schedule as above.&lt;br /&gt;&lt;br /&gt;          Hope it helps.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-7649360017954619150?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/7649360017954619150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/scheduling-rman-cold-backup-and-copy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/7649360017954619150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/7649360017954619150'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/scheduling-rman-cold-backup-and-copy.html' title='Scheduling RMAN cold backup and copy controlfile'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-9008917848022045914</id><published>2011-06-10T03:53:00.000-07:00</published><updated>2011-06-10T04:05:18.193-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DBA tasks'/><title type='text'>Moving Database files from one location to other location in a Planned way</title><content type='html'>Hi,&lt;br /&gt;      Whenever we get issue like some mount point is not getting sufficient in terms of disk space,we decide to move the Database files to a separate mount point.While doing this task all the end users or affected users should be informed well in advance and we have to ask for suitable downtime and duration considering the size of Data we are moving from one mount point to other and if possible we have to do such task at less peak hour of Database usage.Planning and creation of Scripts should be done well in advance,so that the actual process can be completed on time or much before time.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 1 and step2 can be planned and implemented &lt;/span&gt;well before the actual process can start.I'm doing this small test environment,Remember when we are doing such task in a very large size Database that time planning and implementing this small task on&lt;br /&gt;time is very crucial.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Check the source location where Database files reside:&lt;br /&gt;-------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; select file_name||' '||tablespace_name||' '||bytes/1024/1024 as MB from dba_data_files;&lt;br /&gt;&lt;br /&gt;MB&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;/u01/app/oracle/oradata/TESTDB/users01.dbf USERS 203.75&lt;br /&gt;/u01/app/oracle/oradata/TESTDB/undotbs01.dbf UNDOTBS1 235&lt;br /&gt;/u01/app/oracle/oradata/TESTDB/sysaux01.dbf SYSAUX 970&lt;br /&gt;/u01/app/oracle/oradata/TESTDB/system01.dbf SYSTEM 940&lt;br /&gt;/u01/app/oracle/oradata/TESTDB/example01.dbf EXAMPLE 102.5&lt;br /&gt;/u01/app/oracle/oradata/TESTDB/apex01.dbf APEX 100&lt;br /&gt;&lt;br /&gt;6 rows selected.&lt;br /&gt;&lt;br /&gt;SQL&gt; select file_name||' '||tablespace_name||' '||bytes/1024/1024 as MB from dba_temp_files;&lt;br /&gt;&lt;br /&gt;MB&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;/u01/app/oracle/oradata/TESTDB/temp01.dbf TEMP 52&lt;br /&gt;&lt;br /&gt;[oracle@host1 ~]$ df -h&lt;br /&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;/dev/mapper/VolGroup00-LogVol00&lt;br /&gt;                       18G   14G  2.6G  85% /&lt;br /&gt;/dev/sda1              99M   20M   75M  21% /boot&lt;br /&gt;tmpfs                 940M     0  940M   0% /dev/shm&lt;br /&gt;/dev/sdb1              20G  3.0G   16G  17% /u02&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 2:Create the directory structure in /u02 where we can move database files.&lt;br /&gt;-------&lt;/span&gt;&lt;br /&gt;$cd /u02&lt;br /&gt;$mkdir -p app/oracle/oradata/TESTDB&lt;br /&gt;$cd app/oracle/oradata/TESTDB/&lt;br /&gt;$pwd&lt;br /&gt;/u02/app/oracle/oradata/TESTDB&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 3: Shutdown the Database&lt;br /&gt;---------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; select name from v$database;&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;---------&lt;br /&gt;TESTDB&lt;br /&gt;&lt;br /&gt;SQL&gt; shutdown immediate&lt;br /&gt;Database closed.&lt;br /&gt;Database dismounted.&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;SQL&gt; exit&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 4: Using 'mv' command move all database files(.dbf) files.&lt;br /&gt;-------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$ cd /u01/app/oracle/oradata/TESTDB/&lt;br /&gt;$ pwd&lt;br /&gt;/u01/app/oracle/oradata/TESTDB&lt;br /&gt;$ ls -altr&lt;br /&gt;total 3016160&lt;br /&gt;-rw-r----- 1 oracle oinstall   10043392 Jun  3  2010 control03.ctl&lt;br /&gt;-rw-r----- 1 oracle oinstall   10493964 Sep 23  2010 test_01.dfb__old&lt;br /&gt;-rw-r----- 1 oracle oinstall   10493874 Sep 23  2010 test_01.dfb&lt;br /&gt;drwxr-x--- 4 oracle oinstall       4096 Mar 17 14:19 ..&lt;br /&gt;drwxr-x--- 2 oracle oinstall       4096 Jun  2 19:51 .&lt;br /&gt;-rw-r----- 1 oracle oinstall   52429312 Jun  9 19:56 redo02.log&lt;br /&gt;-rw-r----- 1 oracle oinstall   52429312 Jun  9 19:56 redo02a.log&lt;br /&gt;-rw-r----- 1 oracle oinstall   52429312 Jun 10 08:00 redo03.log&lt;br /&gt;-rw-r----- 1 oracle oinstall   52429312 Jun 10 08:00 redo03a.log&lt;br /&gt;-rw-r----- 1 oracle oinstall   54534144 Jun 10 15:30 temp01.dbf&lt;br /&gt;-rw-r----- 1 oracle oinstall  213655552 Jun 10 15:43 users01.dbf&lt;br /&gt;-rw-r----- 1 oracle oinstall  246423552 Jun 10 15:43 undotbs01.dbf&lt;br /&gt;-rw-r----- 1 oracle oinstall  985669632 Jun 10 15:43 system01.dbf&lt;br /&gt;-rw-r----- 1 oracle oinstall 1017126912 Jun 10 15:43 sysaux01.dbf&lt;br /&gt;-rw-r----- 1 oracle oinstall   52429312 Jun 10 15:43 redo01.log&lt;br /&gt;-rw-r----- 1 oracle oinstall   52429312 Jun 10 15:43 redo01a.log&lt;br /&gt;-rw-r----- 1 oracle oinstall  107487232 Jun 10 15:43 example01.dbf&lt;br /&gt;-rw-r----- 1 oracle oinstall  104865792 Jun 10 15:43 apex01.dbf&lt;br /&gt;-rw-r----- 1 oracle oinstall   10043392 Jun 10 15:43 control01.ctl&lt;br /&gt;$ &lt;span style="font-style:italic;"&gt;mv *.dbf /u02/app/oracle/oradata/TESTDB/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 5:Verify at the target location(/u02)&lt;br /&gt;-------&lt;/span&gt;&lt;br /&gt;[oracle@host1 TESTDB]$ cd /u02/app/oracle/oradata/TESTDB/&lt;br /&gt;[oracle@host1 TESTDB]$ pwd&lt;br /&gt;/u02/app/oracle/oradata/TESTDB&lt;br /&gt;[oracle@host1 TESTDB]$ ls -altr&lt;br /&gt;total 2668428&lt;br /&gt;-rw-r----- 1 oracle oinstall   54534144 Jun 10 15:30 temp01.dbf&lt;br /&gt;drwxr-xr-x 3 oracle oinstall       4096 Jun 10 15:31 ..&lt;br /&gt;-rw-r----- 1 oracle oinstall  213655552 Jun 10 15:43 users01.dbf&lt;br /&gt;-rw-r----- 1 oracle oinstall  246423552 Jun 10 15:43 undotbs01.dbf&lt;br /&gt;-rw-r----- 1 oracle oinstall  985669632 Jun 10 15:43 system01.dbf&lt;br /&gt;-rw-r----- 1 oracle oinstall 1017126912 Jun 10 15:43 sysaux01.dbf&lt;br /&gt;-rw-r----- 1 oracle oinstall  107487232 Jun 10 15:43 example01.dbf&lt;br /&gt;-rw-r----- 1 oracle oinstall  104865792 Jun 10 15:43 apex01.dbf&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 6:Use 'Alter database' commmand to rename or change the location in mount state&lt;br /&gt;--------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$ sqlplus&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 11.2.0.1.0 Production on Fri Jun 10 15:54:05 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2009, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Enter user-name: /as sysdba&lt;br /&gt;Connected to an idle instance.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;span style="font-weight:bold;"&gt;startup mount&lt;/span&gt;&lt;br /&gt;ORACLE instance started.&lt;br /&gt;&lt;br /&gt;Total System Global Area  764157952 bytes&lt;br /&gt;Fixed Size                  2217184 bytes&lt;br /&gt;Variable Size             335547168 bytes&lt;br /&gt;Database Buffers          423624704 bytes&lt;br /&gt;Redo Buffers                2768896 bytes&lt;br /&gt;Database mounted.&lt;br /&gt;&lt;br /&gt;-- For single file The below command can be used.&lt;br /&gt;SQL&gt;&lt;span style="font-style:italic;"&gt;alter database rename file '/u01/app/oracle/oradata/TESTDB/users01.dbf' to '/u02/app/oracle/oradata/TESTDB/users01.dbf'; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Rename_datafile_TESTDB.sql:&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;-- Renaming Database files for TESTDB Database&lt;br /&gt;alter database rename file '/u01/app/oracle/oradata/TESTDB/system01.dbf' to '/u02/app/oracle/oradata/TESTDB/system01.dbf';&lt;br /&gt;alter database rename file '/u01/app/oracle/oradata/TESTDB/sysaux01.dbf' to '/u02/app/oracle/oradata/TESTDB/sysaux01.dbf';&lt;br /&gt;alter database rename file '/u01/app/oracle/oradata/TESTDB/undotbs01.dbf' to '/u02/app/oracle/oradata/TESTDB/undotbs01.dbf';&lt;br /&gt;alter database rename file '/u01/app/oracle/oradata/TESTDB/users01.dbf' to '/u02/app/oracle/oradata/TESTDB/users01.dbf';&lt;br /&gt;alter database rename file '/u01/app/oracle/oradata/TESTDB/example01.dbf' to '/u02/app/oracle/oradata/TESTDB/example01.dbf';&lt;br /&gt;alter database rename file '/u01/app/oracle/oradata/TESTDB/apex01.dbf' to '/u02/app/oracle/oradata/TESTDB/apex01.dbf';&lt;br /&gt;alter database rename file '/u01/app/oracle/oradata/TESTDB/temp01.dbf' to '/u02/app/oracle/oradata/TESTDB/temp01.dbf';&lt;br /&gt;&lt;br /&gt;[oracle@host1 SCRIPTS]$ chmod -R 775 /u02/SCRIPTS/&lt;br /&gt;&lt;br /&gt;          Make sure Rename_datafile_TESTDB.sql is having the execute privileges.&lt;br /&gt;&lt;br /&gt;[oracle@host1 SCRIPTS]$ sqlplus "/as sysdba"&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 11.2.0.1.0 Production on Fri Jun 10 16:08:21 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2009, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production&lt;br /&gt;With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&gt; select name from v$database;&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;---------&lt;br /&gt;TESTDB&lt;br /&gt;&lt;br /&gt;SQL&gt; @Rename_datafile_TESTDB.sql&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 7:Open the Database and verify the new location for your Database files&lt;br /&gt;-------&lt;/span&gt;&lt;br /&gt;SQL&gt; alter database open;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; select tablespace_name||' '||file_name||' '||bytes/1024/1024 as MB from dba_data_files;&lt;br /&gt;&lt;br /&gt;MB&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;USERS /u02/app/oracle/oradata/TESTDB/users01.dbf 203.75&lt;br /&gt;UNDOTBS1 /u02/app/oracle/oradata/TESTDB/undotbs01.dbf 235&lt;br /&gt;SYSAUX /u02/app/oracle/oradata/TESTDB/sysaux01.dbf 970&lt;br /&gt;SYSTEM /u02/app/oracle/oradata/TESTDB/system01.dbf 940&lt;br /&gt;EXAMPLE /u02/app/oracle/oradata/TESTDB/example01.dbf 102.5&lt;br /&gt;APEX /u02/app/oracle/oradata/TESTDB/apex01.dbf 100&lt;br /&gt;&lt;br /&gt;6 rows selected.&lt;br /&gt;&lt;br /&gt;SQL&gt; select tablespace_name||' '||file_name||' '||bytes/1024/1024 as MB from dba_temp_files;&lt;br /&gt;&lt;br /&gt;MB&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;TEMP /u02/app/oracle/oradata/TESTDB/temp01.dbf 52&lt;br /&gt;&lt;br /&gt;[oracle@host1 TESTDB]$ df -h&lt;br /&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;/dev/mapper/VolGroup00-LogVol00&lt;br /&gt;                       18G   12G  5.2G  69% /&lt;br /&gt;/dev/sda1              99M   20M   75M  21% /boot&lt;br /&gt;tmpfs                 940M     0  940M   0% /dev/shm&lt;br /&gt;/dev/sdb1              20G  5.6G   14G  30% /u02&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; Moving or renaming a datafile while the database is in the &lt;span style="font-weight:bold;"&gt;'OPEN'&lt;/span&gt; stage is also possible,But we have to make tablespace offline,When no downtime is accepted than we can go for the below steps.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The steps involved are:&lt;br /&gt;-------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1)Take the tablespace OFFLINE.&lt;br /&gt;2)Use operating system commands to move or rename the files.&lt;br /&gt;3)Use the ALTER TABLESPACE command to rename the file within the database.&lt;br /&gt;4)Bring the tablespace back ONLINE.&lt;br /&gt;&lt;br /&gt;sqlplus "/ as sysdba"&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;span style="font-style:italic;"&gt;alter tablespace TEST_TB offline;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; !mv /u05/app/oradata/TESTDB/user_data_01.dbf /u06/app/oradata/TESTDB/user_data_01.dbf&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;span style="font-weight:bold;"&gt;alter tablespace TEST_TB &lt;br /&gt;    rename datafile '/u05/app/oradata/TESTDB/user_data_01.dbf' to     '/u06/app/oradata/TESTDB/user_data_01.dbf';&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;     Bring the tablespace back online.&lt;br /&gt;&lt;br /&gt;SQL&gt;&lt;span style="font-style:italic;"&gt; alter tablespace TEST_TB online;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; exit&lt;br /&gt;&lt;br /&gt;Hope it helps.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-9008917848022045914?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/9008917848022045914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/moving-database-files-from-one-location.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/9008917848022045914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/9008917848022045914'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/moving-database-files-from-one-location.html' title='Moving Database files from one location to other location in a Planned way'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-1873935540409251639</id><published>2011-06-08T23:14:00.000-07:00</published><updated>2011-06-08T23:31:19.702-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='expdp/impdp'/><title type='text'>Scheduling expdp and impdp backup jobs using cronjob</title><content type='html'>Hi,&lt;br /&gt;        We can schedule expdp and impdp using cronjob to have logical backup of our Databases on daily basis or depending on the requirement..In the below article&lt;br /&gt;I'm taking two Databases TESTDB_1 and TESTDB_2.In the below shell scripts,I'm doing tasks for scheduling expdp job using&lt;br /&gt;cronjob. In the below article we are doing below tasks for 'expdp',However similary we can do for 'impdp' by changing impdp scripts:&lt;br /&gt;&lt;br /&gt;1)I'm setting the Oracle Environment,&lt;br /&gt;2)Creating expdp script for taking export Datapump backup(Logical Database backup).&lt;br /&gt;3)Moving log files to a separate Directory on the server.&lt;br /&gt;4)Giving all the required permission for the dumpfile backup.&lt;br /&gt;5)Zipping the dumpfiles using &lt;span style="font-weight:bold;"&gt;gunzip&lt;/span&gt; utility.&lt;br /&gt;6)Deleting the dumpfiles which are more than 6 days(7days) old. &amp;&lt;br /&gt;7)Using &lt;span style="font-weight:bold;"&gt;Cronjob&lt;/span&gt; to execute and schedule this task Daily at 9pm &amp; 11pm.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Pre-requistics steps:&lt;br /&gt;-----------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)TESTDB_1:&lt;/span&gt; Before executing and scheduling this script perform the below task in the Database side.Create a directory&lt;br /&gt;for taking the datapump export backup and grant the required permissions to the user which you are going to use for&lt;br /&gt;doing this export backup.In my case I took 'system' user.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Creating Directory:&lt;br /&gt;--------------------&lt;br /&gt;&lt;br /&gt;CREATE DIRECTORY expdp_TESTDB_2_dir as '/u05/DB_BACKUP_TESTDB_2/expdp_fulldb_backup_daily';&lt;br /&gt;GRANT READ,WRITE ON DIRECTORY expdp_TESTDB_2_dir TO SYSTEM;&lt;br /&gt;&lt;br /&gt;Note: If you a creating a separate user or plannning to use separate user for taking the datapump export backup than,&lt;br /&gt;Grant the required privileges.&lt;br /&gt;Eg: Grant connect,exp_full_database,imp_full_database to Test_user; or Grant DBA to Test_user;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Shell script for TESTDB_1 Database is below:&lt;br /&gt;--------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;backup TESTDB_1.sh:&lt;br /&gt;--------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;#Script to Perform Datapump Export backup Every Day&lt;br /&gt;################################################################&lt;br /&gt;#Change History&lt;br /&gt;#================&lt;br /&gt;#DATE         AUTHOR                  http://rafioracledba.blogspot.com        LAST-CHANGE&lt;br /&gt;#---------   -----------------------  ---------------------------------        -----------&lt;br /&gt;#26-MAY-2011 RAFI ALVI        SCRIPT FOR FULL EXPORT TESTDB_1                  01-JUN-2011&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;################################################################&lt;br /&gt;export ORACLE_BASE=/u01/oracle11g&lt;br /&gt;export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1&lt;br /&gt;export ORACLE_SID=TESTDB_1&lt;br /&gt;export PATH=$PATH:$ORACLE_HOME/bin&lt;br /&gt;expdp system/TESTDB_1dba@TESTDB_1 dumpfile=expdp-`date '+%d%m%Y_%H%M%S'`.dmp directory=expdp_TESTDB_1_dir logfile=expdp-`date '+%d%m%Y_%H%M%S'`.log FULL=Y EXCLUDE=STATISTICS CONTENT=ALL JOB_NAME=FULL_EXPDP_TESTDB_1&lt;br /&gt;############################################################################&lt;br /&gt;#Moving log files&lt;br /&gt;mv /u05/DB_BACKUP_TESTDB_1/expdp_fulldb_backup/expdp*.log /u05/DB_BACKUP_TESTDB_1/logs/expdp_fulldb_backup_logs&lt;br /&gt;###############################################################################3&lt;br /&gt;#Granting permissions for Dump files&lt;br /&gt;chmod -R 775 /u05/DB_BACKUP_TESTDB_1/expdp_fulldb_backup/*&lt;br /&gt;#################################################################################&lt;br /&gt;#Compressing files&lt;br /&gt;gzip /u05/DB_BACKUP_TESTDB_1/expdp_fulldb_backup/*.*&lt;br /&gt;#################################################################################33&lt;br /&gt;#Removing 7 days old dump files&lt;br /&gt;find /u05/DB_BACKUP_TESTDB_1/expdp_fulldb_backup -mtime +6 -exec rm {} \;&lt;br /&gt;######################################################################################&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;cronjob script:&lt;br /&gt;----------------------&lt;/span&gt;&lt;br /&gt;##############################################################&lt;br /&gt;#Script for full export backup TESTDB_1 DATABASE&lt;br /&gt;###############################################################&lt;br /&gt;00 21 * * * /u05/DB_BACKUP_TESTDB_1/Backup_Scipts/expdp_FULL_BACKUP_TESTDB_1.sh 2&gt;&amp;1 &gt;/u05/DB_BACKUP_TESTDB_1/logs/CRONJOBS_LOGS/UGal_cron.log&lt;br /&gt;&lt;br /&gt;            Similary you can do for any Database.In the below case I'm doing it for the 2nd Database 'TESTDB_2'.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)TESTDB_2:&lt;br /&gt;------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt;CREATE DIRECTORY expdp_TESTDB_2_dir as '/u05/DB_BACKUP_TESTDB_2/expdp_fulldb_backup_daily';&lt;br /&gt;SQL&gt;GRANT READ,WRITE ON DIRECTORY expdp_TESTDB_2_dir TO SYSTEM;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;backup TESTDB_2.sh:&lt;br /&gt;--------------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;#Script to Perform Datapump Export Every Day&lt;br /&gt;################################################################&lt;br /&gt;#Change History&lt;br /&gt;#================&lt;br /&gt;#DATE         AUTHOR                  http://rafioracledba.blogspot.com           LAST-CHANGE&lt;br /&gt;#---------   -----------------------  ---------------------------------          -------------&lt;br /&gt;#26-MAY-2011 RAFI ALVI        SCRIPT FOR FULL EXPORT TESTDB_2                     01-JUN-2011&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;################################################################&lt;br /&gt;export ORACLE_BASE=/u01/oracle11g&lt;br /&gt;export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1&lt;br /&gt;export ORACLE_SID=TESTDB_2&lt;br /&gt;export PATH=$PATH:$ORACLE_HOME/bin&lt;br /&gt;expdp system/TESTDB_2dba@TESTDB_2 dumpfile=expdp-`date '+%d%m%Y_%H%M%S'`.dmp directory=expdp_TESTDB_2_dir logfile=expdp-`date '+%d%m%Y_%H%M%S'`.log FULL=Y EXCLUDE=STATISTICS CONTENT=ALL JOB_NAME=FULL_EXPDP_TESTDB_2&lt;br /&gt;###################################################################&lt;br /&gt;#Moving log files&lt;br /&gt;mv /u05/DB_BACKUP_TESTDB_2/expdp_fulldb_backup_daily/expdp*.log /u05/DB_BACKUP_TESTDB_2/logs/expdp_fulldb_backup_logs&lt;br /&gt;#####################################################################&lt;br /&gt;#Granting Permission to dump files&lt;br /&gt;chmod -R 775 /u05/DB_BACKUP_TESTDB_2/expdp_fulldb_backup_daily/*&lt;br /&gt;########################################################################&lt;br /&gt;#Compressing the files&lt;br /&gt;gzip /u05/DB_BACKUP_TESTDB_2/expdp_fulldb_backup_daily/*.*&lt;br /&gt;###########################################################################&lt;br /&gt;#Removing 7 days old dump files&lt;br /&gt;find /u05/DB_BACKUP_TESTDB_2/expdp_fulldb_backup_daily -mtime +6 -exec rm {} \;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;cronjob script:&lt;br /&gt;--------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;##############################################################&lt;br /&gt;#Script for full export backup TESTDB_2 DATABASE&lt;br /&gt;###############################################################&lt;br /&gt;00 23 * * * /u05/DB_BACKUP_TESTDB_2/SCRIPTS/expdp_FULL_DB_TESTDB_2.sh 2&gt;&amp;1 &gt;/u05/DB_BACKUP_TESTDB_1/logs/CRONJOBS_LOGS/wgal_cron.log&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Scheduling task using Cronjob:&lt;br /&gt;----------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;       We have to schedule the 2 export Datapump job using cronjob for doing this task perform the steps described below:&lt;br /&gt;&lt;br /&gt;1)Create one separate directory for all your DBA/Cronjob tasks and grant all the permissions so that scripts can execute.&lt;br /&gt;$mkdir DBA_TASKS&lt;br /&gt;$chmod -R 775 /u04/DBA_TASKS&lt;br /&gt;&lt;br /&gt;2)All the shell scripts and Cronjob script you can keep in /u04/DBA_TASKS.&lt;br /&gt;&lt;br /&gt;3)We can create a separate file or edit the existing crontab file.&lt;br /&gt;&lt;br /&gt;In my example I'm creating a separate file 'crontab.oracle' where I will put the below cronjob scripts:&lt;br /&gt;&lt;br /&gt;vi crontab.oracle&lt;br /&gt;&lt;br /&gt;##############################################################&lt;br /&gt;#Script for full export backup TESTDB_1 DATABASE&lt;br /&gt;###############################################################&lt;br /&gt;00 21 * * * /u05/DB_BACKUP_TESTDB_1/Backup_Scipts/expdp_FULL_BACKUP_TESTDB_1.sh 2&gt;&amp;1 &gt;/u05/DB_BACKUP_TESTDB_1/logs/CRONJOBS_LOGS/UGal_cron.log&lt;br /&gt;##############################################################&lt;br /&gt;#Script for full export backup TESTDB_2 DATABASE&lt;br /&gt;###############################################################&lt;br /&gt;00 23 * * * /u05/DB_BACKUP_TESTDB_2/SCRIPTS/expdp_FULL_DB_TESTDB_2.sh 2&gt;&amp;1 &gt;/u05/DB_BACKUP_TESTDB_1/logs/CRONJOBS_LOGS/wgal_cron.log&lt;br /&gt;&lt;br /&gt;:wq&lt;br /&gt;Save and quit&lt;br /&gt;&lt;br /&gt;(or) crontab -e&lt;br /&gt;##############################################################&lt;br /&gt;#Script for full export backup TESTDB_1 DATABASE&lt;br /&gt;###############################################################&lt;br /&gt;00 21 * * * /u05/DB_BACKUP_TESTDB_1/Backup_Scipts/expdp_FULL_BACKUP_TESTDB_1.sh 2&gt;&amp;1 &gt;/u05/DB_BACKUP_TESTDB_1/logs/CRONJOBS_LOGS/UGal_cron.log&lt;br /&gt;##############################################################&lt;br /&gt;#Script for full export backup TESTDB_2 DATABASE&lt;br /&gt;###############################################################&lt;br /&gt;00 23 * * * /u05/DB_BACKUP_TESTDB_2/SCRIPTS/expdp_FULL_DB_TESTDB_2.sh 2&gt;&amp;1 &gt;/u05/DB_BACKUP_TESTDB_1/logs/CRONJOBS_LOGS/wgal_cron.log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4)Schedule the job for execution using cronjob:&lt;br /&gt;--------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$&lt;span style="font-style:italic;"&gt;crontab&lt;/span&gt; crontab.oracle&lt;br /&gt;=&gt;This command will schedule the job for execution,In the above case at 9pm and 11pm daily.&lt;br /&gt;&lt;br /&gt;For more details regarding &lt;span style="font-weight:bold;"&gt;Cronjob&lt;/span&gt; Check my link Label 'UNIX FOR DBA'.&lt;br /&gt;&lt;br /&gt;5)For verifying the cronjobs scheduled for execution:&lt;br /&gt;$crontab -l&lt;br /&gt;      This command will list all jobs schedule for execution.&lt;br /&gt;&lt;br /&gt;Hope it helps.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-1873935540409251639?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/1873935540409251639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/scheduling-expdp-and-impdp-jobs-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1873935540409251639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1873935540409251639'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/scheduling-expdp-and-impdp-jobs-using.html' title='Scheduling expdp and impdp backup jobs using cronjob'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-1339470797790010959</id><published>2011-06-06T22:15:00.000-07:00</published><updated>2011-06-06T22:33:45.391-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Recovery'/><title type='text'>How to recover Database when accidentally deleted datafile without backup</title><content type='html'>&lt;span style="font-weight:bold;"&gt;How to recover Database when accidentally deleted datafile without backup:&lt;br /&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;                    If you have accidentally deleted a datafile from a physical storage without backup you can recover database by dropping that particular datafile and Tablespace as follows,However if that datafile is very much crucial you can try the below link to hit and try:&lt;br /&gt;&lt;br /&gt;http://gmdba.blogspot.com/2009/12/oracle-recover-deleted-datafile-enen.html&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 1:&lt;/span&gt;Bring the tablespace offline so that you can shutdown the database. &lt;br /&gt;-------                  &lt;br /&gt;&lt;br /&gt;SQL&gt;alter tablespace test11 offline immediate;&lt;br /&gt;&lt;br /&gt;OR&lt;br /&gt;&lt;br /&gt;$ rman target /&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jun 7 10:26:54 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.&lt;br /&gt;&lt;br /&gt;connected to target database: ORCL (DBID=1248484971)&lt;br /&gt;&lt;br /&gt;RMAN&gt; run&lt;br /&gt;  {&lt;br /&gt; sql 'alter tablespace test11 offline immediate';&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;using target database control file instead of recovery catalog&lt;br /&gt;sql statement: alter tablespace test11 offline immediate&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; shut immediate&lt;br /&gt;ORA-01109: database not open&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Database dismounted.&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 2:&lt;/span&gt; In the mount state drop the datafile and than Drop the tablespace including contents.&lt;br /&gt;-------&lt;br /&gt;&lt;br /&gt;SQL&gt; startup mount&lt;br /&gt;ORACLE instance started.&lt;br /&gt;&lt;br /&gt;Total System Global Area  764157952 bytes&lt;br /&gt;Fixed Size                  2217184 bytes&lt;br /&gt;Variable Size             335547168 bytes&lt;br /&gt;Database Buffers          423624704 bytes&lt;br /&gt;Redo Buffers                2768896 bytes&lt;br /&gt;Database mounted.&lt;br /&gt;SQL&gt; ALTER DATABASE DATAFILE '/u02/SCRIPTS/test11_data_01.dbf' OFFLINE DROP;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; select file_name||' '||tablespace_name from dba_data_files;&lt;br /&gt;&lt;br /&gt;FILE_NAME||''||TABLESPACE_NAME&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;/u01/app/oracle/oradata/orcl/users01.dbf USERS&lt;br /&gt;/u01/app/oracle/oradata/orcl/undotbs01.dbf UNDOTBS1&lt;br /&gt;/u01/app/oracle/oradata/orcl/sysaux01.dbf SYSAUX&lt;br /&gt;/u01/app/oracle/oradata/orcl/system01.dbf SYSTEM&lt;br /&gt;/u01/app/oracle/oradata/orcl/example01.dbf EXAMPLE&lt;br /&gt;/u01/app/oracle/oradata/orcl/apex01.dbf APEX&lt;br /&gt;/u02/SCRIPTS/test11_data_01.dbf TEST11&lt;br /&gt;&lt;br /&gt;7 rows selected.&lt;br /&gt;&lt;br /&gt;SQL&gt; DROP TABLESPACE TEST11 INCLUDING CONTENTS;&lt;br /&gt;&lt;br /&gt;Tablespace dropped.&lt;br /&gt;&lt;br /&gt;SQL&gt;  select file_name||' '||tablespace_name from dba_data_files;&lt;br /&gt;&lt;br /&gt;FILE_NAME||''||TABLESPACE_NAME&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;/u01/app/oracle/oradata/orcl/users01.dbf USERS&lt;br /&gt;/u01/app/oracle/oradata/orcl/undotbs01.dbf UNDOTBS1&lt;br /&gt;/u01/app/oracle/oradata/orcl/sysaux01.dbf SYSAUX&lt;br /&gt;/u01/app/oracle/oradata/orcl/system01.dbf SYSTEM&lt;br /&gt;/u01/app/oracle/oradata/orcl/example01.dbf EXAMPLE&lt;br /&gt;/u01/app/oracle/oradata/orcl/apex01.dbf APEX&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 1:&lt;/span&gt; If the datafile is drop accidentally or taken offline than RMAN we cannot take full database rman backup,As RMAN will be searching for that&lt;br /&gt;file for taking physical backup.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 2:&lt;/span&gt; I tried this experiment in my competancy server,It is always advisable to have one backup for complete recovery and to avoid data loss and never try such experiment in any development or real time systems.&lt;br /&gt;&lt;br /&gt;Hope it helps.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-1339470797790010959?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/1339470797790010959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/how-to-recover-database-when.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1339470797790010959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/1339470797790010959'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/how-to-recover-database-when.html' title='How to recover Database when accidentally deleted datafile without backup'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-5013208026090426587</id><published>2011-06-06T04:47:00.001-07:00</published><updated>2011-06-06T05:09:35.598-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oracle11g'/><title type='text'>ORA-00845: MEMORY_TARGET not supported on this system</title><content type='html'>Hi,&lt;br /&gt;   As we know MEMORY_TARGET is a new dynamic parameter added in Oracle 11g for automatic SGA and PGA management.Working with LINUX OS you might face error &lt;br /&gt;ORA-00845.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Error:&lt;br /&gt;ORA-00845: MEMORY_TARGET not supported on this system&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The ORA-00845:can arises for the following two reasons on linux system.&lt;br /&gt;&lt;br /&gt;1)If the shared memory which is mapped to /dev/shm directory is less than the size of MEMORY_TARGET or MEMORY_MAX_TARGET.&lt;br /&gt;or,&lt;br /&gt;2)If the shared memory is not mapped to /dev/shm directory.&lt;br /&gt;&lt;br /&gt;For me the first case had happen i.e MEMORY_TARGET=1G,So I decided to increase to 2G,This is because of the below factor:&lt;br /&gt;•The AMM (Automatic Memory Management) now in 11g manages both SGA and PGA together by MMAN process so we need extra memory or size of this parameter must be high,If you have 2 Databases running in your machine you can keep MEMORY_TARGET=2G.For 3 or 4 Database MEMORY_TARGET=2.5g should&lt;br /&gt;be fine.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Resolving ORA-00845:&lt;/span&gt;&lt;br /&gt;As a root user&lt;br /&gt;mount -t tmpfs shmfs -o size=2g /dev/shm&lt;br /&gt;&lt;br /&gt;In order to make the settings persistence so that it will affect after&lt;br /&gt;restarting machine add an entry in /etc/fstab similar to the following:&lt;br /&gt;vi /etc/fstab&lt;br /&gt;&lt;br /&gt;shmfs /dev/shm tmpfs size=12g 0&lt;br /&gt;&lt;br /&gt;[root@node1 /]# mount -t tmpfs shmfs -o size=2g /dev/shm&lt;br /&gt;&lt;br /&gt;:wq&lt;br /&gt;Save and quit&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 1:&lt;/span&gt;In the above example I've created the shmfs(shared memory file system) with a size of 2G as that is the size of the buffer cache I am planning to use. &lt;br /&gt;The other elements of the SGA are placed in regular memory,not this shared memory file system, so they should not be included when deciding on the size of the shmfs. &lt;br /&gt;It is recommended to size this slightly bigger than the actual size needed,&lt;br /&gt;Here I've used a 2G shmfs for a 2G buffer cache.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 2:&lt;/span&gt; The size of memory_target parameter we can grow upto memory_max_target and not beyond memory_max_target.&lt;br /&gt;&lt;br /&gt;SQL&gt; show parameter %MEMORY%&lt;br /&gt;&lt;br /&gt;NAME                                 TYPE        VALUE&lt;br /&gt;------------------------------------ ----------- ------------------------------&lt;br /&gt;hi_shared_memory_address             integer     0&lt;br /&gt;memory_max_target                    big integer 1G&lt;br /&gt;memory_target                        big integer 1G&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@node1 /]# reboot&lt;br /&gt;&lt;br /&gt;Broadcast message from root (pts/3) (Thu May 19 19:28:02 2011):&lt;br /&gt;&lt;br /&gt;The system is going down for reboot NOW&lt;br /&gt;&lt;br /&gt;Check after reboot:&lt;br /&gt;-------------------&lt;br /&gt;&lt;br /&gt;[root@node1 ~]# df -k&lt;br /&gt;Filesystem           1K-blocks      Used Available Use% Mounted on&lt;br /&gt;/dev/sda6              5952252   4117872   1527140  73% /&lt;br /&gt;/dev/sda7              5080796   4292008    526532  90% /u01&lt;br /&gt;/dev/sda3              6605824   1807356   4457492  29% /u03&lt;br /&gt;/dev/sda2             35550448  26956160   6759264  80% /u02&lt;br /&gt;/dev/sda1               497829     16695    455432   4% /boot&lt;br /&gt;tmpfs                  2097152         0   2097152   0% /dev/shm&lt;br /&gt;/dev/sdb1             39381744  35555696   1825556  96% /u04&lt;br /&gt;/dev/sdc1             51605436   1233976  47750056   3% /u05&lt;br /&gt;shmfs                  2097152         0   2097152   0% /dev/shm&lt;br /&gt;&lt;br /&gt;Check after starting database:&lt;br /&gt;-------------------------------&lt;br /&gt;[oracle@node1 ~]$ df -h&lt;br /&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;/dev/sda6             5.7G  4.0G  1.5G  73% /&lt;br /&gt;/dev/sda7             4.9G  4.1G  515M  90% /u01&lt;br /&gt;/dev/sda3             6.3G  1.8G  4.3G  29% /u03&lt;br /&gt;/dev/sda2              34G   26G  6.5G  80% /u02&lt;br /&gt;/dev/sda1             487M   17M  445M   4% /boot&lt;br /&gt;tmpfs                 2.0G  1.4G  714M  66% /dev/shm&lt;br /&gt;/dev/sdb1              38G   34G  1.8G  96% /u04&lt;br /&gt;/dev/sdc1              50G  1.2G   46G   3% /u05&lt;br /&gt;shmfs                 2.0G  1.4G  714M  66% /dev/shm&lt;br /&gt;&lt;br /&gt;                   Hope it helps.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Rafi.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370545678641066072-5013208026090426587?l=rafioracledba.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rafioracledba.blogspot.com/feeds/5013208026090426587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/ora-00845-memorytarget-not-supported-on.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/5013208026090426587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370545678641066072/posts/default/5013208026090426587'/><link rel='alternate' type='text/html' href='http://rafioracledba.blogspot.com/2011/06/ora-00845-memorytarget-not-supported-on.html' title='ORA-00845: MEMORY_TARGET not supported on this system'/><author><name>Rafi</name><uri>http://www.blogger.com/profile/09518536510079429102</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_XOpPn1aRMSo/S5CqtCkcHCI/AAAAAAAAACQ/e_29yK1GZ6A/S220/IMG00091-20091130-1855.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370545678641066072.post-4038542722975584852</id><published>2011-05-30T08:05:00.000-07:00</published><updated>2011-07-06T23:27:28.657-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='INTERVIEWS'/><title type='text'>Interview questions from Oracle High Availability</title><content type='html'>Hi,&lt;br /&gt;     Based on my personal experience,Here I'm sharing interview question on Oracle&lt;br /&gt;High availability topics like RAC,Apps &amp; Other crucial questions,As a DBA and Apps DBA.Hope these questions are very much vital.&lt;br /&gt;As a experience DBA and Apps DBA I have attended many interviews.Below are the questions which I have faced and find them really useful to put in this post.Many times we know the answer for the questions but unintentionally we may commit mistakes&lt;br /&gt;which should be avoided to get selected for your ideol Role/Position.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1) Tell me about yourself?&lt;/span&gt;&lt;br /&gt;Ans:            Looks to be a simple question as there is no thinking require.But,This is the question which may decides your selection sometimes.Here You have speak about your experience and why you are the best person for this particular position and what you have done in past,what you are doing now and what you will be&lt;br /&gt;doing in future for your growth,Team growth and Organization growth. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;In brief about myself:&lt;/span&gt;  This is &lt;span style="font-style:italic;"&gt;Rafi&lt;/span&gt; here.I'm working as Oracle DBA and Apps DBAs since 4 yrs. I've been involved in &lt;span style="font-style:italic;"&gt;Handling Database and Applications&lt;/span&gt;.As a part of DBA and Apps DBA team I have done &lt;span style="font-style:italic;"&gt;Oracle RAC implentation&lt;/span&gt; on Linux and Solaris platform using ASM,OCFS and RAW DEVICE Storage mechanism,I've involved in migration of Database and Upgradation from Oracle 9i to Oracle 11g rel2 and Upgradation of Oracle Applications from Oracle 11i to Oracle R12 .I have worked on 4 Unix based platformsi.e Linux,Solaris,HP-UX and IBM-AIX including windows server. I've handled Oracle Database 9i,10g &amp; 11g and I've Handled Oracle Applications 11i &amp; R12 Administration.I've been involved in Clonning &amp; Patching of Oracle Applications.&lt;br /&gt;I've completed Oracle 9i OCP,10g OCP,11g OCP,RAC Expert,Oracle E-businness Suite R12 OCP and ITIL v3 foundation &lt;span style="font-style:italic;"&gt;Certification&lt;/span&gt;.&lt;br /&gt;Right now I'm focussing on &lt;span style="font-style:italic;"&gt;Oracle SOA&lt;/span&gt;,Oracle Data Integrator,Oracle JDeveloper,Weblogic and Fusion middleware components.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;Please take about your skillsets and experience while answering the above question so that interview can ask questions&lt;br /&gt;sometime based on your experience and skillsets and not necessary what skillset he wants.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;2)How you stop Your RAC Database configue with ASM?&lt;/span&gt;&lt;br /&gt;Ans:    This is a bit tricky.But a simple logic is Database depends on storage and storage depends on node.Hence We can tell like this,Important is to remember that node application and cluster is started and stopped only with 'root'&lt;br /&gt;user or the user having sudo privilege to do this in /etc/sudoers file.One more point to remember always asm instance&lt;br /&gt;should be started first.&lt;br /&gt;&lt;br /&gt;There are actually 2 commands to do it:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1) crsctl stop crs:&lt;/span&gt;  This command will stop all the node applications(i.e gsd, VIP, ons, listener) and crs daemons(crsd,evmd,ocsd)&lt;br /&gt;However /etc/init.d/init.crs {start|stop|enable|disable} can be used to start,stop,enable and disable these crs daemons&lt;br /&gt;or services.&lt;br /&gt;&lt;br /&gt;Login as root or a user with sudo permission to run the crsctl command:&lt;br /&gt;#cd ORA_CRS_HOME/bin&lt;br /&gt;#crsctl start crs&lt;br /&gt;=&gt; Run as root or you should have SUDO permissing in /etc/sudoers file.&lt;br /&gt;#ssh testnode_1n1 /home/app/crs/bin/crsctl check crs&lt;br /&gt;    (or)&lt;br /&gt;#ssh testnode_1n1 /home/app/crs/bin/&lt;span style="font-weight:bold;"&gt;crsctl stop crs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note:This command will prevent CRS from starting on a reboot.There is no return output from the command.&lt;br /&gt;&lt;br /&gt;[root@TEST_NODE1 oracle]# crsctl disable crs&lt;br /&gt;&lt;br /&gt;For checking this use 'crsstat' command:&lt;br /&gt;&lt;br /&gt;[root@TEST_NODE1 oracle]# crsstat&lt;br /&gt;&lt;br /&gt;HA Resource                                   Target     State&lt;br /&gt;-----------                                   ------     -----&lt;br /&gt;ora.TEST_NODE1.ASM1.asm                       OFFLINE    OFFLINE&lt;br /&gt;ora.TEST_NODE1.LISTENER_TEST_NODE1.lsnr       OFFLINE    OFFLINE&lt;br /&gt;ora.TEST_NODE1.gsd                            OFFLINE    OFFLINE&lt;br /&gt;ora.TEST_NODE1.ons                            OFFLINE    OFFLINE&lt;br /&gt;ora.TEST_NODE1.vip                            OFFLINE    OFFLINE&lt;br /&gt;ora.orcl.RAC.cs                               OFFLINE    OFFLINE&lt;br /&gt;ora.orcl.RAC.orcl1.srv                        OFFLINE    OFFLINE&lt;br /&gt;ora.orcl.RAC.orcl2.srv                        OFFLINE    OFFLINE&lt;br /&gt;ora.orcl.db                                   OFFLINE    OFFLINE&lt;br /&gt;ora.orcl.orcl1.inst                           OFFLINE    OFFLINE&lt;br /&gt;ora.orcl.orcl2.inst                           OFFLINE    OFFLINE&lt;br /&gt;ora.TEST_NODE2.ASM2.asm                       OFFLINE    OFFLINE&lt;br /&gt;ora.TEST_NODE2.LISTENER_TEST_NODE2.lsnr       OFFLINE    OFFLINE&lt;br /&gt;ora.TEST_NODE2.gsd                            OFFLINE    OFFLINE&lt;br /&gt;ora.TEST_NODE2.ons                            OFFLINE    OFFLINE&lt;br /&gt;ora.TEST_NODE2.vip                            OFFLINE    OFFLINE&lt;br /&gt;Let’s not forget to enable CRS on reboot:&lt;br /&gt;&lt;br /&gt;[root@TEST_NODE1 oracle]# crsctl enable crs&lt;br /&gt;&lt;br /&gt;2)srvctl stop:&lt;br /&gt;--------------&lt;br /&gt;&lt;br /&gt;To stop a RAC Database configure system with ASM step by step:&lt;br /&gt;--------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;srvctl stop service -d test             =&gt;To stop services like TAF(Transparent Application failover &lt;br /&gt;srvctl stop database -d test            =&gt;To stop Database which may include 'n' number of instances&lt;br /&gt;srvctl stop asm -n node1-pub1            =&gt;To stop asm instance on node1&lt;br /&gt;srvctl stop asm -n node2-pub2            =&gt;To stop asm instance on node2&lt;br /&gt;srvctl stop nodeapps -n node1-pub1,node2-pub2  =&gt;To stop all node apps(listeners,GSD,ONS,VIP)&lt;br /&gt;&lt;br /&gt;(or)&lt;br /&gt;&lt;br /&gt;To start a RAC Database configure with ASM:&lt;br /&gt;---------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;We have to first start the nodeapps,then the ASM instances, followed by the database instances, and lastly the services for TAF and load balancing.&lt;br /&gt;&lt;br /&gt;srvctl start nodeapps -n node1-pub&lt;br /&gt;srvctl start nodeapps -n node2-pub&lt;br /&gt;srvctl start asm -n node1-pub &lt;br /&gt;srvctl start asm -n node2-pub&lt;br /&gt;srvctl start database -d test&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 1:&lt;/span&gt; When we use crsctl to stop clusterware,It will stop nodeapps,asm instances and Database instance.&lt;br /&gt;           &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note 2:&lt;/span&gt;Starting and Stopping of Cluster in Oracle 11g  is changed because of 1)Separate home for clusterware&lt;br /&gt;i.e Grid home.&lt;br /&gt;2) OCR is in diskgroup inside ASM, then no way to stop ASM using srvctl, you have to shutdown the cluster to stop ASM.&lt;br /&gt;We can start or start cluster or other services as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Starting / Stopping the Cluster in Oracle 11g rel2:&lt;br /&gt;--------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Stopping Cluster:&lt;br /&gt;----------------------- &lt;/span&gt;           &lt;br /&gt;We can Use the "crsctl stop cluster" command on node1 to stop the Oracle Clusterware stack:&lt;br /&gt;root@node1 ~]# /u01/app/11.2.0/grid/bin/crsctl stop cluster&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Starting Cluster:&lt;br /&gt;---------------------------------&lt;/span&gt;&lt;br /&gt;[root@node1 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster&lt;br /&gt;          &lt;br /&gt;          We can start/stop all the clusterware nodes by using below command:&lt;br /&gt;[root@node1 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster all&lt;br /&gt;[root@node1 ~]# /u01/app/11.2.0/grid/bin/crsctl stop cluster all&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3)How you check the health of Your RAC Database?&lt;/span&gt;&lt;br /&gt;Ans: &lt;span style="font-weight:bold;"&gt;'crsctl'&lt;/span&gt; command from root or oracle user can be used to check the clusterware health But for starting or stopping we have to use root user or any privilege user.&lt;br /&gt;&lt;br /&gt;[oracle@TEST_NODE1 ~]$ &lt;span style="font-weight:bold;"&gt;crsctl check crs&lt;/span&gt;&lt;br /&gt;CSS appears healthy&lt;br /&gt;CRS appears healthy&lt;br /&gt;EVM appears healthy&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4)How you check the services in RAC Node?&lt;/span&gt;&lt;br /&gt;Ans:  We can check the service or start the services with 'srvctl' command.load balanced/TAF service named RAC online.&lt;br /&gt;&lt;br /&gt;[oracle@TEST_NODE1 ~]$ srvctl start service -d orcl -s RAC&lt;br /&gt;[oracle@TEST_NODE1 ~]$ crsstat&lt;br /&gt;HA Resource                               Target     State&lt;br /&gt;-----------                               ------     -----&lt;br /&gt;ora.TEST_NODE1.ASM1.asm                   ONLINE     ONLINE on TEST_NODE1&lt;br /&gt;ora.TEST_NODE1.LISTENER_TEST_NODE1.lsnr   ONLINE     ONLINE on TEST_NODE1&lt;br /&gt;ora.TEST_NODE1.gsd                        ONLINE     ONLINE on TEST_NODE1&lt;br /&gt;ora.TEST_NODE1.ons                        ONLINE     ONLINE on TEST_NODE1&lt;br /&gt;ora.TEST_NODE1.vip                        ONLINE     ONLINE on TEST_NODE1&lt;br /&gt;ora.orcl.RAC.cs                           ONLINE     ONLINE on TEST_NODE2&lt;br /&gt;ora.orcl.RAC.orcl1.srv                    ONLINE     ONLINE on TEST_NODE1&lt;br /&gt;ora.orcl.RAC.orcl2.srv                    ONLINE     ONLINE on TEST_NODE2&lt;br /&gt;ora.orcl.db                               ONLINE     ONLINE on TEST_NODE2&lt;br /&gt;ora.orcl.orcl1.inst                       ONLINE     ONLINE on TEST_NODE1&lt;br /&gt;ora.orcl.orcl2.inst                       ONLINE     ONLINE on TEST_NODE2&lt;br /&gt;ora.TEST_NODE2.ASM2.asm                   ONLINE     ONLINE on TEST_NODE2&lt;br /&gt;ora.TEST_NODE2.LISTENER_TEST_NODE2.lsnr   ONLINE     ONLINE on TEST_NODE2&lt;br /&gt;ora.TEST_NODE2.gsd                        ONLINE     ONLINE on TEST_NODE2&lt;br /&gt;ora.TEST_NODE2.ons                        ONLINE     ONLINE on TEST_NODE2&lt;br /&gt;ora.TEST_NODE2.vip                        ONLINE     ONLINE on TEST_NODE2&lt;br /&gt;[oracle@TEST_NODE1 ~]$&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4)If there is some issue with virtual IP how will you troubleshoot it?How will you change virtual ip?&lt;/span&gt;&lt;br /&gt;Ans:  To change the VIP (virtual IP) on a RAC node, use the command&lt;br /&gt;&lt;br /&gt;[oracle@testnode oracle]$ &lt;span style="font-weight:bold;"&gt;srvctl modify&lt;/span&gt; nodeapps -A new_address&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5)What kind of backup stratergy you follow for your Databases?&lt;/span&gt;&lt;br /&gt;Ans:We follow different backup strategy for our Databases depends on type of Database.We use different kind of Backup stratergy for Production,Test,Performance,Demo,Development Databases.But the main&lt;br /&gt;aim is to recover the Database with minimal or no Data loss:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;1)Production Databases:&lt;br /&gt;-----------------------------&lt;/span&gt;&lt;br /&gt;                     Backup stratergy for Production Database is as follows:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;RMAN BACKUP:&lt;br /&gt;---------------------&lt;/span&gt;&lt;br /&gt;incremental level 0  =&gt;Weekly Basis at 6am    -- Full backup of Database with archive logs and copy of Current control file&lt;br /&gt;incremental level 1  =&gt;Mon,Tues,Thurs,Friday  at 6am  --Changes from recent back to a particular day&lt;br /&gt;cummulative backup   =&gt;Wed,Saturday at 6am        -- changes from the lowest level i.e mon-wed and Thur-Sat.&lt;br /&gt;&lt;br /&gt;      While deciding the backup stratergy for our production system of 300GB we had in our mind the following points:&lt;br /&gt;1)Backup should be schedule at less peak hours.&lt;br /&gt;2)With no loss we should recover Database in case of any Disaster.&lt;br /&gt;&lt;br /&gt;For scripts and scheduling details refer my below link:&lt;br /&gt;&lt;br /&gt;http://rafioracledba.blogspot.com/search/label/RMAN&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;expdp Backup:&lt;br /&gt;----------------&lt;/span&gt;&lt;br /&gt;                 Export Datapump backup on daily basis at 9pm.&lt;br /&gt;                 We should have one datapump backup which should be most recent to recover the lost of Table or any Data.Below points are same:&lt;br /&gt;1)Backup should be schedule at less peak hours.&lt;br /&gt;2)With no loss we should recover Database in case of any Disaster.&lt;br /&gt;&lt;br /&gt;For scripts and scheduling details refer my below link:&lt;br /&gt;&lt;br /&gt;http://rafioracledba.blogspot.com/search/label/expdp%2Fimpdp&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;2)Test Databases:&lt;br /&gt;---------------------&lt;/span&gt;&lt;br /&gt;            Usually Test Database is almost same as production in terms of Data.However whenever we want to test some&lt;br /&gt;patch or any script before applying to production we can apply in test and than apply in production.I usually&lt;br /&gt;prefer to have same backup stratergy as production for Test Databases.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;3)Development Database:&lt;br /&gt;---------------------------&lt;/span&gt;&lt;br /&gt;                  In a development Database.We can go for below backup statergy,However if you have space and enough infrastructure you can repeat the same backup stratergy as above.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Expdp full backup:&lt;/span&gt;&lt;br /&gt;             In a Development environment,We should have full Database logical&lt;br /&gt;Backup up to date and should be schedule on daily basis,so that whenever there&lt;br /&gt;Is some table drop or table backup is requested by developer you can restore&lt;br /&gt;That table from your Logical backup.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;COLD RMAN BACKUP:&lt;br /&gt;-------------------&lt;/span&gt;&lt;br /&gt;                  We can schedule cold rman backup on every sundays at 9am(any time which you feel is convinient without affecting much to developers and end users).Below is the link for implementing RMAN cold Backup:&lt;br /&gt;&lt;br /&gt;http://rafioracledba.blogspot.com/2011/06/scheduling-rman-cold-backup-and-copy.html&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6)How you will backup your RAC Database?&lt;/span&gt;&lt;br /&gt;Ans:  Backup strategy of RAC Database:&lt;br /&gt;                An RAC Database consists of&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)OCR&lt;br /&gt;2)Voting disk &amp;&lt;br /&gt;3)Database files,controlfiles,redolog files &amp; Archive log files&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)OCR BACKUP:&lt;br /&gt;-------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Oracle performs physical backup of OCR devices every 4 hours under the default backup direcory $ORA_CRS_HOME/cdata/&lt;CLUSTER_NAME&gt; &lt;br /&gt;and then it rolls that forward to Daily, weekly and monthly backup. You can get the backup information by executing below command. &lt;br /&gt;Login with help of 'root' user and fire the below command.&lt;br /&gt;&lt;br /&gt;ocrconfig -showbackup&lt;br /&gt;&lt;br /&gt;[root@testnode -pub ~]# &lt;span style="font-style:italic;"&gt;ocrconfig -showbackup&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;testnode-pub     2011/05/03 17:50:47     /u01/app/crs/cdata/test-crs/backup00.ocr&lt;br /&gt; &lt;br /&gt;testnode-pub     2011/05/03 13:46:45     /u01/app/crs/cdata/test-crs/backup01.ocr&lt;br /&gt; &lt;br /&gt;Manually backing up the OCR we can do with the help of same command 'ocrconfig&lt;br /&gt;&lt;br /&gt;ocrconfig -manualbackup --&gt;Physical Backup of OCR&lt;br /&gt;&lt;br /&gt;The above command backs up OCR under the default Backup directory.We can export the contents of the OCR using  below command (Logical backup).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;ocrconfig&lt;/span&gt; -export /tmp/ocr_exp.dat -s online &lt;&lt;-- Logical Backup of OCR&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2)Voting Disk Backup:&lt;br /&gt;----------------------------&lt;/span&gt;&lt;br /&gt;Backup the existing votedisks as below as oracle:&lt;br /&gt;&lt;br /&gt;dd if=/u02/ocfs2/vote/VDFile_0 of=$ORACLE_BASE/bkp/vd/VDFile_0&lt;br /&gt;&lt;br /&gt;[root@node1-pub ~]# su - oracle&lt;br /&gt;[oracle@node1-pub ~]$ dd if=/u02/ocfs2/vote/VDFile_0 of=$ORACLE_BASE/bkp/vd/VDFile_0&lt;br /&gt;41024+0 records in&lt;br /&gt;41024+0 records out&lt;br /&gt;[oracle@node1-pub ~]$ &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Note:&lt;/span&gt; If we want to add a voting disk we can do with the help of 'crsctl' as given below:&lt;br /&gt;&lt;br /&gt;[root@node1-pub ~]# su - oracle&lt;br /&gt;[oracle@node1-pub ~]$ touch /u02/ocfs2/vote/VDFile_3&lt;br /&gt;[oracle@node1-pub ~]$ crsctl add css votedisk /u02/ocfs2/vote/VDFile_3&lt;br /&gt;Now formatting voting disk: /u02/ocfs2/vote/VDFile_3.&lt;br /&gt;Successful addition of voting disk /u02/ocfs2/vote/VDFile_3.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;Please ask the interview about which version ,this is because,In &lt;span style="font-style:italic;"&gt;Oracle 11g rel2&lt;/span&gt;,The way we take backup of Voting Disk and OCR is totally different,Because now we can use ASM for storing OCR and Voting Disk.Another point to keep in mind is Voting File is no longer supported to take a manual backup of it with 'dd' command&lt;br /&gt;Instead,the Voting File gets backed up automatically into the OCR. As a New Feature,we can now do a manual backup of the OCR any time you like, without having to wait until that is done automatically – which is also still done.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Now the manual backup:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;[root@node1-pub ~]# /u01/app/11.2.0/grid/bin/ocrconfig -manualbackup&lt;br /&gt;&lt;br /&gt;            We can take backup on a separate shared location also:&lt;br /&gt;[root@node1-pub ~]#/u01/app/11.2.0/grid/bin/ocrconfig -backuploc /u02/ocr_backup&lt;br /&gt;&lt;br /&gt;                To see the above backup we can use the same command 'ocrconfig':&lt;br /&gt;[root@node1-pub ~]# /u01/app/11.2.0/grid/bin/ocrconfig -showbackup&lt;br /&gt;&lt;br /&gt;Note:Oracle’s solution to this problem is to combines  the clusterware and ASM  into a single Grid Infrastructure home and  comes up a  procedure with  a complex  start up sequence which  mixes  the different components of clusterware and ASM  instance in order&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3)Datafiles Backup:&lt;br /&gt;--------------------&lt;/span&gt;&lt;br /&gt; For Backing up your Database files,Redolog files,control files,Archive log files and other Database files,Please use 'rman' as it has many advantages over other&lt;br /&gt; user managed backup.RMAN gives you the flexibility of backing up Database in archive log mode(hot backup)&lt;br /&gt; and unarchive log mode(Cold backup).&lt;br /&gt; &lt;br /&gt; http://forums.oracle.com/forums/thread.jspa?messageID=9624568#9624568&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7)How to recover your RAC Database?&lt;/span&gt;&lt;br /&gt;Ans:           If you have valid backup of OCR,Voting Disk and Database files than RAC Database recovery can be done without much lost or Damages.Below are some steps to do these:&lt;br /&gt;1)OCR can be restore and recover using &lt;span style="font-weight:bold;"&gt;'ocrconfig'&lt;/span&gt; command if you have a valid export backup of ocr.&lt;br /&gt;2)Voting disk can be restore and recovered using 'dd' command if you have got the backup which you took from &lt;span style="font-weight:bold;"&gt;'dd'&lt;/span&gt; command.&lt;br /&gt;&lt;br /&gt;Detail process we can get from below link:&lt;br /&gt;http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle10gRAC/CLUSTER_65.shtml#Recover the Voting Disk&lt;br /&gt;&lt;br /&gt;3)Restore and Recover  the Database&lt;br /&gt;First, take the database out of cluster mode,This is very important step, via:&lt;br /&gt;&lt;br /&gt;# sqlplus "/ as sysdba"&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.3.0 - Production on Sat May 24 17:02:17 2008&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.&lt;br /&gt;&lt;br /&gt;Connected to an idle instance.&lt;br /&gt;&lt;br /&gt;SQL&gt; startup nomount;&lt;br /&gt;ORACLE instance started.&lt;br /&gt;&lt;br /&gt;Total System Global Area  268435456 bytes&lt;br /&gt;Fixed Size                  1261300 bytes&lt;br /&gt;Variable Size             251658508 bytes&lt;br /&gt;Database Buffers            8388608 bytes&lt;br /&gt;Redo Buffers                7127040 bytes&lt;br /&gt;&lt;br /&gt;SQL&gt; alter system set cluster_database=false scope=spfile sid='*';&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; shutdown immediate;&lt;br /&gt;ORA-01507: database not mounted&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;&lt;br /&gt;Then restore the database via RMAN:&lt;br /&gt;&lt;br /&gt;# rman target=/&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.3.0 - Production on Sat May 24 17:04:10 2008&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;connected to target database (not started)&lt;br /&gt;&lt;br /&gt;RMAN&gt; startup mount;&lt;br /&gt;&lt;br /&gt;Oracle instance started&lt;br /&gt;database mounted&lt;br /&gt;&lt;br /&gt;Total System Global Area     268435456 bytes&lt;br /&gt;&lt;br /&gt;Fixed Size                     1261300 bytes&lt;br /&gt;Variable Size                251658508 bytes&lt;br /&gt;Database Buffers               8388608 bytes&lt;br /&gt;Redo Buffers                   7127040 bytes&lt;br /&gt;&lt;br /&gt;RMAN&gt; restore database;&lt;br /&gt;&lt;br /&gt;Starting restore at 24-MAY-08&lt;br /&gt;using target database control file instead of recovery catalog&lt;br /&gt;allocated channel: ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: sid=154 devtype=DISK&lt;br /&gt;&lt;br /&gt;channel ORA_DISK_1: starting datafile backupset restore&lt;br /&gt;channel ORA_DISK_1: specifying datafile(s) to restore from backup set&lt;br /&gt;restoring datafile 00001 to /u02/oracle/ora1/TESTDB/systTESTDB01.dbf&lt;br /&gt;restoring datafile 00002 to /u02/oracle/ora1/TESTDB/undotbs01.dbf&lt;br /&gt;restoring datafile 00003 to /u02/oracle/ora1/TESTDB/sysaux01.dbf&lt;br /&gt;restoring datafile 00004 to /u02/oracle/ora1/TESTDB/users01.dbf&lt;br /&gt;restoring datafile 00005 to /u02/oracle/ora1/TESTDB/example01.dbf&lt;br /&gt;restoring datafile 00006 to /u02/oracle/ora1/TESTDB/undotbs02.dbf&lt;br /&gt;restoring datafile 00007 to /u02/oracle/ora2/TESTDB/mgmt.dbf&lt;br /&gt;restoring datafile 00008 to /u02/oracle/ora1/TESTDB/mgmt_ecm_depot1.dbf&lt;br /&gt;channel ORA_DISK_1: reading from backup piece /u02/oracle/ora3/TESTDB/backups/0ijh6j4t_1_1&lt;br /&gt;channel ORA_DISK_1: restored backup piece 1&lt;br /&gt;piece handle=/u02/oracle/ora3/TESTDB/backups/0ijh6j4t_1_1 tag=FHB_EM1200805241630&lt;br /&gt;channel ORA_DISK_1: restore complete, elapsed time: 00:06:36&lt;br /&gt;Finished restore at 24-MAY-08&lt;br /&gt;&lt;br /&gt;Since my database is so small, I will simply restore the entire thing, however, since you know which datafile is missing, you could simply restore it and then recover the database as necessary.&lt;br /&gt;&lt;br /&gt;Recover the Database&lt;br /&gt;&lt;br /&gt;RMAN&gt; recover database;&lt;br /&gt;&lt;br /&gt;Starting recover at 24-MAY-08&lt;br /&gt;using channel ORA_DISK_1&lt;br /&gt;&lt;br /&gt;starting media recovery&lt;br /&gt;media recovery complete, elapsed time: 00:00:03&lt;br /&gt;&lt;br /&gt;Finished recover at 24-MAY-08&lt;br /&gt;&lt;br /&gt;RMAN&gt; alter database open;&lt;br /&gt;&lt;br /&gt;database opened&lt;br /&gt;RMAN-06900: WARNING: unable to generate V$RMAN_STATUS or V$RMAN_OUTPUT row&lt;br /&gt;RMAN-06901: WARNING: disabling update of the V$RMAN_STATUS and V$RMAN_OUTPUT rows&lt;br /&gt;ORACLE error from target database:&lt;br /&gt;ORA-06502: PL/SQL: numeric or value error: character to number conversion error&lt;br /&gt;&lt;br /&gt;Afterwards, place the database back into cluster mode and startup both instances:&lt;br /&gt;&lt;br /&gt;# sqlplus "/ as sysdba"&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.3.0 - Production on Sat May 24 17:16:36 2008&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production&lt;br /&gt;With the Partitioning, Real Application Clusters, OLAP and Data Mining options&lt;br /&gt;&lt;br /&gt;SQL&gt; alter system set cluster_database=true scope=spfile sid='*';&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; shutdown immediate;&lt;br /&gt;Database closed.&lt;br /&gt;Database dismounted.&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# srvctl start database -d TESTDB&lt;br /&gt;[oracle@rac1 bdump]$ srvctl status database -d TESTDB&lt;br /&gt;Instance TESTDB1 is running on node rac1&lt;br /&gt;Instance TESTDB2 is running on node rac2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8)What kind of backup strategy you are following for application server?&lt;/span&gt;&lt;br /&gt;Ans;Complete Oracle Application Server Environment Backup can be done using the below techniques,&lt;br /&gt;&lt;br /&gt;A complete Oracle Application Server environment backup includes:&lt;br /&gt;&lt;br /&gt;* A full backup of all files in the middle-tier Oracle homes (this includes Oracle software files and configuration files)&lt;br /&gt;&lt;br /&gt;* A full backup of all files in the Infrastructure Oracle home (this includes Oracle software files and configuration files)&lt;br /&gt;&lt;br /&gt;* A complete cold backup of the Metadata Repository&lt;br /&gt;&lt;br /&gt;* A full backup of the Oracle system files on each host in your environment.&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-style:italic;"&gt;OracleAS Backup and Recovery Tool&lt;/span&gt; can be used for taking Oracle Application server backup.For more details and configuration of OracleAS Backup and Recovery tool refer the below link:&lt;br /&gt;&lt;br /&gt;http://download.oracle.com/docs/cd/B14099_19/core.1012/b13995/br_tool.htm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9)How your Add node to your RAC Database?&lt;/span&gt;&lt;br /&gt;Ans: To add a new node(server) to your RAC Database use the command 'srvctl' with the option given below.&lt;br /&gt;&lt;br /&gt;[oracle@testnode oracle]$ &lt;span style="font-style:italic;"&gt;srvctl add nodeapps&lt;/span&gt; -n newserver_name -o $ORACLE_HOME -A 149.181.220.1/255.255.255.0/eth1&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; The -A flag precedes an address specification.&lt;br /&gt;&lt;br /&gt;Howerver there is one more method:&lt;br /&gt;&lt;br /&gt;Run the &lt;span style="font-style:italic;"&gt;addNode.sh&lt;/span&gt; script&lt;br /&gt;&lt;br /&gt;On an existing node from the Oracle_home/oui/bin directory,run the addNode.sh script&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;For above question if it is asked in detail than there are lot of steps,Which is&lt;br /&gt;explained in Q11.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10)For a Database created with ASM on RAC How you would add one more asm configuration?&lt;/span&gt;&lt;br /&gt;Ans: We can use  &lt;span style="font-weight:bold;"&gt;DBCA in Silent Mode to Add ASM and Database Instances&lt;/span&gt; to Target Nodes&lt;br /&gt;&lt;br /&gt; We can use the DBCA in silent mode to add instances to nodes on which you have extended an Oracle Clusterware home and an Oracle Database home. Use the following syntax where password is the password as given below:&lt;br /&gt;&lt;br /&gt;$&lt;span style="font-weight:bold;"&gt;dbca&lt;/span&gt; -silent -addInstance -nodeList node -gdbName gdbname [-instanceName instname]&lt;br /&gt; -sysDBAUserName sysdba -sysDBAPassword password&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt;We can use Oracle Enterprise Manager grid control also to do the same task.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11)How you add node for a RAC cluster?Step by step?&lt;/span&gt;&lt;br /&gt;Ans:Below are the v steps for adding non-rac node to an RAC Database:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;I)Prerequisite Steps for Extending Oracle RAC to Target Nodes:&lt;/span&gt;&lt;br /&gt;The following steps describe how to set up target nodes to be part of your cluster:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 1&lt;/span&gt;, "Make physical connections"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 2&lt;/span&gt;, "Install the operating system"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 3&lt;/span&gt;, "Create Oracle users"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 4&lt;/span&gt;, "Verify the installation"  =&gt;use cluvfy ustility for verification of clusterware installation&lt;br /&gt;Eg: cluvfy stage -post hwos -n node_list|all [-verbose]&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;II)Extend Oracle Clusterware to Target Nodes &lt;/span&gt;&lt;br /&gt;        In the above step you have to stop clusterware services with 'crsctl' and create a clone environment by copying file and making identical copy of clusterware hope.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;III)Configure Shared Storage on Target Nodes&lt;/span&gt;  &lt;br /&gt;          Depending on the environment existing whether it is having asm,ocfs2,raw or any vendor shared storage make the environment same as the source.If the ASM HOME and ORACLE RAC database HOME exists in oracle than you don't need to do any thing as ASM home to a node will happen implicitly if it is not so the case,you must first extend the Oracle Clusterwa
