MS Access .mdb connection using ODBC could not resolve the connect identifier ORA-12154

Dear All,
I'm trying to use MS Access .mdb file as source to my OWB application. I need to connect to the ms access .mdb file first using odbc. Here are the step I do:
1. Define ODBC connectifity
     control panel -> admin tools -> data sources -> System DSN -> Add
     Choose Microsoft Access Driver (*.mdb) -> Finish
     Data source name: msaccess -> Database: Select -> .mdb file location (C:\MSAccess\att2000..mdb)
2. Configure Listener
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
      (SID_NAME = msaccess
      (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
      (PROGRAM = hsodbc)
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (SID_DESC =
      (SID_NAME = msaccess
      (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
      (PROGRAM = hsodbc)
ADR_BASE_LISTENER = C:\app\Administrator
3. Configure Oracle HS
     File name initmsaccess.ora
# HS init parameters
HS_FDS_CONNECT_INFO = msaccess
HS_FDS_TRACE_LEVEL = 1
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
4. Edit tnsnames.ora
msaccess=
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SID=msaccess)
      (SERVICE_NAME=msaccess)
  (HS=OK)
5. create database link
create database link msaccess using 'msaccess';
6. Run a query to test connection
SQL> select * from departments@msaccess;
ERROR at line 1:
ORA-12154: TNS:could not resolve the connect identifier specified
I check the tns using tnsping msaccess, it return
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
t)(PORT = 1521)) (CONNECT_DATA = (SID=msaccess) (SERVICE_NAME=msaccess)) (HS=OK))
OK (120 msec)
Any body know how to solve this?
Best Regards
Akhmad H Gumas

Klaus,
just fix the point you mention.
here are the execution result:
C:\>C:\app\Administrator\product\11.2.0\dbhome_1\bin\lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 05-AUG-2014 17:10
:23
Copyright (c) 1991, 2010, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias                     LISTENER
Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date                05-AUG-2014 17:09:18
Uptime                    0 days 0 hr. 1 min. 5 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   C:\app\Administrator\product\11.2.0\dbhome_1\network\a
dmin\listener.ora
Listener Log File         c:\app\administrator\diag\tnslsnr\eric-fd165f15bb\list
ener\alert\log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
  Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "msaccess" has 1 instance(s).
  Instance "msaccess", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\>C:\app\Administrator\product\11.2.0\dbhome_1\bin\dg4odbc
Oracle Corporation --- TUESDAY   AUG 05 2014 17:12:18.509
Heterogeneous Agent Release 11.2.0.1.0 - Production  Built with
   Oracle Database Gateway for ODBC
C:\>C:\app\Administrator\product\11.2.0\dbhome_1\bin\tnsping msaccess
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 05-AUG-2
014 17:12:48
Copyright (c) 1997, 2010, Oracle.  All rights reserved.
Used parameter files:
C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
t)(PORT = 1521)) (CONNECT_DATA = (SID=msaccess)) (HS=OK))
OK (20 msec)
Looks like the problem is the missing closing bracket. Finally the query work after i fix it. Thanks a lot Klaus
Best Regards
Akhmad H Gumas

