Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2010
    Location
    Orlando, FL
    Posts
    262

    Question How To Clone Oracle Database Server

    I've got a VMware VM running:

    - RHEL 5.8 64-bit
    - Oracle Database EE 11g R2 (11.2.0.3)

    I've cloned the VM so that I can make an identical test server of our production server however I'm not sure how to configure Oracle in response to me cloning the machine. When I clone the new database server, I have to rename the OS FQDN and IP address. This allows me to bring the VM live w/o impacting the production machine with an IP conflict or DNS issue.

    Now that the server is up, the Oracle 11g R2 machine has a folder structure and files based on it's source FQDN versus the newly changed hostname.

    Is there a recommended script(s) that I need to run or process in which you change the Oracle database 11g servers host name, what exactly needs to be executed onto the server so that everything lines up as it should?

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,622
    no Oracle DB requires or utilizes OS network to exist or be used.
    Oracle RDBMS does not know or care about FQDN of the DB server system.
    You have a choice to make;
    1) accept the names as they exist
    2) change them to satisfy your astethics.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    There are no stupid questions, but there are a LOT of Inquisitive Idiots.

  3. #3
    Join Date
    Oct 2010
    Location
    Orlando, FL
    Posts
    262
    Sorry but I discovered that changes had to me made to both the following files:

    - $ORACLE_HOME/network/admin/listener.ora
    - $ORACLE_HOME/network/admin/tnsnames.ora

    Code:
    # Generated by Oracle configuration tools.
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db1.somedomain.tld(PORT = 1521))
        )
      )
    
    
    ADR_BASE_LISTENER = /oracle/u01/app/oracle
    I also adjusted the 'tnsnames.ora' file but that wasn't necessary but did clean up DNS a bit when calling the database server. The 'listener.ora' was a must that had to be manually corrected.

  4. #4
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,622
    > The 'listener.ora' was a must that had to be manually corrected.
    listener.ora is NOT required to start the listener; so nothing exists to be changed.
    tnsnames.ora is a client side file & needs to reflect reality to connect to any remote DB.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    There are no stupid questions, but there are a LOT of Inquisitive Idiots.

  5. #5
    Join Date
    Oct 2010
    Location
    Orlando, FL
    Posts
    262
    I was just asking for help with which common files required alteration or "could" have variables or configurations attached to the old hostname. Thanks for your time!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •