Listener&tnsnames.ora

i'm verymuch confused is server/client configuration,
i need you people's help,
i have posted both server/clients Listener&tnsnames.ora,
which i configured.
server listener.ora(test1)
SID_LIST_LISTENER =
*(SID_LIST =*
*(SID_DESC =*
*(SID_NAME = PLSExtProc)*
*(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
*(PROGRAM = extproc)*
*(SID_DESC =*
*(GLOBAL_DBNAME = TEST1)*
*(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
*(SID_NAME = TEST1)*
TEST1 =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop029.tvsil.com)(PORT = 1521))*
SID_LIST_ORCL =
*(SID_LIST =*
*(SID_DESC =*
*(GLOBAL_DBNAME = TEST1)*
*(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
*(SID_NAME = TEST1)*
LISTENER =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))*
ORCL =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop041.tvsil.com)(PORT = 1522))*
server tnsnames.ora
TEST1 =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop029.tvsil.com)(PORT = 1521))*
*(CONNECT_DATA =*
*(SERVER = DEDICATED)*
*(SERVICE_NAME = TEST1)*
orcl =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop041.tvsil.com)(PORT = 1522))*
*(CONNECT_DATA =*
*(SERVICE_NAME = orcl)*
EXTPROC_CONNECTION_DATA =
*(DESCRIPTION =*
*(ADDRESS_LIST =*
*(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))*
*(CONNECT_DATA =*
*(SID = PLSExtProc)*
*(PRESENTATION = RO)*
client listener.ora(orcl)
SID_LIST_LISTENER =
*(SID_LIST =*
*(SID_DESC =*
*(SID_NAME = PLSExtProc)*
*(ORACLE_HOME = E:\Sample1oracle\product\10.2.0\db_2)*
*(PROGRAM = extproc)*
LISTENER =
*(DESCRIPTION_LIST =*
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop041.tvsil.com)(PORT = 1523))*
*(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))*
ORCL =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop041.tvsil.com)(PORT = 1522))*
TEST1 =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop029.tvsil.com)(PORT = 1521))*
Client tnsnames.ora
LISTENER_TEST1 =
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop029.tvsil.com)(PORT = 1521))*
TEST1 =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop029.tvsil.com)(PORT = 1521))*
*(CONNECT_DATA =*
*(SERVER = DEDICATED)*
*(SERVICE_NAME = TEST1)*
ORCL =
*(DESCRIPTION =*
*(ADDRESS_LIST =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = desktop041.tvsil.com)(PORT = 1522)))*
*(CONNECT_DATA =*
*(SERVICE_NAME = orcl)*
EXTPROC_CONNECTION_DATA =
*(DESCRIPTION =*
*(ADDRESS_LIST =*
*(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))*
*(CONNECT_DATA =*
*(SID = PLSExtProc)*
*(PRESENTATION = RO)*
*)*

user11345217 wrote:
i'm verymuch confused is server/client configuration,
i need you people's help,
i have posted both server/clients Listener&tnsnames.ora,
which i configured.
server listener.ora(test1)
SID_LIST_LISTENER =
*(SID_LIST =*
*(SID_DESC =*
*(SID_NAME = PLSExtProc)*
*(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
*(PROGRAM = extproc)*
*(SID_DESC =*
*(GLOBAL_DBNAME = TEST1)*
*(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
*(SID_NAME = TEST1)*
TEST1 =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop029.tvsil.com)(PORT = 1521))*
SID_LIST_ORCL =
*(SID_LIST =*
*(SID_DESC =*
*(GLOBAL_DBNAME = TEST1)*
*(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)*
*(SID_NAME = TEST1)*
LISTENER =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))*
ORCL =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop041.tvsil.com)(PORT = 1522))*
Well, that is certainly the most, uh, <i>interesting</i> listener.ora I've ever seen .... where did you come up with all that?
server tnsnames.ora
TEST1 =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop029.tvsil.com)(PORT = 1521))*
*(CONNECT_DATA =*
*(SERVER = DEDICATED)*
*(SERVICE_NAME = TEST1)*
orcl =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop041.tvsil.com)(PORT = 1522))*
*(CONNECT_DATA =*
*(SERVICE_NAME = orcl)*
EXTPROC_CONNECTION_DATA =
*(DESCRIPTION =*
*(ADDRESS_LIST =*
*(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))*
*(CONNECT_DATA =*
*(SID = PLSExtProc)*
*(PRESENTATION = RO)*
client listener.ora(orcl)
<snip>A listener.ora on the client makes as much sense as a radiator on a 1965 Volkswagen. The listener is strictly a server-side process. It's whole reason for living is to "listen" (hence its name) for connection requests.
Client tnsnames.ora
LISTENER_TEST1 =
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop029.tvsil.com)(PORT = 1521))*
TEST1 =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = Desktop029.tvsil.com)(PORT = 1521))*
*(CONNECT_DATA =*
*(SERVER = DEDICATED)*
*(SERVICE_NAME = TEST1)*
ORCL =
*(DESCRIPTION =*
*(ADDRESS_LIST =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = desktop041.tvsil.com)(PORT = 1522)))*
*(CONNECT_DATA =*
*(SERVICE_NAME = orcl)*
EXTPROC_CONNECTION_DATA =
*(DESCRIPTION =*
*(ADDRESS_LIST =*
*(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))*
*(CONNECT_DATA =*
*(SID = PLSExtProc)*
*(PRESENTATION = RO)*
*)*OK, let's clear a few things up.
First, as mentioned, the listener is purely a client-side process. Hence there is no use of a listener.ora on the client.
Second, a single listener, listening on a single port, can service multiple databases of multiple versions running from multiple oracle homes. It listens for a connection, sets it up (on a different port than its listening on) and is then out of the picture for that connection. It establishes the connection, but does not sustain it. Your listener.ora is far more complex (dare I say convoluted) than need be.
On the client side (and the server can also act as a client), the tnsnames.ora serves the purpose of resolving a an alias (a tns service name) to an actual destination on the network.
Assume you have the following in your tnsnames.ora:
larry =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVICE_NAME = curley)
  )Now, when you issue a connect, say like this:
