Setting the listener and tnsnames.ora

Hi,
I have two node cluster database 10.2.0.4 on Linux. Someone messed up with the tnsnames file and also the local,remote listener setting are gone during the switchover.
Now I just want to replace the new tns entries,listener entries, set the local/remote listener and then register the local/remote listener. During these changes it will not affect the applications, but just want to know is there any specific steps which I have to keep in mind.
Thank you.
Edited by: 936264 on May 23, 2012 8:52 AM

Hi
Did you not back them up? :-)
The answer to your question is yes. Basically, you need your listener referenced in the listener.ora for each node, then you need to reference those listeners in your tnsnames.ora - one for your local listener and another for your remote listener. A good starting point will be what you've got in your LOCAL_LISTENER and REMOTE_LISTENER parameter - that will show the names of the entries you need to create in the tnsnames.ora. I have all entries in the listener.ora and tnsnames.ora on both nodes just for simplicity but you don't have to do that.
Any idea what port you used for your listener? The default 1521?
A couple of examples from my test system:
listener.ora (we use port 1550 by the way):
LISTENER_DEVDB_NODE1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1550)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = node1)(PORT = 1550)(IP = FIRST))
tnsnames.ora
LISTENER_DEVDB_NODE1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1550)(IP = FIRST))
LISTENER_DEVDB_NODE2 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1550)(IP = FIRST))
LISTENERS_DEVDB =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1550)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1550)(IP = FIRST))
So our local listener is LISTENER_DEVDB_NODEn for each and REMOTE_LISTENER is LISTENERS_DEVDB on each node.
Hope that helps. Any further questions let me know....
cheers,
Mark
orabackus.wordpress.com

