If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > How To Clone Oracle Database Server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Oct 2010
Location: Orlando, FL
Posts: 261
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?
Reply With Quote
  #2 (permalink)  
Old
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 7,495
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.
Don't say, show. Don't promise, prove.
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
Join Date: Oct 2010
Location: Orlando, FL
Posts: 261
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.
Reply With Quote
  #4 (permalink)  
Old
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 7,495
> 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.
Don't say, show. Don't promise, prove.
Reply With Quote
  #5 (permalink)  
Old
Registered User
 
Join Date: Oct 2010
Location: Orlando, FL
Posts: 261
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!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On