Listener.ora and tnsnames.ora and sqlnet.ora

Hello newbie here, trying to look into simple RAC setup with 2 nodes (A.this.com, B.this.com), one service (PROD.this.com), one listener and one instance on each node (listener PRODlist1 using instance PRODinstance1 on node A, listener PRODlist2 using instance PRODinstance2 on node B), one database (ORCL).
db global db name = orcl.this.com
I would like loadbalancing=on, with TAF basic (no preconnect, retries 10, delay 5.)
With dynamic service registration.
What should the tnsnames.ora and listener.ora and sqlnet.ora look like?
Have read all sorts of literature, getting confused...

I post my sample configuration here:
DBA1.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(FAILOVER=ON)
(LOAD_BALANCE=ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))
(CONNECT_DATA =
(BACKUP=DBA2)
(SERVICE_NAME = DBA.WORLD)
DBA2.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(FAILOVER=ON)
(LOAD_BALANCE=ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1521))
(CONNECT_DATA =
(BACKUP=DBA1)
(SERVICE_NAME = DBA.WORLD)
)

Similar Messages

  • Pre-install on hp-ux/sqlnet.ora config problems.

    I have come across a small issue when I am going through the oracle pre-install manual for 1.0.2.1.0
    It says modify the sqlnet.ora file with the domain name in NAMES.DEFAULT.DOMAIN. My sqlnet.ora file is as follows:
    # SQLNET.ORA Network Configuration File: /u00/app/oracle/product/8.1.7/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    # Last update: May 3rd 2001
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    NAMES.DEFAULT_DOMAIN = (intranet.condenast.co.uk)
    # REM'd byNCW, Bond, as it was interfering with CNAPS database backups
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    The NAMES.DEFAULT_DOMAIN is causing an issue with the backups. Has anyone else seen this problem as it is delaying my portal install. Any help would be very appreciated.
    Thanks,
    Bruce
    null

    I have come across a small issue when I am going through the oracle pre-install manual for 1.0.2.1.0
    It says modify the sqlnet.ora file with the domain name in NAMES.DEFAULT.DOMAIN. My sqlnet.ora file is as follows:
    # SQLNET.ORA Network Configuration File: /u00/app/oracle/product/8.1.7/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    # Last update: May 3rd 2001
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    NAMES.DEFAULT_DOMAIN = (intranet.condenast.co.uk)
    # REM'd byNCW, Bond, as it was interfering with CNAPS database backups
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    The NAMES.DEFAULT_DOMAIN is causing an issue with the backups. Has anyone else seen this problem as it is delaying my portal install. Any help would be very appreciated.
    Thanks,
    Bruce
    null

  • SQLPLUS, TOAD and TNSNAMES

    I am having a look at the latest version of Toad (9.7.2.5) and have installed a virtual PC for it with a 10.2 client. I currently use version 8.0.0.47 with a 9i client and it works fine. Even though I have copied my existing SQLNET.ORA and TNSNAMES.ORA onto the virtual PC I cannot make a normal connection to the database, the new version of Toad does allow a 'Direct' as opposed to a TNS connection and if I put in the either the IP or the HOST (from TNSNAMES) along with port 1521 and the SERVICE_NAME (from TNSNAMES) I get connected to the database
    Here is the entry from my TNSNAMES.ORA
    DB_NET_SERVICE_NAME=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=db.office.lan)
    (PORT=1521)
    (CONNECT_DATA=
    (SERVER=dedicated)
    (SERVICE_NAME=DB_SERVICE_NAME)
    Using the TNS option, I get ORA-12154: TNS:could not resolve the connect identifier specified (DB_NET_SERVICE_NAME)
    I have checked the TNSNAMES.ORA file and it all looks OK, I have used Toad to check the syntax and it is OK
    SQLNET.ORA has
    NAMES.DEFAULT_DOMAIN = office.lan
    NAMES.DIRECTORY_PATH=(TNSNAMES, EZCONNECT)
    and either
    SQLNET.AUTHENTICATION_SERVICES=(NONE)
    or
    SQLNET.AUTHENTICATION_SERVICES=(NTS)
    I have tried both.
    I am not using TNS_ADMIN and both TNSNAMES.ORA and SQLNET.ORA are in the default directory
    Any ideas as to what is wrong?
    I can't connect in SQLPLUS either, what do I need to enter in the HOST String?

    Re NAMES.DEFAULT_DOMAIN = office.lan
    When it is commented out
    tnsping DB_NET_SERVICE_NAME gets the response
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=db.office.lan) (PORT=1521)) (CONNECT_DATA= (SERVER=dedicated) (SERVICE_NAME=DB_SERVICE_NAME)))
    OK (20 msec)
    TOAD (connecting to the DB DB_NET_SERVICE_NAME) gets the response
    ORA-12154: TNS:could not resolve the correct identifier specified (DB_NET_SERVICE_NAME)
    When it is commented back in
    tnsping DB_NET_SERVICE_NAME gets the response
    Used parameter files:
    C:\oracle\product\10.2.0\client_2\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve name
    TOAD (connecting to the DB DB_NET_SERVICE_NAME) gets the response
    ORA-12154: TNS:could not resolve the correct identifier specified (DB_NET_SERVICE_NAME)

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

  • Trouble with listener.ora and tnsnames.ora

    I can't get the listener running.
    Trying to start the listener results in the following message:
    LSNRCTL for MacOS X Server: Version 9.2.0.1.0 - Beta on 04-JAN-2003 23:35:28
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Message 1070 not found; No message file for product=network, facility=TNSTNS-12545: Message 12545 not found; No message file for product=network, facility=TNS
    TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
    I suspect i have a configuration error in listener.ora or tnsnames.ora, but I'm stumped at this point.
    Can anyone help?
    Much appreciated.
    John freberg
    TNS-00515: Message 515 not found; No message file for product=network, facility=TNS
    MacOS X Server Error: 2: No such file or directory

    Assume you've got $ORACLE_HOME
    We'd end run listener problems by setting/exporting TNS_ADMIN and putting tnsnames.ora and listener.ora files in a standard place ( ../dbs for our site) rather than Oracle's defaults.
    We'd also found that there is a parsing problem of the tnsnames.ora file by 9.2 ( its in AIX and MAC versions at least). Placing the entire description section on a single line consistently resolved problem.
    Opening a Tar on that one.
    So Now we're accessing Dbs based on mac and AIX from Multiple MAC and AIX remote sites with SQLPLUS and thin clients.
    JD

  • Database connectivity requiring oracle wallet, tnsnames.ora, and sqlnet.ora

    We have a new datasource that I need to write a report against.  In order to access the db, I have to install an Oracle wallet on my pc that contains a certificate.  I then have an entry in the sqlnet.ora file that references this wallet, and I have an entry in my tnsnames file.  I wrote a report successfully on my pc.  We then have our Business Objects installation on a Sun Solaris machine with Unix.  We installed the wallet, added the sqlnet.ora entry, and the tnsnames.ora entry.  I am able to connect to the db from the unix command prompt by typing sqlplus username@dbname successfully.  However, when I place my Crystal Report in Bus. Obj. I cannot get it to work.  I go to the CMC, select the report, choose Process, Database.  I am entering Use custom database logon info and choosing Oracle as my database driver.  I then enter the tnsnames entry into the server and enter my username and password and check the use use same database logon as when report is run.  I get the error The database logon information for this report is either incomplete or incorrect.  I'm guessing the report is not using the certificate in the wallet when it is trying to log on, but I'm not sure.  Does anyone have any suggestions or experience with this?  Thanks in advance for any help.

    Hi Angie,
    you should install the 32bit Oracle driver on your Solaris machine and adjust the LD_LIBRARY_PATH environment variable (in the profile of the BOBJ installation user) to point to the path of the 32bit libraries of your Oracle driver.
    BOBJ is not a native 64bit software and can therefore work only with the 32bit versions of the database drivers.
    Regards,
    Stratos
    Edited by: Efstratios Karaivazoglou on Jul 15, 2009 4:49 PM

  • 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

  • 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

  • Virtual address configure listener.ora and tnsnames.ora files on Solaris10

    Hi,
    I have installed Oracle 10g R2 on Solaris 10 U4 SPARC.
    I need to configure Oracle 10g to work with Storage Foundation for Oracle v5.0.
    After Oracle installation listener.ora listens on host IP address.
    So I have changed to listens on the Virtual IP address. This is a requirement:
    All listeners to be configured must listen to the same virtual IP address
    Could you please tell what to correct to have my Oracle working correctly?
    listener.ora:
    -bash-3.00$ cat listener.ora
    # listener.ora Network Configuration File: /export/home/u01/app/oracle/product/10.2.0/Db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /export/home/u01/app/oracle/product/10.2.0/Db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.160.19.64)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    tnsnames.ora:
    -bash-3.00$ cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /export/home/u01/app/oracle/product/10.2.0/Db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.160.19.64)(PORT = 1158))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Also connecting by web browser http://10.160.19.64:1158/em I am not able to start listener:
    Details TNS-12541: TNS:no listener
    Using the command listener start it starts successfully.
    Kind regards,
    Daniel

    The port in listener.ora nad tnsnames.ora are now the same - 1521
    After this trying logining by Web page there is an error:
    Error
    Io exception: The Network Adapter could not establish the connection
    When I run netca tool and I reconfigure listener netca change the IP address to sun3 which has 10.160.19.49. After this listener works fine and I am able to connect by Web page.
    bge0 10.160.19.49 - is the base IP address
    bge0:2 10.160.19.64 - is the virtual IP address
    I want listener to listen on 10.160.19.64.

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

  • TNSNAME.ORA and SQLNET.ORA

    Hi there!
    My problems is regarding connection to Ora Frms/reports which for so many days I am trying but to no avail.
    Some are suggesting to copy TNSNAME.ORA AND SQLNET.ORA for in order to work better connection on FORMS/REPORT.
    Kindly advice on how to do it.
    thnaks
    null

    If you use 8i, form and report use TNS
    config from sqlplus. If you can get in sqlplus does not mean you can log in
    form ad report. You need to Config the TNS in an option called something like
    'Network Config Assistant'or similar. You should find it from the list.
    Another is to edit the TNSname.ora in the admin directory under you form and report initial path with the command from the previous mail

  • 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

  • Tnsnames.ora, sqlnet.ora & listener.ora files are not exit

    DB version: 10.2
    Hello All,
    I just joined the project and notice tnsnames.ora, sqlnet.ora & listener.ora files are not exit under $ORACLE_HOME/network/admin.
    But still we can connect to the database,
    From command prompt or via enterprise manager studio from client site.
    Any idea?
    OR
    what is the best way to create above files in the existing database?
    DN

    tnsnames.ora and sqlnet.ora are client side files, listener.ora and sqlnet.ora are server side files.
    Listener.ora need not exist if using defaults and dynamic registration of services. It may be possible to cope without all those files, depending on the environment.
    Is the database on the local or remote computer and how are you connecting (from sqlplus)?
    Maybe you have a tnsnames.ora somwhere else? (Try using find command) Maybe TNS_ADMIN is set?

Maybe you are looking for