Similar Messages

  • How to configure listener and tnsnames.ora on 10g version

    how to configure listener and tnsnames.ora on 10g version

    If you are on linux platform, on command prompt execute netmgr and configure listener fromt there. Or go to $oracle_home/network/admin/listner.ora write the following
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    For tnsnames.ora write the following
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )

  • Help on Listener and Tnsnames.ORA

    Hi guys,
    I just installed Oracle Discoverer Admin Ed Rel 4 recently and i can't connect to Discoverer as well as SQL+ due to listener and tnsnames problem. Can you pls. help me to configure the .ORA files needed for the connection. I was trying to build database and connections local to my laptop. Is this possible using TCP-Loopback?
    Appreciate any help...
    Thanks.
    Enzo

    There's another possible problem on the Windows platform: Database and Discoverer are installed in different Oracle homes, many people configure the sqlnet files inside the database's ORACLE_HOME, which are not read automatically by the other home(s). So solution is to copy all configuration files to ORACLE_HOME\network\admin of all ORACLE_HOMEs OR to set TNS_ADMIN, which points to one central location.
    Werner

  • How to write the listener.ora and tnsnames.ora

    Hi, there
    I store my oracle database in the machine A. In the machine B,
    it only install the oracle without create database. How should
    I write the
    listener.ora and tnsnames.ora? So that the machine B could
    acces the database which store in the machines A.
    Could you give me a simple example and with some description.
    Thanks you very much!!
    null

    wrjih (guest) wrote:
    : Hi, there
    : I store my oracle database in the machine A. In the machine B,
    : it only install the oracle without create database. How should
    : I write the
    : listener.ora and tnsnames.ora? So that the machine B could
    : acces the database which store in the machines A.
    : Could you give me a simple example and with some description.
    : Thanks you very much!!
    1 - you can simply copy the files from the server to the client.
    If they are correct, it must work fine
    2 - Follow the examples inside the
    $ORACLE_HOME/network/admin/samples
    3 - Follow my examples:
    I will try to make it simple:
    The server must have the listener.ora. The client does not need
    it if you don't have a database there.
    I cannot tell you what is mandatory in the file, and what is not.
    The listener.ora has the interface (addr or name)
    to listen, the port/proto, and some info about your database
    ($ORACLE_HOME and Name).
    #--- Listener.ora -- my minimal settings ---
    LISTENER =
    (ADDRESS_LIST =
    (ADDRESS=(PROTOCOL= TCP)(Host=Server)(Port= 1521))
    (ADDRESS=(PROTOCOL= IPC)(KEY = ORCL))
    STARTUP_WAIT_TIME_LISTENER = 1
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    TRACE_LEVEL_CLIENT=OFF
    SID_LIST_LISTENER =
    (SID_LIST=(SID_DESC=
    (SID_NAME = SACS)
    (ORACLE_HOME=/oracle/805)))
    #---- end of listener.ora ---
    Both machines can, and should have similar TNSNAMES.ORA:
    tnsnames.ora has the address or name of the server, and the Name
    of the database you wish to connect to.
    #--- tnsnames.ora --- minimal.
    ORCL = (DESCRIPTION =
    (ADDRESS_LIST=(ADDRESS = (PROTOCOL = TCP)(Host=Server)(Port =
    1521)))
    (CONNECT_DATA = (SID = SACS)))
    #--- end of tnsnames.ora ---
    And finally sqlnet.ora, that is very usefull for setting secure
    networks or
    just logging for looking for errors. You can also set your
    keepalive timeout.
    #--- sqlnet.ora
    TRACE_LEVEL_CLIENT = OFF
    names.directory_path = (TNSNAMES)
    SQLNET.EXPIRE_TIME = 10
    #-- end of sqlnet.ora --
    null

  • Listener.ora and Tnsnames.ora created in a different location

    Hi All,
    I have both the files i.e Listener.ora and Tnsnames.Ora in a location called D:\OraHome_1 and not in D:\OraHome_1\Network\Admin !! Also I do not have the sqlnet.ora file in either of these two locations.
    Though conn sys/pswd@sid is working fine and DB is also up and running, "conn / as sysdba" is not working. I would like to restore these files in their actual location and make "conn / as sysdba also working".
    Thanks in advance
    -Aditi

    Is perhaps TNS_ADMIN set to d:\orahome_1 ?where do i check this parameter ?
    What does output of following tell youc:\> tnsping sid
    C:\WINNT\system32>tnsping sid
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 05-JUL-2006 19:17:26
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 'complete host name')(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = SID)))
    OK (30 msec)
    ***NOTE*** this leaves a blank space when it says 'Used parameter files:' Isn't this unusual ....!!
    You may not need the listener.ora - it is kinda "optional". Not sqlnet.ora either. There are defaults to survive on.That's fine but I still would like to know why these files got created in a directory different from oraclehome\network\admin?

  • Listener.ora and tnsnames.ora

    What are the differences between the files listerner.ora and tnsname.ora in terms of their functions? Their contents are so similiar. Thks.
    A beginner

    I need to use ADO with the connection string
    "provider=sqloledb; server=OrclServer;
    DATABASE=PMSYS;UID=PMUSER;PWD=" in the application IWhy do you "need" to use the MS OLE DB data provider for SQL Server (SQLOLEDB)?
    And the rest of the connection string you are trying to use looks like one for odbc dsn-less connection. Be sure you are using the correct syntax when you have decided on the type of data access api that is suitable for your application and database.
    You should probably be using OraOLEDB.Oracle data provider, Like Sybrand suggested. Also, be aware of other obsolete providers such as msdaora and msdasql - I'd suggest that you do not use these for a new application (unless you really know what you are doing).
    If you are developing with .NET Framework, then you have another range of data providers to choose from. If you are developing for Oracle data sources, the one from Oracle should be your first choice: ODP.NET.
    Message was edited by:
    orafad

  • How can I config listener and tnsnames for 2 instances?

    Now I can create 2 instances on single machine but I can't config listener and tnsnames for them.
    Every time that I reconfig tnsnames, the newer is available but the old is unavailable. For example, there are instance A and instance B. When instace A can be connected instance B can't be connected. The error message is "ORACLE not available", although instance B is already started.

    Insert into listener.ora
    after the characteristics of
    first database
    (SID_DESC =
    (GLOBAL_DBNAME = <global_dbname>)
    (ORACLE_HOME = <oracle_home>)
    (SID_NAME = <second_sid>)
    Copy Paste the sid_desc of your first db
    and insert it with the second sid
    lsnrctl restart
    and the outputs messages will show you
    two instances and the extproc.
    null

  • WebDB Listener and tnsnames settings?

    Since I am new to the world of Oracle, I am struggling to get
    WebDB (2.0) working with Oracle (8.0.5) on RH 5.2 Linux.
    The installation works perfectly, and I can connect to the
    administration pages via my browser. However, when I attempt
    to create a site, the progress bar gets to about 10% and stops
    (I have left it over-night with no change). Looking at the
    process table, I noticed one of the oracle processes zombied
    on me.
    I suspect that I am missing correct configuration in listener.ora
    and tnsnames.ora. Could someone post (or email) an example for
    me please?
    Regards,
    -Matthew
    null

    Dynamic registration feature is available since Oracle 8i. The registration is performed by the PMON process of each database instance that has the necessary configuration in the database initialization parameter file. Dynamic service registration does not require any configuration in the listener.ora file.
    see Oracle documentation
    http://download.oracle.com/docs/cd/B10501_01/network.920/a96580/listener.htm
    thanks
    http://swervedba.wordpress.com.

  • Connect to Oracle DB using DBCP and tnsnames.ora

    I have a Spring-based web app that is running on Tomcat and uses DBCP to connect to Oracle.
    The problem:
    Need to pull database connection information from tnsnames.ora file. There is Oracle Client installed on a server, so tnsnames file is available.
    According to JDBC documentation, the following url should do the trick: jdbc:datadirect:oracle:TNSNamesFile=c:\\oracle\\product\\10.2.0\\NETWORK\\ADMIN\\tnsnames.ora;TNSServerName=FITZGERALD.SALES
    This leads to the following declaration in dataAccessContext-local.xml file:
    +<bean id="dataSource" class="org.apache.tomcat.dbcp.dbcp.BasicDataSource" destroy-method="close">+
    +<property name="driverClassName" value="oracle.jdbc.OracleDriver"/>+
    +<property name="url" value="jdbc:datadirect:oracle:TNSNamesFile=C:\\oracle\\product\\10.2.0\\db_1\\network\\admin\\tnsnames.ora;TNSServerName=TESTDB"/>+
    +<property name="username" value="${jdbc.username}"/>+
    +<property name="password" value="${jdbc.password}"/>+
    +</bean>+
    This doesn&rsquo;t work for me saying that database url is invalid.
    Can anyone provide instructions on how to set up DBCP with tnsnames.ora?
    Any help greatly appreciated.

    You are right, the I got that url may not be correct. I got it from datadirect documentation.
    I couldn�t find any good information or examples on this, but I think using TNS keyword-value pairs and tnsnames.ora is supported by type4 Oracle 10g JDBC.
    Some info I found in section �Connecting to the Database through the Applet� in JDBC Reference http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/jdbcthin.htm#CACCHECD
    I guess there is something off in that documentation though. I couldn't get it working.

  • How configure correctly Listener and TNSNAMES

    Hi to All,
    This is my scenario.
    Actually I have 2 machine under Linux, the SERVER01 and SERVER02.
    1) On both is installed Oracle DB Version 9.2.0.4.0
    2) On SERVER01 is installed Apache and PHP
    3) On SERVER01 run an application PHP that use a DB located on the same server.
    This is the LISTENER:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = orcl)
          (ORACLE_HOME = /home/oracle/OraHome1)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = server01.lan)(PORT = 1521))
          )and the TNSNAMES is
    orcl =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = server01.lan)(PORT = 1521))
        (CONNECT_DATA =
          (SID = orcl)
    )Now I need configure Listener and TNSNAMES in order to use with my Application on SERVER01 another DB (for example SID = MYDB2 and alias = MYDB2) located on SERVER02 (IP 192.168.99.98).
    I have tried with this Listener and this TNSNAMES:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = orcl)
          (ORACLE_HOME = /home/oracle/OraHome1)
        (SID_DESC =
          (SID_NAME = MYDB2)
          (ORACLE_HOME = /home/oracle/OraHome1)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = web.server01.lan)(PORT = 1521))
            (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.99.98)(PORT = 1521))
      )But when I restart the listener this error is returned:
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    Can someone help me to configure correctly the listener and resolve my problem ?
    Thank You and best regards.
    Gaetano

    (ADDRESS = (PROTOCOL = TCP)(HOST = server01.lan)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = server01.lan)(PORT = 1521))server01.lan doesn't look like a valid hostname to me. Were you able to ping to this hostname?

  • I upgraded to lion, now that I am restarting my mac, it is asking for a password. mind you i never set a password in the begining. so i used my start up cd and re set the password and restarted my mac only to be faced with the same delima. user password.

    I upgraded to lion, now that I am restarting my mac, it is asking for a password. mind you i never set a password in the begining.
    So i used my start up cd and re set the password and restarted my mac only to be faced with the same delima. user password please.
    I am currently in safe mode, otherwise I can't log on to mymac
    Please help, anyone

    thank you to all who responded. the final line was that I had to reboot and loss all of my info.
    this was per apple store intelligence.

  • I got a new ipad and went buy music on iTunes and in is telling me that this is a new device on this account and wants me to answer some security questions I dont remember setting thes up and dont know the answers how do i reset the security questions

    i got a new ipad and went buy music on iTunes and in is telling me that this is a new device on this account and wants me to answer some security questions I dont remember setting thes up and dont know the answers how do i reset the security questions

    Click here and search the article for '2 out of 3' without the quotes; this generally involves either a message being sent to your rescue email address or contacting the iTunes Store staff directly.
    (74313)

  • On the initial set up for apple tv it just sits there trying to set the date and time . it is a wireless setup and the ipaddress and router address is correct . I can't get by this screen

    On the initial set up for apple tv it just sits there trying to set the date and time . it is a wireless setup and the ipaddress and router address is correct . I can't get by this screen. The setting is on automatic and I have picked a city in my time zone yet it still tries to set a time and date but fails.
    thanks

    Make sure router is up to date. Try ethernet to rule out any wifi issues. Reboot ATV and router.

  • How to set the size and position of JFrame

    hey all,
    i have a frame and i devide the frame into three panels, i want to make the top panel the lergest and make it square. and the rest two panels in small and in the bottom of the frame.
    could you please help me to set the size and position of the jpanel
    Thanks

    If u want the bottom 2 panels to be on the same level, u can try setting ur content pane to use the BorderLayout and the adding the 3 panels to it with BorderLayout.NORTH(for the TOP panel), BorderLayout.EAST(RIGHT panel) and BorderLayout.WEST(for LEFT panel).
    Don't know if this is what ur looking for, maybe u could describe more on ur layout with a sample image or something?

  • How to set the width and heigh in the popup window

    Hi All,
    I tried to show a report in a popup window style.
    In the column link section, I defined the URL like the following:
    javascript:popupURL('f?p=&APP_ID.:128:&SESSION.::&DEBUG.::P128_PAY_RATE,P128_PAY_TERMS:#PAY_RATE#,#PAY_TERMS#'). how and where to set the height and width for page 128?
    Thank you,
    spark

    Here is a sample of the JavaScript function I re-use that opens a popup window. You'll notice that it includes the width and height of the popup window:
      function callTCPopup (formItem1) {
        var formVal1 = formItem1;
         var url;
      url = 'f?p=&APP_ID.:1111:&APP_SESSION.::::P1111_TC_ID:' + formVal1;
      w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
      if (w.opener == null)
      w.opener = self;
      w.focus();
      }You could also look at using a Modal Page (Skillbuilders' plugin - watch the video for use).

Maybe you are looking for

  • 30-pin hdmi adapter stopped working

    I have a 3rd generation ipad with a 30-pin connector. I bought an hdmi adaptor and it worked fine for a dozen or so times. After a reboot it stopped working. ipad running iOS 6.1.3. My iphone is on the same version of ios but the adaptor works on my

  • Batch changing iPhoto photo dates.

    I've imported several thousand scanned photos into iPhoto 7.1.3, and changed the dates to the dates they was taken either by modifying the information window, or by using batch date change. My intention was to modify the original files so that export

  • "Either 10 sec with no data" or "Insufficient bandwidth"

    Have been trying for past two weeks since I got this computer to successfully video iChat with someone. I live in Orange County, New York (ISP Cable - Road Runner) and my family lives in Tacoma, WA. They have the identical system I have - they have c

  • Lightroom for iPad - if you have CC Subscription

    As per the Subject, apparently Lightroom is now available for the iPad, but only if you have a CC Subscription http://petapixel.com/2014/04/07/adobe-brings-lightroom-ipad-creative-cloud-subscribers/ I don't understand the restriction at all!

  • Why do media elements disappear from the timeline & slide sorter?

    I have not renamed or moved original elements, yet when I recently opened an on-going project in Photoshop Elements 4.0, about 1/4 of the media elements were gone. Why? Is there a way to troubleshoot this? Anyway to recover these slides? Can't see th