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)
)

Similar Messages

  • 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

  • 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

  • How to configure the client tnsnames.ora parameters with a MTS Server

    i have modified init.ora and start my oracle
    as a MTS instance.
    my client tnsnames.ora is the dedicate server
    model.
    how can i modify it and my clent can use
    MTS server.
    null

    Hi,
    I dont think u will have to configure anything seperatley on the tnsnames.ora file to connect to a MTS Database.
    I Hope i am right.
    Regards,
    Ganesh R

  • Configuring listener and tnsnames

    I have installed Oracle 10g Database, Oracle AS Infastructure, Oracle AS Middle Tier on the same machine. Can anyone tell me how to configure the single listener for all the 3 Oracle Products.

    It would be easier to help you if you provided OS and Oracle versions...
    Anyway, you shouldn't need any particular configuration : just start the listener from the highest Oracle version involved (probably the database).

  • 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?

  • 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

  • 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

  • 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

  • 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 to configure modem and connect internet and play mp3

    Hello friends
    I am using sun solaris 8 intel edition .
    I am using windowsXP,RedHat Linux and Sun Solaris 8 Intel Editon. I am using Internet on windows and linux platform but i cannot find any device configure tool in solaris 8 , So Please tell me how to configure modem and commands for connection internet and It is possible to play mp3 songs on solaris
    Thaking in Advance
    Piyush Patel
    PI Solution

    Look at the manual for pppd. Also take a look at OSS for sound card support (http://www.opensound.com) and xmms for your MP3 audio (http://www.xmms.org)

  • Path of Sqlnet.ora and Tnsnames.ora

    Hi all
    Why I have one
    Sqlnet.ora
    in
    C:\ORAWIN95\NETWORK\ADMIN
    and
    one in
    C:\ORAWIN95\NET80\ADMIN
    and
    Tnsnames.ora
    in
    C:\ORAWIN95\NET80\ADMIN
    and
    C:\ORAWIN95\NETWORK\ADMIN
    and
    C:\ORAWIN95\NET80\TNSAPI
    why they are duplicated?
    thanks
    Sobrinho

    It looks like you have (or had) multiple versions of SQL*Net.
    Oracle 8 put everything in %oracle_home%\net80 while Oracle 7 and 9 use %oracle_home%\network

  • Why sqlnet.ora  ?  How it is differener from "tnsnames.ora" ?

    Hi,
    Why sqlnet.ora ? How it is differener from "tnsnames.ora" ?
    thanks
    siva

    Seems you need learn to basics. Please reffer to documentation: http://tahiti.oracle.com

Maybe you are looking for

  • I'm getting an iPhoto incomplete message when I try to open my iPhoto.

    I'm now getting an error message that says, "You can't open the application iPhoto because it may be damaged or incomplete."  The icon disappeared out of Launcher, and in my Applications folder, there's a circle with a line through it over the iPhoto

  • The Exchange Rate in Commitment Managment

    Now in our system, the commitment check for PR/PO (table COOI) , the the foreign amount to local amount is based on M rate. Is it possible to changed by other exchange rate type?  If yes, how to do it? Thanks a lot.

  • Foriegn currency valuation

    Hello expert, I am facing the greate problem, the scenariois  : I am recieving the down payment from export customer @48.25  2000/- usd ==  96500/- inr after that the invoice is raised @49.25 of 5000/- USD =247500 /- inr and when i do incoming paymen

  • Itunes says memory on ipod is full but is actually empty

    Hi, I hope someone can help me with this: I recently downloaded itunes 7 as recommended for my Ipod Nano 2nd generation, my ipod is showing, but when i try to sync my library with my ipod it tells me there is not enough space to do this, the memory b

  • SAP Business one Workflow

    Hi experts, can i get an expert in SAP business one workflow to help with development of a functional workflow for my SAP business one? Expert can let me know and its very urgent. Response to my help will be much appreciated. Regards Justice