Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > TNSNAMES.ORA Assistance Please

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-04-08, 10:50
James0816 James0816 is offline
Registered User
 
Join Date: Aug 2004
Posts: 4
TNSNAMES.ORA Assistance Please

I have a quick question...I am in the process of upgrading a machine running an Oracle database. The catch to this is that I have to have both the old version and the new version running at the same time (for transition and testing purposes). So here's the catch. After cloning the machine and upgrading the software application I now have two machines that have the same oracle database running on them (Oracle SID: TEST1).

I need to be able to access both databases while they are on the network. I believe I do this through the TNSNAMES.ORA file correct? But how do I do it since both databases have the same SID? I need to add another entry to the TNSNAMES files but I am confused with the SERVICE_NAME parameter and the first line (TEST1.MYDOMAIN.COM).

Here is the existing entry for the original database:

TEST1.MYDOMAIN.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = TESTPC1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TEST1)
)
)

Can someone help clear up the fuzzies for me?

Thx
Reply With Quote
  #2 (permalink)  
Old 01-04-08, 12:07
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 2,717
Simplified: TNSNAMES.ORA contains aliases to databases. It means that you can name a database the way you want. Important part of the story is what is behind the first "=" sign (description, address, host, service_name etc.). You can even have two, three or more aliases for the same database!

Now, you'd do that as follows:
Code:
TEST1_ON_OLD_MACHINE = (DESCRIPTION = ... (HOST = OLD_MACHINE) ... ) TEST1_ON_NEW_MACHINE = (DESCRIPTION = ... (HOST = NEW_MACHINE) ... )
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

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