How change Oracle Homes ? - ORA-12154

Hi
I am stuck with a bug for 2 days now.
I can open the DB with TOAD or SQL/PLUS easily
When i open TOAD, if i choiose 10g as client "i have a TNS:could not resolve the connect identifier specified ".
If i choose oracle92 as client, i access the database via TOAD
My .NET App prompt me the same error message
So How can i say to my app or the operating system that i always want to use 92 ?
My permission are OK for the oracle folder.
In my environnement variables i have
$ORACLE_OUI_PATH$ = C:\oracle\ora92\bin
TNS_ADMIN = C:\oracle\ora92\network\ADMIN
S.O.S.

But like i said, with TOAD, if i choose 10g as client
(in the dropdown in the connection screen) i have the
ORA-12154 error.
If i choose 9.2, everything is OK
This is the bug. How can i change this ? re-installed
?Not a bug, I think. Sounds like misconfig.
Error Message text includes:
// - 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.
TNSNAMES.ORA & SQLNET.ORA are configure properlyIs your tns name identical in both tnsnames.ora?
Is a sqlnet domain in 9i home configured? Is this domain used in tnsnames.ora?

Similar Messages

  • Unable to connect SQLState=08004 Oracle ODBC Ora-12154

    Hi Sir/Madam,
    I am Wayne, I need your help to resolve my issue in oracle database 11g.
    1. I installed Oracle 11g Personal Edition, Release 11.2.0.10, 64bits,
    2. Test connection(oracle in oradb11g_home1) is successed in data source, odbc,
    2. Then, I tried to connect this with Visual Basic(Visual Studio 2010), data connections, add connections, .net framework data provider for oracle,
    3. but I received an error message as "Attempt to load Oracle client libraries threw BadImageFormatException."
    4. Then, I download the ODAC(11.2.0.3.0) for 64bits, and installed,
    5. I tried to test the connection, but failed with error message as stated above,
    "Unable to connect SQLState=08004 Oracle ODBC Ora-12154: TNS:could not resolve the connect identifier specified"
    Could you please give me a help on this, do I need to install ODAC for 11g Personal Edition ? Please advice accordingly, thanks.

    Hi;
    Please review:
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2309520
    http://stackoverflow.com/questions/206055/oracle-ora-12154-tns-could-not-resolve-service-name-error
    Regard
    Helios

  • Change ORACLE HOME NAME

    Can we change ORACLE HOME NAME(not oracle_home path) in oracle?
    If yes please let me know.
    Thanks in advance,

    You can change this in windows from regedit HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_<ORACLE_HOME_NAME> and linux export ORACLE_HOME_NAME=<new name>
    see http://www.lazydba.com/oracle/0__153979.html

  • Re-config of ssh fails after changing Oracle Home while installing RAC

    Hi,
    Red Hat Linux 5
    Oracle 10.2.0.1 RAC installation
    While installing Oracle RAC under ORACLE user we are Configuring ssh for the first time works fine. If any changes done (Eg: i changed the home path of oracle user), then the ssh configuration will prompt for password no matter how many times you reconfigure the ssh.
    I have created another OS user orclusr instead of oracle to over come this issue
    Have any one came across this situation or finds a solution, please reply back.
    Regards
    hari
    Edited by: hariharan.thyagarajan on Apr 8, 2010 12:33 PM

    hariharan.thyagarajan wrote:
    Hi,
    One of the most important reasons for building Real Application Clusters is stability.
    Changing the Oracle Home, after the cluster is built is about 180 degrees counter to this philosophy.
    I agree with this but we face the error while installing oracle cluster
    here is my scenario:
    create oracle user on both the nodes(rac1,rac2):
    1) my first oracle home - /home/oraclePart of thinking these things through before proceeding is to recognize that the concept of ORACLE_HOME is not the same as the $HOME directory for the OS user who happens to be named "oracle".
    Since you appear to be still in the process of building this system, I'd suggest you go back to square one while you can.
    2) configure ssh on both the nodes
    3) due to sapce constraint in /home mount point we changed the oracle home to /oracle
    4) so my new oracle home is /oracle
    5) re-configuring of ssh is working fine, no error's
    6) but if i issue the below command ssg date rac2 it prompts for password why ?
    Any possibility to over come this issue ?
    Regards
    hari
    Edited by: hariharan.thyagarajan on Apr 8, 2010 1:14 PM

  • How to solve this ORA-12154 problem please?

    Hello,
    I'm trying to execute the following command:
    C:\Documents and Settings\HP>sqlplus "sys/neo555@orcl as sysdba"
    SQL*Plus: Release 10.1.0.4.2 - Production on Dom Dez 18 02:45:37 2005
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:nÒo p¶de resolver o identificador de conexÒo especificado
    Translating: ORA-12154 TNS could not solve the conection identifier specified
    Informe o nome do usußrio:
    Translating: Inform the user name:
    How to solve this please because I get no other errors in the software.
    Thank you,
    André Luiz

    Hi
    If objective is to just connect as sysdba then you can simply check your SQLNET.ORA file under ORACLE_HOME\NETWORK\ADMIN and make an entry like
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    C:\Documents and Settings\HP>set oracle_sid=orcl
    C:\Documents and Settings\HP>sqlplus "/ as sysdba"
    Pls paste contents of your TNSNAMES.ORA and LISTENER.ORA files here.
    Rgds
    Adnan

  • Php3 + oracle + apache - ORA-12154

    Hi,
    I build php3 with oracle support, installed oracle 8.1.5 on
    RedHat 6.0 and used dbassit and netasst to configure it.
    Oracle works fine. I can use sqlplus and read table from Acces.
    But, when I try to log on oracle with php3, it does not work :
    ORA-12154
    here what i try to run :
    <?php
    print "<HTML><PRE>";
    $db = "WWWITT";
    $c1 = ocilogon("scott","tiger",$db);
    ?>
    here my tnsnames.ora :
    WWWITT.ITTRALEE.IE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = apache)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = WWWITT)
    here my sqlnet.ora:
    TRACE_UNIQUE_CLIENT = on
    NAMES.DEFAULT_DOMAIN = ittralee.ie
    TRACE_LEVEL_CLIENT = USER
    TRACE_LEVEL_SERVER = USER
    SQLNET.EXPIRE_TIME = 0
    here my listener.ora :
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = apache)(PORT = 1521))
    (PROTOCOL_STACK =
    (PRESENTATION = TTC)
    (SESSION = NS)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = orapache)
    (ORACLE_HOME = /opt/oracle/oracle8.1.5)
    (SID_NAME = WWWITT)
    TRACE_LEVEL_LISTENER = USER
    so what did i did wrong ?
    thanks, ronan
    null

    Hi,
    You may require ODBC access to your Oracle database; this can be
    provided by Openlink Software at http://www.openlinksw.com. We
    have many clients using PHP scripts on Linux/Unix to connect
    with Oracle running on remote servers (or the same machine).
    Good luck!
    Guest (guest) wrote:
    : Ok..I think I know what's the problem is. Ok, here are 2
    : scripts, working and NOT working:
    : NOT WORKING:
    : <? $conn = ocilogon("username", "password","DB"); ?>
    : Error: Warning: oci8_open_server: Error while trying to
    retrieve
    : text for error ORA-12154
    in /usr/local/apache/htdocs/oracle.php3
    : on line 4
    : WORKING: <? putenv("ORACLE_HOME=/path/to/oracle");
    : $conn = ocilogon("username","password","DB"); ?>
    : Works for me...!
    : Hope this will help!
    null

  • Disc change - Oracle Home Dir.

    Hi!
    We need to change a disc on one of our servers. The Oracle Home directory is installed on this
    disc.
    We would like to proceed as follows:
    1) Backup the entire database (in case of recovery/restore)
    2) Copy the home directory to an external disc
    3) Change disc, setup raid, create new partition with same disc label
    4) Copy the home directory from the ext. disc onto the new disc
    My question: Would Oracle recognize the new disc as the "old" disc or will the system throw an error?
    Thanks!
    Edited by: user545194 on 14.12.2011 02:14

    You can change this in windows from regedit HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_<ORACLE_HOME_NAME> and linux export ORACLE_HOME_NAME=<new name>
    see http://www.lazydba.com/oracle/0__153979.html

  • Changing Oracle Home

    I recentely installed Oracle 11g r2 to a new home and now I need to move it to another home. Is it possible without reinstalling?
    This is the problem:
    We already have an 11g r2 home with two other databases installed on a Windows 2003 server. I recently upgraded another database from release 1 to release 2, but put that database in a second home. After the installation, I realized it is a wast of space, plus we are having listener problem as well so I want to move the last database in the same home with the other two databases.
    Can I do it, if yes how?

    Albert Zaza wrote:
    According to Oracle, it is a no no, you can't change or move Oracle to a new home after installation. But one thing that was not clarified is whether i can create the service name with Oradim pointing to the home with the current listener.
    Can I delete the current service name from other home and create it in the home with the Listener? Right now the listener is not even listening to this service name.Ok we decided to delete the service name from the database home (OraHome_2) since we can't move or change it and installed it using OraDIM in the home (OraHome_1) were we want it. This is the same home with the default Oracle Listener. The listener detected the service with no time. The only draw back is we had to reinstall enterprise manager.

  • Changing Oracle Home in unix

    Hi Experts,
    How can we change Oracle_Home in unix ?
    Db version : 9.2 patch (9.2.0.8)
    Any ideas.......
    Thanks & Regards,
    MB

    Yes true...but am facing some errors
    root@beryl # sh root.sh
    Running Oracle9 root.sh script...
    The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME= /orabin/appl/oracle/product/9.2.0
    Enter the full pathname of the local bin directory: [usr/local/bin]:
    The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]:
    The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]:
    The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]:
    Adding entry to /var/opt/oracle/oratab file...
    Entries will be added to the /var/opt/oracle/oratab file as needed by
    Database Configuration Assistant when a database is created
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/bin/runInstaller
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/lib/libnavhoa.a
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/lib32/ldflags
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/jdk/jre/lib/sparc/libjvm.so
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/JRE
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/ctx/lib/libctxx9.so
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/ctx/lib/libXML4CMessages.so
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/ctx/lib/libXML4CMessages.so.54
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/ctx/lib/libicudata.so
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/ctx/lib/libicudata.so.26
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/ctx/lib/libicuuc.so
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/ctx/lib/libicuuc.so.26
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/ctx/lib/libxml4c.so
    chmod: WARNING: can't access /orabin/appl/oracle/product/9.2.0/ctx/lib/libxml4c.so.54
    Finished running generic part of root.sh script.
    Now product-specific root actions will be performed.
    How can i change them ?
    Thanks & Regards,
    MB

  • How change default hom page with my application page

    Default home page is open with link http://localhost:8080/apex/ .
    I need to type http://localhost for open open my application .
    Thanks,

    Another option since Oracle10g XE does not come with Apache, you can replace the License page (index.htm) with this HTML code to automatically route you from http://localhost to http://localhost/apex/
    <HTML>
    <HEAD><META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://localhost/apex/">
    </HEAD>
    <BODY>
    </BODY>
    </HTML>
    You do this by replacing the index.htm found in the base directory when you ftp to the XE database. Also, to change the port from port 8080 to port 80 run
    SQL> exec dbms_xdb.sethttpport(80);

  • Changing Oracle Home Directory

    I accidentally installed 8i Lite in the worng directory. How can I re-install it in another directory?

    simply delete the existing copy...if on NT.. and make sure all the registry are taken off..
    if on UNIX simply rename the ora_home path
    good LUCK
    Shah

  • No Oracle Home Selector in 10g?

    I finished installing 10.1.0.2 DB on Win XP Professional a short while ago. This machine already had 8.1.7 client, 9.0.1 client, and 9.2.0 db installed.
    I went to Oracle Home Selector under Oracle Installation Products on my start menu and saw only previous ORACLE_HOMEs are available.
    I checked my PATH from a command prompt and find the new 10g ORACLE_HOME/bin is first in my PATH. That's fine, for now but when I want to change it I'll have to change it manually. Ok, I can do that. It's annoying but workable. But I can't expect the "normal" end user to deal with this. What's up Oracle?

    Here is a fix ... I don't think its recommended !
    1. run regedit
    2. Find ORACLE - ALL HOMES (Under HKEY_LOCAL_MACHINE -> SOFTWARE)
    There will be ID0 and ID1 etc ., (If you have previous version of Oracle).
    3. Keep your mouse on ALL HOMES -> Right click -> New -> Key
    Name it ID2 or ID3 (depends on how many Oracle Homes you have)
    4. Now you have ID2 or ID3 ready ...
    Keep your mouse on ID2 or ID3 -> Right Click -> String Value
    Enter NAME ... string your actual OraHome92 or OraHome10g
    Another String value -> Enter NLS_LANG and set the value
    another String value -> Enter PATH and set the exact path
    Go to your Oracle Home Selector ... you will find the new Oracle Home with its path !
    Thanks
    Vaithianathan. S

  • TNS Error : ORA-12154 unsing oo4o with VB

    In VB6, using oo4o(Oracle InProc Server),
    whin I run debuging mode with VB6 App, result is successfull.
    But, compile this application, and execute EXE module,
    error occur 'Cannot resolve TNS Name (ORA-12154)'.

    Just make sure that the executable is not started from a directory path containing brackets (e.g. "C:\Program Files (x86)\MyApp\myapp.exe") but copy that executable to a directory path without brackets. The brackets in one of the directies in the path may lead to the Oracle exception "ORA-12154: TNS :could not resolve service name".

  • ORA-12154 error when trying to connect to Oracle 11g DB from Excel 2010

    All,
    I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?

    user10832104 wrote:
    All,
    I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?
    If you are able to connect with sqlplus, then this really becomes a question of how to define a data connection in Excel.
    But after quickly googling ..
    In excel ...
    "Data" tab
    "from other sources"
    "from data connection wizard"
    select ODBC DSN
    On data link properties, select the "connection" tab
    select "Use Data Source Name" and hit the drop-down
    select a dsn that you had previously set up to point to the oracle database.
    Anyway, that looks like how it is supposed to be done.  I'm getting a dll initialization error.  Probably due to the fact I have both 32-bit and 64-bit oracle clients, and windows never handles that very gracefully.  But then Windows never graceffully handles anything that isn't MicroSoft.   To paraphrase Forest Gump, "My momma always said Windows was like a box of chocolates.  You never know what you're going to get."
    In any event, the error you report means it was actually tying to look it up in tnsnames, but what you supplied wasn't found there.  That can also be a big issue when dealing with MS products, because they don't use the same terminology, so lead people into entering something other than what Oracle expects.  Are you referencing an ODBC DSN?  If so, have you tested that apart from Excel?

  • How can i make multiple oracle homes co-exsist on windows

    I have a windows box on which I have just installed oracle 9i and 10g.
    Whenever I connect through the sqlplus , it defaults to the first one installed which is oracle10g every attempt to connect to the second database which is 9i keeps coming with “ORA-12154: TNS: could not resolve the connect identifier specified”
    I know on unix I can easily set my environment, I will like to know how to get my environment set on windows for me to connect easily to the two databases.
    Thank you for your time
    bekky

    Yes, they must be in different homes. The 'definition' of an ORACLE_HOME is the software for one product at one version/patch-level.
    The easiest way to do what you want - search for all the TNSNAMES.ORA files and make them the same. They will be in each ORACLE_HOME/network/admin directory.
    If you intend to have multiple homes for a while, the smartest way (IMO) to do what you want is to study the custom installation capabilities of the 10g installer and install just a listener in a new ORACLE_HOME. Then add a TNS_ADMIN variable to point to the central LISTENER and TNSNAMES.ORA and keep just that one TNSNAMES.ORA file up to date.
    Takes a lot more effort up front but is easiest administrative effort in the long run. There is a lot of information in the Oracle Network User's Guide and Reference at http://www.oracle.com/pls/db102/homepage

