Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

question regarding tnsnames.ora on linux

Posted on 2008-09-30
9
Medium Priority
?
728 Views
Last Modified: 2012-05-05
Hi,

Can I have 2 entries int he tnsnames.ora for the same service name? (In other words in the following tnsnames.ora after the horizontal line like the last entry,  can I have an additional entry as follows (what i want to add is before the horizontal line) So basically i want to have a single host name for multiple service names and the host name is engt02. How do I achieve that?

ENTG02 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = entg02)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = new_servicename)
    )
  )
_________________________________________________________________________

ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

ENTG02 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = entg02)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = orcl)
    )
  )
0
Comment
Question by:anup001
7 Comments
 
LVL 7

Accepted Solution

by:
fluglash earned 1000 total points
ID: 22611806
ENTG02 = <---- change this for something else...
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = entg02)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = new_servicename)
    )
  )
0
 

Author Comment

by:anup001
ID: 22611870
Is that entry(ENTG02) not required to e same as host name that is lower case enth02?
0
 
LVL 15

Expert Comment

by:Shaju Kumbalath
ID: 22612050
the tnsalias can not be duplicated
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 7

Expert Comment

by:fluglash
ID: 22612077
this entry required, but NetServiceName must be unique

new_ENTG02 = <---- change this for something else...
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = entg02)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = new_servicename)
    )
  )
0
 

Author Comment

by:anup001
ID: 22612262
do i need to restart anyything after modifyin tnsnames.ora in linux?
0
 
LVL 4

Assisted Solution

by:KICUSek
KICUSek earned 1000 total points
ID: 22612816
If You are starting new connectin, no restart needed.
0
 
LVL 7

Expert Comment

by:fluglash
ID: 22612909
no, you don`t need to reboot machine
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that useā€¦
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question