ORA-12154: TNS Couldnot reslove the connect identifier specified.

Hi,
I am new to Oracle, I have installed Oracle 10g Express edition.
and then i installed PL/SQL Developer, but when i try to connect thru PL/SQL i get the error 12154. I am able to connect to DB from Webpage(http://127.0.0.1:8080/apex) and also i able to connect to the DB from SQL Run command using below command.
SQL*Plus: Release 10.2.0.1.0 - Production on Sun May 6 18:03:56 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect system/punit@XE
Connected.
SQL>
And following is the TNS file entries:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Pony)(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)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
Please help me in connecting to DB using pl/sql
Thanks in advance
Punit

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Pony>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 08-MAY-2012 23:48:34
Copyright (c) 1991, 2005, Oracle. All rights reserved.
TNS-01106: Listener using listener name LISTENER has already been started
C:\Users\Pony>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 08-MAY-2012 23:48:54
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 08-MAY-2012 22:48:09
Uptime 0 days 1 hr. 0 min. 48 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.lo
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Pony)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Pony)(PORT=8080))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfully
C:\Users\Pony>lsnrctl service
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 08-MAY-2012 23:49:18
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: PONY, pid: 4636>
(ADDRESS=(PROTOCOL=tcp)(HOST=Pony)(PORT=49161))
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
C:\Users\Pony>