$> sqlplus scott/tiger@larrytns will look in your tnsnames.ora for an entry called 'larry'. Next, tns sends a request to (PORT = 1521) on (HOST = myhost) using (PROTOCOL = TCP), asking for a connection to (SERVICE_NAME = curley).
Where is (HOST = myhost) on the network? When the request gets passed from tns to the next layer in the network stack, the name 'myhost' will get resolved to an IP address, either via a local 'hosts' file, via DNS, or possibly other less used mechanisms. You can also hard-code the ip address (HOST = 123.456.789.101) in the tnsnames.ora.
Next, the request arrives at (PORT = 1521) on (HOST = myhost). Hopefully, there is a listener on myhost configured to listen on (PORT = 1521), and that listener knows about (SERVICE_NAME = curley). If so, you'll be connected.
What can go wrong?
First, there may not be an entry for 'larry' in your tnsnames. In that case you get "ORA-12154: TNS:could not resolve the connect identifier specified" No need to go looking for a problem on the host, with the listener, etc. If you can't place a telephone call because you don't know the number (can't phone your telephone directory or can't find the party you are looking for listed in it) you don't look for problems at the telephone switchboard.
Maybe the entry for larry was found, but myhost couldn't be resolved to an IP address (say there was no entry for myhost in the local hosts file). This will result in "ORA-12545: Connect failed because target host or object does not exist"
Maybe there was an entry for myserver in the local hosts file, but it specified a bad IP address. This will result in "ORA-12545: Connect failed because target host or object does not exist"
Maybe the IP was good, but there is no listener running: "ORA-12541: TNS:no listener"
Maybe the IP was good, there is a listener at myhost, but it is listening on a different port. "ORA-12560: TNS:protocol adapter error"
Maybe the IP was good, there is a listener at myhost, it is listening on the specified port, but doesn't know about SERVICE_NAME = curley. "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor"

