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

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)

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

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

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

  • 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

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

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

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

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • 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

  • Why does itunes automatically close when I try and listen to a podcast?

    When I click iTunes and then click on podcast it automatically closes iTunes.  I can listen to my music but podcast won't play.  why is this and how do i fix it?

    If it's just a single podcast that's doing this it may be corrupt.  If that's the case delete it and try re-downlading it.  If it's all podcasts then you may need to restore your phone.  Follow this guide to do this: http://support.apple.com/kb/HT1414, being sure to back up your phone at step 6 (you will be able to restore your phone to this backup at the end of the process).

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

Maybe you are looking for

  • ISE Guest Portal Failover For New Requests

    I have one controller and two ISE 1.2 nodes (primary and secondary)  for resiliency, not capacity.  Each ISE node has one interface for Management and one interface for Guest Portal.  PSN is active on both nodes.  The WLC chooses the ISE node (with f

  • Condition Type not populating in MM PO

    Hi Guy's for some reason the Z condition Type is not getting populated in the PO. All the config is in place and I have recently maintained the Z condition type in MEK1 as well. Defined the access sequence,Defined the condition type, Defined the cal

  • Why is it taking so long to update to 3.0?

    Whenever I try to update to 3.0 it always takes up to 4 hours. Is there something wrong with it or my computer?

  • Files Not Updating in Local View for Co-worker

    When I add a file (.html, .pdf, whatever) to our website's folder on our local server, I see it instantly in my Files window tab local view in Dreamweaver CS5 (Windows).  But when my co-worker adds a file to that same folder, it does not come up in h

  • Select JList item on Mouse over Event

    Hoi All, I am trying to find a way to select the items in a JList when the mouse is moved over the item. Any help is appreciated Kind Regrads , Werns