Maybe you are looking for

  • JBO-25222 while connecting to a OC4J container

    Hi, i create a simple BC4J Project with JDev 9 and tested it locally and it works fine. After deploying it to OC4J 9.0.2 i create a new Configuration and try to run the Client again, but now the code String am = "de.orb.server.orbModule_cm"; String c

  • How do I remove an update from the app window that I don't want to update or download?

    The Mac app store keeps telling me I have a software update for a app I have deleted from my computer. How do I get rid of it.

  • Safari SSL lockup

    Hello everyone, I have a problem with Safari on Mac OS X when trying to connect to some https websites. Most sites work, but some SSL-secured websites cause Safari's CPU usage to shoot up to 100% on one core. I can still pull down a menu, click on bu

  • Update user staus on production order

    Hi, Can you please let me know if it is possible to update the user status on production order while saving. I have tried with exit PPCO0007 but with no success.    header_exp-astex = 'X'.    header_exp-asttx = 'XDIS'. I have checked exit PPCO0001,bu

  • Keynote conversion:  Powerpoint found a problem with content....

    Hi all, MS office is killing me and I'd appreciate any pointers and comments Here's the situation: 1. Keynote file (multi-revised over the years) exported to powerpoint file XYZ in New-MBP 2. New-MBP opens XYZ and gets "found a problem with content i