Sqlplus menssage error  ORA-12545

Hi somebody help me please
i have Oracle 9i client in RHEL 3.0 the instalation was succesfull, but, when i tried tu connect to db with the sqlplus this menssage apear:
[oracle@MKS104 oracle]$ sqlplus
SQL*Plus: Release 9.2.0.4.0 - Production on Wed May 4 10:18:02 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Enter user-name: sys
Enter password:
ERROR:
ORA-12545: Connect failed because target host or object does not exist
i don't know what to do, please somebody give me a hand

You said "when i tried tu connect to db with the sqlplus ..."
But you seem to forget to specify which database instance to connect to. Like this:
$ sqlplus <user>@<tns name>
If you have oerr command installed, it can explain the ORA error for you.
$ oerr ora 12545
Hth,
Fredrik

Similar Messages

  • Java.sql.SQLException: Error while trying to retrieve text for error ORA-12545

    Hi,
    I am getting the following error when i tried to connect to Oracle database from
    a servlet. This exception is coming at the time of getting connection. And the
    same code is working when i used in the standalone java program.
    Oracle 8i database and WLS 6.0 are on the same UNIX machine.
    ---------attempting to connect ------
    java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java, Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, Compiled C
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java, Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled C
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
    e)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, Compiled Code
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
    e)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
    e)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Co
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Can any one help me out.
    Durga

    The problem is solved after exprting the parameter ORACLE_SID=<database_name>
    in Weblogic startup script.
    thank u for the suggestions.
    Durga
    Joseph Weinstein <[email protected]> wrote:
    >
    >
    Durga wrote:
    Hi Joe,
    I have checked the ORACLE_HOME parameter. There was a differnce. Ichanged to
    /oracle/app/product/8.1.7
    Now i am getting different exception. But still the standalone codeis working.
    any clues why I am getting this exception. I will send the code andthe weblogic
    properties file for reference if u need.Good. No, I don't need it. Now make sure the library path that the OS
    uses to find
    Oracle libraries, and our driver libraries etc., is in the same order
    for the
    server as for the shell that is successful on it's own. Make sure your
    Oracle
    client stuff is ahead of any weblogic libraries.
    Joe
    java.sql.SQLException: ORA-12547: TNS:lost contact
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java,Compiled
    C
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, CompiledCode)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
    C
    ode)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
    C
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java,Compiled Cod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java,Compiled Code
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.getRuntimeName(ServletStubI
    mpl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1631)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java,Compiled
    Co
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, CompiledCode)
    Joseph Weinstein <[email protected]> wrote:
    The environment for the server probably doesn't have the same ORACLE_HOME
    setting as your shell when you succeed in a standalone.
    Also, you should be using our connection pools, and you should avoid
    making DriverManager calls in any multithreaded app such as WebLogic.
    Joe
    Durga wrote:
    Hi,
    I am getting the following error when i tried to connect to Oracledatabase from
    a servlet. This exception is coming at the time of getting connection.And the
    same code is working when i used in the standalone java program.
    Oracle 8i database and WLS 6.0 are on the same UNIX machine.
    ---------attempting to connect ------
    java.sql.SQLException: Error while trying to retrieve text for errorORA-12545
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,
    Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, CompiledC
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled
    Code)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, CompiledC
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
    e)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, CompiledCode
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
    e)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
    e)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, CompiledCo
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    Can any one help me out.
    Durga

  • SQLPlus COPY error: ORA-03114: not connected to ORACLE

    This is what I'm trying to do:
    I'm logged into an Oracle 8.1.6 database on a Windows 2000 Professional box and trying to copy data and tables from an Oracle 7.3.4 database on an HP/UX box.
    I log into my 8.1.6 SQLPlus as:
    scott/tiger@testdb
    Then I run the following:
    SQL> set copycommit 1
    SQL> set arraysize 1000
    SQL> copy from user/user1@devp1 -
    create reps_t -
    using -
    select * from reps_tThis is my error:
    ORA-03114: not connected to ORACLE
    Can someone give me a better understand how SQLPlus COPY works and give me an idea how to locate the problems.
    Thanks,
    Laith E.H.
    null

    I think this combination user/user1@devp1
    is not ok.
    U can get good material about copy command
    from technet itself. Just search for Copy

  • ERROR ORA-12545

    Hi,
    I am working in oracle9i and solaris, if i connected to the database by pl/sql i am receiving the following error as
    ora-12545 : connect failed because target host or object does not exist.
    But if i ping the server its working fine
    and also i use tnsping the database means its also working fine ...
    my collegaue he is able to connect...
    Only mysely receiving that error.
    Please tell me the solutions ...

    hi
    this is the tns names
    GE_TFLT5.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =(PROTOCOL =TCP)(HOST =spa.fleet.capital.ge.com)(PORT =1521))
    (CONNECT_DATA =(SERVICE_NAME =ge_tflt5)
    C:\Documents and Settings\jayarago>tnsping GE_TFLT5.WORLD
    TNS Ping Utility for 32-bit Windows: Version 9.0.1.1.1 - Production on 02-MAR-20
    07 15:18:32
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    c:\oracle\ora90\network\admin\sqlnet.ora
    c:\oracle\ora90\network\admin\tnsnames.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =(PROTOCOL =TCP)(H
    OST =spa.fleet.capital.ge.com)(PORT =1521))) (CONNECT_DATA =(SERVICE_NAME =ge_tf
    lt5)))
    OK (7530 msec)
    C:\Documents and Settings\jayarago>

  • Ora-12545 strange error

    Dear friends
    I have one strange error in Oracle 8.1.7 , Windows NT server. We have 4 databases in a same box. All are working fine till yesterday. Today morning I am facing this problem. I can not connect to one database out of four from any client. Getting error "ORA-12545: Connect failed because target host or object does not exist"
    Other 3 databases in the same server I can connect from client.
    In the server I can connect all four databases without any problem.
    I am using tnsping <servicename> from the client, is getting OK.
    I Observed the tnsnames.ora in the client , nothing found strange. Because all client machines have this problem.
    Pleas advise?

    I did both your suggestions
    First of all all clients are working properly till yesterday without any problem. Today I faced this problem in all clients around 10 clients same time. I feel it is may be Host machine database /network setting problem. How we can trace?
    When I restart Listner using lsnrctl command in server , then I can connect from client using SQLplus but a while only. When I Establish another connection in the same client or from any other client, it won't allow me. Also , connected session getting error.
    When I issue lsnrctl status command in server it is displaying like this. Maxnew is the one that have problem.
    lsnrctl> status
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 8.1.7.0.0 - Produc
    tion
    Start Date 03-APR-2006 14:30:06
    Uptime 0 days 0 hr. 17 min. 53 sec
    Trace Level analysis
    Security OFF
    SNMP OFF
    Listener Parameter File D:\oracle\ora81\network\admin\listener.ora
    Listener Log File D:\oracle\ora81\network\log\listener.log
    Listener Trace File D:\ORACLE\MAXNEW.TRC
    Services Summary...
    MAXNEW has 1 service handler(s)
    maxnew has 3 service handler(s)
    MAXPRD has 1 service handler(s)
    MAXPRD has 2 service handler(s)
    MAXTEST has 1 service handler(s)
    MAXTEST has 1 service handler(s)
    PLSExtProc has 1 service handler(s)
    NBDDATA has 1 service handler(s)
    nbddata has 1 service handler(s)
    The command completed successfully
    Please advise?
    James
    Message was edited by:
    [email protected]

  • Error while installing Oracle 8i on RHEL 3.0, ORA-12545

    Hi,
    I am trying to install oracle 8.1.7 on redhat EL 3.0. Earlier i installed the same oracle i.e 8.1.7 on redhat 8.0/9.0 and it installed sucesfully. The proceudre
    i follow for installtion was :
    ####### some settings
    groupadd dba
    groupadd oinstall
    groupadd oracle
    useradd -g dba -G oinstall,oracle -m oracle
    passwd oracle
    mkdir /ora8
    cd /ora8
    mkdir -p m01 m02 m03/oradata/ora8
    chown -R oracle.dba /ora8
    ###### login as oracle. changes in .bash_profile(setting up of parameters)
    export ORACLE_BASE=/ora8/m01/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/8.1.7
    export PATH=$PATH:$ORACLE_HOME/bin
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    export ORACLE_SID=perfdb
    export ORACLE_TERM=vt100
    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    umask 022
    LD_ASSUME_KERNEL=2.2.5
    ##### thereafter i run installer
    ./runInstaller
    It goes smoothly and later it gives linking error. I ignore them at this stage.
    #### thereafter I apply the patch
    tar xzf /tmp/glibc2.1.3_stub.tgz
    ./setup_stubs
    #### Therafter i run dbassist and I create the db and all went well.
    When i followed the same procedure in RHEL 3.0 it goes smooth till applying patch glibc2.1.3_stub.tgz but thereafter when i try to create db using dbassist it gives me error like :
    ORA-12545 Connect failed because target host or object does not exist.
    Even if i tried to run svrmgrl it gives me error
    :ORA-12545 Connect failed because target host or object does not exist
    Could anyone help me in resolving that ? the same installation procedure works well for Redhat 8.0/9.0
    Thanks
    Harsh Bhatia

    DBCA calls svrmgrl.exe in order to make a startup nomount of the new database and svrmgrl.exe fails during the hostname resolution.
    Try to give ipaddress rather than hostname in the tnsnames.ora file.

  • 8.1.5 installs on Redhat 6.1, but ORA-12545 error

    I carefully followed all of the installation instructions, and the installation procedure seemed to go as expected. But when I attempt to create a database with dbassist, I get an error:
    ORA-12545 Connect failed because target host or object does not exist
    Note: This is not a networked machine, but there are two network cards installed in the machine. The hostname is currently set to "localhost.localdomain".
    Any ideas?
    Thanks,
    J.R. Belding
    [email protected]
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jrbelding ([email protected]):
    I carefully followed all of the installation instructions, and the installation procedure seemed to go as expected. But when I attempt to create a database with dbassist, I get an error:
    ORA-12545 Connect failed because target host or object does not exist
    Note: This is not a networked machine, but there are two network cards installed in the machine. The hostname is currently set to "localhost.localdomain".
    Any ideas?
    Thanks,
    J.R. Belding
    [email protected]<HR></BLOCKQUOTE>
    Also, I did notice that there seemed to be some errors during execution of the ./linux.sh and ./linux_815patches.sh scripts.
    null

  • ORA-12545 error after changing the host name as IP address in Tnsnames.ora

    HI,
    I tried to connect PHP and oracle in Red Hat linux. I got error ORA-12545 after changing the host name as IPAddress in Tnsnames.ora file. In sqlnet.ora file also i have entry for tnsnames in Directory_Path. I struggled so much but i couldnt solve that. Please give me ur valuable suggestions....

    12545, 00000, "Connect failed because target host or object does not exist"
    // *Cause: The address specified is not valid, or the program being
    // connected to does not exist.
    // *Action: Ensure the ADDRESS parameters have been entered correctly; the
    // most likely incorrect parameter is the node name. Ensure that the
    // executable for the server exists (perhaps "oracle" is missing.)
    // If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the
    // host name to a numeric IP address and try again.
    Seems you specified wrong IP address.

  • ORA-12545 error while installing Oracle 8i on RHEL 3.0

    Hi,
    I am trying to install oracle 8.1.7 on redhat EL 3.0. Earlier i installed the same oracle i.e 8.1.7 on redhat 8.0/9.0 and it installed sucesfully. The proceudre
    i follow for installtion was :
    ####### some settings
    groupadd dba
    groupadd oinstall
    groupadd oracle
    useradd -g dba -G oinstall,oracle -m oracle
    passwd oracle
    mkdir /ora8
    cd /ora8
    mkdir -p m01 m02 m03/oradata/ora8
    chown -R oracle.dba /ora8
    ###### login as oracle. changes in .bash_profile(setting up of parameters)
    export ORACLE_BASE=/ora8/m01/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/8.1.7
    export PATH=$PATH:$ORACLE_HOME/bin
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    export ORACLE_SID=perfdb
    export ORACLE_TERM=vt100
    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    umask 022
    LD_ASSUME_KERNEL=2.2.5
    ##### thereafter i run installer
    ./runInstaller
    It goes smoothly and later it gives linking error. I ignore them at this stage.
    #### thereafter I apply the patch
    tar xzf /tmp/glibc2.1.3_stub.tgz
    ./setup_stubs
    #### Therafter i run dbassist and I create the db and all went well.
    When i followed the same procedure in RHEL 3.0 it goes smooth till applying patch glibc2.1.3_stub.tgz but thereafter when i try to create db using dbassist it gives me error like :
    ORA-12545 Connect failed because target host or object does not exist.
    Even if i tried to run svrmgrl it gives me error
    :ORA-12545 Connect failed because target host or object does not exist
    Could anyone help me in resolving that ? the same installation procedure works well for Redhat 8.0/9.0
    Thanks
    Harsh Bhatia

    What version of gcc are you using?
    Check out this link: http://www.redhat.com/archives/taroon-list/2004-June/msg00030.html
    All 8i and 9i releases are built with 2.9x versions of gcc, so you might have to downgrade gcc in order to get 8i running.
    -Antti

  • ORA - 12545 ERROR

    I have a problem connecting to the host.
    I am able to ping successfully to the server.
    When I execute tnsping from the client machine, the operation runs successfully.
    TNS Ping Utility for 32-bit Windows: Version 2.3.2.1.0 - Production on 21-JUN-01 10:45:50
    Copyright , 1996(c) Oracle Corporation 1995. All rights reserved.
    Attempting to contact (ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=150.140.130.35)(Port=1521))
    OK (50 msec)
    However when I use SQL Plus or Forms Application to connect to this database, I get the following error :
    SQL> connect armada/armada@orants
    ERROR: ORA-12545: TNS:name lookup failure
    My TNSnames extract for this database is as follows :
    orants.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = 150.140.130.35)
    (Port = 1521)
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = 150.140.130.35)
    (Port = 1526)
    (CONNECT_DATA = (SID = ORANTS)
    A quick reply will be appreciated.

    Hi
    Just thought I'd tell the list that I had to add
    disable_oob = on
    to the client sqlnet.ora and it worked like a charm.
    Try this
    Good Luck
    r@m@

  • ORA-12545 error in deploy server

    Hi
    In my development environment, we are having a Domain per application and each
    domain will have one AdminServer and one DeployServer. Admin Server will be used
    by administrator and DeployServer will be used by developers. All the user developed
    application will be deployed in deploy server.
    I wrote a small jsp which connects to database and retrieves some data. I've
    used type-2 driver for this purpose. This jps works fine in AdminServer but do
    not work in DeployServer. It throws the following error
    java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:1597)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:354)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at jsp_servlet._jsp.__bachu1._jspService(__bachu1.java:95)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:304)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2456)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    But if I use thin driver then I works fine in both the servers.
    I am using SunSolaris 2.8, Weblogic 6.1. Also I have added classes12.zip in the
    begining of the CLASSPATH to avoid the oracle 8.1.6 and 8.1.7 conflict.
    Please advise me why this error is coming and how to solve the problem.
    Thanks & Regards,
    Kiran Bachu

    Hi Kiran,
    Your oracle client on the managed server has not been
    set up properly. Make sure you have identical tnsnames.ora
    files both on Admin and managed servers.
    Regards,
    Slava Imeshev
    "Kiran Bachu" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi
    In my development environment, we are having a Domain per application andeach
    domain will have one AdminServer and one DeployServer. Admin Server willbe used
    by administrator and DeployServer will be used by developers. All theuser developed
    application will be deployed in deploy server.
    I wrote a small jsp which connects to database and retrieves some data.I've
    used type-2 driver for this purpose. This jps works fine in AdminServerbut do
    not work in DeployServer. It throws the following error
    java.sql.SQLException: Error while trying to retrieve text for errorORA-12545
    >
    atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:1597)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:354)
    atoracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
    atoracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at jsp_servlet._jsp.__bachu1._jspService(__bachu1.java:95)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:304)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2456)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    But if I use thin driver then I works fine in both the servers.
    I am using SunSolaris 2.8, Weblogic 6.1. Also I have added classes12.zipin the
    begining of the CLASSPATH to avoid the oracle 8.1.6 and 8.1.7 conflict.
    Please advise me why this error is coming and how to solve the problem.
    Thanks & Regards,
    Kiran Bachu

  • ORA-12545: Connect failed because target host or object does not exist

    Hey Guys,
    I know this particular query has been pinging around for ages now, but i cannot seem to get a good answer from anywhere :)
    Oracle 10g Database RAC installation- installed/ and running
    Oracle 10g Client on different box.
    Problem:
    [user@myserver ~]$ sqlplus
    SQL*Plus: Release 10.2.0.3.0 - Production on Fri Apr 4 16:14:11 2008
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Enter user-name: user
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    All env variables are set in user .profile:
    export ORACLE_HOME=/space/oracle/oracle/product/10.2.0/client_1
    export ORACLE_SID=MSRAC
    PATH=$PATH:$ORACLE_HOME/bin:$JAVA_HOME/bin
    export PATH
    Full contents of tnsnames.ora on client machine:
    LISTENER_ORCLTELE =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.9)(PORT = 1521))
    ORCLTELE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.9)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcltele)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    MSRAC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.12)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.13)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = MSRAC)
    (failover_mode =
    (type=select)
    (method=basic)
    (retries=180)
    (delay=5))
    I am not sure if the first 3 connection entries are even needed in here, are they?
    The last entry is the connect info for the live database.
    What buggs me is that this works:
    [user@myserver ~]$ sqlplus 'user/user@msrac'
    SQL*Plus: Release 10.2.0.3.0 - Production on Fri Apr 4 16:19:40 2008
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    With the Real Application Clusters option
    SQL>quit
    BTW: This is the error catpured in sqlnet.log
    Fatal NI connect error 12545, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/space/oracle/oracle/product/10.2.0/client_1/bin/oracle)(ARGV0=oracleMSRAC)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')(DETACH=NO))(CONNECT_DATA=(CID=(PROGRAM=sqlplus)(HOST=myserver.me.com)(USER=user))))
    VERSION INFORMATION:
    TNS for Linux: Version 10.2.0.3.0 - Production
    Oracle Bequeath NT Protocol Adapter for Linux: Version 10.2.0.3.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.3.0 - Production
    Time: 04-APR-2008 16:14:16
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12545
    TNS-12545: Connect failed because target host or object does not exist
    ns secondary err code: 12560
    nt main err code: 515
    TNS-00515: Connect failed because target host or object does not exist
    nt secondary err code: 2
    nt OS err code: 0
    I have a funny feeling that the problem lies with either:
    PROTOCOL=beq
    and/or
    ARGV0=oracleMSRAC
    I have tried everything to remedy this, this is why i am now turning to you guys.
    Any and all help is always greatly appreciated.
    Robert

    Hi Guys,
    Thank you both for your responses, my findings are as follows:
    1. HOST=X.X.COM, ensure host is reachable : PING works and host(s) are reachable.
    2. In RAC Env, ensure TNS Name is correctly spelled, spelling fine, i can connect with the tns name (is TNS name same as SERVICE_NAME?) by: sqlplus 'user/user@racenv'; but my efforts still will not allow me to use:
    sqlplus 'user/user' it tells me that the host or object is does not exist, does this refer to the actual physical machine or the service name, or the instance name?
    All host entries in my tnsnames.ora file refer to the vip addresses of both servers holding the rac installation, and both are resolved just fine, testing with ping; any other way to test this?
    tnsnames file contains CONNECTION strings in the following order (does the listener entry need to be in the file? on the machine that i am trying to connect from?):
    LISTENER_ORCLTELE =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.9)(PORT = 1521))
    ORCLTELE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.9)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcltele)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    I tried removing all entries but the entry for MSRAC, but still no joy:
    MSRAC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.12)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.13)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = MSRAC)
    (failover_mode =
    (type=select)
    (method=basic)
    (retries=180)
    (delay=5))
    Thanks again,
    Robert..
    In the sqlnet.log file the error is as follows:
    Fatal NI connect error 12545, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/space/oracle/oracle/product/10.2.0/client_1//bin/oracle)(ARGV0=oracleMSRAC)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')(DETACH=NO))(CONNECT_DATA=(CID=(PROGRAM=sqlplus)(HOST=x.x.com)(USER=oracle))))
    VERSION INFORMATION:
    TNS for Linux: Version 10.2.0.3.0 - Production
    Oracle Bequeath NT Protocol Adapter for Linux: Version 10.2.0.3.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.3.0 - Production
    Time: 07-APR-2008 11:03:12
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12545
    TNS-12545: Connect failed because target host or object does not exist
    ns secondary err code: 12560
    nt main err code: 515
    TNS-00515: Connect failed because target host or object does not exist
    nt secondary err code: 2
    nt OS err code: 0
    It mentions PROTOCOL=BEQ, this should be TCP, is there a way to enforce TCP or disable BEQ??
    Rob
    Message was edited by:
    DobSun

  • Cannot connect to DB from remote computer (ORA-12545)

    Hello all,
    Please help, I am stumped.  I am trying to connect to a database located at my work from at home.
    I am running into the following issue (see command and error below):
    ansichart@ansivm:~/src/perl$ sqlplus aspxdba/********@aspxp2
    SQL*Plus: Release 11.2.0.3.0 Production on Thu Jul 18 21:15:09 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Here is my tnsnames.ora file (I have the service_name censored out for privacy reasons):
    ansichart@ansivm:~/src/perl$ cat $ORACLE_HOME/network/admin/tnsnames.ora
    aspxp2 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = orarac9-scan)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = *****************)(UR=A)
    I have verified that I can establish a TCP connection to this DB server on the port specified, using the same info from the TNSnames.ora file (see below):
    ansichart@ansivm:~/src/perl$ nmap -sT -p 1521 orarac9-scan
    Starting Nmap 5.21 ( http://nmap.org ) at 2013-07-18 20:53 CDT
    Nmap scan report for orarac9-scan (10.1.13.115)
    Host is up (0.0088s latency).
    PORT     STATE SERVICE
    1521/tcp open  oracle
    Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds
    ansichart@ansivm:~/src/perl$
    I have another terminal opened up to a server at work and I can connect to the DB with sqlplus just fine.  I verified that the record for this database on the tnsnames.ora file is the same as it is at work.
    In conclusion, I can connect to the Database at work, but I cannot at home, even though I am using the same connection information and verified that port 1521 is accessible on this Database server from at home.  So why can't I establish a DB connection?
    Any ideas?
    Thanks,
    Ben

    676d3153-d812-4300-9e6a-b1dc87a2ebfe wrote:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    This simply means "hostname unknown". In other words, the hostname used for the connection could not be resolved to an IP address.
    I have verified that I can establish a TCP connection to this DB server on the port specified, using the same info from the TNSnames.ora file (see below):
    You are verifying hostname orarac9-scan only. You are not verifying that the hostname supplied by the Oracle SCAN Listener can be resolved by your platform.
    As you are connecting to a SCAN listener, it will do its magic (load balancing/round robin/whatever) and return a redirect to your client driver - telling it where to find the service name the client requested.
    So your client driver gets a hostname and port in return. It then attempts to connect to that to establish your Oracle client-server session. If the RAC has been setup with the typical RAC hostnames, your client will get hostnames like orarac9-vip1 and orarac9-vip2 returned. Likely as FQDN too.
    This means your platform needs to be able to resolve these hostnames. It does not. Thus the error.
    In your platform's /etc/hosts file, define the complete list of RAC hostnames (SCAN, Public and VIP hostnames).

  • ORA-12545 .... host or object does not exi

    Hi there.
    Im tiered from that Trying install 8.1.7 on Red Hat 7.0. Not working. (I read all from what I cud from this group, but still dont know what to do )
    I installed glibc 2.1.3. After that I was able to create a database. I can open it, connect using sqlplus or sqlnet and netca on server side. But as soon as I run Net8 Easy config and try connect I couldnt do it. When I try do it, I receive error:
    ORA-12545
    The test did not succeed.
    ORA-12545: Connect failed because target host or object does not exist
    There may be an error in the fields entered
    or the server may not be ready for a connection.
    You can check the server and retry, or continue.
    Im stack. Where my problem? Network? Adapter? Listener? Anything else ????
    Server side? Client side?
    Anybody have any idea about this case?
    Thanks a lot.

    Well, i have the same problem and i believe the trouble is due to your instance name is diferent from your hostname.
    you can edit the sqlnet.ora file and comment the names.default_domain , check you do insert the listener_name service in the /etc/services file
    and retry the operation
    After this, however i can keep just a few connections and the problem is still present, I think the problem is the listener but i don't have the solution on it.
    good luck.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Alex Vasiliev ([email protected]):
    Hi there.
    Im tiered from that Trying install 8.1.7 on Red Hat 7.0. Not working. (I read all from what I cud from this group, but still dont know what to do )
    I installed glibc 2.1.3. After that I was able to create a database. I can open it, connect using sqlplus or sqlnet and netca on server side. But as soon as I run Net8 Easy config and try connect I couldnt do it. When I try do it, I receive error:
    ORA-12545
    The test did not succeed.
    ORA-12545: Connect failed because target host or object does not exist
    There may be an error in the fields entered
    or the server may not be ready for a connection.
    You can check the server and retry, or continue.
    Im stack. Where my problem? Network? Adapter? Listener? Anything else ????
    Server side? Client side?
    Anybody have any idea about this case?
    Thanks a lot. <HR></BLOCKQUOTE>
    null

  • Oracle RM failing to connect: ORA-12545

    Hi,
    I am trying to run my application which uses Oracle client 8.0.6 on NCR MPRAS.
    I am connecting to DB version. 8.1.7 running on Solaris box
    Following are working fine for me which means there is no problem with TNSNAMES.ORA:
    1) TNSPING
    2) SQLPLUS
    3) Applications using embedded SQL calls
    But my recent application which uses the Resource Manager ORACLE_XA is failing at xa_open call. It give the error ora-12545.
    Am I missing something here? Please help.
    Vikram

    I don't know Crystal Reports and what it sends to and requests from the database, but that's the formal description of this error:
    Error: ORA 8001
    Text: maximum number of sequences per session exceeded
    Cause: An operation requested a resource that was unavailable.
    The maximum number of user sequences per session is specified by the
    initialization parameter DC_SEQUENCES.
    When this maximum is reached, no more requests are processed.
    Action: Try the operation again in a few minutes.
    If this error occurs often, shut down Oracle, increase the
    DC_SEQUENCES parameter in the initialization parameter file, and
    restart Oracle.

Maybe you are looking for