?
Solved

question regarding tnsnames.ora on linux

Posted on 2008-09-30
9
Medium Priority
?
727 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

718 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