Tns confusion

hello,
i have 11.2 installed i can log into my database
when i run lsnrctl status it tells me my database is running and it can see it
if i try and connect from an external ip i cant
if i run tnsping for my ip i get TNS-03505: Failed to resolve name
but if i do it as localhost ip i get success
if i run nestat -a |grep 1521 i get
unix 2 [ ACC ] STREAM LISTENING 4280 /var/tmp/.oracle/sEXTPROC1521
i appreciate this proably is more of a network problem than an oracel problem but
a) have i got the right things listenning?
b) where does oracle get the ip from?
c) why would my public ip and my localhost address not resolve to the same thing
thanks
ALex

set321go wrote:
hello,
i have 11.2 installed i can log into my database
when i run lsnrctl status it tells me my database is running and it can see it
if i try and connect from an external ip i cant
if i run tnsping for my ip i get TNS-03505: Failed to resolve name
but if i do it as localhost ip i get success
if i run nestat -a |grep 1521 i get
unix 2 [ ACC ] STREAM LISTENING 4280 /var/tmp/.oracle/sEXTPROC1521
i appreciate this proably is more of a network problem than an oracel problem but
a) have i got the right things listenning?
b) where does oracle get the ip from?
c) why would my public ip and my localhost address not resolve to the same thing
thanks
ALexA couple of important points.
First, the listener is a server side only process. It's entire purpose in life is to receive requests for connections to databases and set up those connections. Once the connection is established, the listener is out of the picture. It creates the connection. It doesn't sustain the connection. One listener, with the default name of LISTENER, running from one oracle home, listening on a single port, will serve multiple database instances of multiple versions running from multiple homes. It is an unnecessary complexity to try to have multiple listeners or to name the listener as if it belongs to a particular database. That would be like the telephone company building a separate switchboard for each customer.
Second, the tnsnames.ora file is a client side issue. It's purpose is for address resolution - the tns equivalent of the 'hosts' file further down the network stack. The only reason it exists on a host machine is because that machine can also run client processes.
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 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 find your telephone directory (tnsnames.ora) or can't find the party you are looking for listed in it (no entry for larry)) 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

  • ORA-12547 TNS:lost contact Confusions

    Hi all,
    We have 15 client linux server with 11gxe each.
    We installed the database under the userid "oracle" group "dba"
    We have another apps userid "apps" group "apps".
    I login to apps and
    export ORACLE_HOME, ORACLE_SID, PATH
    The I can sqlplus hr/hr and connected ok.
    All of the 14 servers can connect except 1 :( with lost contact error ora-12547 (but it is okay if I use the ID "oracle")
    They are all configured the same and why do I get this error.
    Please help...
    Thanks,

    yxes2013 wrote:
    Actually, I am very stressed, and I my lowest moment in my life now and have a very biggg problem and wish I was not a DBA but a simple worker only with simple job like cleaner.
    But reading and posting and talking in the forum somehow lighten the load, especially when lots of people help you. Anyways, from the bottom of my heart...I THANK YOU ALL.Well, off topic may be but still, don't give up and don't compare working with Oracle database to a blue collar job. The times would change too and it happens with all! So buckle up, read as much as you can, try to push yourself ahead and you would be through.
    Good luck!
    Aman....

  • ORA-12535: TNS:operation timed out on other pc

    After installing the XE edition on a server, I can connect fine on the server itsself. But when I try to connect from a client machine, I get ORA-12535: TNS:operation timed out.
    My tnsnames on the client holds this string for the XE db:
    MyDB.10gXE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MYSERVER)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    any ideas???

    Rather than
    MyDB.10gXE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MYSERVER)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    why not go with the bulk standard tnsnames entry as follows:-
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MYSERVER)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    I don't think the qualified MyDB.10gXE name is adding any value and may well confuse things.
    Although setting it for my environment does work
    C:\Documents and Settings\mtownsen.ST-USERS>tnsping myDB.10gXE
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-NOV-2
    005 18:06:48
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = mtownsen
    -lap.us.oracle.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_
    NAME = XE)))
    OK (40 msec)
    OK - when I use your entry pasted directly from the above, with my server name, I get the following problem:-
    C:\Documents and Settings\mtownsen.ST-USERS>tnsping myDB.10gXE
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-NOV-2
    005 18:07:43
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION =
    TNS-12533: TNS:illegal ADDRESS parameters
    I added back some spaces, as indicated by the . below, and it works fine
    MyDB.10gXE =
    (DESCRIPTION =
    .(ADDRESS = (PROTOCOL = TCP)(HOST = mtownsen-lap.us.oracle.com)(PORT = 1521))
    .(CONNECT_DATA =
    .(SERVER = DEDICATED)
    .(SERVICE_NAME = XE)
    .)

  • ORA-12535: TNS:operation timed out on a win2000 Oracle instance

    Hi,
    i have a Oracle 8.1.5 instance on a WIN2000 PC.
    I can connect me to this database with sqlplus
    as long i stay on the PC (means i started the sqlplus
    on the same machine).
    When i try to connect from an other (unix-)system
    i get after a while (ca. 90 sec.) the error:
    ORA-12535: TNS:operation timed out
    tnsping works fine (answer comes back in one second)
    There are no firewalls or other "strange" things between
    the database and the failing client (on an other PC,
    also win2000, Oracle 8.1.5 everything works fine).
    Below you see the log with debug of the listener.
    I have also a trace on level SUPPORT but this is more
    than 1000 lines for just 1 or 2 TNSPINGs and one SQLPLUS
    connect. Due to this volume i decided not to attach it to
    this initial mail.
    Does any one have some advice or experiences ?
    Please advice.
    Best regards,
    [email protected]
    ======================================================================
    TNSLSNR for 32-bit Windows: Version 8.1.5.0.0 - Production on 19-APR-01 09:07:26
    (c) Copyright 1998 Oracle Corporation. All rights reserved.
    Die System-Parameterdatei ist D:\Oracle81\network\admin\listener.ora
    Log-Meldungen wurden geschrieben in: D:\Oracle81\network\log\listener.log
    Listen auf: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=driller-nb)(PORT=1521))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS)))
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    19-APR-01 09:07:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=mdriller))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=135286784)) * status * 0
    19-APR-01 09:08:04 * service_register * MDR50 * 0
    19-APR-01 09:08:11 * trc_level * 0
    19-APR-01 09:08:16 * trc_level * 0
    ---------------- BEGIN TNSLSNR DEBUG ---------------------
    *** ENDPOINT #1 **
    Name:
    Address: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=driller-nb)(PORT=1521))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS)))
    Presentation: ttc
    Session: NS
    Info = <none>
    Display: <none>
    Load: 0
    Handler ID = 80FFE377148D-41F8-AAC2-09A8BD4BE682
    Oracle SID = <none>
    Flags:
    ** INSTANCE #1 **
    INSTANCE_NAME: MDR50
    SERVICE_NAMEs: MDR50
    INSTANCE LOAD: 0
    INSTANCE ID: 4CC2FCDA6819-40D2-839D-F1628CC0BCA2
    FLAGS: LOCAL
    VERSION: 81500
    NUM. HANDLERS: 2
    Handler Matrix: (NS):
    tcp nmp spx raw ipc beq lu62 tcps ANY
    ttc 0 0 0 0 0 0 0 0 0
    giop 0 0 0 0 0 0 0 0 0
    http 0 0 0 0 0 0 0 0 0
    ro 0 0 0 0 0 0 0 0 0
    ANY 0 0 0 0 0 0 0 0 2
    Handler Matrix: (RAW):
    tcp nmp spx raw ipc beq lu62 tcps ANY
    ttc 0 0 0 0 0 0 0 0 0
    giop 0 0 0 0 0 0 0 0 0
    http 0 0 0 0 0 0 0 0 0
    ro 0 0 0 0 0 0 0 0 0
    ANY 0 0 0 0 0 0 0 0 0
    SERVICE HANDLERS:
    Name: DEDICATED
    Address: (ADDRESS=(PROTOCOL=beq)(PROGRAM=oracle)(ENVS=)(ARGV0=oracleMDR50)(ARGS='(LOCAL=NO)'))
    Presentation: <none>
    Session: <none>
    Info = LOCAL SERVER
    Display: DEDICATED SERVER
    Load: 0
    Handler ID = 83CB008C17A3-4E48-94DA-2765A62AAD7E
    Oracle SID = <none>
    Flags: BEQUEATH
    Name: DEDICATED
    Address: (ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleMDR50)(ARGS='(DESCRIPTION=(LOCAL=no)(ADDRESS=(PROTOCOL=BEQ)))'))
    Presentation: <none>
    Session: NS
    Info = LOCAL SERVER
    Display: DEDICATED SERVER
    Load: 0
    Handler ID = D9E0EC298D16-40FA-935F-7B989D139666
    Oracle SID = MDR50
    Flags: BEQUEATH CONNECTED DYNAMIC
    ** INSTANCE #2 **
    INSTANCE_NAME: PLSExtProc
    SERVICE_NAMEs: PLSExtProc
    INSTANCE LOAD: 0
    INSTANCE ID: 000000000000-0000-0000-000000000000
    FLAGS: LOCAL
    NUM. HANDLERS: 1
    Handler Matrix: (NS):
    tcp nmp spx raw ipc beq lu62 tcps ANY
    ttc 0 0 0 0 0 0 0 0 0
    giop 0 0 0 0 0 0 0 0 0
    http 0 0 0 0 0 0 0 0 0
    ro 0 0 0 0 0 0 0 0 0
    ANY 0 0 0 0 0 0 0 0 1
    Handler Matrix: (RAW):
    tcp nmp spx raw ipc beq lu62 tcps ANY
    ttc 0 0 0 0 0 0 0 0 0
    giop 0 0 0 0 0 0 0 0 0
    http 0 0 0 0 0 0 0 0 0
    ro 0 0 0 0 0 0 0 0 0
    ANY 0 0 0 0 0 0 0 0 0
    SERVICE HANDLERS:
    Name: DEDICATED
    Address: (ADDRESS=(PROTOCOL=beq)(PROGRAM=extproc)(ENVS=)(ARGV0=extprocPLSExtProc)(ARGS='(LOCAL=NO)'))
    Presentation: <none>
    Session: <none>
    Info = LOCAL SERVER
    Display: DEDICATED SERVER
    Load: 0
    Handler ID = 56D4DAD11082-4097-992C-AF7F8067D858
    Oracle SID = <none>
    Flags: BEQUEATH
    ---------------- END TNSLSNR DEBUG ---------------------
    19-APR-01 09:08:28 * debug * 0
    19-APR-01 09:08:41 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=mdriller))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=135286784)) * status * 0
    19-APR-01 09:09:57 * ping * 0
    19-APR-01 09:10:16 * (CONNECT_DATA=(SID=MDR50)(CID=(PROGRAM=)(HOST=slarti)(USER=mdriller))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.34)(PORT=55678)) * establish * MDR50 * 0
    19-APR-01 09:14:39 * trc_level * 0
    19-APR-01 09:14:58 * trc_level * 0
    19-APR-01 09:15:06 * trc_level * 0
    19-APR-01 09:16:16 * trc_level * 0
    19-APR-01 09:16:20 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=mdriller))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=135286784)) * status * 0
    19-APR-01 09:16:33 * trc_level * 0
    19-APR-01 09:17:09 * ping * 0
    19-APR-01 09:17:51 * (CONNECT_DATA=(SID=MDR50)(CID=(PROGRAM=)(HOST=slarti)(USER=mdriller))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.34)(PORT=55695)) * establish * MDR50 * 0
    19-APR-01 09:18:06 * MDR50 * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.34)(PORT=55695)) * service_update * MDR50 * 0
    19-APR-01 09:23:33 * (CONNECT_DATA=(SID=MDR50)(CID=(PROGRAM=)(HOST=deep-thought)(USER=mdriller))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.22)(PORT=42006)) * establish * MDR50 * 0
    19-APR-01 09:28:09 * MDR50 * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.22)(PORT=42006)) * service_update * MDR50 * 0
    19-APR-01 09:28:25 * ping * 0
    null

    Rather than
    MyDB.10gXE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MYSERVER)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    why not go with the bulk standard tnsnames entry as follows:-
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MYSERVER)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    I don't think the qualified MyDB.10gXE name is adding any value and may well confuse things.
    Although setting it for my environment does work
    C:\Documents and Settings\mtownsen.ST-USERS>tnsping myDB.10gXE
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-NOV-2
    005 18:06:48
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = mtownsen
    -lap.us.oracle.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_
    NAME = XE)))
    OK (40 msec)
    OK - when I use your entry pasted directly from the above, with my server name, I get the following problem:-
    C:\Documents and Settings\mtownsen.ST-USERS>tnsping myDB.10gXE
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-NOV-2
    005 18:07:43
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION =
    TNS-12533: TNS:illegal ADDRESS parameters
    I added back some spaces, as indicated by the . below, and it works fine
    MyDB.10gXE =
    (DESCRIPTION =
    .(ADDRESS = (PROTOCOL = TCP)(HOST = mtownsen-lap.us.oracle.com)(PORT = 1521))
    .(CONNECT_DATA =
    .(SERVER = DEDICATED)
    .(SERVICE_NAME = XE)
    .)

  • Windows 7 with 11g ODBC install confusion...

    Hi all,
    Ok, I am just a little confused. All I need to do is get ODBC running under Windows 7. I figured this would be easy, but apparently not. I am trying to install Oracle 11g 64 bit on a new Win 7 computer. This is to set up a "typical" end user system and is NOT for development.
    I first went to the 11g download page (http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft-094461.html ) and downloaded the client software (win64_11gR2_client.zip). I unzipped and installed that. I was able to run NetAdmin and edit the TNSNAMES.ora file. However, when I ran the MS ODBC manager - there were no Oracle driver options. I tried this with both the InstantClient and Runtime options.
    So I figured I had missed something. I ran the deinstall and then did a system restore. I read the docs in the install and here on the forum and saw references to the instant client installs.
    It told me to download the Basic Instant Client and ODBC Instant Client packages from the Oracle Technology Network Instant Client page, so I went to link http://www.oracle.com/technetwork/topics/winx64soft-089540.html and downloaded both the instant client (instantclient-basic-win-x86-64-11.2.0.1.0.zip) and the ODBC module (instantclient-odbc-win-x86-64-11.2.0.1.0.zip)
    I unzipped the client-basic first per the odbc docs. No docs, just a readme with no details. And nothing named install. I did see two .exe files (adrci.exe and genezi.exe) but netiher was a clear install package. Nor was there a .msi package. So, in reading the docs, I tried to determine if "deployed" meant unzipped or installed. So I unzipped the instant ODBC files into the instantclient_11_2 folder and ran the ODBC_install. There was no reference to NETADMIN in the startfolder, but there was an ODBC shortcut - which I ran. It showed the ODBC drivers, but when I got to the TNS Service Name and clicked on the "down arrow", all I saw were what appeared to be garbage entries. There was no TNSNAMES.ora file to be found.
    Ok, so now I reinstalled the initial download and then tried to add the ODBC stuff to that.... No luck.
    I Ran the universal installer and tried to get it to load the ODBC stuff - but there were no .xml files (which is what it apparently wants) to load. And when I tried to install the instant ODBC, the universal installer still didn't appear to see ODBC stuff...
    So I can install the first and be able to edit TNSNAMES.ORA. Or install the second and see an ODBC driver - but not configure it because I can't reference a TNSNAMES.ora file. Or do both and just get frustrated because both installs IGNORE the other....
    Oh, if I run the NetAdmin and create a TNSNAMES entry - when I test it, it can connect to the server. But I just can't get the ODBC Oracle driver to find that file.....
    IAC, what do I need to download (just the minimum oracle 11g) to an end user's win 7 x64 computer so that I can configure the TNSNAMES.ora settings and setup the ODBC connection?
    Anyway, I am sure there is an easy answer to this. And I would be happy to mark your response as an answer so you get the credit you deserve for helping me.
    And it would be even nicer if there was a little more support about ODBC in the docs that come with both the standard client and the instant client installs.
    Thanks,
    JustMe
    Edited by: justme on Feb 8, 2011 3:39 PM

    Greg,
    RE: Instant client.
    1) It did not come with a TNSNAMES.ora file nor was it clear where I would place the one I have so it would work.
    2) I did try enter a valid entry, but it would not work (my guess is that I didn't copy the TNSNAMES.ora to the right folder).
    RE: Standard install:
    1) It installed the TNSNAMES.ora file and apps to manage it. I was even able to test and confirm that it worked. But when I ran the MS ODBC manager, there were no references to the ORACLE drivers, so I couldn't create one to reference the TNSNAMES.ora file I had created.
    You have given me a few ideas and I will try some of them (running the standard install option in custom mode, copying the TNSNAMES.ora file to every folder in the instant client install, using just the 32 bit versions, etc.) If any of those work, I will report back. If you have any idea on how to resolve the above issues, I would certainly appreciate it as well.
    Thanks,
    JustMe

  • Data Guard Broker teasing error ORA-12514: TNS:listener

    Hello,
    I have spent many hours but don't understand what little thing I am missing or confusing me.. Please help to fix the issue.
    Physical Standb db created successfully, but now facing following issue: Though it should be and must be fixed but really making me mad
    DGMGRL> SHOW CONFIGURATION;
    Configuration - DATA GUARD
      Protection Mode: MaxPerformance
      Databases:
        dg - Primary database
    Fast-Start Failover: DISABLED
    Configuration Status:
    DISABLED
    DGMGRL> ADD DATABASE DG_DB2
    > AS CONNECT IDENTIFIER IS DG_DB2
    > MAINTAINED AS PHYSICAL;
    Error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Failed.
    PRIM:
    db_name: DG
    db_unique_name: dg
    service_names:  dg
    STBY:
    db_name: DG
    db_unique_name: dg_db2
    service_names:  dg_db2
    # TNSNAMES same entries on both Primary and Standby: HOSTNAMES are different.
    DG =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = db01.domain)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dg)
    DG_DB2 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = db02.domain)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dg_db2)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db01.domain)(PORT = 1521))   db02.domain for Standby on standby machine.
    # Listener.ora on PRIMARY:
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db01.domain)(PORT = 1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = dg_DGMGRL.domain)
          (ORACLE_HOME = /oracle/app/11g/db)
           (SID_NAME = dg)
           (SERVICE_NAME = dg.domain)
    # Listener.ora on Standby:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = dg_db2_DGMGRL.domain)
          (ORACLE_HOME = /oracle/app/11g/db)
           (SID_NAME = dg_db2)
           (SERVICE_NAME = dg_db2.domain)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = db02.domain)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    I created Stby DB with the minimum parameters required, so that I configure BROKER and see it magic, but badly stuck in this situation here. I have read many docs related to this..but can not fix it unfortunately.
    Please guide me from your own experience as note ids, blogs are not helping me here...
    Bundle of thanks.
    Best Regards

    Hi,
    Your listener.ora file has SERVICE_NAME = dg_db2.domain whereas tnsnames.ora file has SERVICE_NAME = dg_db2.
    Check in your database for exact service name and reflect the same in both the files.
    SQL> sho parameter service_names
    Restart the listener and try connecting.
    Thank you!!

  • Message 3513 not found;  product=NETWORK; facility=TNS

    I have installed 11g instant client on windows machine and when I do a tnsping from cmd I get
    Message 3513 not found; product=NETWORK; facility=TNS
    I have already copied all the files over from mesg folder. Also when I do tnsping on something which is not in tnsnames.ora file I get
    C:\Users\xxx>tnsping abc
    TNS Ping Utility for 64-bit Window
    012 10:49:12
    Copyright (c) 1997, 2010, Oracle.
    Used parameter files:
    D:\oracle\product\11.2.0\client_1\.......
    TNS-03505: Failed to resolve name
    What else can I do to resolve this?

    868806 wrote:
    I have installed 11g instant client on windows machine and when I do a tnsping from cmd I get
    Message 3513 not found; product=NETWORK; facility=TNS
    I have already copied all the files over from mesg folder. Also when I do tnsping on something which is not in tnsnames.ora file I get
    Copied from where to where, and why? there should be no reason to be copying these files at all.
    C:\Users\xxx>tnsping abc
    And to add to the confusion, as has already pointed up, instant client doesn't come with tnsping, so your use of tnsping contradicts your statement that you are working with instant client.
    TNS Ping Utility for 64-bit Window
    012 10:49:12
    Copyright (c) 1997, 2010, Oracle.
    Used parameter files:
    D:\oracle\product\11.2.0\client_1\.......
    TNS-03505: Failed to resolve name
    http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/
    What else can I do to resolve this?First, answer the questions to clarify the instant client/tnsping disconnect ...

  • Unexpected element name - confusion of types in client

    I have a web service definition that performs four operations:
    - String getTitle(long) - returns a title for a single asset
    - StringArrayType) getTitles(LongArrayType) - returns an ordered list of titles matching input list
    - AssetSummaryType getSummary(long) - Returns a complex type, summary information of an asset
    - AssetSummaryArrayType getSummaries(LongArrayType) - Returns an array of complex types
    Based on the WSDL (included at the bottom of this posting) I then generate the service
    endpoint using wscompile and -f:wsi option (JDK 1.4.2-05 and JWSDP-1.4).
    This is built into a raw war file and then cooked using wsdeploy.
    On the client side I create stubs using wscompile and -f:wsi and compile
    the resultant code. My client invokes each of the operations in turn, having been
    provided the relevant 'longs' as input.
    The service is deployed in JBoss-3.2.2 and the client is then executed from a separate JVM.
    I then see the following client error:
    java.rmi.RemoteException: Runtime exception; nested exception is:
    unexpected element name: expected={http://example.com/myAssetWebSvc}Str
    ingElement, actual={http://example.com/MyAssetWebSvc}AssetSummaryElement
    at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(
    StreamingSender.java:318)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:300
    at example.com.wsclient.asset.AssetService_Stub.getTitle(AssetService_St
    ub.java:175)
    at example.com.wsclient.asset.AssetClient.testAssetTitleRetrieval(AssetC
    lient.java:82)
    at example.com.wsclient.asset.AssetClient.main(AssetClient.java:51)
    Caused by: unexpected element name: expected={http://example.com/MyAssetWebSvc}
    StringElement, actual={http://example.com/MyAssetWebSvc}AssetSummaryElement
    at com.sun.xml.rpc.encoding.literal.LiteralSimpleTypeSerializer.deserial
    ize(LiteralSimpleTypeSerializer.java:106)
    at example.com.wsclient.asset.AssetService_Stub._deserialize_getTitle(As
    setService_Stub.java:318)
    at example.com.wsclient.asset.AssetService_Stub._readFirstBodyElement(As
    setService_Stub.java:276)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:215
    ... 3 more
    If I deploy the same service with only the first two operations defined within wsdl,
    the error is not seen.
    I have also tried compilation on JWSDP 1.3 and JDK 1.4.1-03 and in this case the same error
    occurs but the other way around. The two 'title' operations work but the summary
    operations fail with the actual element encountered being a StringElement or StringArrayElement
    and the expected an AssetSummaryElement or AssetSummaryArrayElement.
    Further, if I change the name of the StringElement to for example 'MyStringElement', this is
    reported as the actual - i.e. there is no confusion with a standard type at play here.
    I also use handlers, one on the server side to inspect security information and one on the
    client to insert relevant details and look for returned errors within the header.
    Is this a known problem within JWSDP 1.3 and/or 1.4? Are there any workarounds.
    My wsdl is provided below along with the wscompile options and the matching configuration
    files used.
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions name="MyAssetService" targetNamespace="http://example.com/MyAssetWebSvc"
         xmlns:tns="http://example.com/MyAssetWebSvc"
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <wsdl:types>
    <xsd:schema targetNamespace="http://example.com/MyAssetWebSvc"
              xmlns:tns="http://example.com/MyAssetWebSvc"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:complexType name="AssetSummaryType">
    <xsd:all>
    <xsd:element name="createdBy" type="xsd:string" />
    <xsd:element name="createdDate" type="xsd:dateTime" />
    <xsd:element name="description" type="xsd:string" />
    <xsd:element name="fileSize" type="xsd:long" />
    <xsd:element name="id" type="xsd:long" />
    <xsd:element name="modifiedBy" type="xsd:string" />
    <xsd:element name="modifiedDate" type="xsd:dateTime" />
    <xsd:element name="organisation" type="xsd:string" />
    <xsd:element name="owner" type="xsd:string" />
    <xsd:element name="title" type="xsd:string" />
    <xsd:element name="type" type="xsd:string" />
    <xsd:element name="version" type="xsd:long" />
    </xsd:all>
    </xsd:complexType>
    <xsd:complexType name="ExceptionType">
    <xsd:all>
    <xsd:element name="rootCause" type="xsd:string" nillable="true" />
    </xsd:all>
    </xsd:complexType>
    <xsd:complexType name="LongArrayType">
         <xsd:sequence>
              <xsd:element name="LongItem" type="xsd:long" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
         </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="AssetSummaryArrayType">
         <xsd:sequence>
              <xsd:element name="AssetSummaryItem" type="tns:AssetSummaryType" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
         </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="StringArrayType">
         <xsd:sequence>
              <xsd:element name="StringItem" type="xsd:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
         </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="CredentialsType">
    <xsd:all>
    <xsd:element name="principal" type="xsd:string" />
    <xsd:element name="password" type="xsd:string" />
    </xsd:all>
    </xsd:complexType>
         <xsd:element name="LongElement" type="xsd:long"/>
    <xsd:element name="StringElement" type="xsd:string"/>
    <xsd:element name="LongArrayElement" type="tns:LongArrayType"/>
    <xsd:element name="StringArrayElement" type="tns:StringArrayType"/>
    <xsd:element name="AssetSummaryElement" type="tns:AssetSummaryType"/>
    <xsd:element name="AssetSummaryArrayElement" type="tns:AssetSummaryArrayType"/>
         <xsd:element name="CredentialsElement" type="tns:CredentialsType"/>
         <xsd:element name="ExceptionElement" type="tns:ExceptionType"/>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="getSummaryMessage">
    <wsdl:part name="resourceId" element="tns:LongElement" />
    </wsdl:message>
    <wsdl:message name="getSummaryResponse">
    <wsdl:part name="assetSummary" element="tns:AssetSummaryElement" />
    </wsdl:message>
    <wsdl:message name="assetException">
    <wsdl:part name="exception" element="tns:ExceptionElement" />
    </wsdl:message>
    <wsdl:message name="getTitle">
    <wsdl:part name="resourceId" element="tns:LongElement" />
    </wsdl:message>
    <wsdl:message name="getTitleResponse">
    <wsdl:part name="assetTitle" element="tns:StringElement" />
    </wsdl:message>
    <wsdl:message name="getSummaries">
    <wsdl:part name="resourceIdList" element="tns:LongArrayElement" />
    </wsdl:message>
    <wsdl:message name="getSummariesResponse">
    <wsdl:part name="assetSummaryList" element="tns:AssetSummaryArrayElement" />
    </wsdl:message>
    <wsdl:message name="getTitles">
    <wsdl:part name="resourceIdList" element="tns:LongArrayElement" />
    </wsdl:message>
    <wsdl:message name="getTitlesResponse">
    <wsdl:part name="assetTitleList" element="tns:StringArrayElement" />
    </wsdl:message>
    <wsdl:message name="securityHeader">
    <wsdl:part name="credentials" element="tns:CredentialsElement" />
    </wsdl:message>
    <wsdl:portType name="AssetService">
    <wsdl:operation name="getSummary" parameterOrder="resourceId">
    <wsdl:input message="tns:getSummaryMessage" />
    <wsdl:output message="tns:getSummaryResponse" />
    <wsdl:fault name="AssetException" message="tns:assetException" />
    </wsdl:operation>
    <wsdl:operation name="getTitle" parameterOrder="resourceId">
    <wsdl:input message="tns:getTitle" />
    <wsdl:output message="tns:getTitleResponse" />
    <wsdl:fault name="AssetException" message="tns:assetException" />
    </wsdl:operation>
    <wsdl:operation name="getSummaries" parameterOrder="resourceIdList">
    <wsdl:input message="tns:getSummaries" />
    <wsdl:output message="tns:getSummariesResponse" />
    <wsdl:fault name="AssetException" message="tns:assetException" />
    </wsdl:operation>
    <wsdl:operation name="getTitles" parameterOrder="resourceIdList">
    <wsdl:input message="tns:getTitles" />
    <wsdl:output message="tns:getTitlesResponse" />
    <wsdl:fault name="AssetException" message="tns:assetException" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="AssetServiceBinding" type="tns:AssetService">
    <wsdl:operation name="getSummary">
    <wsdl:input>
    <soap:header required="true" message="tns:securityHeader" part="credentials" use="literal" actor="security"/>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    <wsdl:fault name="AssetException">
    <soap:fault name="AssetException" use="literal"/>
    </wsdl:fault>
    <soap:operation soapAction="" />
    </wsdl:operation>
    <wsdl:operation name="getTitle">
    <wsdl:input>
    <soap:header required="true" message="tns:securityHeader" part="credentials" use="literal"/>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    <wsdl:fault name="AssetException">
    <soap:fault name="AssetException" use="literal"/>
    </wsdl:fault>
    <soap:operation soapAction="" />
    </wsdl:operation>
    <wsdl:operation name="getSummaries">
    <wsdl:input>
    <soap:header required="true" message="tns:securityHeader" part="credentials" use="literal"/>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    <wsdl:fault name="AssetException">
    <soap:fault name="AssetException" use="literal"/>
    </wsdl:fault>
    <soap:operation soapAction="" />
    </wsdl:operation>
    <wsdl:operation name="getTitles">
    <wsdl:input>
    <soap:header required="true" message="tns:securityHeader" part="credentials" use="literal"/>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    <wsdl:fault name="AssetException">
    <soap:fault name="AssetException" use="literal"/>
    </wsdl:fault>
    <soap:operation soapAction="" />
    </wsdl:operation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    </wsdl:binding>
    <wsdl:service name="MyAssetService">
    <wsdl:port name="AssetServicePort" binding="tns:AssetServiceBinding">
    <soap:address location="http://localhost:9090/MyAssetWebSvc/asset" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Here is the wscompile for the server - this is within an ant script that substitutes the variables specified:
    wscompile -keep -d ${path.classes} -s ${src.autojava} -import -model model.gz -f:wsi -f:documentliteral server-config.xml
    and this is the server config:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <wsdl location="file:///C:temp/MyAssetService_wsi.wsdl" packageName="example.com.wsserver.asset.wrapper">
    <handlerChains>
    <chain runAt="server">
    <handler className="example.com.wsserver.security.SecurityServerHandler">
    <property name="name" value="SecurityServerHandler"/>
    </handler>
    </chain>
    </handlerChains>
    </wsdl>
    </configuration>
    On the client side, here is the wscompile, again with ant variable substitution:
    wscompile -gen:client -keep -d ${path.build.wsclient.class} -s ${path.build.wsclient.autojava} -classpath ${path.build.wsclient.class} -f:wsi -f:documentliteral client-config.xml
    And here is the client config:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <wsdl location="file:///C:/temp/MyAssetService_wsi.wsdl" packageName="example.com.wsclient.asset">
    <handlerChains>
    <chain runAt="client">
    <handler className="example.com.wsclient.security.SecurityClientHandler">
    <property name="name" value="SecurityClientHandler"/>
    </handler>
    </chain>
    </handlerChains>
    </wsdl>
    </configuration>
    Note that I generate slightly different packages on client and server side. The server includes a 'wrapper' path on the package name - purely because the
    generated code wrappers an existent api that I am making available as a web service. This is not needed to be seen
    on the client side - i.e. the service appears as is without the wrapper.
    I have tried omitting the documentliteral from the wscompiles and this seems to have no effect.
    Any help gratefully received.
    Best regards
    Lawrence

    Thanks for the prompting. I was convinced that the error was occurring client side as I could see no activity on the server. However having captured the soap request and responses its evident that this is not the case (which I'm a little confused on based on my original tests, but the error makes more sense in this context).
    The request is below:
    <env:Envelope xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://example.com/myAssetWebSvc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Header>
    <ns1:mmsSecurity env:actor="security" env:mustUnderstand="1" xmlns:ns1="http://example.com/myAssetWebSvc">
    <principal>example.user</principal>
    <password>mypassword</password>
    </ns1:mmsSecurity>
    </env:Header>
    <env:Body>
    <ns0:LongElement>166333</ns0:LongElement>
    </env:Body>
    </env:Envelope>
    I can see from the body that the signature is not unique - its the same as that of the Summary operation. In this case, the server side is performing the summary (rather than the title that I had intended) and returning that response. This gives rise to the deserialisation error on the client side for the response.
    Presumably I need to move to the wrapped document literal style so that the request is uniquely identified on the server side.
    To me this was not an obvious gotcha, Could the parser (wscompile) be enhanced to trap identical request message definitions within a single service/endpoint definition (i.e. WSDL)? If so where should I post the request?

  • ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

    One more discussion with the same topic I know, I've tried to figure this issue out but still no chance,
    I'm using oracle-xe-11.2
        bash-4.1$ cat listener.ora
        # listener.ora Network Configuration File:
        SID_LIST_LISTENER =
          (SID_LIST =
            (SID_DESC =
              (SID_NAME = PLSExtProc)
              (ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe)
              (PROGRAM = extproc)
        LISTENER =
          (DESCRIPTION_LIST =
            (DESCRIPTION =
              (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
              (ADDRESS = (PROTOCOL = TCP)(HOST = o185i081)(PORT = 1521))
        bash-4.1$ cat tnsnames.ora
        # tnsnames.ora Network Configuration File:
        XE =
          (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = o185i081)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
        EXTPROC_CONNECTION_DATA =
          (DESCRIPTION =
            (ADDRESS_LIST =
              (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
            (CONNECT_DATA =
              (SID = PLSExtProc)
              (PRESENTATION = RO)
        ORCL =
          (DESCRIPTION =
            (ADDRESS_LIST =
              (ADDRESS = (PROTOCOL = TCP)(HOST = o185i081)(PORT = 1521))
            (CONNECT_DATA =
              (SID = ORCL)
    but when I start lsnrctl it shows me status like the following:
        bash-4.1$ lsnrctl status
        LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 29-JUL-2013 18:19:17
        Copyright (c) 1991, 2011, Oracle.  All rights reserved.
        Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
        STATUS of the LISTENER
        Alias                     LISTENER
        Version                   TNSLSNR for Linux: Version 11.2.0.2.0 - Production
        Start Date                29-JUL-2013 18:11:10
        Uptime                    0 days 0 hr. 8 min. 10 sec
        Trace Level               off
        Security                  ON: Local OS Authentication
        SNMP                      OFF
        Listener Parameter File   /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
        Listener Log File         /u01/app/oracle/product/11.2.0/xe/log/diag/tnslsnr/o185i081/listener/alert/log.xml
        Listening Endpoints Summary...
          (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
          (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=o185i081)(PORT=1521)))
        Services Summary...
        Service "PLSExtProc" has 1 instance(s).
          Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
        The command completed successfully
    and there is no my ORCL service in there,
    if I try to ping it:
        bash-4.1$ tnsping orcl
        TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 29-JUL-2013 18:21:11
        Copyright (c) 1997, 2011, Oracle.  All rights reserved.
        Used parameter files:
        Used TNSNAMES adapter to resolve the alias
        Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = o185i081)(PORT = 1521))) (CONNECT_DATA = (SID = ORCL)))
        TNS-12543: TNS:destination host unreachable
    I've already tried to reload listner and the oracle DB

    jgarry wrote:
    I don't think so.  Sometimes it can be confusing if you've installed it more than once.
    Now that you've changed something, let's start all over.  Give output of everything that sb asked for.  Have you started the XE instance?
    Alright, here are the commands results:
    [root@o185i081 Disk1]# rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm
    Preparing...                ########################################### [100%]
            package oracle-xe-11.2.0-1.0.x86_64 is already installed
    [root@o185i081 Disk1]# /etc/init.d/oracle-xe stop
    Shutting down Oracle Database 11g Express Edition instance.
    Stopping Oracle Net Listener.
    [root@o185i081 Disk1]# /etc/init.d/oracle-xe configure
    Oracle Database 11g Express Edition is already configured
    [root@o185i081 Disk1]# /etc/init.d/oracle-xe start
    Starting Oracle Net Listener.
    Starting Oracle Database 11g Express Edition instance.
    [root@o185i081 Disk1]# su oracle
    bash-4.1$ cd ~/
    admin/              .bashrc             oradata/            .viminfo
    .bash_history       diag/               oradiag_oracle/   
    .bash_profile       fast_recovery_area/ product/          
    bash-4.1$ cd ~/product/11.2.0/xe/network/admin/
    bash-4.1$ cat listener.ora
    # listener.ora Network Configuration File:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe)
          (PROGRAM = extproc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.104.11)(PORT = 1521))
    bash-4.1$ cat tnsnames.ora
    # tnsnames.ora Network Configuration File:
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.104.11)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = ORCL)
    bash-4.1$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 30-JUL-2013 07:56:41
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    Start Date                30-JUL-2013 07:55:08
    Uptime                    0 days 0 hr. 1 min. 33 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/o185i081/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.104.11)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    bash-4.1$ lsnrctl stop
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 30-JUL-2013 07:56:54
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    The command completed successfully
    bash-4.1$ mv listsner.ora listener.ora.sav
    mv: cannot stat `listsner.ora': No such file or directory
    bash-4.1$ mv listener.ora listener.ora.sav
    bash-4.1$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 30-JUL-2013 07:57:16
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Starting /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    Log messages written to /u01/app/oracle/product/11.2.0/xe/log/diag/tnslsnr/o185i081/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=o185i081)(PORT=1521)))
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12543: TNS:destination host unreachable
    TNS-12560: TNS:protocol adapter error
      TNS-00513: Destination host unreachable
       Linux Error: 101: Network is unreachable
    bash-4.1$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 30-JUL-2013 07:57:55
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12543: TNS:destination host unreachable
    TNS-12560: TNS:protocol adapter error
      TNS-00513: Destination host unreachable
       Linux Error: 101: Network is unreachable
    bash-4.1$ lsnrctl service
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 30-JUL-2013 08:00:07
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12543: TNS:destination host unreachable
    TNS-12560: TNS:protocol adapter error
      TNS-00513: Destination host unreachable
       Linux Error: 101: Network is unreachable
    bash-4.1$ hostname
    o185i081
    bash-4.1$ uname -a
    Linux o185i081 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
    bash-4.1$ cat /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    16.16.185.22 o185i022
    16.16.185.81 o185i081
    bash-4.1$ tnsping orcl
    TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 30-JUL-2013 08:00:29
    Copyright (c) 1997, 2011, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.104.11)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = ORCL)))
    OK (10 msec)
    bash-4.1$ ls -l
    total 12
    -rwxr-xr-x 1 oracle dba  408 Jul 29 19:53 listener.ora.sav
    drwxr-xr-x 2 oracle dba 4096 Jul 16 10:43 samples
    -rwxr-xr-x 1 oracle dba  224 Jul 29 19:50 tnsnames.ora
    bash-4.1$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.2.0 Production on Tue Jul 30 08:01:01 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1068937216 bytes
    Fixed Size                  2233344 bytes
    Variable Size             771755008 bytes
    Database Buffers          289406976 bytes
    Redo Buffers                5541888 bytes
    Database mounted.
    Database opened.
    SQL> alter system register;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
    bash-4.1$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 30-JUL-2013 08:01:45
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    TNS-12543: TNS:destination host unreachable
    TNS-12560: TNS:protocol adapter error
      TNS-00513: Destination host unreachable
       Linux Error: 101: Network is unreachable
    ====
    BTW could you please tell me what the reason of renaming the listener.ora to listener.ora.sav?
    And probably it is necessary to reinstall oracle-xe? but I'm not sure it will shot on linux

  • TNS error ORA-12154

    Hi all,
    One of our client is trying to connect to our database from his local pc. We are able to connect to the database fine from here.
    But when he connects from his pc via vpn it gives him this error:
    Ora-12154: TNS:could not resolve the connect identifier specified.
    I checked the path and the Oracle client is in the path on his pc. Tnsping works. Not sure what else I should check. I do not have access to his pc, I just have to troubleshoot on the phont.
    Below is his sqlnet.ora and tnsnames.ora.
    # SQLNET.ORA Network Configuration File: C:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora
    #NAMES.DIRECTORY_PATH= (TNSNAMES)
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    alp =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = alm)(PORT = 1525))
    (CONNECT_DATA =
    (SID = alp)
    (SERVER = DEDICATED)
    Please give me your suggestions.
    Thanks.
    Edited by: user553564 on Oct 3, 2008 7:55 AM

    When you do the tnsping, does it say using tnsnames or hostname? I've noticed it can be a bit confusing when you have a host running oracle that is not in your tnsnames.ora, it will successfully tnsping, because the host has a listener running, but you can't attach because the connection string is different. For example, I can tnsping a host named POLARIS, which is not in my tnsnames.ora, but it is in DNS and is running XE. D'Oh!
    You might consider trying a service_name that matches your lsnrctl status output, rather than SID in the tnsnames.ora. It's also possible the user has multiple tnsnames.ora (especially if several things have been installed), and is picking up the wrong one. Try changing things the connect name to something just plain weird and see if it makes a difference. See if there is TWO_TASK in your environment, too.
    Other reasons I'm going bald: case sensitivity of the SID; having two nearly identical entries in the tnsnames.ora and not scrolling down while editing; sqlnet.ora strangenesses; and I've "seen" (in earlier versions, anyways), invisible characters causing problems.

  • TNS error connecting to db using iSQL*Plus

    I am trying to use iSQL to access our database (Oracle9i Enterprise Edition Release 9.2.0.1.0) for the first time.
    I have reviewed Note 185707.1.
    I start the HTTP Server on my client PC.
    I bring up my web browser (IE version 6).
    I enter in the URL http://<<host>>:7778/isqlplus.
    ISQL*Plus login page is displayed.
    I enter a valid user, password and connection identifier and receive the ORA-12154: TNS:could not resolve service name Error.
    In the Note referenced above, there are instructions for configuring the iSQL*Plus Server, but I am not sure what that is (or where it is). It says to enter a new connection identifier in the tnsnames.ora file as follows:
    connection identifier = (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=www.oracle.com) (PORT=1521)))(CONNECT_DATA=(SID=orashop)))
    but I am confused as to how this would be different from my existing connection unless we are supposed to put this in literally then use connection string orashop (which seems unlikely).
    Any help would be appreciated.
    Tracy

    You have a couple of options.
    1. Leave the connection identifier empty to connect to the default database (just like in SQL*Plus command line).
    2. Confirm you can log into SQL*Plus command line using the same connection identifier.
    3. Confirm that your tnsnames.ora file contains the correct connection information for the database you are trying to connect to.
    The 'orashop' example is only an example.
    Alison

  • Tns listener error:

    i was away from Oracle for around 6-7 months and now i am back in it.
    i was trying to install Oracle 32-bit 10.2 on windows 2003 enterprise edition.
    i installed it without any issues. i didnt enable to option on creating the default database which comes along with Oracle installation.
    later after installation i created a database throught dbca (not manually).
    once i created the database, i tried to log into the database through command line and faced a oaa-12154 error. i restarted the listener and even edited the listener.ora and tnsnames.ora files.
    i also ran the netca and restarted the listener. i am confused as to what is causing the error the OracleServoceSID service is running
    can someone please guide me as to what is going wrong?
    ^C:\Documents and Settings\Administrator&gt;set oracle_sid=arvind^
    ^C:\Documents and Settings\Administrator&gt;sqlplus "sys as sysdba"^
    ^SQL*Plus: Release 10.2.0.1.0 - Production on Sun Mar 8 00:35:22 2009^
    ^Copyright (c) 1982, 2005, Oracle. All rights reserved.^
    ^Enter password:^
    ^ERROR:^
    ^ORA-12154: TNS:could not resolve the connect identifier specified^
    i went to lsnrctl and saw the status.
    ^LSNRCTL&gt; status^
    ^Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle)(PORT=1521)))^
    ^STATUS of the LISTENER^
    ^------------------------^
    ^Alias LISTENER^
    ^Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ^
    ^ction^
    ^Start Date 08-MAR-2009 00:03:57^
    ^Uptime 0 days 0 hr. 29 min. 40 sec^
    ^Trace Level off^
    ^Security ON: Password or Local OS Authentication^
    ^SNMP OFF^
    ^Listener Parameter File E:\oracle\product\10.2.0\db_1\network\admin\listener.o^
    ^ra^
    ^Listener Log File E:\oracle\product\10.2.0\db_1\network\log\listener.log^
    ^Listening Endpoints Summary...^
    ^ (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle)(PORT=1521)))^
    ^The listener supports no services^
    ^The command completed successfully^
    contents of the listener.ora file:
    ^LISTENER =^
    ^ (DESCRIPTION_LIST =^
    ^ (DESCRIPTION =^
    ^ (ADDRESS = (PROTOCOL = TCP)(HOST = oracle)(PORT = 1521))^
    ^ )^
    ^ )^
    contents of the sqlnet.ora file
    ^SQLNET.AUTHENTICATION_SERVICES= (NTS)^
    ^NAMES.DIRECTORY_PATH= (TNSNAMES)^
    ^NAMES.DIRECTORY_LOOKUP= (TNSNAMES, ONAMES)^
    contents of the tnsnames.ora file
    ^ARVIND =^
    ^ (DESCRIPTION =^
    ^ (ADDRESS_LIST =^
    ^ (ADDRESS = (PROTOCOL = TCP)(HOST = oracle)(PORT = 1521))^
    ^ )^
    ^ (CONNECT_DATA =^
    ^ (SERVICE_NAME = arvind)^
    ^ )^
    ^ )^

    I am new to Oracle and I have come accross this error earlier.
    Try going to oracle base and start sqlplus from there.
    If it still gives error, issue set ORACLE_SID=<yourSID> at the oracle base directory level and again try logging in through SQLPlus. That worked for me.

  • CONNECT AUXILIARY failing (db names confusion)

    Hello,
    For the purpose of creating Physical standby Database, I am having connect to AUXILIARY DB issue. I think I am confused between PRIMARY and STANDBY DB names. Please have a look at the configuration and suggest where  I am doing mistake.
    Thanks a lot.
    # Primary
    SQL> select name,db_unique_name from v$database;
    NAME      DB_UNIQUE_NAME
    JOHN      JOHN
    SQL> select * from global_name;
    GLOBAL_NAME
    JOHN
    TNSNAMES.ORA entries on both primary and standby looks like this:
    JOHN=
      (DESCRIPTION = - - -
    JOHN_DB2
    (DESCRIPTION = - -
    TNSPING JOHN
    TNSPING JOHN_DB2    are working fine.   e.g. from Primary when I do this it return OK (10 msec) . . .
    LISTENER.ORA on both have static entries: e.g. on AUXILIARY listener.ora:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = john_db2)
          (ORACLE_HOME = /oracle/app/oracle/11g)
          (SID_NAME = john)
    lsnrctl stop and start returned no errors.
    Here is the error I am concerned:  From Standby I tried to connect:
    RMAN> CONNECT TARGET sys/oracle@JOHN;
    connected to target database: JOHN (DBID=1279980307)
    RMAN> CONNECT AUXILIARY sys/oracle@JOHN_DB2;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-04006: error from auxiliary database: ORA-12528: TNS:listener: all appropriate instances are blocking new connections
    I want to select JOHN_DB2 to for Standby database (at least to differentiate between the two), but I don't know how RMAN recognises the CONNECT IDENTIFIER of the AUXILIARY DB which is not yet replicated/created?
    db_name,db_unique_name,instance_name on both are same, i.e. JOHN. I just queries v$parameter on Auxiliary.
    Please suggest.
    Best Regards

    Hi john,
    The listener.ora contents should be like below. ie both primary and standby listerner.ora should have the static entry like below
    SID_LIST_LISTENER = 
       (SID_LIST= 
           (SID_DESC = 
             (SID_NAME = PLSExtProc) 
              (ORACLE_HOME=/opt/app/oracle/product/11.2.0/db_1) 
             (PROGRAM = extproc) 
           (SID_DESC= 
              (GLOBAL_DBNAME=DB01SBY1) 
              (ORACLE_HOME=/opt/app/oracle/product/11.2.0/db_1) 
              (SID_NAME=DB01SBY1) 
    ADR_BASE_LISTENER = /opt/app/oracle 
    LISTENER = 
      (DESCRIPTION = 
        (ADDRESS = (PROTOCOL = TCP)(HOST =<host_name>)(PORT = 1521)) 
    Kindly post both full listener.ora contents and tnsnames.ora contents in both primary and standby environment.
    Regards,
    Pradeep. V

  • Installation: TNS-12532: TNS:invalid argument

    I need some installation assistance.
    I made a fresh install of Oracle 11.2.0.1.0 on a fresh install of Fedora 11 today with default options. I then made a fresh install of Instant Client and SQLPlus 11.1.0.7.0 on Windows XP SP3 on another machine. The following commands
    tnsping fedora
    tnsping scott/tiger@fedora/orcl
    connect scott/tiger@fedora/orcl (in sqlplus /nolog)
    all work on Fedora, but when I run them on XP the error is "*TNS-12532: TNS:invalid argument*" and nothing else.
    Both firewalls are off. sqlnet.ora, tnsnames.ora and listener.ora are all unchanged from install. sqlnet.log, log.xml, listener.log do not record any entries. I made a couple of "trace support" traces if these might help.
    Here is the listener trace for "tnsping fedora" on Fedora. http://pastebin.ca/1648751
    Here is the listener trace for "tnsping fedora" on XP, with the error http://pastebin.ca/1648750
    Thank you so much for looking into my problem.
    Anna

    Instant Client and SQLPlus on XP do not have a tnsnames.ora. There is no listener on XP. Why would there be a listener on the client side?
    Here is the exact tnsnames.ora on Fedora, exactly as the net configuration assistant left it.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = fedora.domainsrus)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.domainsrus)
    and here are the exact commands that work on Fedora but not on XP
    $ tnsping fedora.domainsrus
    $ tnsping scott/[email protected]/orcl.domainsrus
    $ connect scott/[email protected]/orcl.domainsrus (in sqlplus /nolog)
    the error is "*TNS-12532: TNS:invalid argument*"
    Here is the listener trace for "tnsping fedora.domainsrus" on Fedora. http://pastebin.ca/1648751
    Here is the listener trace for "tnsping fedora.domainsrus" on XP, with the error http://pastebin.ca/1648750
    I'm sorry if the first post confused anyone, I was hesitant to be personally identified.

  • TNS COULD NOT RSOLVE SERVICE NAME

    Hi all,
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.1.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle
    configuration tools.
    MARAN=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = elamaran)(PORT =1521))
    (CONNECT_DATA =
    (SERVER=SHARED)     
    (SERVICE_NAME =SWMS)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = IPC)(KEY= EXTPROC))
    (CONNECT_DATA =
         (SID =PLSExtProc)
    (PRESENTATION = RO)
    Whats wrong with this
    please help

    thats y im confused
    SQL*Plus: Release 10.1.0.2.0 - Production on Mon Nov 20 21:31:58 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Enter user-name: swmsprocess/swmsprocess@maran
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    but from cmd prompt
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Compaq_Owner>sqplus swmsprocess/swmsprocess@maran
    'sqplus' is not recognized as an internal or external command,
    operable program or batch file.
    C:\Documents and Settings\Compaq_Owner>sqlplus
    SQL*Plus: Release 10.1.0.5.0 - Production on Mon Nov 20 21:33:23 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: swmsprocess/swmsprocess@maran
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>
    but i have two oracle homes
    does that has anything to do with this
    thx

Maybe you are looking for

  • Possible solution for white C2D iMacs with screen artifacts or lines

    I have a white 20" Core 2 Duo iMac with the famous screen artifacts issues. Screen tearing, horizontal lines, goofy pixels, you name it. From my research it seems there are countless others with these problems. I tried running the SMC fan control app

  • Can a Mac mini support video to two 30" apple studio displays?

    Can a Mac mini support video to two 30" apple studio displays at the same time? If so, how do you do it and what resolution can be acheived for each monitor?

  • GR/IR clearing with tolerances

    Hi, Where do you specify the tolarences for GR/IR clearing?

  • Projector out of range

    Hi First I want to tell you that I understand that out of range means, something involved with the resolution. But I changed the resolution of my MacBook to 800x600 just to check if this was the problem and it still didn't work. Is there an issue wit

  • Itunes latest download for windows

    Recentlty Downloaded itunes latesest download on to my lap top which has windows XP and now itunes will not even open. I'm getting error message R6034.