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.

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.

  • 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

  • ORA-12154: TNS: could not resolve the connect identifier specified in 11g R2

    Hello

    Recently we changed the name of our Linux server, after chanding hostname, I made changes in tnsnames.ora and listener.ora and also local_listener at the database level.

    When I am trying to connect database of his failure with the error.

    [orawiz@wizapp admin] $ sqlplus system/oracle@WIZ

    SQL * more: Production of release 11.2.0.1.0 LUN 20 16:57:58 Feb 2012

    Copyright (c) 1982, 2009, Oracle. All rights reserved.

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


    Here's my entires of tns.

    [orawiz@wizapp admin] $ cat tnsnames.ora
    tnsnames.ora # Network Configuration file: /wiz_app/wiz/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.

    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.172.20.236)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = wiz)
    )
    )

    #wiz = (DESCRIPTION =
    # (ADDRESS_LIST =
    # (ADDRESS = (PROTOCOL = TCP) (HOST = 10.172.20.236)(PORT = 1521))
    # (CONNECT_DATA =
    # (SERVER = DEDICATED)
    # (SERVICE_NAME = wiz)
    # )
    # )

    [orawiz@wizapp admin] $ cat listener.ora
    listener.ora # Network Configuration file: /wiz_app/wiz/oracle/product/11.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.

    WIZ =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.172.20.236)(PORT = 1521))
    )
    )

    #SID_LIST_LISTENER =
    # (SID_LIST =
    # (SID_DESC =
    # (SID_NAME = wiz)
    # (GLOBAL_DBNAME = wiz)
    # (ORACLE_HOME = wiz_app/wiz/oracle/product/11.2.0/db_1)
    # )
    # )


    ADR_BASE_LISTENER = / wiz_app/wiz/oracle

    [orawiz@wizapp admin] $ cat sqlnet.ora
    sqlnet.ora # Network Configuration file: /wiz_app/wiz/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)

    ADR_BASE = / wiz_app/wiz/oracle


    tnsping also default.

    [orawiz@wizapp admin] tnsping wiz $

    AMT Ping utility for Linux: Version 11.2.0.1.0 - Production on 20 February 2012 17:03:16

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

    Use settings files:
    /wiz_app/Wiz/Oracle/product/11.2.0/Db_1/network/admin/SQLNET.ora

    AMT-03505: failed to resolve the name
    [orawiz@wizapp admin] $

    Nothing to with listener.ora file with ORA-12154.
    If the listener does not not or the status is not ready then it's listener.ora.

    Below add entries in your file tnsnames.ora and post $tnsping wiz

    WIZ =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 10.172.20.236)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = wiz.)
        )
      )
    

    Publish your file sqlnet.ora

    Published by: CKPT on 20 February 2012 17:28

  • Able to connect to SQL Developer but not a toad - ORA-12154: TNS

    My workplace uses TOAD as standard SQL tool to run against Oracle, although I prefer test and use SQL developer.

    When you try to connect to a database in TOAD I get the following error

    ORA-12154: TNS: could not resolve service name

    I'm using the TNSNAMES file. ORA and I am able to connect through SQL Developer, no problem.

    Also in the same file, I'm able to connect to the other TNS names, but all just not this one it seems.

    I find it very strange, because it seems that for this name TNS one, I specifically can not connect through TOAD

    I can connect to any other AMT via TOAD, and I can connect through SQL developer

    I also tried a TNSPING and his returning in OK for the server and the connection seem just.

    I am trying to connect to an Oracle 10 g with TOAD version 8.0.0.47 Server

    Any ideas appreciated!

    I'm doing this from memory, but...

    Oracle 10g database with TOAD version 8.0.0.47
    

    I believe that your version of toad is too low for this version of Oracle. You should be able to confirm with QUEST software.

    Best regards

    mseberg

    I found the page "which versions of Oracle of Toad for Oracle support?

    https://support.quest.com/search/SolutionDetail.aspx?ID=SOL21018

    What version of Oracle 10 is the question?

    https://support.quest.com/search/SolutionDetail.aspx?ID=SOL63225&category=solutions&SKB=1

    Published by: mseberg on July 22, 2011 15:47

    My rule with Toad's (once you get past the version number), if you cannot connect using SQL, Toad will never work.

    Published by: mseberg on July 22, 2011 15:55

  • ORA-12154: TNS: could not resolve the connect identifier specifier (XE)

    Hello

    «I installed on my laptop with win 7 Oracle Database 10g Release 2 (10.2.0.1) Express Edition for Microsoft Windows, but when I tried to connect with Toad for Oracle Freeware 10.6 I get the following error ' ORA-12154: TNS: could not resolve the connect identifier specifier (XE)» I read on the forum that the problem comes from the wrong configuration of the AMT.
    This is rhe tnsping respons
    "C:\Users\Sergiu > tnsping XE.

    AMT Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 13-NOV-2
    010 15:20:10

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

    Use settings files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = Sergiu-PC) (p)
    (ORT = 1521)) (CONNECT_DATA = (SERVER = dedicated) (SERVICE_NAME = XE)))
    OK (0 msec)
    "
    EARPHONE
    "
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (= Extproc PROGRAM)
    )
    )

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

    DEFAULT_SERVICE_LISTENER = (XE)
    "

    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)

    "

    TNSNAME
    "
    XE =
    (DESCRIPTION =
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = Sergiu-PC)
    (PORT = 1521)
    )
    (CONNECT_DATA =
    (SERVER = dedicated)
    (SERVICE_NAME = XE)
    )
    )

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = EXTPROC_FOR_XE)
    )
    (CONNECT_DATA =
    (PRESENTATION = RO)
    (SID = PLSExtProc)
    )
    )

    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = EXTPROC_FOR_XE)
    )
    (CONNECT_DATA =
    (PRESENTATION = RO)
    (SID = CLRExtProc)
    )
    )

    "

    Can someone tell me what is the problem?

    Best regards

    It can be caused by the location of the TOAD software. The have you installed under "Program Files (x 86)? If Yes, then try to reinstall in a different directory, media in the path name can cause problems.

  • ORA-12154: TNS: could not resolve the connect through TOAD VAT registration

    Hello

    I want to configure the TOAD to connect to servers on my place of work.

    I installed on my laptop desktop

    Toad for Oracle 9.7
    Oracle client 10g Express edition

    I am able to connect to the server to other servers in the office at the level of the unix.

    But I get this error message.

    Oracle (from the server to access) version: 11 GR 1 material



    See you soon,.
    Malika

    Hello
    It is not related to Toad, check the TNS entry in your TNSNAMES.ora & make sure what is it pointing to the appropriate service name.

    Error: ORA-12154 / TNS-12154
    Text: TNS: could not resolve service name
    -------------------------------------------------------------------------------
    Cause: The specified service name is not defined correctly in the
    TNSNAMES. ORA file.
    Action: Perform the following checks and fix the error:
    -Check that a TNSNAMES file. ORA file exists and is in good
    Place and accessible. Refer to the specific manual of operating system
    For more information on the location and the name required.
    -Check that the name of the service exist in one of the
    TNSNAMES. ORA file and add if necessary.
    -Make sure that there are no errors of syntax anywhere in the file.
    Search for unmatched parentheses or stray characters.
    Any error in a TNSNAMES file. ORA file makes it unusable. See
    Chapter 4 in the SQL * Net V2 Administrator's Guide. If
    possible, regenerate the configuration using the Oracle files
    Network Manager.

  • ' connect / as SYSDBA ' gives the error ORA-12154

    Hello

    Oracle XE can not access the database via "connect / as SYSDBA.

    I have to use 'connect SYS' / "" & & sysPassword"@XE as SYSDBA" instead. "

    No idea why ' connect / as SYSDBA ' gives me this error:

    SQL > connect / as sysdba
    ERROR:
    ORA-12154: TNS: could not resolve the connect identifier specified

    But it works:
    SQL > conn system/password@XE as sysdba
    Connected.


    Thank you.

    I think that LOCAL should generally not be set.

    Try:
    C:\ > LOCAL value =
    C:\ > set oracle_sid = XE
    C:\ > sqlplus / as sysdba

    That should do :)

  • "ORA-12154: TNS: could not resolve the connect identifier specified" error executing the execution in CAD Plan.

    Hi friends,

    We do face-down question when executing the execution Plan in DAC for full charge. We are working on the project of modernization of the OBI Applications and my client has worked on this environment is a few days. Before this, they load to the source 'EBSTST' instance and now changed data for instance 'EBSWKLY '. We have changed the details of connection under the tab 'Physical Data Sources' DAC. Test the connection Source and target are good. We have added input TNS of EBSWKLY in the path: u01/app/oracle/oracle11g/product/11.2.0/client_1/network/admin.

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

    Database driver error...

    Function name: connect

    [The database error: could not connect to the database using the [apps] user and the connection string [EBSWKLY].].

    Please suggest me if I m done mistake anywhere...

    Thanks in advance.

    Raghu Jen7782

    I was saying about the environment variables defined by you on the server of informatica/dac under the .profile or .bash_profile as below:

    TNS_ADMIN = $ORACLE_HOME/network/admin; Export TNS_ADMIN

    ORACLE_BASE = / home/oracle/app/oracle; export ORACLE_BASE

    ORACLE_HOME=$ORACLE_BASE/product/11.2.0/; Export ORACLE_HOME

    ORACLE_SID = InstanceName; export ORACLE_SID

    Path = $PATH: / usr/sbin: $ORACLE_HOME/bin. export PATH

    LD_LIBRARY_PATH=.:$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH

    CLASSPATH = $ORACLE_HOME/jlib: $ORACLE_HOME/rdbms/jlib. Export CLASSPATH

    Here are some examples I mentioned everything. You can set them in the user profile from which you installed the server informatica/dac.

    If it is a CAR Forum, try to set the value of the instance-specific SID for example: orcl11 or orcl12 or orcl13... try to connect to each instance. Sometimes the general SID does not recognize configuration

  • Oracle Forms 11g - ORA-12154: TNS error

    Well, until I post my info, I searched and searched all over Google, OTN, Experts-Exchange, etc... to try and figure this one out and I am puzzled. So here goes. I get the dreaded ' * ORA-12154: TNS: could not resolve the connect identifier specified * "error. This is my environment:

    ----------------------------------------------------------------------------------------------
    Server: Red Hat Enterprise Linux 5 version performs the following:
    Oracle Database 11g (Rel 1): 11.2.0.10
    Oracle Fusion Middleware 11g (rel. 11.1.1.2.0) Forms Server

    I can connect via SQL + no problem
    ----------------------------------------------------------------------------------------------
    Client: My Windows XP Professional PC.

    I can't TNSPING the SID of the database, no problem.
    I can connect via SQL + no problem
    I can connect via TOAD to the db without problem
    I can connect to Oracle Enterprise Manager through the web interface, no problem

    I have 2 houses Oracle (Oracle 8.0.6, Oracle 11.1.0.1) on my PC. The current House is currently the 11g one. I have my background on my PC Setup very well.

    The problem is when I try to run an example of form through the web, I created, the login prompt appears and I get my name in username/password / database SID and it is, I get the error. Of the clues as to what I should look for? Ultimately it is an application that all users will access and they should not have to worry about anything whatsoever to have installed on their PC.

    Thank you

    Keep in mind that file tnsnames.ora forms 11g is under $ORACLE_INSTANCE/config

  • ORA-12154 tns could not resolve the specified correct identifier

    I am facing the following problem:

    labVIEW 2012 32 bits 64 bits of Windows 7, 10.2.0.1.0 oracle client (32-bit).

    I created a DSN from Data Sources (ODBC) (32-bit version of what in % windir%\syswow64\odbcad32.exe) pointing to an instance of Oracle 10 g.

    I have test the DSN in this way (IE. Data sources (ODBC) and the connection is successful (which means that the tnsnames.ora is correct).

    I use the "DB tools Open Connection.vi" in order to get connected to this database, passing as parameters the DSN above, the user name and password.

    I get the error:

    ADO error: 0x80040E4D
    Exception occurred in the Microsoft OLE DB provider for ODBC drivers:

    [Oracle] [ODBC] [Ora] ORA-12154: TNS could not resolve the specified correct identifier

    all will help much appreciated

    Thanks in advance

    Hello everyone.

    I already solved the problem (work until late Saturday).

    the solution was to install the latest version of the Oracle customer, namely: Oracle 11 g Release 2 CLIENT for Windows 32 (11.2.0.1.0).

    Now everything works OK.

    I also tested in Windows 7 32 bit (the .vi even and the same Oracle client). This will also OK.

    Thans a lot.

  • 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

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

    Hi friends,

    I'm unable to resolve ORA-12154: TNS: could not resolve the connect identifier specified, error:

    C:\Windows\System32 > sqlplus scott/tiger@ORADATA

    SQL * more: Production release 11.2.0.1.0 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 = CIP)(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 February 2, 2014 13:53:37

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

    Connection 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 February 2, 2014 13:29:35

    Uptime 0 days 0 h 24 min 6 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Listener parameter File G:\app\himanshu\product\11.2.0\dbhome_1\network\admin\listener.ora

    G:\app\himanshu\diag\tnslsnr\himanshu-PC\listener\alert\log.XML log listener

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = himanshu-PC)(PORT=1521)))

    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))

    Summary of services...

    Service 'ORADATA' has 2 occurrences.

    Instance "ORADATA', status UNKNOWN, has 1 operation for this service...

    Instance "oradata' READY State, has 1 operation for this service...

    Service 'ORADATAXDB' has 1 instance (s).

    Instance "oradata' READY State, has 1 operation for this service...

    The command completed successfully

    Kindly guide whats wrong with my setup.

    You can remove your tnsnames.ora if he isn't there the other TNS inside. and use netmanager

    http://docs.Oracle.com/CD/E11882_01/network.112/e41945/AdminTools.htm#NETAG216

    Concerning

  • Mover - ORA-12154: TNS - problem

    Hello

    My system: Windows Server 2003 32-bit. Oracle DB 10.1.0.2.0; PT 8.52; HCM 9.0;

    I have error when connecting to Data Mover:

    File: Error SQL Access ManagerSQL. Stmt #: 2 error Position: 0 return: 12154 - ORA-12154: TNS: could not resolve the connect identifier specified

    I add in tnsnames.ora and listener.ora record for my DB:

    tnsnames.ora:

    HR9 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = LNZ-PS90)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = HR9)
    )
    )

    Listener.ora:

    )
    (SID_DESC =
    (SID_NAME = HR9)
    (ORACLE_HOME = E:\oracle\product\10.2.0\db_1)
    )

    Restart the listner but it doesn't work I can not connect to DATA MOVER, please help.

    Add SID, which means something like that

    HR9=
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = LNZ-PS90)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = HR9)
          (SID = HR9)
        )
      )
    

    Published by: Hakan Biroglu on August 16, 2012 19:39

Maybe you are looking for