ORA-12154 trying DB link

Hello

I hit ORA-12154 tries to use a DB link. However, I am able to connect to the target DB through a client.
select * from user_tables@tnsentry;
ORA-12154: TNS:could not resolve the connect identifier specified

sqlplus user/pwd@tnsentry;
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>
If anyone can help.

Thank you
CJM

user13102515 wrote:
Chinar,

Sorry to bug you like this.

Why can't hang in the database with a DB link when I can log the same database by using a client? And I thought that the tnsnames.ora on the client computer has been making analyzed to extract the server connection details.

I have a couple of queries. I would really appreciate if you could answer or point me to a link that explains this:

(1) the names of descriptor connect in tnsnames.ora on the client and server must always match? -(Je pensais qu'ils didn't doit).
(2) most of the databases that I use the same request to connect to the server and the client, descriptor names. I tried to change, and I was hitting ORA-12154 more time, but not always. Why this behavior a bit?

Thank you
CJM

When you use a db_link, the database in which the link is defined and referenced acts as a client to the target of the link. That is why the machine hosting the source of the link must now be considered the client computer, insofar as this db link is concerned.

Tags: Database

Similar Questions

  • DB Link error: ORA-12154: TNS: could not resolve the connect identifier specified

    Hi all

    We need to make an entry in the tnsname.ora file in a local database to connect to the remote database using db link?

    Here is my code: -.

    create the database link * _DBLINK

    connect to the USER IDENTIFIED BY 'user '.

    using '(DESCRIPTION =)

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = *. *. *. *)(PORT = 1521))

    )

    (CONNECT_DATA = (SERVICE_NAME = REM)

    )';

    After the creation of the DB connection when I'm trying to run select 1 of dual@***_DBLINK

    He throws me an error ORA-12154: TNS: could not resolve the connect identifier specified

    Am I expected to do an entry in the file tnsname.ora for "REM". I don't remember making any changes in the file tnsname.ora for the creation and access of the remote database via dblink.

    Help, please.

    Thanks in advance.

    2925917 wrote:

    Hi all

    We need to make an entry in the tnsname.ora file in a local database to connect to the remote database using db link?

    Here is my code: -.

    create the database link * _DBLINK

    connect to the USER IDENTIFIED BY 'user '.

    using '(DESCRIPTION =)

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = *. *. *. *)(PORT = 1521))

    )

    (CONNECT_DATA = (SERVICE_NAME = REM)

    )';

    After the creation of the DB connection when I'm trying to run select 1 of dual@***_DBLINK

    He throws me an error ORA-12154: TNS: could not resolve the connect identifier specified

    Am I expected to do an entry in the file tnsname.ora for "REM". I don't remember making any changes in the file tnsname.ora for the creation and access of the remote database via dblink.

    Help, please.

    Thanks in advance.

    I've learned to trust in your obfuscation you covered something important, or you are showing some apples and oranges.  Error to declare you come from not being able to find referenced in tnsnames.ora entry, but the way you say you created your link db, you hardcoded the entire connection, so he never users tnsnames.ora.

    I would change the definition of db_link

    create the database link * _DBLINK

    connect to the USER IDENTIFIED BY 'user '.

    using "REM."

    Then create an entry in your tnsnames.ora

    REM =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = *. *. *. *)(PORT = 1521))

    )

    (CONNECT_DATA = (SERVICE_NAME = REM)

    )

    )

    Also, use server name instead of the HOST = IP address

    The closer looks that you can miss brackets final closing on your original definition.

  • Error trying to recover the ORA-12154 error text

    Hi all

    We want SETTING using ad module OBIA 7964 Finance. As part of have installed us Informatica 9.0.1 in our Linux x 86-64-bit server machine. And in the same machine, we installed a 11.2.0.1.0 oracle client.

    And we install Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production in another linux server.

    Now the question while trying to create a service of Informatica repository we get the error

    2013-04-25 12:52:38: ERROR: (7899 | 140669883090720): (RS |) (BIAPPS_DEV): node01_haidcobidev01: OBJM_54538: unable to connect to the repository BIAPPS_DEV to the orcl database.
    2013-04-25 12:52:38: ERROR: (7899 | 140669883090720): (RS |) (BIAPPS_DEV): node01_haidcobidev01: REP_51002: could not connect to the database server
    Database driver error...
    Function name: logon
    Error trying to recover the ORA-12154 error text

    Database driver error...
    Function name: connect
    Database error: unable to connect to the database using the [lower] user and the connection string [orcl]

    Please let us know is there something missing as part of the Setup and let us know how to solve this problem.

    Thank you
    Dany

    Who is the owner of this post?
    Looks like 2 different people possess!

    What link if you guys pass, try something like
    HostName: port / serviceName

  • ORA-12154 error trying to connect with the customer instant g 11 / LDAP on Ubuntu

    Hello

    I managed to install the client instant 11.2.0.2 and sqlplus on my Ubuntu 11.04 desktop. I am able to connect successfully to DB defined in tnsnames.ora, but when the resolution is (or should be) by LDAP, I get error

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

    Note: while it is fine for the test, it is not a viable option to configure all DB defined in the OID in tnsnames.ora - I need to use LDAP.

    My configuration is:

    Installation folder: / opt/oracle/instantclient_11_2
    TNS_ADMIN = / opt/oracle/instantclient_11_2 /.

    SQLNET.ora
    NAMES. DIRECTORY_PATH = (TNSNAMES, LDAP)

    I am sure that the tnsnames.ora and ldap.ora are valid, as I can connect on another machine with the full client installed successfully by using the same files.

    I tried tracing facility in sqlnet.ora as follows
    TRACE_LEVEL_CLIENT = SUPPORT
    TRACE_DIRECTORY_CLIENT = / tmp
    TRACE_FILE_CLIENT = sqlnet.trc
    but not the trace file is generated in the directory/tmp - I'm doing something wrong? (Note, I also tried to set DIAG_ADR_ENABLED = OFF as suggested by Laurenz Albe in Instant client do not trace but which did not help)

    I checked DocID = 359206.1 but I don't think that this applies as I am on 11 g.

    I hope someone can help. Thanks in advance!

    It might be the return transport of the characters in the parameter files - make sure your sqlnet.ora and ldap.ora are in Unix format.

    Linux vi versions tend to switch seamlessly between unix and back mode so it isn't always obvious - you can check with something like "od - c sqlnet.ora.

  • DB Link error: ORA-12154: TNS: could not resolve the connect identifier...

    All,

    Help, please. I get the error above despite all I know to do:

    tnsnames.ora entry for the remote database (it is what is on the local database):

    ORACLE6. STAGING =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle6.staging.hobank.net) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = banksys))
    )


    The following works without problems of local database to a remote database:

    On the local database:

    sqlplus kay/[email protected]
    ...
    ...

    Connected to:
    Oracle Database 10 g Enterprise Edition Release 10.2.0.2.0 - 64 bit Production
    With partitioning, OLAP and Data Mining options

    SQL > select * from emp;

    EMPNO, ENAME, JOB HIREDATE SAL COMM MGR
    ---------- ---------- --------- ---------- --------- ---------- ----------
    DEPTNO
    ----------
    2 Kay Baffy DBA 1 6 November 10 50000.25
    2

    * These data are correct and comes from the remote database *.

    Next, I created the database link that is connected to the local database:

    create the database public link oracle6.staging
    connect to identified by kay kay
    using 'oracle6.staging ';

    Database link created.

    !!! But the following does not work:

    SQL > select * from [email protected];
    Select * from [email protected]
    *
    ERROR on line 1:
    ORA-12154: TNS: could not resolve the connect identifier specified


    I am sure of the following:

    1 DB link has been created on the local database.
    2 oracle6.staging entry is tnsnames.ora
    3. I am able to connect to a remote database with: sqlplus kay/[email protected]

    * Any help will be be appreciated.* *.

    Thanks in advance.

    Baffy

    See the link:-hope, it will be useful for you.

    Troubleshooting of database links
    http://www.akadia.com/services/ora_dblinks.html

    Kind regards

  • A question about the CREATE DATABASE LINK PUBLIC and ORA-12154 error

    Hi all


    I have a problem on the public database link creation and I would be grateful if you could kindly give me a helping hand. I have the following connection settings in my
    tnsnames.ora file:
    ...
    DGPAPROD.WORLD = 
         (DESCRIPTION = 
           (ADDRESS_LIST = 
            (ADDRESS = (COMMUNITY=tcp.world)
              (PROTOCOL=TCP)(HOST=ORASR001)(PORT=1521)
             ) 
           )
           (CONNECT_DATA = (SID = DGPAPROD))
        )
    ...
    Having the above mentioned parameters, I can connect to this remote database directly in a SQL * more shell:
    $ sqlplus username/[email protected]
    It works pretty well and the connection is established without any problem.

    Now, what I want to do is to create a public database of this remote database link to avoid the user/connection of switch for the visualization of the
    the content of this database. I proceeded in line with the syntax indicated in the Oracle online documentation:

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/statements_5005.htm#SQLRF01205

    This is why I run the following to create a public database link
    CREATE PUBLIC DATABASE LINK SR001_dblink CONNECT TO user IDENTIFIED BY password USING 'DGPAPROD.WORLD';
    Apparently there is no error and the link is created successfully. However, it cannot resolve the remote host and every time I run this query
    (myenterprise is the name of a table in the remote database)
    SELECT *
    FROM myenterprise@SR001_dblink
    
    ERROR at line 1:
    ORA-12154: TNS:could not resolve the connect identifier specified
    What causes this problem?

    Thanks in advance,


    Kind regards
    Dariyoosh

    You must have defined DGPAPROD. WORLD in tnsnames.oar on the server where DB is runnig.

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

    Hello

    I am not able to connect to the database using sqlplus, using following command:

    sqlplus activites@OCA010

    I get the error message "ORA-12154: TNS: could not resolve the connect identifier specified.

    I tried to connect by providing the full as connection string: "" sqlplus activities / [email protected]:1521 / compix "and he succeeded."

    I also tried to connect using sql developer by providing network TNS alias 'OCA010' it is also successful.

    Someone could please help out here and let me know how can I connect using sqlplus using aliases TNS network.

    content of the tnsnames.ora file is as follows

    tnsnames.ora # Network Configuration file: D:\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora

    # Generated by Oracle configuration tools.

    COMPIX =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = LUCKY-HP)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = compix)

    )

    )

    BC =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = LUCKY-HP)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = BC)

    )

    )

    ORACLR_CONNECTION_DATA =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    )

    (CONNECT_DATA =

    (SID = CLRExtProc)

    (PRESENTATION = RO)

    )

    )

    OCA01 =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = LUCKY-HP)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = OCA01)

    )

    )

    OCA010 =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.10.3)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = compix)

    )

    )

    Thanks in advance.

    2931143 wrote:

    Hi EdStevens,

    I used option TNS with Alias network as 'OCA010' in Sql Developer.

    I checked in tnsping and tnsnames.ora directory is correct.

    Please find below the exit of tnsping:

    C:\Users\LUCKY>tnsping OCA010

    AMT Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on October 29, 2015 21:07:38

    Copyright (c) 1997, 2010, Oracle.  All rights reserved.

    Use settings files:

    D:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\sqlnet.ora

    AMT-03505: failed to resolve the name

    Have you worked from the link I provided?  (I don't think you have time to do).

    It is possible that your tnsnames.ora is corrupted by some weird characters printable somewhere.  In some versions of the oracle, he might be sensitive to spaces vs. tabs.  If in doubt, netca to add entries, rather than doing it by hand.

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

    Hello

    I installed Oracle 11 g server in Windows 2008 and also installed customer DB 64 & 32 on the same server client.

    When I try to test the Oracle DB connection using the UDL file, I get the error message below. Please could you help me solve this problem.

    -Microsoft Data Link Error.

    Test connection failed because of an error initializing provider.

    [DBNETLIB] [ConnectionOpen(connect()) (Connect()).]

    SQL Server is not, or access is denied.

    --------------------------- OK  ---------------------------

    I have connected to SQL using sysdba and tried to connect to the schema. It is not connection and throwing below error.

    "ORA-12154: TNS: could not resolve the connect identifier specified.

    I checked the TNSNAMES.ora file. Everything seems fine.

    Thank you

    Michel K

    Hello

    I see just a glance on the tnsnames file you are missing at least one sign =...

    You have

    ORCL

    (DESC...

    You should have

    ORCL =

    (DESC...

    There may be other issues too, but give that a try at first - you better run netmgr to allow oracle to create the file for you.

    See you soon,.

    Rich

  • error ORA-12154 tns

    I gave my hours 7, no way... the database 11g EM works without any problem... but the CMD menu when I try to connect to sqlplus, no link... I get the classic error ora-12154 tns... I also have Developer oracle adapt in my pc. both work without a problem, I mean database and oracle dev suit work well. no connection problem.but I told you with the sqlplus I problem. no connection. I deleted listener add meaning new one .no... the problem is that I haven't studied with oracle recently, I'm very rusty even though I am a certified dba 10 g, I forgot many things... pls help me friends... What can I do to fix this? I stop my firewall on windows... had not led at all... and also to restart all the services of ora... does not effect... and yet one thing when I checked the ora of the listener, tnsnames etc. I realized I have several listeners and sqlnet files this weird extensions such as listener11122712AM2407.ora and sqlnet11122712AM2407... pls help
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Listener.ora

    listener.ora # Network Configuration file: C:\app\ada\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 = C:\app\ada\product\11.2.0\dbhome_1)
    (= Extproc PROGRAM)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\app\ada\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = ada - PC) (PORT = 1521))
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    )
    )

    ADR_BASE_LISTENER = C:\app\ada

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    SQLNet



    # This file is actually generated by netca. But if customers can opt for
    # install 'Software Only', this file does not exist and without the native
    authentication #, they will not be able to connect to the database on NT.

    SQLNET. AUTHENTICATION_SERVICES = (NTS)
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    tnsnames


    tnsnames.ora # Network Configuration file: C:\app\ada\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.

    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )
    )
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    When I posted my first response, I guess you are trying to connect to your database that is running on the same server, i.e. locally. So I wanted to make sure DOB connections are ok. But appearantly not. You get the ORA-12560 error when "/ as sysdba".

    To do so below if my hypothesis is correct:

    1. go to the command prompt
    2. set the ORACLE_HOME =
    3. set ORACLE_SID =
    4. set the path ="/ bin"
    5 sqlplus "/ as sysdba".
    If it works, output
    6. now try sqlplus .

    Paste the result.

  • ORA-12154 for sqlplus username/password@TNS but tns ping works and sqlplus username@TNS works.

    Hello-

    I am facing the following question when I try to connect by using the command prompt sqlplus for Oracle 11.2.0.3 DB installed and running on HP - UX.

    The password is not all special characters & I also tried with the double quotes which did not work.

    Following want to work with username/password@TNSNAME because I'm trying to get my application to connect to the database, the schema mentioned because it uses the jdbc connection with the connection as (username/password@TNS:1521) string.

    C:\Users>sqlplus username/Pa55w0rd@DBNAME;
    
    
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 10 07:21:43 2016
    
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    
    
    
    
    Enter user-name:
    C:\Users>tnsping DBNAME
    
    
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 10-FEB-2
    016 07:21:57
    
    
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    
    
    Used parameter files:
    C:\app\product\11.2.0\client_2\network\admin\sqlnet.ora
    
    
    
    
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = server.domain) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DBNAME)))
    OK (50 msec)
    
    
    C:\Users>sqlplus username@DBNAME
    
    
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 10 07:22:05 2016
    
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    
    Enter password:
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    
    
    SQL> show user
    USER is "username"
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64
    bit Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    
    
    C:\Users>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    content content of tnsnames.ora & sqlnet.ora:

    DBNAME =
    (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP) (HOST = server.domain)  (PORT = 1521))
        (CONNECT_DATA =
            (SERVER = DEDICATED)
            (SERVICE_NAME = DBNAME)
        )
    )
    

    # sqlnet.ora Network Configuration File: C:\app\product\11.2.0\client_2\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    
    
    # 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)
    
    
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    
    
    
    
    
    
    
    

    Thanks in advance

    Hello

    sqlplus username/Pa55w0rd@DBNAME;

    Try it without the semicolon;

    sqlplus username/Pa55w0rd@DBNAME

    Regards Thomas

  • How to overcome ORA-12154 on afdbprf.sh and adcrobj.sh in Autoconfig

    I'm cloning a database uses the same set of scripts I used for two years without problems.  This, however, when I ran adcfgclone.pl dbconfig it failed during the automatic configuration.  The error is Autoconfig 2 status while the detail in the paper shows ORA-12154.

    I put the code in the templates afdbprf.sh and adcrobj.sh at the exit of the connection, connection and env, which look all right.  I can use this same set up the environment to run the sql code requested in these shell scripts and it connects fine.  This left me in the lurch because why this behavior in adconfig.

    I'm under EBS 12.1.3 on RDBMS Oracle Linux 11.2.0.3.  I created an SR that has proved so far a vain effort as the first, I was told to use a different document because I am on EBS 11.5.9, that I had to correct them, and then I was told to apply 7 different patches and let them know when I did when 4 of these patches have for database 12 c 1 was a fix for what one of the hotfixes 12 c breaks, another was for CARS and we are autonomous, and the last was a component of specific applications difficulty when our question database layer.  In other words, none of them applied, and despite sending newspapers, there is no indication that the analyst tried to identify the problem yet.

    I hope that the community here may be able to give assistance to help me go beyond this issue, or at least still identifying a root ask so I can find a solution.

    I will close this thread claiming that rename the ifile so that custom parameters are eliminated, and their restaurant then at the end the clone was the solution.  It takes a client specific configuration so autoconfig works with generic parameter sets, he expects.  The ifile can be renamed after the clone so they can be used by the finished system.

  • ORA-12154 as sysman

    Try to install EM. It can not connect like sysman. When I try to sqlplus I get 12154, but if I log in as system or sys I can connect without problems. What would cause a user to obtain 12154? TNSNAMES. ORA is set corectly I guess because I can connect with sys and system

    sqlplus sys@mbdb_tcp works fine

    sqlplus system@mbdb_tcp works fine

    sqlplus sysman@mbdb_tcp gets 12154.

    Change the password and re sysman attempt. Please see the link below

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

  • .Mdb MS Access using ODBC connection failed to resolve ORA-12154 connection identifier

    Dear all,

    I am using the MS Access file .mdb as the source of my request for OWB. I need to connect to the ms access .mdb file first using odbc. This is the step that I do:

    1. define the ODBC connectifity

    Control Panel-> admin tools-> data-> system-> add DSN sources

    Select Microsoft Access Driver (*.mdb)-> Finish

    Data source name: msaccess-> database: Select-> location of the file .mdb (C:\MSAccess\att2000.. (MDB)

    2 configure the listener

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = CLRExtProc)

    (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)

    (= Extproc PROGRAM)

    (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 = CIP)(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

    #

    # Required for the non-Oracle system environment variables

    #

    #set < varenv > = < 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 the database link

    create the link msaccess database using "msaccess";

    6 execute a query to test the connection

    SQL > select * from departments@msaccess;

    ERROR on line 1:

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

    I check the AMT using msaccess tnsping, it returns

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos)

    (t) (PORT = 1521)) (CONNECT_DATA = (SID = msaccess) (SERVICE_NAME = msaccess)) (HS = OK)( )

    OK (120 MS)

    Any body knows how to solve this problem?

    Best regards

    Akhmad H Gumas

    Akhmad,

    just to confirm that I understood:

    You have an Oracle database and the bridge installed on your machine. The database and the bridge are all part of this Oracle_Home: C:\app\Administrator\product\11.2.0\dbhome_1

    Fix?

    When you look at your listener.ora file it lack a right bracket:

    (SID_NAME = msaccess

    => should be (SID_NAME = msaccess)

    Once done, please STOP and START the listener.

    Then open a command line window and type:

    Set ORACLE_HOME=C:\app\Administrator\product\11.2.0\dbhome_1

    Status of C:\app\Administrator\product\11.2.0\dbhome_1\bin\lsnrctl

    C:\app\Administrator\product\11.2.0\dbhome_1\bin\dg4odbc

    C:\app\Administrator\product\11.2.0\dbhome_1\bin\tnsping msaccess

    And copy and paste the output of each command.

    -Klaus

  • ORA-12154 in oracle 11g r2

    Hi all

    After installing oracle 11 g r2 and configuration I want connect my forms and the relationship with my oracle database 12 c

    After copy file tnsname.ora of

    C:\app\hasnaa\product\12.1.0\dbhome_1\NETWORK\ADMIN

    TO

    C:\Oracle\Middleware\asinst_1\config

    I'm trying to login by username hr forms and pass hr

    get this error:


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



    It's my tnsname file:


    tnsnames.ora # Network Configuration file: C:\app\hasnaa\product\12.1.0\dbhome_1\network\admin\tnsnames.ora

    # Generated by Oracle configuration tools.

    LISTENER_ORCL =

    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))

    ORACLR_CONNECTION_DATA =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    )

    (CONNECT_DATA =

    (SID = CLRExtProc)

    (PRESENTATION = RO)

    )

    )

    ORCL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = orcl)

    )

    )

    could someone help me?

    When loged as username:HR

    Pass: HR

    DATABASE: PDBORCL

    error 12154 appear

    It's perfectly normal: what you type in the DATABASE is not the service or database name, but a tns alias in tnsnames.ora. If your tnsnames.ora is the one you posted, PDBORCL isn't there (see the description of the error in my post above).

  • ORA-12154

    Hello

    Oracle 10.2.0.5
    RHEL4

    We face below error when db creating different patterns of n/b two link (on the same database).

    create database link "db_Test1" to connect to test1 identified by 'password' using service1;

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

    Please suggest.

    Thank you
    Mike.

    1000611 wrote:
    Hello

    Oracle 10.2.0.5
    RHEL4

    We face below error when db creating different patterns of n/b two link (on the same database).

    create database link "db_Test1" to connect to test1 identified by 'password' using service1;

    I hope that this seems to be a syntax error...
    Try as below

    SQL > create database link db_Test1 connect to test1 identified by password using 'service1 ';

    the service name must be in single quotes... someone has already suggested above.

Maybe you are looking for

  • Problem reassembling Pavilion dm4-2015dx

    Okay, so I just bought both a front and rear bezel for my laptop since it broke out a few weeks ago and I just installed them alongside my old screen. I had finished the reassembly of the laptop (to my knowledge) except when I turned it on, it just m

  • Windows Server 2008 R2 network icon shows no Internet connection

    I'm having a problem with my Windows Server 2008 R2 showing without Internet access network icon when, in fact I can browse the Internet without any problems.  Troubleshooting reveals nothing.  It is set with a static IP address and worked before but

  • View Z10 screen on PC?

    I would like to be able to demonstrate an application Z10 on a PC and not directly on a projector. Is this possible?

  • Lack the tab windows 7 shared

    One of my friends has had problems trying to find the common tab for his home network on your pc.  It runs windows 7 starter edition and has connected it to a wireless network and tries to connect his xbox to it but there is no option to share files

  • BBM cannot remove invite BBM or cat

    I'm running a Q10 and I can't delete an invitation BBM. Even when I click on the trash he still won't go away Also, I can't delete or end an active conversation...