Register for Apps DBA Training
For Apps DBA Beginner's
  • Start From Here
  • Order of Apps Study
  • 11i Software
  • Apps Architecture
  • Install Apps 11i
  • Install Apps 11i Part II
  • Startup/Shutdown
  • Request Flow in Apps
  • Various TOP's
  • Cloning Basics
  • Cloning I
  • Cloning II
  • Autoconfig Basics
  • Autoconfig Config File
  • Template Files in Autoconfig
  • Discoverer Overview
  • Workflow Mailer in Apps
  • Printing Overview
  • Configuring Printers
  • Pasta Printing
  • Performance Overview
  • Install 10g Application Server
  • Apps DBA Certification
  • Common DBA Topics
  • Scared of RAC ?
  • Install RAC on your laptop part I
  • Step by Step build RAC part II
  • Step by Step install RAC using VMWare part III
  • Install Oracle RAC Database part IV
  • oraInventory Basics
  • Install Database 10.2.0.1
  • Upgarde DB to 10.2.0.2
  • Fusion
  • Is Fusion a conFusion ?
  • Fusion Middleware Overview I
  • Fusion Middleware Overview II
  • Application Integration Architecture
  • SOA Install Part I
  • SOA Install Part II
  • SOA Install Part III
  • Install BPEL Process Manager
  • Apps Integration OID/SSO
  • Management Qs for Apps Integration with SSO/OID
  • 25 things your DBA should know for Apps/SSO integration
  • Identity Management
  • COREid Overview
  • Oracle COREid or Idm & Access Mgmt overview
  • Installing Access Manager 10.1.4
  • WebGate request flow
  • Identity Manager Architecture
  • Installing Identity Manager
  • OAS-SSO Overview
  • OID Overview
  • OID Basics II
  • OID Cluster
  • OID Integration with Other LDAP Servers overview
  • Integrate OID with AD I
  • OID Replication Overview
  • Multi Master OID Replication
  • Migrate OID/SSO to new Host
  • Apps R 12
  • Socket or Servlet in R12
  • Startup/Shutdown Scripts in R12
  • Unified APPL_TOP
  • Apps R 12.0.1
  • Difference between 11i & R12 Technical
  • Prepare for R12 Installation
  • Install VMWare on Windows for Linux Install
  • Install Linux for Apps R12 Install
  • Install Apps R12 on Linux Virtual Machine
  • R12 Upgrade & database
  • R12 Fils System Changes
  • R12 Release Date
  • 10g Application Server
  • 10g AS Overview
  • Installing 10g AS
  • Start/Stop 10g AS
  • Web Cache Basics
  • Single Sign-On Overview
  • OID Overview
  • Cloning 10g AS
  • 10g AS Middle tier Cloning & Overview
  • OID Cluster Imp. Points
  • CPU Patch, Infra Tier
  • CPU Patch, Middle Tier
  • AS Guard / DR Overview
  • Oracle Apps 11i
  • My Site
  • Apps DBA Scripts
  • Apps DBA Interview Q's
  • 11i JVM's
  • Apps Training in India
  • 11i Health Check
  • Good Metalink Notes
  • About Me  
  • For Advanced Apps DBA
  • URL Firewall in DMZ Setup
  • Upgrade Apps to 11.5.10.2
  • Load Balancer Overview
  • Load Balancer Config
  • HTTP layer Load balancing in Apps 11i
  • Dataguard Overview
  • Configure Dataguard / Standby database
  • Standby Site for Apps 11i
  • How to change Hostname on Apps Instance
  • SSL Overview in Apps
  • Configure SSL to Web Server
  • Key Points for SSL in Apps
  • Reduce Patch Timing
  • Reduce Patch Timing II
  • Shared APPL_TOP Overview
  • Configure Shared APPL_TOP
  • 11i Database Upgrade I
  • 11i Database Upgrade II
  • Change Session TimeOut
  • Patching
  • Apps Patch Basics
  • Apps Patch Basics II
  • Apply Apps Patch
  • CPU Overview
  • Steps to Apply CPU Patch
  • CPU Patch on Infra Tier
  • CPU Patch on AS Middle Tier
  • Troubleshooting
  • Web Server TS Part I
  • Web Server TS Part II
  • CM Troubleshooting
  • 10g Discoverer with Apps
  • Discoverer Bascis in Apps
  • Discoverer 10g Upgarde Basics
  • Discoverer 10g Configuration Steps with 11i
  • Collaboration Suite
  • Collaboration Suite
  • Calendar Overview
  • Sync Calendar from Mobile I
  • Sync Calendar from Mobile II
  • OCS Mail Architecture
  • Apex / HTMLDB
  • Install Apex 2.2
  • Apex with SSO part I
  • Apex with SSO part II
  • SSO Authentication Schemes
  • Certification
  • Possible Certifications for DBA
  • Apps DBA Certification
  • 1Z0-311-OCA-10g OAS Overview
  • 1z0-312-OCP-10g OAS Overview
  • 1z0-312 - Managing Customization and Topology
  • 1z0-312 - Cloning and Staging OAS
  • Apps DBA Jobs
  • Working / Apps DBA in UK
  • Oracle Recruiting Apps DBA's
  • Apps DBA Jobs Updated Regularly
  • Apps Job at Satyam
  • Useful Links
  • Good Metalink Notes
  • petefinnigan's Oracle Security
  • Linux Basics
  • Atul Mehta's Oracle Links
  • Others
  • Apps DBA Training Institute
  • 1 Year Journey of this Blog
  • How To ?
  • Change APPS Password
  • Preserve Customizations
  • Blog Roll
    Apps / E-Business Suite
  • Steven Chan Apps
  • Anil Passi Technical
  • Fadi Apps DBA
  • Senthil Apps DBA
  • Bas Klaassen EBS DBA
  • Sam Apps DBA
  • Black Geek Apps DBA
  • Bandari Apps
  • Vikram ERP Architect
  • OraBiz
  • Eric Core DBA
  • SOA
  • Navdeep Saini Apps DBA
  • tugdualgrall Web Services
  • Mohan Dutt's Apps Certification
    IdM
  • Nishant Kaushik's IdM
  • Nulli Blog, OAM
  • Identity Musing
  • Identity nd Access Management
    Core DBA
  • Vidya Bala DBA
  • Sabdar DBA
    Data Management
  • Ivan Pellegrin Data Management


  • We have moved to http://onlineAppsDBA.com kindly check http://onlineAppsDBA.comin future
    Orcale RAC Part III - Clone RAC1 to RAC2 and User Equivalency
    Sunday, July 15, 2007
    Register for R12 upgrade
    This is fourth post on step by step building Oracle RAC Database on your desktop / laptop using VMWare (Virtual Machine)

    For previous three posts visit

    Try installing Orcale RAC on your laptop
    RAC Part I - Install Virtual Machine and Linux
    RAC Part II - Install Virtual Disk and Network Card

    In this post you will

    --Clone RAC1 to RAC2 and change IP address of RAc2
    --Configure User equivalency for Orale Clusterware installation


    Clone RAC1 to RAC2
    -------------------------------

    - Make sure virtual linux machine is shutdown
    -Copy folder rac1 to folder rac2 in c:\Atul\VMWARE (This is on windows laptop/machine)










    --In both RAC1 and RAC2 folder open “Red Hat Enterprise Linux 3.vmx” (This is virtual machine configuration file) using notepad or wordpad

    --Add following lines (This will avoid locking for shared files and two linux machines RAC1 and RAC2 can start together using shared files votingdisk, crs and asm)


    disk.locking = "FALSE"
    diskLib.dataCacheMaxSize = "0"
    diskLib.dataCacheMaxReadAheadSize = "0"
    diskLib.dataCacheMinReadAheadSize = "0"
    diskLib.dataCachePageSize = "4096"
    diskLib.maxUnsyncedWrites = "0"


    --Now on vmx file of RAC2 “Red Hat Enterprise Linux 3.vmx” change following lines from displayName = "RAC1" to displayName = "RAC2"

    --On VMWare Server Console, Click on File and Open or “Ctrl + O”


















    --Click on Browse and select “red hat enterprise linux 3.vmx” from RAC2 directory

    --Now you should see two linux machines RAC1 and RAC2 on VMWare Console




















    Start RAC1 and RAC2 and when you get below warning on RAC2, select create and click OK
















    Make sure you can start both machine at same time, if you get message like unable to lock files, check you have added following lines in both machines vmx files mentioned above (regarding disk locking)



    Change Network Settings (IP) on RAC2
    -------------------------------------------------

    Login as ROOT user in RAC2 machine and click System Setting -> Network




















    Select eth0 and click on Edit




















    Change Address from 192.168.1.101 to 192.168.1.102


    Click on Hardware Device Tab and Click on Probe button






















    --Repeat steps for second network card eth1 and change its IP from 192.168.0.101 to 192.168.0.102

    Make sure you clicked probe on eth1 as well as shown above





















    Activate both network cards by clicking on Activate as shown below





















































    If you get error message that eth0 has different MAC address expected as shown below; make sure you have clicked on probe on “Bind to Mac Address” on “Hardware Device” mentioned above.





















    Make sure both network cards are active now, as shown below





















    Add following entry in /etc/hosts file of both RAC1 and RAC2

    ####


    127.0.0.1 loalhost.localdomain localhost
    192.168.1.102 rac2.focusthread.com rac2 rac2-vip.focusthread.com rac2-vip
    192.168.0.102 rac2-priv.focusthread.com rac2-priv
    192.168.1.101 rac1.focusthread.com rac1 rac1-vip.focusthread.com rac1-vip
    192.168.0.101 rac1-priv.focusthread.com rac1-priv

    ###


    Now trying to ping RAC2 machine from RAC1 and RAC1 machine from RAC2



































    Change Host Name of newly cloned RAC2

    -------------------------------------------------


    Follow below step on how to change hostname on RAC2 (newly cloned) Linux machine
    Open file /etc/sysconfig/network and edit line like : HOSTNAME=XXXXX i.e. from
    HOSTNAME rac1.focusthread.com To HOSTNAME rac2.focusthread.com



    Configure User Equivalency

    -----------------------------------

    User equivalency for user oracle is required so that user oracle from RAC1 can communicate to user oracle on RAC2 machine without prompting for password for clusterware to work properly.


    --Login as user oracle in machine RAC1
    --Make sure sshd daemon is running (pgrep sshd), If not start it from root user like “service start sshd
    --Create RSA and DSA key on each node
    -From oracle user go to user home directory by “cd $HOME” or type cd and press enter
    -mkdir .ssh (note that there is dot before ssh which means this is hidden directory)
    -chmod 700 .ssh
    -ssh-keygen –t rsa
    -ssh-keygen –t dsa
    press enter when prompted for file to save the key and passphrase (check screenshot for more information)













    Repeat this on both the nodes i.e. RAC1 and RAC2



    Add keys to authorized key file (authorized_keys)
    ------------------------------------------------------------
    -cd .ssh
    -touch authorized_keys
    -ls (You should see authorized_keys, id_dsa, id_dsa.pub, id_rsa, id_rsa.pub. Here pub files are dsa and rsa public key file and id_dsa and id_rsa are private key files)
    ssh rac1 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys
    ssh rac1 cat /home/oracle/.ssh/id_dsa.pub >> authorized_keys
    ssh rac2 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys
    ssh rac2 cat /home/oracle/.ssh/id_dsa.pub >> authorized_keys
    Send authorized_keys from RAC1 to RAC2
    scp authorized_keys rac2:/home/oracle/.ssh












    From RAC1 machine as user oracle
    exec /usr/bin/ssh-agent $SHELL
    /usr/bin/ssh-add











    Test User Equivalency (User oracle can login to other machine without password prompt)
    ----------------------------
    ssh rac1 date
    ssh rac2 date

    Test this from both nodes RAC1 and RAC2 (You should not be prompted for oracle user password)

    For more information on User Equivalency visit chapter 2 (Page 51 to 53) of clusterware and rac installation guide


    Coming Next :
    Installing clusterware on RAC1 and RAC2
    Installing RAC database on RAC1 and RAC2 linux machines using ASM

    Labels: ,


    We have moved to

    http://onlineAppsDBA.com

    kindly check onLineAppsDBA.com in future

    add to del.icio.usdel.icio.us  ¦  digg thisDigg This  ¦  My Yahoo!My Yahoo  ¦  RedditReddit  ¦  add to BlinkListBlinkList   ¦  Furl ItFurl It  ¦  Email This Email This  ¦     Leave Your Comments
    posted by Atul Kumar @ 9:42 AM  
    15 Comments:
    • At 3:32 PM, Blogger Steve said…

      Great series. I am looking forward to the completion, as I have configured my 2 nodes and am ready for the next step. I am going to take a stab at installing clusterware myself (it has been a while now).

      Thanks for the great site.

       
    • At 4:02 PM, Blogger Atul Kumar said…

      Hi Steve, I'll post remaining RAC install parts as soon as I find some time.

       
    • At 4:01 PM, Anonymous Anonymous said…

      I followed all the four series, brilliant compilation.
      Kudos!!

      Sam
      http://appsdbablog.com

       
    • At 4:04 PM, Blogger Atul Kumar said…

      Thanks Sam

       
    • At 8:33 AM, Blogger Unknown said…

      Hi ... first of thanks for the tremendous ifnormation and so easy setup ... my doubt is that i have Oracle 9.0.2 i .... Can i use it as RAC ... will it be the same.

       
    • At 1:52 PM, Blogger sailor joe said…

      Hi Atul,

      Certainly do appreciate your efforts.

      Atul, since I am following your instructions on a laptop that is connected to WAN with Verizon Wireless Broadband card, the ethernet cards only work if i set them to NAT. how will this affect Step III? I have just finished cloning RAC2.

      Best regards,
      joe taylor

       
    • At 7:11 PM, Anonymous Anonymous said…

      can we use enterprise linux instead of redhat for RAC

       
    • At 2:47 PM, Anonymous Anonymous said…

      Hi,
      At this stage, I ran into a problems which says "the network bridge on device vmnet0 is not running".
      Please how do I go about this?

       
    • At 8:07 AM, Blogger Unknown said…

      Hi Atul

      Greetings!!

      I have started installation of RAC on my laptop.
      Post installation of User equivalence, its still asking me for passwords of cluster.
      Could you please let me know the possible errors occur at the time of user-equivalence.
      Thanks in Advance.
      Rgds
      DBA

       
    • At 2:53 AM, Blogger Unknown said…

      Hi Atul,

      I am getting following error when installing clusterware


      caught cluster exception r PRKC 1044- failed to check remote command execution setup for node rac1.localdomain.com using shells /usr/bin/ssh and /usr/bin/rsh
      rac1.domain.com: Connection Refused

      Installer window show following error:

      you must enter unique values for the public node name,the private node name and the virtual hostname for all node in the cluster.the rac1.domain.com that you entered is being used by more than once for the same node.



      How can I fix this problem?

      Thanks,

       
    • At 9:35 AM, Blogger syed said…

      Hi Atul

      Greetings!!

      Hope you are doing fine with your health. First of all thanks for such a tremendous effort for making us known about installation of RAC on laptop/dektop.

      I have started installation of RAC on my desktop and i have done with cloning part but i am facing a problem in user equivalence. While sending authorized_keys from RAC1 to RAC2 it is asking me to type the password, which i did and there i am getting an error as "Permission denied. Please try again later".

      One more thing i want to clarify about that password, are we using a passphrase password which we have giving while configuring the keys??

      Could you please let me know the possible errors occur at the time of user-equivalence and which password we have to use while connecting to rac2 from rac1 for sending authorized_keys.

      I will be waiting for your reply.

      Thanks in Advance.
      Regards
      Syed

       
    • At 9:35 PM, Anonymous Anonymous said…

      Hi Atul,

      I have been trying to install RAC since a long time and finally I got your series on the same. I have configured the tow virtual machines as you have given, but when i try to ping each other I am not able to. Please help. Here's the error i get:-
      ping rac2
      PING rac2.focusthread.com (192.168.1.102) 56(84) bytes of data
      fROM rac1.focusthread.com (192.168.1.101) icmp_seq=0 Destination host unreachable

       
    • At 4:34 PM, Blogger Unknown said…

      I was having issues with SSH user equivalency.

      Issue was whenever i try to ssh onto rac1 or rac2 machine, it always asked for password; - yes I followed the steps mentioned here/ in the docs.

      The Solution is to when you have created 'authorized_keys' file ; once again chmod it to 700 onto both/N nodes.

      Though we've chmod 700 .ssh earlier in the steps but for whatever reason authorized_keys file permission were != chmod 700.

      why it is happening? I'll much appreciate if someone can let me know - Thnx

      my environment is Enterprise unbreakable linux + vmware + two nodes with unbreakable enterprise linux.

       
    • At 6:33 AM, Blogger Unknown said…

      Hi Atul,

      I am doing RAC on my laptop using above mentioned steps.
      In Part III of RAC Install using VM wear.
      I created authorized_keys but i am not able to ssh to RAC2, but i can ping both the systems but i am not able to do scp or anything, Please guide me how to resolve this issue?

      Best Regards,
      Suresh G

       
    • At 11:35 AM, Blogger Unknown said…

      Hi Athul,

      I am installing RAC on my laptop, I a m following the exact steps which you have provided, but when i issue this command "$ssh rac1-vip date " it is asking password, but rest of the things it is not asking the password. please guide me to resolve this issue..

      Best Regards,
      Suresh Gelda

       
    Post a Comment
    << Home
     
    About Me


    Name: Atul Kumar
    Home: London, United Kingdom

    About Me: I am Independent Oracle consultant. If you wish to hire me on Contract or to Quote on project basis contact me at
    atul @ onlineappsdba.com

    See my complete profile

    View Atul Kumar's profile on LinkedIn

    E-mail Subscription

    Enter your email address:

    Delivered by FeedBurner

    Search
    Only search this Blog
    Categories
  • Advanced Topics
  • Application Server
  • Apex / HTMLDB
  • Apps 11i
  • Apps R12
  • Autoconfig
  • Basics
  • Certification
  • Cloning
  • Discoverer
  • Fusion
  • OID
  • Patching
  • Printer
  • Single Sign-On
  • Useful Sites & Forum
  • Previous Post
    Archives
    Add On
     

    Add to Technorati Favorites

     

     

    Add to Google

     

    Add to My AOL

     

    Subscribe in Bloglines

     

    Subscribe in NewsGator Online

     
    Powered by



    Hits Since 30, Jul 06

    Blog Counter

    Technology Blogs - Blog Top Sites
    Comments
    ADs
    Copyright © 2006 teachmeoracle.com All rights reserved Presented by Atul Kumar