Dbua tnsnames and listener

Hi
When I use dbua to upgrade the database to 11g,
I notice that dbua doesnt create tnsnames.ora and listener.ora for the new 11g oracle home.
What is the recommended approach to resolve this?
1-)
Remove old listener from old oracle home
Initiate dbau
create new listener in new oracle home
create new tnsnames in new oracle home
2-)
shutdown listener from old oracle home
initiate dbua
copy listener and tnsnames files from old oracle home to new oracle home

Ora_83 wrote:
Hi
Apart from above question, I have another question.
When a database is upgraded with dbua, I notice that dbua will automatically create initilization parameters file.
How can it determine the values in new spfile? Does it copy the existing values from old spfile and remove deprricated ones and add new parameters automatically ?It will copy the values from the old spfile and adds new parameters automatically.
Regards
Rajesh

Similar Messages

  • Changin from IPs to hostnames in tnsnames and listener heads to TNS-12541

    Hello.
    In order to prevent problems and extrawork in future with planned IP changes, i want to change the tnsnames and listener.ora server configuration files.
    Now they are using the IP in the HOST parameter, and I want to use the hostname. But it doesnt works:
    TNSNAMES.ORA:
    VCSBD =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = tcp)(HOST = 62.37.231.78)(PORT = 1524))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = vcsbd)
    LISTENER.ORA:
    LISTENER_VCSBD=
            (ADDRESS_LIST=
                    (ADDRESS=
                            (PROTOCOL=tcp)
                            (HOST=62.37.231.78)
                            (PORT=1524)
                    (ADDRESS=
                            (PROTOCOL=ipc)
                            (KEY=vcsbd)
    SID_LIST_LISTENER_VCSBD=
            (SID_LIST=
                    (SID_DESC=
                            (GLOBAL_DBNAME=vcsbd)
                            (SID_NAME=vcsbd)
                            (SERVICE_NAME=vcsbd)
                            (ORACLE_HOME=/usr/oracle/product/11.2.0)
    TESTING: --
    $ tnsping vcsbd
    TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 05-OCT-2012 13:32:30
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Archivos de parámetros utilizados:
    /usr/oracle/product/11.2.0/network/admin/sqlnet.ora
    Adaptador TNSNAMES utilizado para resolver el alias
    Intentando contactar con (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST = 62.37.231.78)(PORT = 1524)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = vcsbd)))
    Realizado correctamente (0 mseg)I want to change the HOST parameter to server hostname, in order to make oracle resolve the hostname from the /etc/hosts.
    But wen I change it, I get TNS-12541 errors when tnsping. Ping works, but tnsping not.
    updating TNSNAMES:
    VCSBD =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = tcp)(HOST = servervcs)(PORT = 1524))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = vcsbd)
    updating LISTENER.ORA
    LISTENER_VCSBD=
            (ADDRESS_LIST=
                    (ADDRESS=
                            (PROTOCOL=tcp)
                            (HOST=servervcs)
                            (PORT=1524)
                    (ADDRESS=
                            (PROTOCOL=ipc)
                            (KEY=vcsbd)
    SID_LIST_LISTENER_VCSBD=
            (SID_LIST=
                    (SID_DESC=
                            (GLOBAL_DBNAME=vcsbd)
                            (SID_NAME=vcsbd)
                            (SERVICE_NAME=vcsbd)
                            (ORACLE_HOME=/usr/oracle/product/11.2.0)
    TESTING: ---
    $ cat /etc/hosts:
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               servervcs localhost.localdomain localhost
    62.37.231.78            servervcs
    #62.37.231.68           servervcs
    ::1             localhost6.localdomain6 localhost6
    $ lsnrctl reload LISTENER_VCSBD
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 05-OCT-2012 13:37:05
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Conectándose a (ADDRESS=(PROTOCOL=tcp)(HOST=servervcs)(PORT=1524))
    TNS-12541: TNS:no hay ningún listener
    TNS-12560: TNS:error del adaptador de protocolo
      TNS-00511: No hay ningún listener
       Linux Error: 111: Connection refused
    Conectándose a (ADDRESS=(PROTOCOL=ipc)(KEY=vcsbd))
    El comando ha terminado correctamente
    $ lsnrctl status LISTENER_VCSBD
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 05-OCT-2012 13:37:12
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Conectándose a (ADDRESS=(PROTOCOL=tcp)(HOST=servervcs)(PORT=1524))
    TNS-12541: TNS:no hay ningún listener
    TNS-12560: TNS:error del adaptador de protocolo
      TNS-00511: No hay ningún listener
       Linux Error: 111: Connection refused
    Conectándose a (ADDRESS=(PROTOCOL=ipc)(KEY=vcsbd))
    LISTENER STATUS
    Alias                     LISTENER_VCSBD
    Versión                   TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    Fecha de Inicio       28-MAY-2012 12:04:16
    Tiempo Actividad   130 días 1 hr. 32 min. 56 seg.
    Nivel de Rastreo        off
    Seguridad               ON: Local OS Authentication
    SNMP                      OFF
    Parámetros del Listener   /usr/oracle/product/11.2.0/network/admin/listener.ora
    Log del Listener          /usr/oracle/diag/tnslsnr/efacturaES-BD1/listener_vcsbd/alert/log.xml
    Recibiendo Resumen de Puntos Finales...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=62.37.231.78)(PORT=1524)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=vcsbd)))
    Resumen de Servicios...
    El servicio "vcsbd" tiene 2 instancia(s).
      La instancia "vcsbd", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
      La instancia "vcsbd", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "vcsbdXDB" tiene 1 instancia(s).
      La instancia "vcsbd", con estado READY, tiene 1 manejador(es) para este servicio...
    El comando ha terminado correctamente
    $ ping servervcs
    PING servervcs (127.0.0.1) 56(84) bytes of data.
    64 bytes from servervcs (127.0.0.1): icmp_seq=1 ttl=64 time=0.017 ms
    64 bytes from servervcs (127.0.0.1): icmp_seq=2 ttl=64 time=0.013 ms
    --- servervcs ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 999ms
    rtt min/avg/max/mdev = 0.013/0.015/0.017/0.002 ms
    $ tnsping vcsbd
    TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 05-OCT-2012 13:32:33
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Archivos de parámetros utilizados:
    /usr/oracle/product/11.2.0/network/admin/sqlnet.ora
    Adaptador TNSNAMES utilizado para resolver el alias
    Intentando contactar con (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST = servervcs)(PORT = 1524)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = vcsbd)))
    TNS-12541: TNS:no hay ningún listenerAny clue?
    what i'm doing wrong? what did I forget?
    Regards
    Edited by: elvegaa_esp on 05-oct-2012 4:48

    Sure
    $ echo $HOSTNAME
    AOC-BD1
    $ /sbin/ifconfig
    eth0      Link encap:Ethernet  HWaddr **:**:**:**:**:**
              inet addr:192.168.76.8  Bcast:192.168.76.255  Mask:255.255.255.0
              inet6 addr: fe80::221:85ff:fe35:74c/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:281062361 errors:0 dropped:0 overruns:0 frame:0
              TX packets:68084207 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1817935227 (1.6 GiB)  TX bytes:3856945523 (3.5 GiB)
              Base address:0x3000 Memory:dfb40000-dfb60000
    eth0:1    Link encap:Ethernet  HWaddr **:**:**:**:**:**
              inet addr:192.168.76.10  Bcast:192.168.76.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              Base address:0x3000 Memory:dfb40000-dfb60000
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:210984342 errors:0 dropped:0 overruns:0 frame:0
              TX packets:210984342 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:3935512631 (3.6 GiB)  TX bytes:3935512631 (3.6 GiB)
    $ cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               AOC-BD1 localhost.localdomain
    192.168.76.8            AOC-BD1 localhost.localdomain
    $ cat /usr/oracle/product/10.2.0/network/admin/tnsnames.ora
    AOC-BD1_AOCPROD_HN=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=AOC-BD1)(Port=1521)))(CONNECT_DATA=(service_name=aoc-bd1_aocprod)(INSTANCE_NAME=aocprod)(SID=aocprod)))
    $ cat /usr/oracle/product/10.2.0/network/admin/listener.ora
    listener_aoc-bd1_aocprod=
       (ADDRESS_LIST=
          (ADDRESS=
              (PROTOCOL=tcp)
              (HOST=AOC-BD1)
              (PORT=1521)
         (ADDRESS=
              (PROTOCOL=ipc)
              (KEY=aoc)
    SID_LIST_listener_aoc-bd1_aocprod=
       (SID_LIST=
          (SID_DESC=
               (GLOBAL_DBNAME=aoc-bd1_aocprod)
               (SID_NAME=aocprod)
               (SERVICE_NAME=aocprod)
               (ORACLE_HOME=/usr/oracle/product/10.2.0)
    STARTUP_WAIT_TIME_listener_aoc-bd1_aocprod=0
    CONNECT_TIMEOUT_listener_aoc-bd1_aocprod=0
    $ lsnrctl status listener_aoc-bd1_aocprod
    LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 08-OCT-2012 13:20:17
    Copyright (c) 1991, 2006, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=AOC-BD1)(PORT=1521))
    STATUS of the LISTENER
    Alias                     listener_aoc-bd1_aocprod
    Version                   TNSLSNR for Linux: Version 10.2.0.3.0 - Production
    Start Date                17-DEC-2011 09:49:05
    Uptime                    248 days 13 hr. 13 min. 56 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /usr/oracle/product/10.2.0/network/admin/listener.ora
    Listener Log File         /usr/oracle/product/10.2.0/network/log/listener_aoc-bd1_aocprod.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AOC-BD1)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=aoc)))
    Services Summary...
    Service "aoc-bd1_aocprod" has 1 instance(s).
      Instance "aocprod", status UNKNOWN, has 1 handler(s) for this service...
    Service "aocprod" has 1 instance(s).
      Instance "aocprod", status READY, has 1 handler(s) for this service...
    Service "aocprodXDB" has 1 instance(s).
      Instance "aocprod", status READY, has 1 handler(s) for this service...
    Service "aocprod_XPT" has 1 instance(s).
      Instance "aocprod", status READY, has 1 handler(s) for this service...
    The command completed successfully
    $ tnsping AOC-BD1_AOCPROD_HN
    TNS Ping Utility for Linux: Version 10.2.0.3.0 - Production on 08-OCT-2012 13:20:37
    Copyright (c) 1997, 2006, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=AOC-BD1)(Port=1521)))(CONNECT_DATA=(service_name=aoc-bd1_aocprod)(INSTANCE_NAME=aocprod)(SID=aocprod)))
    OK (0 msec)

  • Automatic renaming hostname in tnsnames and listener.ora

    Is it realy not possible to change hostname automaticly in TNSNAMES.ORA and LISTENER.ORA after installing an image-CD with Windows XP and Oracle11GR1. In Windows , there is a SID Change Tool and in Oracle?
    Thank's for your help !
    René

    Again, take a look at running "netca /silent ..." with a response file.
    Another (perhaps better) option would be to burn a cd with a software only install and that upon "activation" would then run a dbca noninteractive session to configure a database (I assume you want one, mentioning listener.ora).

  • Tnsnames and listener

    I was finally able to get the installation of Oracle DB 11 with client. But not clear how the tnsnames.ora and listener.ora work. Appreciate if someone can clarify following.
    1 Why is tnsnames.ora is found both in the client and server directories. Why is it required on the server host?
    2 listener.ora is only in the server host? Is that correct? Not required on client?

    Trying to make it simple, I am answering the second question first
    2. listener.ora is only in the server host? Is that correct? Not required on client?Listener.ora contains the listener service configuration (Name, DBName, Port, etc), Typically, it must exist only at the Server, and client connects to it using their tnsnames.ora definitions.
    Why is tnsnames.ora is found both in the client and server directories. Why is it required on the server host?whenever it is required to connect to database using TNS, an entry in tnsnames.ora required be made. Since may tools (e.g. OEM) uses the tnsnames to connect to database therefore, it is necessary to configure the tnsnames.ora at server.
    Rgd,
    Ahmer
    N.B.: To make a good reputation on forums, and if you want that your questions will be answered timely. Kindly adopt the habit of marking your questions closed as soon as you get the answer. and be courteous to the people who trying to help.

  • ORA-12505 error after setup tnsnames and listener properly.

    Hello.
    I'm having a very common issue. I can't connect using tnsnames on Windows 2003 server.
    Facts.
    1 - Tnsnames.ora file is properly set.
    2 - Listener.ora file is properly set.
    3 - tnsping works with no issues.
    4 - Windows service is up and running.
    However, I'm getting this error.
    C:\Documents and Settings\sabreadm>sqlplus lps/first1@lm3dprd1
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 24 12:32:26 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12505: TNS:listener does not currently know of SID given in connect
    descriptor
    Enter user-name:
    ERROR:
    ORA-01017: invalid username/password; logon denied
    listener.ora file content
    # listener.ora Network Configuration File: D:\Apps\oracle\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    TRACE_LEVEL_LISTENER = USER
    TRACE_DIRECTORY_LISTENER = D:\Apps\oracle\NETWORK\ADMIN
    LOG_FILE_LISTENER = listener.log
    LOG_DIRECTORY_LISTENER = D:\Apps\oracle\NETWORK\ADMIN
    TRACE_FILE_LISTENER = listener.trc
    MAX_REG_CONNECTIONS_LISTENER = 3000
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.58.44)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = lm3dtst1)
    (ORACLE_HOME = D:\Apps\oracle)
    (SID_DESC =
    (SID_NAME = lm3dprd1)
    (ORACLE_HOME = D:\Apps\oracle)
    tnsnames.ora file content.
    # tnsnames.ora Network Configuration File: D:\Apps\oracle\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    lm3dtst1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (Host = 192.168.58.44)
    (Port = 1521)
    (CONNECT_DATA =
    (SID = lm3dtst1
    (GLOBAL_NAME = lm3dtst1)
    lm3dprd1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (Host = 192.168.58.44)
    (Port = 1521)
    (CONNECT_DATA =
    (SID = lm3dprd1
    (GLOBAL_NAME = lm3dprd1)
    Any advice will be highly appreciated.
    Thanks.
    Alex.

    Alex,
    Next time when you post code or output or any configuration, enclose them between \ tags to preserve formatting
       Your code or output \h4.  Anyway, modify your tnsnames.ora file on your client machine and add this lm3dprd1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.58.44)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = dedicated)
    (SERVICE_NAME = lm3dprd1)
    (INSTANCE_NAME=lm3dprd1)
    Regards
    OrionNet                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Tnsnames and listener issue for Datagaurd

    Hi All,
    OS:AIX,
    DB: 10g
    I am trying to create a standby database on the same server. I have configured the tnsnames.ora, my speciifcations are the following:
    Primary database:ettest
    Standby datbase:ettestdr
    tns-entries:
    ettest =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.2.454.00)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ettest)
    ettestdr =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.2.454.00)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ettestdr)
    while i am trying to tnsping ettest , i am getting success but i failing to tnsping ettestdr.
    Kindly tell me if i am doing anything wrong?
    BR
    Sphinx
    Edited by: $phinx19 on Dec 11, 2012 8:30 AM

    $phinx19 wrote:
    Hi All,
    OS:AIX,
    DB: 10g
    I am trying to create a standby database on the same server. I have configured the tnsnames.ora, my speciifcations are the following:
    Primary database:ettest
    Standby datbase:ettestdr
    tns-entries:
    ettest =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.2.454.00)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ettest)
    ettestdr =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.2.2.x)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ettestdr)
    while i am trying to tnsping ettest , i am getting success but i failing to tnsping ettestdr.
    Kindly tell me if i am doing anything wrong?
    BR
    SphinxIf they are both on the same server, why do you specify two different IP addresses?
    And "10.2.2.x" is not avalid IP address. That "x" must be a number in the range 0 to 255.

  • Tnsnames and listener SDU parameter

    In all my time working on Oracle I have not yet implemented the SDU parameter. I now have to look at a database (10gr2) which appears to be exhibiting large amounts of NETWORK waits. I have seen a few documents relating to SDU but am after peoples experience with the parameter. What value have people given the parameter? The MTU on the NICS is 1500 and I have seen suggestions that the SDU should be related to this value.
    regards
    Alan

    fyi, I haven't gotten positive (or any) results from changing sdu/tdu values on Windows systems (though its been awhile since I've tried). I'm told changing them on UNIX systems can be effective in the right circumstances.
    There are (were) articles like this on Metalink, uh, My Oracle Support provided 1. you have an account, 2. it is working when you try to get in, and 3. you can actually find the artcles from a search since the upgrade last month

  • 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

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

  • 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

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

  • Missing dbsnmp, tnsname.ora and listener.ora

    I am puzzle with missing files:
    dbsnmp
    tnsname.ora
    listener.ora
    they arent in oracle_home/network/admin or
    /oracle_home/bin
    I have 8.1.5.0 dbserver and dbclient installed on
    rh6.0. the listener is working fine.
    OEM on NT system
    I need to have intelligent agent up and running.
    null

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

  • 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

  • ORA-28547 : tnsnames, sqlnet & listener dont have any problem

    Hi ,
    I have reinstalled oracle 10g client on my system. I can connect with every running server except one Oracle 10g server which is running on windows 64/2003 server.
    I have checked the tnsname and sqlnet file, didnt find any problem.
    I had reconfigured it through net assistance but still I cant connect to the server.
    The details of error is :
    ORA-28547: connection to server failed, probable Oracle Net admin error
    the tnsnames is :
    ORASRV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.31.1.250)(PORT = 1521))
    (CONNECT_DATA =
    (SID = ORCL)
    (SERVER = DEDICATED)
    and sqlnet is :
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    I want to know ... Is there any thing else which I need to configure becaz I have configured others servers too & I am able to connect with them with the same configuration.
    I will be grate ful to you if you can guide me on right way to solve it .
    regards

    ORA-28547: connection to server failed, probable Oracle Net admin error
    Cause: A failure occurred during initialization of a network connection from a client process to the Oracle server: The connection was completed but a disconnect occurred while trying to perform protocol-specific initialization, usually due to use of different network protocols by opposite sides of the connection. This usually is caused by incorrect Oracle Net administrative setup for database links or external procedure calls. The most frequent specific causes are: -- The connection uses a connect string which refers to a Heterogeneous Services agent instead of an Oracle server. -- The connection uses a connect string which includes an (HS=) specification.
    Action: Check Oracle Net administration in the following ways: -- When using TNSNAMES.ORA or an Oracle Names server, make sure that the client connection to the ORACLE server uses the correct service name or SID. -- Check LISTENER.ORA on the connection end point's host machine to assure that this service name or SID refers to the correct server. -- Confirm in TNSNAMES.ORA or the equivalent service definition that the connect string does NOT contain (HS=).

Maybe you are looking for