Similar Messages

  • No TNSNAME.ORA or listener.ora

    I am new to oracle.(learner)
    I was using oracle 11g and using oracle sql developer.
    It was working fine.
    I had to use oracle form builder, which I installed but I could not connect to database from form builder.It was giving ORA-12154:TNS:could not resolve the connect identifier specified and then I tried copying oracles tnsname.ora to form builder’s tnsname.ora and then it was giving TNS error no listener descriptor found or so on
    I tried googling and I tried every possible way discussed online
    and not being able to resolve it I de-installed (completely following steps discussed online even deleting registry entries) both oracle and  form builder (WHICH WAS IN F drive )
    and then I reinstalled the oracle 11g and form builder 10g again in E drive (earlier one was in F drive)
    Now as earlier oracle is working fine
    But now strange thing is now there aren't  any tnsnames.ora and listener.ora files in oracle_home/network/admin (also not in form builder’s directory) But database is running fine
    Any help

    997069 wrote:
    I am new to oracle.(learner)
    I was using oracle 11g and using oracle sql developer.
    It was working fine.
    I had to use oracle form builder, which I installed but I could not connect to database from form builder.It was giving ORA-12154:TNS:could not resolve the connect identifier specified and then I tried copying oracles tnsname.ora to form builder’s tnsname.ora and then it was giving TNS error no listener descriptor found or so on
    I tried googling and I tried every possible way discussed online
    and not being able to resolve it I de-installed (completely following steps discussed online even deleting registry entries) both oracle and  form builder (WHICH WAS IN F drive )
    and then I reinstalled the oracle 11g and form builder 10g again in E drive (earlier one was in F drive)
    Now as earlier oracle is working fine
    I can see all the services running,I can connect database using sql plus and sql developer and also issue sql command.
    I am just using oraclass database created during installation process.
    But as usual form builder is NOT working giving TNS:could not resolve the connect identifier specified
    But now strange thing is now there aren't  any tnsnames.ora and listener.ora files in oracle_home/network/admin (also not in form builder’s directory) But database is running fine
    Database control shows the listener.ora path to F drive(earlier installed one which I deinstalled ) but there is not any app/…/oracle database folder in F drive at all(I deleted it completely when I deinstalled it) and its not hidden as well.
    So I am really confused what I can do next.
    I am not able to login into database from form builder
    It gives error
    ORA-12154:TNS:could not resolve the connect identifier specified
    WHERE CAN I FIND THE TNSNAMES.ORA AND LISTENER.ORA file(how to find it)
    Any helplistener.ora file is NOT required to start or use Oracle Listener.
    tnsnames.ora is a plain text file that can be a single line like below
    ORCL=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL)))

  • Tnsnames.ora / listener.ora files on Oracle Standby Database

    Hi I am configuring an Oracle Standby Database to my production system 4.7 and Oracle 9.2.0.4
    My production server is: PR01
    Database SID: PRD
    Standby database server is: PRDR
    Database SID: PRD
    I have already configured the server to a standby database offline backup. Was generated the control files of the standby database and the database is in standby mode.
    Now I will create a script to start the synchronization of offline redolog from the production server to standby server.
    I have a question: in the document SAP Oracle Standby Database, tells me I should change the tnsnames.ora production server pointing to an additional entry disaster recovery server. The tnsnames.ora  file must have two entries???  corresponding to a production server and another to the disaster recovery server??
    In several links of oracle tells me I should configure listener.ora disaster recovery server that is true??
    Guys my question is: where should I change my listener.ora and tnsnames.ora files?
    Please clear my doubt.
    Best regards,
    Desiree

    Hi Desiree,
    The entry in your TNSNAMES.ORA is a nothing but a tns service, when you define archive log destination it will point to a service. This service's host name will be resolved in your tnsnsmaes.ora file.
    Below is the eg of an entry in pfile:
    *.log_archive_dest_2='SERVICE=<service_name> ARCH OPTIONAL'
    Below is the entry in your tnsnames.ora file
    <service_name>.WORLD=
      (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = <DR_HOST>)
              (PORT = 1527)
        (CONNECT_DATA =
           (SID = <DB_SID>)
           (GLOBAL_NAME = <DB_SID>.WORLD)
    So, your tnsnames.ora will have one entry for your host and the other for the DR host, i.e two entries.
    Listener entry for the convenience when there is a switch over.
    Regards,
    Bala

  • Figuring out location of tnsnames.ora and listener.ora file.

    Hello.
    Is there a way to figure out what my oracle instance is reading in terms of tnsnames.ora and/or listener.ora file? According to the 10g docs, they can be found in a few places:
    1. $ORACLE_HOME/network/admin
    2. $TNS_ADMIN
    3. in a global configuration directory, on solaris it is /var/opt/oracle.
    How would I know which one my instance/lsnrctl is reading, aside from checking out differences in behavior?
    Plus, how would I change where to look for the file?
    thanks.

    On Solaris you can use 'truss' on the binary and grep for all the open() calls to see exactly which files are being used or tested for in order. I had an issue once where a tnsnames.ora was being used and it turned out to be $HOME/.tnsnames.ora (IIRC). There are similar calls under Linux (strace).

  • Tnsname.ora and listener.ora files in RAC environment.

    Want to clear my concept regarding
    tnsname.ora and listener.ora files in RAC environment. Is there any good notes on Metalink for that?

    Check this metalink note, it covers specific RAC issues:
    Configuration of Load Balancing and Transparent Application Failover
    Note:226880.1
    Werner

  • 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

  • TNSNAMES.ora and LISTENER.ora tuning

    Hello!
    I have a PE 8.1.7 installed.
    When connecting fron SQL Navigator to Oracle DB I get an error message and sqlnet.log contains the following:
    Fatal NI connect error 12538, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=Andrei1.domain)(CID=(PROGRAM=E:\SQL Navigator 3\sqlnav3.exe)(HOST=MYHOST)(USER=kr))))
    VERSION INFORMATION:
    TNS for 32-bit Windows: Version 8.1.6.0.0 - Production
    Time: 30-MAR-2001 13:50:21
    Tracing not turned on.
    Tns error struct:
    nr err code: 0
    ns main err code: 12538
    TNS-12538: TNS:no such protocol adapter
    ns secondary err code: 12560
    nt main err code: 508
    TNS-00508: No such protocol adapter
    nt secondary err code: 0
    nt OS err code: 0
    Why is it stated that TNS version is 8.1.6.0.0? Could it be that OracleOraHome81TNSListener was overwritten when I installed Designer 6i? What should I do in this case?
    Configuration files are:
    # TNSNAMES.ORA Network Configuration File: E:\oracle\ora81\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ANDREI1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = Andrei1.domain)
    GIOP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 2481))
    (CONNECT_DATA =
    (SERVICE_NAME = Andrei1.domain)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = Andrei1.domain)
    (PRESENTATION = http://admin)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    # LISTENER.ORA Network Configuration File: E:\oracle\ora81\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
    (DESCRIPTION =
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 2481))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\oracle\ora81)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = Andrei1.domain)
    (ORACLE_HOME = E:\oracle\ora81)
    (SID_NAME = Andrei1)
    null

    What are the wait events you are getting?
    You got to be careful with SDU packet size, mostly the default is suitable for all the environments. If you increase the packet size to say 8K, you may be wasting the space if you are not able to utilizing all 8K. That would have an adverse affect as well.

  • 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

  • What should have in equal tnsnames,ora and listener.ora?

    Hi forum members again I'm very new in oracle, and I'm trying to create a sucessfull net service name, using oracle net configuration assitant, but when I try to test it I got this error, .***"""ORA-12514: TNS:listener does not currently know of service requested in connect descriptor."""*** And I have read that tnsnames.ora and listener.ora should have some parameters in common, but exactly I don't know, Do you know what parameters should be? or The ORA-12514 problem , doesn't have relation with the tnsnames.ora and listener files?, If doesn't wich is the reason of this message?
    By the way I put what contain these files:
    ---------------------------------------------------------------------------listener.ora
    # listener.ora Network Configuration File: /opt/oracle/product/10.1.0.3/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = oracle.gentoo)
    (ORACLE_HOME = /opt/oracle/product/10.1.0.3)
    (SID_NAME = oracle)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    SAVE_CONFIG_ON_STOP_LISTENER = TRUE
    TRACE_LEVEL_LISTENER = USER
    /////////////////////////////////////////////////////////////////////////////tnsnames.ora
    # tnsnames.ora Network Configuration File: /opt/oracle/product/10.1.0.3/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    NORACLE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = tux)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = noracle)
    By the way what must be the username and the pasword that ask the ORACLE CONFIGURATION ASSINTANT to test the net service name? Must be the user name and password of the system user?
    Thanks in advance

    OK, here we go ... extra long as I intend to bookmark this and make reference, as this is a very common question ... skip to the bottom if you want my guess to the solution.
    Oracle Net Services (formerly SQL*Net, Net8, Oracle Networking) has two parts - the client and the server side. I'll discuss the server first, then the client.
    1) Server, and specifically Listener:
    The Oracle Listener is a monitor that listens for Oracle service requests on one or more ports. Usually this is on TCP/IP port 1521. When it gets an Oracle request from any network client, it checks whether it's in the list of Oracle Services for which it is monitoring. If found, it will contact that service, request a connection for the client, tell the service and client where and how to connect, and get itself out of the loop.
    Notes:
    a) It can listen on behalf of any number of services;
    b) A service can be a database instance, an EPG service (the DBMS_EPG is the replacement for Apache in the database in 10gR2), an external job, etc;
    c) One listener can listen on behalf of multiple database instances;
    d) The services can be listed in the LISTENER.ORA or they can self-register;
    e) If databases self-register, they use the initialization parameter LOCAL_LISTENER
    f) If self-registering, the listener should be up before the database
    g) Shutting down the listener will stop future connections, but has no impact on existing ones.
    One frequent point of confusion - a connection request on the local machine may loop out to the network and contact the listener, or it may bypass the listener entirely and use a bequeath adapter. The 'beq' connection is the 'normal' connection by "sqlplus / as sysdba" or "sqlplus system/manager" on the local machine (note that no @instance was used ... in *nix, that is derived from the $ORACLE_SID environment variable)
    In your listener.ora, you specify global_dbname=oracle.gentoo and sid_name=oracle. I assume therefore you can find an initoracle.ora or spfileoracle.ora somewhere on your system.
    2) Client:
    A client that wants to connect to an Oracle service uses the client side of the Oracle Net Services. The definition of client includes: any Oracle client utiltiy (SQLPlus, SQLLoad, Forms, Reports, etc.); an Oracle database instance that wants to make a external procedure call or a dblink; third party tools such as ODBC and JDBC.
    In SQL*Net version 1 the connection was made by specifying the target in the connect string ("user/password@host:listener_port:sid") and that is also used these days by many JDBC drivers, especially the Oracle Thin JDBC driver. Oracle's Easy connection mechanism uses a similar variant.
    Since SQL*Net Version 2, Oracle has supported the concept of alias translation. Basically it's very similar in concept to DNS - give it the name of the service and tell it where to find the translation table. The translation tables include TNSNAMES.ORA, ONAMES servers (deprecated in 10g), LDAP usng Oracle's OiD. The choice of translation table, and alternate order if the lookup fails in one, is stored in the SQLNET.ORA (if one exists).
    Assuming TNSNAMES.ORA, the chain of events is:
    - get the alias to look up (in your case NORACLE);
    - if the SQLNET.ORA has a DEFAULT_DOMAIN setting, (often =WORLD) append a dot and that value to the alias;
    - go to the TNANSMES.ORA file pointed by the TNS_ADMIN variable (environment or registry), or (if not set) the one in the $ORACLE_HOME/network/admin directory;
    - look up the first occurance of the alias;
    - if found, use the protocol specified to request a connection to the host, usin DNS to unravel the host to an IP address if necessary (in your case TCP/IP, to TUX) ;
    - if host connection if made, connect to the listener that is configured for that port (in your case 1521);
    - if listener is there, ask it for connection to the service (in your case, you are asking for instance 'noracle');
    i if the listener knowwss about the service, it will hand off the request.
    Your problem appears to be asking for instance 'noracle' in the tnsnames but listeneing for 'oracle' at the listener. Of course, I can not see any auto-registered instances which you would get from "lsnrctl status" on the server.

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

  • Best Practices: tnsnames.ora and listener.ora

    I would like to know if it is better to use the public ip / public hostname or the virtual ip / virtual hostname in the tnsnames.ora and listener.ora files on the servers and clients. I have seen examples where the vip is used for all areas, and I have seen examples where the public has been used in all areas. And of course even some examples where both are used. It makes more sense to me to use the vip, as that is what is failed over But what is the public ip used for if all connections are made to the vip?
    Thanks

    Database version: 10.2.0.4
    Server OS: Red Hat Linux Enterprise 4.6 (RHEL4)
    Oracle Rac configuration: 4 node cluster.
    host file:
    10.1.1.50 rac1.somcompany.com rac1priv # RAC1
    10.1.1.51 rac2.somcompany.com rac2priv # RAC2
    10.1.1.52 rac3.somcompany.com rac3priv # RAC3
    10.1.1.53 rac4.somcompany.com rac4priv # RAC4
    172.16.71.50 rac1.somcompany.com rac1pub # RAC1
    172.16.71.51 rac2.somcompany.com rac2pub # RAC2
    172.16.71.52 rac3.somcompany.com rac3pub # RAC3
    172.16.71.53 rac3.somcompany.com rac4pub # RAC4
    172.16.72.50 rac1.somcompany.com rac1vip # RAC1
    172.16.72.51 rac2.somcompany.com rac2vip # RAC2
    172.16.72.52 rac3.somcompany.com rac3vip # RAC3
    172.16.72.53 rac3.somcompany.com rac4vip # RAC4
    So if I was to create a tnsnames files on the servers, would I use the vip information as the host or the public information?
    Would I use the same tnsnames files for the clients?
    Would I use the vip or public address in the listener files?
    Thanks

  • Configuring tnsnames.ora / listener.ora with HOST = localhost

    Dear Oracle experts,
    presently I'm trying to configure an Oracle installation on a Win2k server
    to work with HOST = localhost entries in my tnsnames.ora and listener.ora.
    I have to do that because I want to use that Oracle installation as an image
    for several computers which will get different IPs and computer names.
    My problem is, taht I only can configure my entries with a real IP adres (127.0.0.1 does not work ) or with the present name of the system but not with localhost or 127.0.0.1.
    My listener.ora looks like below :
    # listener.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SDU = 4096)
    (SID_NAME = EMS)
    (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
    (PRESPAWN_MAX = 10)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost )(PORT = 1521))
    The listener above lead to a
    ERROR - ORA-12541: TNS:no listener
    if I try to connect via iSQLPlus. If I exchange HOST = localhost with HOST = mydnsname the I can connect to the computer via isqlplus.
    Is there any possibility to configure the listener and tnsnames without using real IP adresses ?
    Best regards,
    Daniel Wetzler

    Hi maran,
    thanks for your answer.
    i started the listener from cmd and had the output below :
    C:\Documents and Settings\ECS>lsnrctl start
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 22-MAR-2007 16:04
    :32
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
    System parameter file is D:\oracle\product\10.1.0\Db_1\network\admin\listener.or
    a
    Log messages written to D:\oracle\product\10.1.0\Db_1\network\log\listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Produ
    ction
    Start Date 22-MAR-2007 16:04:33
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle\product\10.1.0\Db_1\network\admin\listener.o
    ra
    Listener Log File D:\oracle\product\10.1.0\Db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "EMS" has 1 instance(s).
    Instance "EMS", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\Documents and Settings\ECS>
    In my listener.log I found the following information :
    TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production on 22-MAR-2007 16:11:42
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    System parameter file is D:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
    Log messages written to D:\oracle\product\10.1.0\Db_1\network\log\listener.log
    Trace information written to D:\oracle\product\10.1.0\Db_1\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=1672
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    22-MAR-2007 16:11:43 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=ECS))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=168821248)) * status * 0
    So it seems that my lister is running fine, isn't it ?
    But I cannot conect to my database....
    I pasted my tnsnames.ora below.
    Perhabs there's a bug I didn't fins yet. But if I replace in both files t(tnsnames.ora and listener.ora the "localhost" with my local IP it works just fine...
    # tnsnames.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    SIG =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost )(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = SIG)
    Hpe someone can help.....
    Best regards,
    Daniel

  • Tnsnames.ora and listener.ora

    I am studying oracle and came accross
    tnsnames.ora and listener.ora file.
    Can any one tell me in simplified terms about these 2 files. what are they and what exactly they do?

    When you are accessing Oracle over network you need a listerner service (usually on server box) and SQLNet or Net8 client on client machine. Listener.ora specifies the parameters for listener process and tnsnames.ora contains the SQLNet or Net8 connection informations about database server(s)

  • Tnsnames.ora and listener.ora dissappearing

    We are ruinning oracle 9.2.0.6.0 on Solaris 9 on a Sun-Fire-440.
    We are having an issue where the above mentioned files (tnsnames.ora and listener.ora) keep dissappearing on this box.
    We cannot seem to find anything in the unix logfiles or oracle log files, has anybody got any ideas on what could be causing this?
    Mark Stewart.

    If the files are being deleted then the timestamp on the directory which contains them will be updated ( given by ls -l ) . this would enable one to find out the time when they were deleted ( as long as nothing else in the same directory is being changed ) . It would be interesting to see if the deletes always happen at the same time , which would imply some automatic process , perhaps running under cron.

  • Oracle 10g I don't have the files listener.ora, tnsnames.ora and sql.ora

    Hi folks,
    I uninstalled my Oracle 10g and when I re installed I got success, but when I went to the folder \network\admin didn't have the files listener.ora, tnsnames.ora and sql.ora. I have been trying during more than one month start my listener only because I need access the Oracle database from my Java application and I got the message:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    As additional information, I got no problem to access the SQL*Plus.
    =======================
    C:\>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 18-APR-2006 10:53
    :58
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 61: Unknown error
    ====================
    C:\>ipconfig
    Windows IP Configuration
    Ethernet adapter Local Area Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Ethernet adapter Wireless Network Connection 2:
    Connection-specific DNS Suffix . : myhome.westell.com
    IP Address. . . . . . . . . . . . : 192.168.0.2
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.0.1
    Thanks in advance.

    Thanks ALL, I GOT IT, but I used other solution.
    Since I installed and uninstalled the Oracle several times, it keeps also many different Services for the listener. I don't know why, it didn't create a Service for my actual instalation with its path. In other words, all the services remained in the services.msc panel, had the path that was already removed from the Windows folder.
    Then what I did, was that I picked one service, took its name (OracleOraDb10g_home1TNSListener), went to regedit to [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraDb10g_home1TNSListener] and simply changed the image path that was setted for the one that was removed (C:\oracle\product\10.1.0\Db_2\BIN\TNSLSNR ) for mine that is installed right now
    (C:\oracle\product\10.1.0\Db_1\BIN\TNSLSNR). Nothing more and finally works.
    I have tried something in the services.msc panel before, as you can see in this forum at the thread "I can't start listener in the Control Painel/Admin Tools/ Services", but I never got
    success.
    Appreciate your time!!

Maybe you are looking for

  • Duvida de CTe

    Fernando/Henrique/Bernardo Alguem sabe me informar se a SAP já está disponibilizando alguma solução para a validação do CTe junto ao SEFAZ? Dei uma pesquisada aqui no FORUM e não vi nada significativo a respeito do posicionamento da SAP sobre o assun

  • Searching multiple databases...

    I have a number of databases, all using the same schema, which I would like to search. I'm wondering what the best way forward is. Options:- Open a connection to each database, search them all separately, and then amalgamate the results into a single

  • Everything erased by a "genius"?

    So my imac has been freezing about 3-5 times a day for the past month, but I have been swamped with design work for school that I have no had time to go in and get it checked out. Today I went to the genius bar and for about 3 hours they do tests and

  • Legato Single Server Version

    Hi All, I want some information regarding LSSV and Oracle Secure Backup. Wether both are same or is there any difference between them. Also want to know that if LSSV is the part of Oralce Companion Tools then how to install the LSSV. EMC Networker fo

  • Need a "Find my iPhone" for the iphone 3

    I am trying to find a way to track my iphone 3 - similar to "Find my IPhone" for the newer phones