Suddenly unable to connect Reports to database: ORA 12154 TNS can't resolve

Beginning end of last week, the Reports development tool (rwbuilder v10.1.2.0.2) suddenly lost the ability to connect to the database. The error is ORA-12154: TNS: could not resolve the connect identifer specified.
However, nothing has changed on either the database or my workstation. SQL*Developer and the Network Administrator can both access the database, confirming the configuration of TNSNAMES.
A fresh install of the DevSuite (rwbuilder v9 something) onto another workstation yielded the same error. The problem seems to be with Reports, not my workstation, my TNSNAMES configuration, or the database itself.
What could possibly cause the database to reject only Reports?

Well, continued searching this forum revealed the answer. It was found in:
ORA - 12154 - Unable to resolve TNS..
It seems that something did, indeed, change on my workstation. I renamed all of the TNSNAMES.ORA files other than the one used by the network administrator. It seems that Oracle*Reports requires its own copy of the TNSNAMES file. What I don't understand is how it gets updated when changes are made to the real TNSNAMES file via the network administrator.
In any event, I'm back up and running. Sorry for the wasted bandwidth.

Similar Messages

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

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

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

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

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

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

  • Error Could not connect to the database - ora-12545: tns:name lookup failure

    Hi,
    I am a tech at a failing company. Unfortuneatly some users still need ADI installed and working with very limited resources to troubleshoot oracle. I am getting the error - ( Could not connect to the database - ora-12545: tns:name lookup failure )when the user tries to log on to ADI. Any suggestions? I would really appreciate it. We are on Windows NT on an NT network. Oracle 8.05 client installed and ADI 6.0.
    Thanks, Mary

    Copy the tnsname.ora file from Oracle Database serve onto the client PC.
    Path: %Oracle_home%\net80\admin\
    Send me a mail if there is any other issues
    Regards
    Oluseyi Funmi Oduberu
    Oracle Consultant
    Email:[email protected]
    Hi,
    I am a tech at a failing company. Unfortuneatly some users still need ADI installed and working with very limited resources to troubleshoot oracle. I am getting the error - ( Could not connect to the database - ora-12545: tns:name lookup failure )when the user tries to log on to ADI. Any suggestions? I would really appreciate it. We are on Windows NT on an NT network. Oracle 8.05 client installed and ADI 6.0.
    Thanks, Mary

  • Connect to Remote Database - ORA-12154

    When attempting to use OCI to attach to a remote database I cannot resolve the service name.
    However, I am able to connect using tnsping.
    Example output is:
    bash-2.03$ bin/msgoptim mo password mo
    Message Optimiser - Version 1.0
    Oracle DB Initialising
    Database Access Error - ORA-12154: TNS:could not resolve service name
    Abort (core dumped)
    bash-2.03$ tnsping mo
    TNS Ping Utility for Solaris: Version 8.1.7.0.0 - Production on 03-APR-2003 11:28:14
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=qld)(PORT=1521))
    OK (0 msec)
    The remote database name is fed to the OCIServerAttach call as in :
    checkerr( errhp, OCIServerAttach( svrhp, errhp, (text*) server.c_str(),
    (sb4) server.length(), 0));
    Am I doing this in the correct location, or am I missing something else in the process for remote databases.
    I have no trouble connecting to a local database with a empty string in the OCIServerAttach call.
    Thanks in anticipation.

    ORA-12154: "Could not resolve service name"
    ORA-12541: "No listener"
    ORA-12154: "Could not resolve service name"
    When you try to connect to your database through Developer, try using the connect_string you've been using with .world added to it (sometimes it's appended to your connect_string automatically, and if your sqlnet.ora file has NAMES.DEFAULT_DOMAIN and NAME.DEFAULT_ZONE set to anything other than 'world' then you may have to create a new sqlnet.ora file and set NAMES.DEFAULT_DOMAIN and NAME.DEFAULT_ZONE to world for it to work properly.
    ORA-12541: "No listener"
    You just need to verify that the listener is running and also is listening for the SID or CONNECT_DATA value being sent be PL/SQL Developer. For example, if the listener on your remote machine is listening for 'pl_sql' but when you try to connect to the remote database the PL/SQL Developer is sending a request to connect to 'plsql', then there is 'no listener' listening for 'plsql' and it fails. IF you can connect to the remote database via sqlplus, but then when you try it from PL/SQL Developer and it fails, that means the listener is in fact running, but not listening for the correct string being sent to it by the application.
    Hope this helps.
    Roy

  • 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

  • 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

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

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

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

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

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

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

    I am simply trying to move a site from a Windows 2003 32bit server to a Windows 2008 R2 64-bit. The database was on and is remaining on the 2008 server. Trying to run the new site results in:
    ORA-12154: TNS:could not resolve the connect identifier
    This error pops up more than a few times in the forums but do not seem unique to my situation where I know the connection string works fine from another server. Any insights?

    Working
    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.
    C:\>SET
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    APPDATA=C:\Documents and Settings\Cherie.Jarvis\Application Data
    ARCGISHOME=D:\Program Files\ArcGIS\
    CLIENTNAME=ZEKIAH-PC463
    ClusterLog=C:\WINDOWS\Cluster\cluster.log
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    COMPUTERNAME=CFLGIS1
    ComSpec=C:\WINDOWS\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\Cherie.Jarvis
    LOGONSERVER=\\BATMAN
    NUMBER_OF_PROCESSORS=4
    ORACLE_HOME=D:\Ora11g\Administrator\product\11.1.0\db_1
    OS=Windows_NT
    Path=D:\Program Files\ArcGIS\ArcSDE\ora11gexe\bin;D:\Ora11g\Administrator\produc
    t\11.1.0\db_1\bin;D:\Ora11g\Administrator\product\11.1.0\db_1;D:\Ora11g_Client32
    \product\11.1.0\client_3;D:\Ora11g_Client32\product\11.1.0\client_3\bin;C:\WINDO
    WS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\Microsoft
    SQL Server\90\Tools\binn\;C:\Program Files\ArcGIS\ArcSDE\ora11gexe\bin
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=EM64T Family 6 Model 23 Stepping 10, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=170a
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    PROMPT=$P$G
    PYTHONPATH=D:\Program Files\ArcGIS\bin
    SDEFORCEXDR=1
    SDEHOME=C:\Program Files\ArcGIS\ArcSDE\ora11gexe\
    SESSIONNAME=RDP-Tcp#461
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    TEMP=C:\DOCUME~1\CHERIE~1.JAR\LOCALS~1\Temp\1
    TMP=C:\DOCUME~1\CHERIE~1.JAR\LOCALS~1\Temp\1
    TNS_ADMIN=D:\Ora11g\Administrator\product\11.1.0\db_1\NETWORK\ADMIN
    USERDNSDOMAIN=CFLHD.LOCAL
    USERDOMAIN=CFLHD
    USERNAME=Cherie.Jarvis
    USERPROFILE=C:\Documents and Settings\Cherie.Jarvis
    VS90COMNTOOLS=D:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\
    windir=C:\WINDOWS
    C:\Documents and Settings\Cherie.Jarvis>
    Not Working
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:>set
    AGSSERVERJAVA=C:\Program Files (x86)\ArcGIS\Server10.0\
    ALLUSERSPROFILE=C:\ProgramData
    ANT_HOME=D:\Software\apache-ant-1.8.1
    APPDATA=C:\Users\cherie.jarvis\AppData\Roaming
    CLIENTNAME=ZEKIAH-PC463
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=CFLGIS2
    ComSpec=C:\Windows\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Users\cherie.jarvis
    JAVA_HOME=D:\Program Files\Java\jdk1.6.0_22
    LOCALAPPDATA=C:\Users\cherie.jarvis\AppData\Local
    LOGONSERVER=\\BATMAN
    NUMBER_OF_PROCESSORS=16
    ORACLE_HOME=D:\ORA11G\Administrator\product\11.1.0\db_1
    OS=Windows_NT
    Path=D:\app\Zekiah\product\11.1.0\client_2;D:\app\Zekiah\product\11.1.0\client_2
    \bin;D:\Program Files (x86)\PHP\;D:\Ora11g_Client32\product\11.1.0\client_1\bin;
    D:\Ora11g\administrator\product\11.1.0\db_1\bin;C:\Windows\system32;C:\Windows;C
    :\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Program F
    iles\ArcGIS\ArcSDE\ora11gexe\bin;D:\Program Files (x86)\MySQL\MySQL Server 5.1\b
    in;D:\Program Files\Java\jdk1.6.0_22\bin;D:\Software\apache-ant-1.8.1\bin;D:\Pro
    gram Files\TortoiseSVN\bin
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PHPRC=D:\Program Files (x86)\PHP\
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 44 Stepping 2, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=2c02
    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
    PUBLIC=C:\Users\Public
    SDEHOME=D:\Program Files\ArcGIS\ArcSDE\ora11gexe\
    SESSIONNAME=RDP-Tcp#0
    SystemDrive=C:
    SystemRoot=C:\Windows
    TEMP=C:\Users\CHERIE~1.JAR\AppData\Local\Temp\2
    TMP=C:\Users\CHERIE~1.JAR\AppData\Local\Temp\2
    USERDNSDOMAIN=CFLHD.LOCAL
    USERDOMAIN=CFLHD
    USERNAME=Cherie.Jarvis
    USERPROFILE=C:\Users\cherie.jarvis
    VISUALSVN_SERVER=D:\Program Files (x86)\VisualSVN Server\
    windir=C:\Windows

  • 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 connect identifier specified

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

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

Maybe you are looking for

  • How to default payment type to invoice in istore billing page

    We are using B2B user scenario in iStore and we have a requirement to default payment type to invoice in billing page of iStore and user can change it to credit card if required.

  • Urgent send report in mail in text format

    Hi All, Now i am running report in pdf format to screen and printer but now i have to send salary slip to individual employees mail. I want to know that what should i write for sending salary slip to individuals. So that it should not send in others

  • Automatic Zoom Does Not Work

    I have an answers report (dashboard) in obiee 11g with a map, when i do drill down over the map or over the data the map always stay static, in other dashboard that uses other map tile layer it works doing zoom automatically to the area selectionated

  • Mac mini mid-2010 won't shut down

    I have the server version of the Mac Mini mid-2010. It is running Mountain Lion (not server).  When told to shut down from the Apple icon menu, it won't. The "round thing icon" just spins indefinitely.  Can't do an EFI update, of course, because the

  • Add a desktop

    How could I add a new desktop with Yosemite?