Meaning of sqlnet, listener and tnsnames

I am a newbie.
what is the purpose of sqlnet.
what is meaning of i the listener:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db1)
(PROGRAM = extproc)
what is the meaning of in tnsnames:
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PLSExtProc)
This is a windows 10g database on my laptop.
I am getting error message when connecting using Toad:
ORA-12514 - tns Listener could not resolve service name given in connect descriptor
Thank You....................

first, open the net manager assistant, and add you database to the services of your listener, after this check your tnsnames.ora file, to see if the database service is on the file, for more information, search in the database documentation chapters about Oracle Net.
And sqlnet.ora, is the file that recognize the way you will connect to the database, try to read, the Oracle Databas 10g Administrator's Guide.

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

  • 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

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

  • Adcfgclone.pl dbTechStack on Target DB removes listener and tnsnames files

    Hello:
    I am doing a first-time clone from my PRD to my TST instance, and have undergone the following steps:
    1. perl adpreclone.pl dbTier on Source DB
    2. perl adpreclone.pl appsTier on Source AppTier
    3. Copy APPL_TOP, COMMON_TOP, ORACLE_HOME, IAS_ORACLE_HOME from Source AppTier to Target AppTier.
    4. Run perl adcfgclone.pl dbTechStack on Target DB.
    At this point is where I start running into issues. The dbTechStack deletes/recreates the tnsnames.ora, sqlnet.ora, and listener.ora files, and the DB can no longer startup. The below is in the logfiles. Am I doing something wrong? I guess the issue is not so much with it deleting/recreating the files, as it is with the values it puts into the files (i.e. DB port = 3001)
    Executing Technology Stack Configuration...
    Executing runAutoConfig...
    Deleting files of type INSTALL
    Checking for file: /u01/oracle/WMSTST/db/tech_st/11.1.0/network/admin/WMSTST_x07tst00/sqlnet.ora
    File exists
    File deleted
    Processing driver file: /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/template/addbtmpl.drv
    Checking for file: /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/install/WMSTST_x07tst00/txkConfigDbOcm.pl
    File exists
    File deleted
    Checking for file: /u01/oracle/WMSTST/db/tech_st/11.1.0/dbs/initWMSTST.ora
    File exists
    File deleted
    Checking for file: /u01/oracle/WMSTST/db/tech_st/11.1.0/network/admin/WMSTST_x07tst00/listener.ora
    File exists
    File deleted
    Checking for file: /u01/oracle/WMSTST/db/tech_st/11.1.0/network/admin/WMSTST_x07tst00/tnsnames.ora
    File exists
    File deleted
    Testing for RAC specific parameters before running autoconfig
    No RAC specific parameters were found, running with CVM
    Starting CVM in INSTE8_SETUP mode
         Using Context file : /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/WMSTST_x07tst00.xml
    Attempting to create a back up of the Context file
    Created back up file of name :
    /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/out/WMSTST_x07tst00/12111155/WMSTST_x07tst00.xml
    ===========================================================================
    Starting synchronization of file system Context file and its templates with those in the database
    Database connection : Failed
    OAM Context editing support feature: Unverified
    OAM Customization support feature : Unverified
    File system template : /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/template/adxdbctx.tmp
    Checking for customizations to Context template
    Warning: Unable to connect to Database.
    If the system is OAM enabled, this may result in loss of customizations.
    Looking for custom template at : /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/template/custom/adxdbctx.tmp
    Custom template : Not available
    Customizations found : None
    File system Context file :/u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/WMSTST_x07tst00.xml
    Checking the Context file for possible updates from the Database
    Warning: Unable to connect to Database.
    If the system is OAM enabled, this may result in loss of customizations and the Context files in DataBase and in the file system may be unsynchronized
    Thanks!
    Edited by: user4434301 on Dec 11, 2012 12:39 PM

    Excellent. I copied the template file from another instance and the following messages were at the end of the logfile:
    Skipping Profile Phase
    Skipping Apply Phase
    Completed runAutoConfig...
    ApplyDBTechStack Completed Successfully.
    However I'm not completely certain this is entirely correct preclone. Can you tell me why the Profile and Apply Phases were skipped and why the following was displayed upon the screen on completion?
    Completed Apply...
    Tue Dec 18 11:25:39 2012
    Starting database listener for WMSTST:
    Running:
    /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/scripts/WMSTST_x07tst00/addlnctl.sh start WMSTST
    Logfile: /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/log/WMSTST_x07tst00/addlnctl.txt
    You are running addlnctl.sh version 120.1.12010000.4
    Starting listener process WMSTST ...
    LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 18-DEC-2012 11:25:39
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Starting /u01/oracle/WMSTST/db/tech_st/11.1.0/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.1.0.7.0 - Production
    System parameter file is /u01/oracle/WMSTST/db/tech_st/11.1.0/network/admin/WMSTST_x07tst00/listener.ora
    Log messages written to /u01/oracle/WMSTST/db/tech_st/11.1.0/log/diag/tnslsnr/x07tst00/wmstst/alert/log.xml
    TNS-01151: Missing listener name, WMSTST, in LISTENER.ORA
    Listener failed to start. See the error message(s) above...
    addlnctl.sh: exiting with status 1
    addlnctl.sh: check the logfile /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/log/WMSTST_x07tst00/addlnctl.txt for more information ...
    That file shows the following:
    Starting database listener for WMSTST:
    Running:
    /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/scripts/WMSTST_x07tst00/addlnctl.sh start WMSTST
    Logfile: /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/log/WMSTST_x07tst00/addlnctl.txt
    You are running addlnctl.sh version 120.1.12010000.4
    Starting listener process WMSTST ...
    LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 18-DEC-2012 11:25:39
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Starting /u01/oracle/WMSTST/db/tech_st/11.1.0/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.1.0.7.0 - Production
    System parameter file is /u01/oracle/WMSTST/db/tech_st/11.1.0/network/admin/WMSTST_x07tst00/listener.ora
    Log messages written to /u01/oracle/WMSTST/db/tech_st/11.1.0/log/diag/tnslsnr/x07tst00/wmstst/alert/log.xml
    TNS-01151: Missing listener name, WMSTST, in LISTENER.ORA
    Listener failed to start. See the error message(s) above...
    addlnctl.sh: exiting with status 1
    addlnctl.sh: check the logfile /u01/oracle/WMSTST/db/tech_st/11.1.0/appsutil/log/WMSTST_x07tst00/addlnctl.txt for more information ...
    Should I have stopped the DB or listener before running the script?
    Edited by: user4434301 on Dec 18, 2012 9:18 AM

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

  • 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

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

  • Config Listener and access to Enterprise Manager

    Hello,
    I just installed Oracle 11g R2 on Windonws 7 64bit and I created a database. When I try to create a listener I get the following message on the console:
    ServiceAliasException: Could not initialize Service Alias: TNS - 044
    12: Problem reading or entering an address.
    Caused by: oracle.net.config.SOExceptionConfig: TNS-04413: found a shared object in the secundary tree.
    Can I access to Oracle Enterprise Manager without having configured a listener?
    thank u in advance

    set all path properly....
    In the C:\oracle\product\10.2.0\db_1\network\ADMIN directory, rename the listener.ora, sqlnet.ora and tnsnames.ora to listener.ora.bak, sqlnet.ora.bak and tnsnames.ora.bak.
    Then rerun netca (Net Configuration Assistant) to recreate the sqlnet.ora (second option on the menu), listener.ora (first option) and tnsnames.ora (third option).
    After exiting netca, start the listener by issuing the command ‘lsnrctl start’.
    Best Regrades,
    Shishir Tekade
    Edited by: user8244528 on Nov 27, 2012 4:33 AM

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

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

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

Maybe you are looking for