Similar Messages

  • Ora-12154 Could not resolve the connect Identifier specified

    I am facing problem for communicating to Microsoft SQL Server through Oracle GateWay.
    *1*. In installed Oracle Gateway 11.2 @D:\product\11.2.0\tg
    *2. D:\product\11.2.0\tg\dg4msql\admin\initdg4msql.ora* is as:
    HS_FDS_CONNECT_INFO=dba.Insignia
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    *3. listener.ora is as (D:\product\11.2.0\tg\NETWORK\ADMIN\tnsnames.ora)*
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dba)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    ADR_BASE_LISTENER = D:\product\11.2.0\tg
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = dg4dmssqldb)
    (PROGRAM = D:\product\11.2.0\tg\bin\dg4msql)
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
    *4. tnsnames.ora is as (D:\product\11.2.0\tg\NETWORK\ADMIN\listener.ora)*
    PROD=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.230)(PORT=1521))
    (CONNECT_DATA=(SID=PROD))
    msql1=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=TCP)(HOST=dba)(PORT=1521))
    (CONNECT_DATA=
    (SID=dg4dmssqldb) )
    (HS=OK)
    *5. Oracle Database Link (its working well)*
    create database link apps connect to dba identified by dba using 'prod';
    *6. Microsoft Sql server Database Link*
    create database link msql1 connect to "sa" identified by "angal" using 'msql1' ;
    When i try to select data through microsoft sql server database link its show following error;
    Ora-12154 Could not resolve the connect Identifier specified
    Wher i wrong......

    Hello,
    I have not used Oracle Gateway for a long time, but did you try to rename the file D:\product\11.2.0\tg\dg4msql\admin\initdg4msql.ora into D:\product\11.2.0\tg\dg4msql\admin\initdg4dmssqldb.ora ?
    initdg4msql.ora is the default name, and should be changed if you do not use dg4msql as gateway SID:
    http://download.oracle.com/docs/cd/E11882_01/gateways.112/e12013/configsql.htm#autoId2
    Hope it will help.
    Regards,
    Sylvie

  • Ora 12154: TNS could not resolve connect identifier specified

    Hi,
    I have Oracle 11g (Release 1_32bit) Client on my C:\ drive which connect to a Remote 11g (11.1.0.7.0 - 64bit) server.
    I have installed 10g DB Server(10.2.0.1.0) and Oracle 10g Forms(Forms [32 Bit] Version 10.1.2.0.2 ) on my D:\ drive.
    When I try to connect to Oracle 10g DB from Forms using "Connect" button, I get following error:
    "ORA-12154: TNS: could not resolve the connect identifier specified"
    Tns and Listner files both are same in Developer_Suite home and 10g home.
    Can someone please help me with this error?
    Thanks

    "ORA-12154: TNS: could not resolve the connect identifier specified"
    $ oerr ora 12154
    12154, 00000, "TNS:could not resolve the connect identifier specified"
    // *Cause:  A connection to a database or other service was requested using
    // a connect identifier, and the connect identifier specified could not
    // be resolved into a connect descriptor using one of the naming methods
    // configured. For example, if the type of connect identifier used was a
    // net service name then the net service name could not be found in a
    // naming method repository, or the repository could not be
    // located or reached.
    // *Action:
    //   - If you are using local naming (TNSNAMES.ORA file):
    //      - Make sure that "TNSNAMES" is listed as one of the values of the
    //        NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA)
    //      - Verify that a TNSNAMES.ORA file exists and is in the proper
    //        directory and is accessible.
    //      - Check that the net service name used as the connect identifier
    //        exists in the TNSNAMES.ORA file.
    //      - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
    //        file.  Look for unmatched parentheses or stray characters. Errors
    //        in a TNSNAMES.ORA file may make it unusable.
    //   - If you are using directory naming:
    //      - Verify that "LDAP" is listed as one of the values of the
    //        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA).
    //      - Verify that the LDAP directory server is up and that it is
    //        accessible.
    //      - Verify that the net service name or database name used as the
    //        connect identifier is configured in the directory.
    //      - Verify that the default context being used is correct by
    //        specifying a fully qualified net service name or a full LDAP DN
    //        as the connect identifier
    //   - If you are using easy connect naming:
    //      - Verify that "EZCONNECT" is listed as one of the values of the
    //        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA).
    //      - Make sure the host, port and service name specified
    //        are correct.
    //      - Try enclosing the connect identifier in quote marks.
    //   See the Oracle Net Services Administrators Guide or the Oracle
    //   operating system specific guide for more information on naming.
    $
    Tns and Listner files both are same in Developer_Suite home and 10g home.Listener files are totally useless in Developer Suite home, since they are server files.

  • ORA-12154 could not resolve the connect indentifier specified

    [http://www.freeimagehosting.net/image.php?793d240bb3.jpg]
    when i try to install oracle 10g i find this problem i wish you help me

    user473080 wrote:
    [http://www.freeimagehosting.net/image.php?793d240bb3.jpg]
    when i try to install oracle 10g i find this problem i wish you help meIn the future please work from a command line and use copy and paste to put commands and results in your posts. Many people's corporate nets block access to blog sites.
    I have recently blogged extensively on this very subject. See edstevensdba.wordpress.com. I can't post a link to the exact article, because my corporate website blocks access to blog sites. I have also, many many times posted on this error in this forum, which a cursory search would have turned up. But once again, back by popular request:
    =================================
    ORA-12154: TNS:could not resolve the connect identifier specified
    This error means one thing, and one thing only. The client could not find the specified entry in the tnsnames.ora file being used.
    As a follow-on to that statement, remember that when you use a dblink, the database in which the link is defined is acting as a client to the database that is the target of the link. So in this case, the tnsnames.ora file on the host of your source should have an entry for your target db, as defined in the db_link.
    And for the umpteenth time ... this error has <b><i><u>NOTHING</u></i></b> to do with the status of a listener. The connection request never got far enough to reach a listener. If anyone tells you to check a listener in response to ora-12154, they are not paying attention, or do not understand how TNS works. This error is the equivalent of not being able to place a telephone call because you don't know the number of the party you want to reach. You wouldn't debug that situation by going to the other guy's house and testing his telephone, or by going to the phone company and testing the switchboard. And you don't debug a ORA-12154 by checking the listener. If I had a top ten list of "Incredibly Simple Concepts (tm)" that should be burned into the brain of everyone who claims to be an Oracle DBA, it would include "ORA-12154 Has Nothing To Do With The Listener".
    =================================
    A 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.
    Additional notes on the listener: One listener is capable of listening on multiple ports. But please notice that it is the listener using these ports, not the database instance. You can't bind a specific listener port to a specific db instance. Similarly, one listener is capable of listnening on multiple IP addresses (in the case of a server with multiple NICs) But just like the port, you can't bind a specific ip address to a specific db instance.
    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'. Finding it, tns sends a request through the normal network stack 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 standard networking process delivers the message to 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, the listener will spawn a server process to act as the intermediary between your client and the database instance. Communication to the server process will be on a randomly selected available port. At that point the listener is out of the process and continues to user port 1521 to await other connection requests.
    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"
    Third: If the client is on the same machine as the db instance, it is possible to connect without referencing tnsnames and without going through the listener.
    Now, when you issue a connect, say like this:
    $> sqlplus scott/tigertns will attempt to establish an IPC connection to the db instance. How does it know the name of the instance? It uses the current value of the enviornment variable ORACLE_SID. So...
    $> export ORACLE_SID=fred
    $> sqlplus scott/tigerIt will attempt to connect to the instance known as "fred". If there is no such instance, it will, of course, fail. Also, if there is no value set for ORACLE_SID, the connect will fail.
    check executing instances to get the SID
    [oracle@vmlnx01 ~]$ ps -ef|grep pmon|grep -v grep
    oracle    4236     1  0 10:30 ?        00:00:00 ora_pmon_vlnxora1set ORACLE_SID appropriately, and connect
    [oracle@vmlnx01 ~]$ export ORACLE_SID='vlnxora1
    [oracle@vmlnx01 ~]$ sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:42:37 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing optionsNow set ORACLE_SID to a bogus value, and try to connect
    SQL> exit
    [oracle@vmlnx01 ~]$ export ORACLE_SID=FUBAR
    [oracle@vmlnx01 ~]$ sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:42:57 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    Enter user-name: Now set ORACLE_SID to null, and try to connect
    [oracle@vmlnx01 ~]$ export ORACLE_SID=
    [oracle@vmlnx01 ~]$ sqlplus /scott/tiger
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:43:24 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specifiedOk, that is how we get from the client connection request to the listener. What about the listener's part of all this?
    The listener is very simple. It's job is to listen for connection requests and make the connection (server process) between the client and the database instance. Once that connection is made, the listener is out of the picture. If you were to kill the listener, all existing connections would continue. The listener is configured with the listener.ora file, but if that file doesn't exist, the listener is quite capable of starting up with all default values. One common mistake with the listner configuration is to specify "HOST=localhost" or "HOST=127.0.01". This is a NONROUTABLE ip address. LOCALHOST and ip address 127.0.0.1 always mean "this machine on which I am sitting". So, all computers are known as "localhost" or "127.0.0.1". If you specify this address, the listener will only be capable of receiving requests from the machine on which it is running. If you specified that address in your tnsnames file - on a remote client machine - the request would be routed to the machine on which the requesting client resides. Probably not what you want.
    =====================================

  • Ora-12154:TNS:Could not resolve the connect identifier specified

    Helo
    I face this error when i tried to connect to the database.
    i have been installed 11g database on machine with database name 'hrall'
    But when i tried to connect to the database it's shows me error "ora-12154:TNS:Could not resolve the connect identifier specified"
    when i put the old database entry an that machine and try ti connect it's connect Successfully.
    Kindly Suggest
    Regards,
    Sachin

    Hi Error not solved yet
    i am giving you my system details as follow -
    OS Name :     Microsoft(R) Windows(R) Server 2003 Standard x64 Edition
    System Type: x64-based PC
    My tnsentry also right
    posted as follow -
    HRALL.voltasworld.com =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ps-win-hrall.voltasworld.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = hrall)
    listener.ora file
    # listener.ora Network Configuration File: F:\app\dbadmin\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = F:\app\dbadmin\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:F:\app\dbadmin\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = ps-win-hrall.voltasworld.com)(PORT = 1521))
    ADR_BASE_LISTENER = F:\app\dbadmin
    Kindly Suggest
    Regards
    Sachin

  • ORA-12154: TNS:could not resolve the connect identifier specified [10g XE]

    Greetings
    There are many topics on this issue over the internet but None of them addresses this issue properly, so I couldn't find a solution to the problem.
    I installed: Oracle Database 10g Express Edition
    After the installation was done, I opened SQL Command Line
    and I used the command "connect" to login
    I enter the username
    Then I entered the password
    After a couple of seconds I got the following ERROR message:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Screenshot of the error:
    http://i35.tinypic.com/14o26g7.png
    I installed this version of Oracle on both Windows XP 32 bit and Windows 7 32 bit and I get the same error message when it tries to connect.
    Why doesn't Oracle work right after the installation?
    Are there any further steps that need to be done in order to make this work? If so I would really appreciate any step by step help, I've been stuck trying to find a solution for days.
    Edited by: user10192105 on Aug 22, 2010 7:34 PM

    >
    I wento to CMD, then I entered sqlplus / as sysdba and that just opened the SQL*Plus program in CMD (SQL>)
    But nevertheless I still need to login with a user name and password which and I tried and I got the same error message.
    >
    We're making progress, you'll be logging in soon....
    Get into SQL*Plus with the command I gave you, now type this:
    alter user <theusernameyouwant> identified by abc123;followed by (still in SQL*Plus):
    connectafter you type "connect", SQL*Plus will ask you for a user name and password. Use the same user name and password you used in the alter command.
    HTH,
    John.

  • BO 4.0 Repository diagnostic tool-ora 12154.TNS could not resolve the connect identifier specified

    Hi All,
    I'm trying to run RDT on BO 4.0 using the following command on <INSTALLDIR>\SAP BusinessObjects Enterprise XI 4.0\win64_x64:
    reposcan.exe -dbdriver oracledatabasesubsystem -connect "UID=ceprod;PWD=ceprod;DSN=dsnname;HOSTNAME=ip of db server;PORT=1521" -dbkey [[XXXXXXX]] -inputfrsdir "\\share\FileStore\FileStore\Input" -outputfrsdir "\\Share\FileStore\FileStore\Output"
    I cannot be able to run the RDT as I get the following error:Business Objects Enterprise CMS:Unable to connect to the CMS system database DSN:dbserver ip:1521.Reason ORA 12154.TNS could not resolve the connect identifier specified
    I have created DSN for oracle db using 32 bit and 64 bit ODBC drivers. I can connect from this system to the database using the client tools.
    Also this is a clustered cms and do I need to use any other parameters here?
    regards,
    Sridhar

    Hi,
    Check if you have two different oracle directories listed in system variable path.
    e.g.:
    D:\oracle\product\11.2.0\client_1\bin;C:\Program Files\oracle\product\11.2.0\client_1\bin
    If this is the case, you have two different tnsnames.ora files.
    Then sometimes the first one is used and sometimes the second.
    If they don't contain the same info, you get these issues.
    Delete one of the paths in the system variable or synchronize the tnsname.ora files to get rid of that.
    Regards
    Moritz

  • ORA-12154: TNS:could not resolve the connect identifier specified Oracle 11

    I'm having a slight issue with Oracle 11 R2
    Oracle 10g was removed from the machine - The registry was cleared and I couldn't see anything of 10g left.
    I then installed Oracle 11 with just the software only, and then created a listener.
    Using the Database Configuration Assistant, I tried to add a database but I get the error:
    'ORA-12154: TNS:could not resolve the connect identifier specified'
    The TNS_ADMIN is set to: \\ravel\tnsnames and I can connect to other instances around the company.
    My tnsnames entry is:
    GMAN_1120.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = gman)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ora112)
    If i start the listener i get:
    TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
    System parameter file is D:\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
    Log messages written to d:\oracle\diag\tnslsnr\gman\listener\alert\log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gman)(PORT=1521)))
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
    Start Date 03-AUG-2011 10:34:28
    Uptime 0 days 0 hr. 0 min. 1 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File d:\oracle\diag\tnslsnr\gman\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gman)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "ora112" has 1 instance(s).
    Instance "ora112", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL>
    Can anyone spot what may have gone wrong? I've setup 10g multiple times and never had a problem

    I can tnsping my machine using another machine:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = gman)(PORT = 1521))) (CONNECT_DATA = (SERVIC
    E_NAME = ora112)))
    OK (30 msec)
    My listener.ora file is:
    # listener.ora Network Configuration File: D:\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (SID_DESC=
    (GLOBAL_DBNAME=ora112)
    (ORACLE_HOME=D:\oracle\product\11.2.0\dbhome_1)
    (SID_NAME=ora112)
    )

  • URGENT:  ORA-12154: TNS:could not resolve the connect identifier specified

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified at OCI call OCIServerAttach. [nQSError: 17014] Could not connect to Oracle database. (HY000)
    1). I have TNS entries under MW_HOME/OracleBI/network/admin
    2). TNSPING works fine.
    3). JDBC source set up on WLS side..
    what else do I need to do?

    Show the full exception stack trace. This doesn't seem to relate to WebLogic. Does the WebLogic console
    show the DataSource as running? Are you in fact using the WebLogic DataSource?

  • Unable to resolve ORA-12154: TNS:could not resolve the connect identifier specified

    Hi Friends,
    I am unable to resolve ORA-12154: TNS:could not resolve the connect identifier specified, error:
    C:\Windows\system32>sqlplus scott/tiger@ORADATA
    SQL*Plus: Release 11.2.0.1.0 Production on Sun Feb 2 13:46:10 2014
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    SQL> select database_name from v$database;
    DATABASE_NAME
    ORADATA
    SQL> select instance_name from v$instance;
    INSTANCE_NAME
    oradata
    tnsnames.ora
    ============
    ORADATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL=TCP)(HOST=himanshu-PC)(PORT=1521))
        (CONNECT_DATA =
    (SERVICE_NAME = oradata)
      (SERVER = DEDICATED)
    listener.ora
    =========
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = himanshu-PC)(PORT = 1521))
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = ORADATA)
          (ORACLE_HOME = G:\app\himanshu\product\11.2.0\dbhome_1)
          (SID_NAME = oradata)
    sqlnet.ora
    ========
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    C:\Windows\system32>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 02-FEB-2014 13:53:37
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=himanshu-PC)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
    Start Date                02-FEB-2014 13:29:35
    Uptime                    0 days 0 hr. 24 min. 6 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   G:\app\himanshu\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File         g:\app\himanshu\diag\tnslsnr\himanshu-PC\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=himanshu-PC)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    Services Summary...
    Service "ORADATA" has 2 instance(s).
      Instance "ORADATA", status UNKNOWN, has 1 handler(s) for this service...
      Instance "oradata", status READY, has 1 handler(s) for this service...
    Service "ORADATAXDB" has 1 instance(s).
      Instance "oradata", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Kindly guide whats wrong with my configuration.

    ORADATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL=TCP)(HOST=himanshu-PC)(PORT=1521))
        (CONNECT_DATA =
    (SERVICE_NAME = oradata)
      (SERVER = DEDICATED)
    Try editing the tnsnames.ora file to check there is any junk characters around the tns entry(shown in RED) and then try pining the tns from CMD as
    tnsping ORADATA.

  • ORA-12154: TNS:could not resolve the connect identifier specified using TOAD client

    I try to using connect with remote database using TOAD client. My oracle version is 10.2g. I follow these instructions that specified on this link, instead of step 13, because i cant understand what they explain http://http://avangari.wordpress.com/remote-oracle-database-access-using-instant-client-and-toad/ . My Oracle TNS_ADMIN path is C:\oracle\product\10.2.0\db_1\network\ADMIN and ORACLE_HOME is C:\oracle\product\10.2.0\db_1. I found many question regarding this query, but i am not found my answer.

    948021 wrote:
    I try to using connect with remote database using TOAD client. My oracle version is 10.2g. I follow these instructions that specified on this link, instead of step 13, because i cant understand what they explain http://http://avangari.wordpress.com/remote-oracle-database-access-using-instant-client-and-toad/ . My Oracle TNS_ADMIN path is C:\oracle\product\10.2.0\db_1\network\ADMIN and ORACLE_HOME is C:\oracle\product\10.2.0\db_1. I found many question regarding this query, but i am not found my answer.
    see: http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ (ora-12154 TNS:could not resolve the connect identifier specified)
    And for background info
    see: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/  (Help! I can’t connect to my database  )
    see: http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/  ( Help! I can’t connect to my database (part duex) )

  • ORA-12154: TNS:could not resolve the connect identifier specified Error in Integration Service Catalogs

    Hi guys,
    I tried to execute a package with Oracle Data Source from Integration Services Catalogs and I got the following error. 
    ORA-12154: TNS:could not resolve the connect identifier specified
    The package runs fine from the SSIS project but once I deploy to SSIS Catalog it fails to run. I need help!
    Thanks
    me

    Hello ,
    The ORA-12154 is a very common error, always related to your local copy of the tnsnames.ora file, your listener configuration and your database name aliases.
    Make sure that your listener is listening for the same service name that you are using. 
    Your service name might have an alias, so check for global (world) entries and local entries.  Check:
    $ORACLE_HOME/network/admin/tnsnames.ora 
    Check your global_name setting with this SQL:
    select * from global_name;
    Ref :
    http://www.dba-oracle.com/t_ora_12154_tns_resolve_service_name.htm
    Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

  • Toad ORA-12154: TNS:could not resolve the connect identifier specified

    I'm installing oracle clients and tools on a new Windows 7 machine issued to me by my company.
    I installed a 64 bit 10.2.0.3 oracle client, but found that 64 bit installations don't work with TOAD. So I installed a 32 bit 10.2.0.1 oracle client. I also set up my TNS names files in the network/admin directory of both installations, set up the hosts files, and ensured that the registry information is accurate. I have no ORACLE_HOME environment variable because when I installed the 2nd installation of Oracle it said that I shouldn't have one since I have multiple versions of oracle and it erased it.
    I am able to connect and use SQL Plus and SQL Developer with both installations of Oracle, but I'm not able to connect with TOAD. TOAD finds the 32 bit installation and all of its registry information looks correct and TOAD says "The Oracle home is valid". TOAD also loads my TNS file and all associated IPs and everything looks good when I look at them in the the TNS Editor. I am also running TOAD as administrator in order to avoid "Can't initialize OCI. Error -1" errors.
    Yet, whenever I try to connect to any database, I get the following error:
    "ORA-12154: TNS:could not resolve the connect identifier specified" and then the database I am using
    Is there anything else I need to setup because I have multiple installations of Oracle? Or anything else I need to setup running on a 64 bit windows machine with 32 bit installations of oracle and toad?
    Thanks for any help you can give.

    And in case you want to know my registry information:
    64 bit installation:
    Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraClient10g_home2
    Class Name: Application Global Data
    Last Write Time: 10/5/2010 - 11:36 AM
    Value 0
    Name: ORACLE_HOME
    Type: REG_SZ
    Data: C:\oracle\product\10.2.0\client_2
    Value 1
    Name: ORACLE_HOME_NAME
    Type: REG_SZ
    Data: OraClient10g_home2
    Value 2
    Name: ORACLE_GROUP_NAME
    Type: REG_SZ
    Data: Oracle - OraClient10g_home2
    Value 3
    Name: ORACLE_BUNDLE_NAME
    Type: REG_SZ
    Data: Enterprise
    Value 4
    Name: NLS_LANG
    Type: REG_SZ
    Data:
    Value 5
    Name: OLEDB
    Type: REG_SZ
    Data: C:\oracle\product\10.2.0\client_2\oledb\mesg
    Value 6
    Name: StmtCacheSize
    Type: REG_SZ
    Data: 0
    Value 7
    Name: SQLPATH
    Type: REG_SZ
    Data: C:\oracle\product\10.2.0\client_2\dbs
    Value 8
    Name: ORACLE_HOME_KEY
    Type: REG_SZ
    Data: SOFTWARE\ORACLE\KEY_OraClient10g_home2
    32 bit installation:
    Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_OraClient10g_home1
    Class Name: Application Global Data
    Last Write Time: 10/6/2010 - 12:42 PM
    Value 0
    Name: ORACLE_HOME
    Type: REG_SZ
    Data: C:\oracle\product\10.2.0\client_3
    Value 1
    Name: ORACLE_HOME_NAME
    Type: REG_SZ
    Data: OraClient10g_home1
    Value 2
    Name: ORACLE_GROUP_NAME
    Type: REG_SZ
    Data: Oracle - OraClient10g_home1
    Value 3
    Name: ORACLE_BUNDLE_NAME
    Type: REG_SZ
    Data: Enterprise
    Value 4
    Name: NLS_LANG
    Type: REG_SZ
    Data: AMERICAN_AMERICA.WE8MSWIN1252
    Value 5
    Name: SQLPATH
    Type: REG_SZ
    Data: C:\oracle\product\10.2.0\client_3\dbs
    Value 6
    Name: ORACLE_HOME_KEY
    Type: REG_SZ
    Data: SOFTWARE\ORACLE\KEY_OraClient10g_home1
    And my environment variables:
    TNS_ADMIN: C:\Oracle\product\10.2.0\client_3\NETWORK\ADMIN
    PATH: "C:\oracle\product\10.2.0\client_3\bin;C:\oracle\p roduct\10.2.0\client_2\bin;%SystemRoot%\system32;% SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT %\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin"
    The string "C:\oracle\product\10.2.0\client_3\bin" is the bin directory for my 32 bit installation.
    The string "C:\oracle\product\10.2.0\client_2\bin" is the bin directory for my 64 bit installation.

  • ORA-12154: TNS:could not resolve the connect identifier specified (sqlplus)

    Hi All,
    I don't know if this has ever been posted, but since I've spent a week figuring it out (no joke, a week), I thought I would post it so that no one else has to waste this much time.
    "ORA-12154: TNS:could not resolve the connect identifier specified" from what I've seen on this site is a major problem for a lot of people, but I did not find a reference to my specfic problem.
    FYI--
    My Database is called "ordidm"
    userID: SYSMAN
    password: p@ssw0rd
    My specific issue was the following:
    I can....
    - Connect to the database via the client "admin assstant" GUI in Windows while supplying the userID and password using the "Database Authentication".
    - Connect via sqlplus as "/as sysdba"
    - "tnsping oraidm" passes works just fine.
    I CANNOT....
    - connect to oraidm at the dos prompt by using sqlplus, regardless of whether or not I supply all the user authentiocation information and db name on one line, or...if I just type "sqlplus" at the command prompt and then enter the userID and password when prompted. Every time I get the "ORA-12154: TNS:could not resolve the connect identifier specified" error message.
    Ready for this?? (some may have guessed this already) The problem is the "@" in my password. After looking closely at the trace logs, I noticed that one of the entries was...
    [09-MAR-2009 08:23:12:921] nnftrne: Original name: ssw0rd
    Remember that the format for connecting on one line at the dos prompt is
    C:/> sqlplus SYSMAN/p@ssw0rd oraidm
    or you can do the following...
    C:\Documents and Settings\Administrator.WIN2K3>sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Mar 9 09:08:50 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: scott
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>
    (BTW-I just started using the "scott" ID because from what I understand, changing the SYSMAN userID password is kind of a pain. Figured just using "scott" ID would be easier to test)
    So of course what it's doing is counting everything after the first "@" as the database name...which of course it can't find in the tnsnames.ora file. Also, contrary to some other posts I found here and there, enclosing the userID and/or passowrd in quotes does not do any good. Apparently, even when using the 2nd method...in the background, the end result is it must pass the whole thing as one long string much like in the 1st method (as you will get the same truncated "Original Name" of "ssw0rd" in the log)
    So...the question is, why does Oracle even allow "@" in the password if it will become an issue with sqlplus??? Also, if you can't (or shouldn't) use it, why isn't it documented somewhere? At the least I would expect the installer to at least warn you ahead of time that an "@" is not suggested. I don't remember it being there. Maybe it's just me and I'm just missing this info somewhere
    I sincerely hope this saves someone else a week of their life. ;-)
    -Eric

    user8100001 wrote:
    Hi All,
    I don't know if this has ever been posted, but since I've spent a week figuring it out (no joke, a week), I thought I would post it so that no one else has to waste this much time.
    "ORA-12154: TNS:could not resolve the connect identifier specified" from what I've seen on this site is a major problem for a lot of people, but I did not find a reference to my specfic problem.
    FYI--
    My Database is called "ordidm"
    userID: SYSMAN
    password: p@ssw0rdThere are restrictions from oracle side how should password look:
    Passwords can be from 1 to 30 characters.
    The first character in an Oracle password must be a letter.
    Only letters, numbers, and the symbols “#”, “_” and “$” are acceptable in a password.
    And password must not be a reserved word (look into v$reserved_words).
    And as You can see sysman password containt "@" - this is not allowed.
    >
    My specific issue was the following:
    I can....
    - Connect to the database via the client "admin assstant" GUI in Windows while supplying the userID and password using the "Database Authentication".
    - Connect via sqlplus as "/as sysdba"
    - "tnsping oraidm" passes works just fine.
    I CANNOT....
    - connect to oraidm at the dos prompt by using sqlplus, regardless of whether or not I supply all the user authentiocation information and db name on one line, or...if I just type "sqlplus" at the command prompt and then enter the userID and password when prompted. Every time I get the "ORA-12154: TNS:could not resolve the connect identifier specified" error message.
    Ready for this?? (some may have guessed this already) The problem is the "@" in my password. After looking closely at the trace logs, I noticed that one of the entries was...
    [09-MAR-2009 08:23:12:921] nnftrne: Original name: ssw0rd
    Remember that the format for connecting on one line at the dos prompt is
    C:/> sqlplus SYSMAN/p@ssw0rd oraidAnd here You can see why this symbol is restricted as full syntax for sqlplus in this case will be:
    sqlplus username/password@oraidm
    but in Your case @symbol already is in password.
    Here can be used a small trick
    sqlplus sysman/"p@ssw0rd"@oraid
    >
    or you can do the following...
    C:\Documents and Settings\Administrator.WIN2K3>sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Mar 9 09:08:50 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: scott
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>
    (BTW-I just started using the "scott" ID because from what I understand, changing the SYSMAN userID password is kind of a pain. Figured just using "scott" ID would be easier to test)
    So of course what it's doing is counting everything after the first "@" as the database name...which of course it can't find in the tnsnames.ora file. Also, contrary to some other posts I found here and there, enclosing the userID and/or passowrd in quotes does not do any good. Apparently, even when using the 2nd method...in the background, the end result is it must pass the whole thing as one long string much like in the 1st method (as you will get the same truncated "Original Name" of "ssw0rd" in the log)
    So...the question is, why does Oracle even allow "@" in the password if it will become an issue with sqlplus??? Also, if you can't (or shouldn't) use it, why isn't it documented somewhere? At the least I would expect the installer to at least warn you ahead of time that an "@" is not suggested. I don't remember it being there. Maybe it's just me and I'm just missing this info somewhereActually Oracle is not allowing this if You will just try to
    alter user scott identidified by p@ssword
    You will get error message (ORA-00922: missing or invalid option), but You can
    alter user scott identified by "p@ssword" - and that will work.
    These double quotes will allow to overide Oracle restrictions.

  • RMAN-00554, RMAN-04005, ORA-12154: TNS:could not resolve the connect identifier specified

    Hi Gurus,
    I need your help!
    I am implementing dataguard through RMAN, where my primary database is mydb and my standby database is orcl. I am pasting step by step process and atlast the error message which I am getting. Please do help me to resolve it.
    [oracle@localhost ~]$ . oraenv
    ORACLE_SID = [orcl] ? mydb
    The Oracle base for ORACLE_HOME=/u01/home/oracle/product/11.2.0/db_1 is /u01/app/oracle
    [oracle@localhost ~]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Sun Jan 5 09:24:56 2014
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select db_unique_name, database_role, open_mode from v$database;
    DB_UNIQUE_NAME                 DATABASE_ROLE    OPEN_MODE
    mydb_un                        PRIMARY          READ WRITE
    SQL> show parameter instance_name
    NAME                                 TYPE        VALUE
    instance_name                        string      mydb
    SQL> show parameter service_names
    NAME                                 TYPE        VALUE
    service_names                        string      mydb_un
    SQL> !
    [oracle@localhost ~]$ . oraenv
    ORACLE_SID = [oracle] ? orcl
    ORACLE_HOME = [/home/oracle] ? /u01/app/oracle/product/11.2.0/dbhome_1
    The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
    [oracle@localhost ~]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Sun Jan 5 09:20:04 2014
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select host_name, status from v$instance;
    HOST_NAME                                                        STATUS
    localhost.localdomain                                            STARTED
    SQL> show parameter instance_name
    NAME                                 TYPE        VALUE
    instance_name                        string      orcl
    SQL> show parameter service_names
    NAME                                 TYPE        VALUE
    service_names                        string      orcl_un
    SQL> !
    [oracle@localhost ~]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 05-JAN-2014 09:27:44
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
      TNS-00511: No listener
       Linux Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                05-JAN-2014 08:17:31
    Uptime                    0 days 1 hr. 10 min. 15 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Log File         /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "mydbXDB" has 1 instance(s).
      Instance "mydb", status READY, has 1 handler(s) for this service...
    Service "mydb_un" has 1 instance(s).
      Instance "mydb", status READY, has 1 handler(s) for this service...
    Service "orcl_un" has 1 instance(s).
      Instance "orcl", status BLOCKED, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@localhost ~]$ tnsping mydb
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 05-JAN-2014 09:27:54
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /u01/home/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mydb_un)))
    OK (0 msec)
    [oracle@localhost ~]$ tnsping orcl
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 05-JAN-2014 09:28:03
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /u01/home/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl_un)))
    OK (0 msec)
    [oracle@localhost admin]$ more listener.ora
    # listener.ora Network Configuration File: /u01/home/oracle/product/11.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = mydb_un)
          (ORACLE_HOME = /u01/home/oracle/product/11.2.0/db_1)
          (SID_NAME=mydb)
        (SID_DESC =
          (GLOBAL_DBNAME = orcl_un)
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME = orcl)
    ADR_BASE_LISTENER = /u01/app/oracle
    [oracle@localhost admin]$ more tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/home/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    MYDB =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = mydb_un)
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl_un)
    [oracle@localhost ~]$ rman target sys/engineer@mydb auxiliary sys/engineer@orcl
    Recovery Manager: Release 11.2.0.1.0 - Production on Sun Jan 5 09:30:59 2014
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04005: error from target database:
    ORA-12154: TNS:could not resolve the connect identifier specified
    [oracle@localhost ~]$
    Please let me know why I am getting this error if everything is fine above.
    Regards,
    Michel

    Here's your issue
    (HOST=localhost.localdomain)
    If you are going to use "localhost" at least fake it by adding an entry in your /etc/hosts files
    Example ( add to both servers so they can see each other )
    192.168.0.20               primary.localdomain   primary
    192.168.0.21               standby.localdomain   standby
    Does the "hostname" return localhost.localdomain? Setup something so RMAN has something to connect to.
    The "/etc/hosts" file must contain a fully qualified name for the server.
    <IP-address> <fully-qualified-machine-name> <machine-name>
    localhost.localdomain is 127.0.0.1, you don't want that.
    Best Regards
    mseberg

Maybe you are looking for

  • Change Retina Mac pro's display to Negative?

    How can I change my new macbook pro retina's screen to negative resolution? i tried control alt command 8. didnt work. I even went to "display" in system preferences. hoping they haven't gotten rid of the function all together. Edit: I just figured i

  • Audio output from ATV carries noise/humm when also sending video

    I have my Apple TV connected to my LCD TV via HDMI, and I am also sending audio out via the RCA jacks to my distributed audio system (Netstreams Quartet). The audio signal going to the Netstreams system has a noticable humm to it. The humm goes away

  • AP -add field in Payments screen

    Hi all In the AP abc Manager responsibility --Payments screen is it possible to add an extra field in the same screen along with Type,Bank Account ..fields kindly guide thanking in advance

  • How long for Solaris 10 6/06 CDs?

    How long before Sun will have the Solaris Media Kit containing the latest release 6/06 for purchase? Just curious. Thanks.

  • Toch 9800 - repair under constructor warranty

    Hello, Last Sunday morning I found my BBY off (I let it on, just unconnected - offline), and I cannot switch it on since then. (I've tried to charge, to connect to PC; Sometimes it begins to switch on but it interrupt before beeing on) Mobile phone o