Similar Messages

  • Could not resolve the conect identifier specified XE

    HI  I am using toad to connect to oracle .
    I have installed the 10g express edition on my laptop and using toad to connect to  it and do my work.
    The problem i am facing is when ever i try to connect through TOAD ,it says that could not resolve the connect identifier specified (XE).
    But i checked the tnsnames.ora entry and it looks fine.
    In fact i used plsqlsql developer and it is able to connect  with out any problem .
    But i am used to the tool toad and hence want to use toad .why this error is occuring only in TOAD.
    when i click on tnsnameseditor in toad ,it sows correct tnsfile and it ays the entry is valid.
    when i click on SQLNET editor ,there i see following parameters.
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    # The following parameters were set by TOAD
    SQLNET.AUTHENTICATION_SERVICES=(NTS)
    LOG_DIRECTORY_CLIENT=D:\oracle10G\app\oracle\product\10.2.0\server\Network\Log
    LOG_FILE_CLIENT=sqlnet_log
    SQLNET.EXPIRE_TIME=0
    TRACE_DIRECTORY_CLIENT=D:\oracle10G\app\oracle\product\10.2.0\server\Network\Trace
    TRACE_FILE_CLIENT=sqlnet_trc
    TRACE_FILELEN_CLIENT=100
    TRACE_FILENO_CLIENT=3
    TRACE_LEVEL_CLIENT=OFF
    TRACE_TIMESTAMP_CLIENT=ON
    TRACE_UNIQUE_CLIENT=ON
    USE_DEDICATED_SERVER=OFF
    I tried uninstalling both oracle and toad and tried ,but the same annoying error .
    Any help is much appreciated.

    ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
    ORA-12154 [B]NEVER[/B] involves the listener, the database itself or anything on the DB Server.
    ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
    TNS-03505 is thrown by tnsping & is same error as ORA-12154 thrown by sqlplus or others.
    The lookup operation fails because the name provided can [B]NOT[/B] be resolved to any remote DB.
    The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
    The most frequent cause for the ORA-12154  error is when the connection alias can not be found in tnsnames.ora.
    The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.
    TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1]
    http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/

  • 08004:[oracle][odbc][ora]ora-12154: TNS: could not resolve the connect ....

    This error has just recently started happening, and i cannot figure out why, i have not changed anything in tnsnames.ora file.
    i am always able to "test connection" in ODBC. even when i get the error in crystal.
    so i restart Crystal, and i am able to connect to db.
    strange thing is that always when i do a tnsping to db i always get the message :-
    TNS-12541: TNS:no listener
    Any ideas ?

    Re: 08004:[oracle][odbc][ora]ora-12154: TNS: could not resolve the connect ....  
    Posted: Aug 22, 2011 5:56 PM     in response to: John Fleming          
         Edit                          Reply
    I am receiving a similar error.
    Failed to open the connection.
    Details: 08004:[Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified [Database Vendor Code: 12154]
    I've seen all sorts of discussion on the intertubes about possible fixes however, none stated are practical or they do not address my error specifically. I've exhausted resources on the net as well as those available to me.
    I'm currently running SAP Crystal Reports 2011 on WIN7 64bit and using Oracle in OraClient 10g_home1.
    Please let me know what insight you have. I cannot roll back to previous versions of Windows nor less encryption.
    Thank you for your time.

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

  • TNS:could not resolve the connect identifier specified

    I am at the end of my rope and I would really appreciate some assistance.
    I get the error: "TNS:could not resolve the connect identifier specified " from my ASP pages and "Warning: oci_connect() [function.oci-connect]: Error while
    trying to retrieve text for error ORA-12154" when connecting from php pages.
    I am trying to access these pages from the same server as the database.
    I manage to connect to the database homepage, but only after I manually stop and start the database after a restart (why?).
    I have been reading forums and I have been googling for days. I think this is what you guys need to know to be able to help me.
    General information:
    Oracle Database 10g Express Edition Universal
    Windows Server 2003 Standard SP 1
    IIS 6
    PHP Version 5.1.2
    ASP allowed "normal" scrips runs ok
    Php Allowed "normal" scrips runs ok
    system variable path
    C:\oraclexe\app\oracle\product\10.2.0\server\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\php;C:\instantclient_10_2
    (server has been rebooted since last editing)
    IUSR_Curium has full control on following folders including subfolders:
    c:\windows\temp
    C:\oraclexe
    C:\instantclient_10_2
    IWAM_Curium
    IUSR_Curium has full control on following folders including subfolders:
    c:\windows\temp
    C:\oraclexe
    C:\instantclient_10_2
    HTTP access is set to "Available from local server and remote clients"
    All oracle related services except OracleJobSchedulerXE is set to Automatic and is in status started
    I can ping curium and i get a response from the server's public IP-Adress
    I can ping localhost and i get a response from 127.0.0.1
    This is my connection in ASP:
    Set OraConn = Server.CreateObject("ADODB.Connection")
    Oraconn.ConnectionString = "Driver={Microsoft ODBC for Oracle};Server=xe;Uid=hr;Pwd=hr;"
    ASP connection gives the following error:
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154: TNS:could not resolve the connect identifier specified
    /asptest/test.asp, line 5
    This is my connection in php
    $conn = oci_connect('hr', 'hr', 'xe');
    PHP connection gives the following error:
    Warning: oci_connect() [function.oci-connect]: Error while trying to retrieve text for error ORA-12154 in c:\Inetpub\wwwroot\index1.php on line 3
    Error while trying to retrieve text for error ORA-12154
    C:\>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-MAR-2006 22:09:01
    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 21-MAR-2006 20:57:04
    Uptime 0 days 1 hr. 11 min. 58 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.ora
    Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=curium)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=curium)(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:\>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-MAR-2006 22:11:39
    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:38 refused:0 current:24 max:1002 state:ready
    DISPATCHER <machine: CURIUM, pid: 1972>
    (ADDRESS=(PROTOCOL=tcp)(HOST=curium)(PORT=1045))
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:1 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:1 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    C:\>tnsping XE
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-MAR-2
    006 22:14:10
    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 = curium)(
    PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (10 msec)
    C:\>sqlplus system/xxxxx as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Ti Mar 21 22:15:38 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    C:\>sqlplus hr/hr@XE
    SQL*Plus: Release 10.2.0.1.0 - Production on Ti Mar 21 22:15:21 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    C:\>sqlplus "/ as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Ti Mar 21 22:15:02 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Litener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = curium)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    sqlnet.ora
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES = (nts)
    tsnames.ora
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = curium)(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)
    Sorry for the long post....
    Best regards
    Roy-Christian Natland
    Norway

    Great post - it has nearly everything needed for diagnosis. Well done.
    The database is working, and the listener is listening. The successful tnsping to XE shows me that the client subsystem (at least in the oraclexe) path is set up correctly.
    However, two other non-oracle clients (ASP and PHP) cannot see the definition for the XE server. This suggests to me that something is pointing them to another Oracle client software set up
    I note that you have C:\instantclient_10_2 in your path - so presumably you had/have installed Instant Client on this machine as well ?
    Given that you are on the server box, I don't think you need the Instant Client set up. It's possible that this is what is misdirecting the other clients you are suing. Try taking this out of your path.
    If that doesn't work, can you provide the output of a SET command issued from the command line.

  • DNS Set Up system throw as ORA-12154; TNS :could not resolve the connect id

    Hi,
    While i'm creating DNS set up system throws below message
    unable to connect
    SQLState=08004
    DNS Set Up for instantclient(win32-10.2.0.4) system throw as ORA-12154; TNS :could not resolve the connect identified specified.
    operationg system:xp
    dir path:C:\Oracle\instantclient10_2
    TNSNAMES.ORA(C:\Oracle\instantclient10_2\NetWork\ADMIN) Contants
    YourTNSName =sankar
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT =1521))
    (CONNECT_DATA =
    (SID =sankar)
    (SERVER = DEDICATED)
    dir contains:
    sqresus.dll,
    sqresja.dll
    sqoras32.dll
    sqora32.dll
    oraociei10.dll
    oraocci10.dll
    orannzsbb10.dll
    ojdbc14.jar
    ocijdbc10.dll
    ociw32.dll
    oci.dll
    classes12.jar

    user7197586 wrote:
    Hi
    I have been created one DBLink it's created but when i am trying to access the data through the link it's raise error as
    "ORA-12154: TNS:could not resolve the connect identifier specified"
    CREATE
    PUBLIC DATABASE LINK
    Vrd_tcplink
    CONNECT TO
    "SAPVRD"
    IDENTIFIED BY
    "manager123"
    USING
    'VRD_TCP.WORLD'
    created this above dblink
    Kindly Suggest to wau out.
    Regards,
    Sachin
    When using a dblink, the database with the link is acting as a client to the remote database ... exactly like sqlplus running on the db server.
    read: http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ ora-12154tns-03505

  • 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 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-12541 ORA-12154: TNS:could not resolve the connect identifier specified

    I am having trouble obtaining an ODBC connection from a client XE to a server XE. ora-12541 ORA-12154: TNS:could not resolve the connect identifier specified
    I am new to Oracle.
    I have oracle client XE running on my XP pro box.
    I have oracle server XE running on an XP pro box on the LAN.
    I am trying to connect to the oracle database using ODBC from my client box.
    I can logon to the oracle server box through HTTP.
    I can logon to the oracle server box by using a connection string in "Command Line SQL" from my client computer. I can then run queries on my client computer. (select * from global_name)
    I cannot setup an ODBC connection in windows which will connect to the oracle server box from my client box. (I have no trouble connecting to MSSQL databases).
    I can ping my server by hostname or ip address. Both ok.
    I can run tnsping XE on the server box and it works. I believe this tells me my server listener is working.
    I cannot run tnsping on my client box as it is not included in the download for Client XE.
    Windows firewall is turned off on both machines.
    I have been reading all over the web for and all attempts fail. Most all help says use Oracle Net Manager or some such tool. They then say go to start\programs\oracle….etc. There is no type program included on the server or the client software. I would like to know here I can download it.
    XEClint\Bin is the firs entry in my PATH. The tnsnames.ora, sqlnet.ora, and listner.ora files are there. I have been to http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25143/toc.htm several times. My tnsnames.ora are identical to the ones in the example except for the host =.
    I have 3 tnsnames.ora files on my computer:
    Directory of c:\
    04/03/2008 11:43 AM 635 tnsnames.ORA
    Directory of c:\Documents and Settings\All Users\Application Data\Microsoft\Net
    work
    04/03/2008 11:43 AM 635 tnsnames.ORA
    1 File(s) 635 bytes
    Directory of c:\XEClient\bin
    04/03/2008 11:43 AM 635 tnsnames.ORA
    1 File(s) 635 bytes
    They are all identical.
    When I ran lsnrctl status on the server the results were the same as found in other articles in the web site. Default service XE
    I have the Oracle in XE Client driver in my windows ODBC driver list of the client box. And other Oracle drivers.
    It appears I am lost.
    Any help would be appreciated.
    Randy

    I cannot setup an ODBC connection in windows which will connect to the oracle server
    box from my client box. (I have no trouble connecting to MSSQL databases).How you tryed to do that?
    On which step you have problems?

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

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

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

    Getting this Error on our new windows 7 64bit OS
    i am running both in the App and Ora in the XP compatibility mode.
    A database error occurred in OCILogon (-1).
    ORA-12154: TNS:could not resolve the connect identifier specified
    <null>
    The debug Console give's the following message.
    "App Debug Console enabled
    (switched to code page 1252)
    ORASP>orasp_oci_open: ORA-12154: TNS:could not resolve the connect identifier specified
    I can make the conection to the db by Loging directly into the Oracle SQL using the same info as my sams.
    the conection works fine on our old XP OS....
    any idea what i have to do to get this to run on Windows 7
    thanks

    Hi,
    1) Check the tnsnames.ora file you are using, verify that it is accessible.
    Eg: On Unix:
    - Check if you have a $HOME/.tnsnames.ora file - This will be
    used in addition to 'tnsnames.ora'.
    - Check TNS_ADMIN is set in your environment.
    - There is a readable tnsnames.ora file in $TNS_ADMIN
    2) Ensure that the tnsnames.ora file contains a line of the form
    'alias=(...)' for the alias you are specifying.
    Aliases are NOT case sensitive.
    3) Make sure that there are no mismatched parentheses in the
    tnsnames.ora file.
         4) Even if TNS_ADMIN is set SQL*Net looks in other locations for
         configuration files. Check the default directories for old (or bad)
         copies of TNS_NAMES.ORA. Eg: /etc, /var/opt/oracle,
         $ORACLE_HOME/network/admin
    5) Check the default domain name being used, and the path used to
    locate aliases, in the SQLNET.ORA file.
    The default domain is specified in the NAMES.DEFAULT_DOMAIN
    parameter - this is appended to the alias specified in the
    connect string if there is no domain given.
    Eg: If NAMES.DEFAULT_DOMAIN=mydom.uk
    and a connect to "scott/tiger@mydb" is requested
    SQL*Net will look for the alias "mydb.mydom.uk"
    If NAMES.DIRECTORY_PATH is also specified this determines where
    SQL*Net looks for the alias expansion.
    6) If none of these show an error enable client side tracing
    at level 16 and see what has been written to the client trace
    file. There list of aliases in the trace file under the heading
    'TNS.NAMES.ORA TABLE HAS THE FOLLOWING CONTENTS'.
    7) If ORA-12154 is returned when selecting over a database link from a
    client check that the alias in the link can be resolved in the
    tnsnames.ora file ON THE SERVER.
    8) If you are connecting from a login dialog box, verify that you are
    not placing an "@" symbol before your connect net service name.
    9) When going from Windows to Linux/Unix platforms,
    you can see <carriage return> <new line> characters at the
    end of each line instead of <new line> <new line>. Be sure you
    use ascii mode when ftp'ing this between Windows and Linux/Unix.
    Regards,
    Kal

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

    Hi All,
    We are using BOBJ Edge 3.1on top of Oracle 9i.Iam able to create the Universe,connection and the Desktop Intelligence Reports.But when iam trying to create a Webi Report, iam getting the error message "u201CORA-12154: TNS: could not resolve the connect identifier specifiedu201D.Iam gettig the same error when iam trying to preview the QAAWS.Any idea why we are getting this issue.
    Regards
    Amit

    hi,
    Below link may be helpful.
    http://www.forumtopics.com/busobj/viewtopic.php?p=813902&sid=721d8dcabf151bf419cc2f7b4e4757d4
    Regards,
    Vamsee

Maybe you are looking for

  • Focus on JOptionPane

    I have a problem. If I want to change something within a table, a JOptionPane opens, in which i can enter some values. But if I switch to another program over the task bar while the JOptionPane is still open, and I return to my Java program over the

  • Clean Reinstall

    I'm preparing to clean-up my computer by doing a complete reinstall. My backup process involves a complete back-up of the Home directory. As per Apple's FAQ, I will restore the Home directory backup after reinstalling OSX plus applications. Will file

  • Issues reading and burning with superdrive (mac pro 1.1)

    I am starting to experience a very annoying issue: the superdrive in my mac pro started to get bonk; not reading dvd that i burned some time ago with nero on pc; then it started to cause issues while burning with any software (finder, disk utility, t

  • I need help with installation of CS6

    Hello, I have been using CS6 on my PC laptop, finally I have upgraded to a Mac, however the veriosn of CS6 that I have is for windows, can someone please tell me how to install this for Mac? Thanks in advance, Tom

  • CDR Analysis Reporting Tool

    I am attempting to run a report under the selection, User Reports > Bill > Department with detail information. The problem is the report falls back a couple of weeks. I would like to get closer to the present date. Where in the system can I make the