ORA-12545 error in rac, local&remote listener

Hi,
We have an 10g Release 2 RAC system. We usually take
ORA-12545 Connect failed because target host or object does not exist tips
error message. I think tnsnames.ora file is correct, I can achieve to send tnsping message. And I think the host file is alaso correct, I am successful to send ping message to the ip in the host file. And we are noticed that cpu utilization of one RAC node is very bad. Do you that these two problem can be related? I searched the error message on internet. I think this link is interesting:
http://www.ardentperf.com/2007/04/02/local_listener-and-ora-12545/
But I do not fully understand the article. Because I do not know the local&remote listeners.
Can you help me?

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.While logged onto the target system issue the following commands:
lsnrctl status
lsnrctl service
CUT commands & results and PASTE back here
Generate another error & then CUT the last 20 - 30 records from listener.log & PASTE back here

Similar Messages

  • Re:ORA-12545 error (host target)

    Can anyone shed some light on this... I have just installed red hat linux 9 and have been trying install Oracle 9.2 (i have followed many instructions from sites and have done all the export cmds etc...). But i keep getting a ORA-12545 error when trying to connect (no target host found)i have looked at the listener.ora file and cant seem to see anything wrong. What else can i do to solve my problem??? Ian.

    There are several issues that you have to check out.
    ORA-12545: TNS:name lookup failure
    Cause: The listener on the remote node cannot be contacted.
    Action: Perform these steps:
    Verify that the ADDRESS in the tnsnames.ora file and the listener.ora file is correct.
    Verify that the listener on the remote node has been started. Enter:
    lsnrctl
    LSNRCTL> STATUS [listener_name]
    listener_name is the name of the listener defined in the listener.ora file. It is not necessary to identify the listener if you are using the default listener, named LISTENER.
    If the output indicates the listener is not running, try starting it with the command:
    LSNRCTL> START [listener_name]
    First than nothing :
    1.- Can you get connection locally in the Server ?
    Joel P�rez

  • Occasionally got ORA-12545 error

    I have 2-node Oracle 10g RAC set up. From a remote client, i run my sample program to retrieve scott.emp data. Occasionally i got ORA-12545 connection error. Using cpp app and Perl DBI app for tested it. And I got the same problem.
    ./mysample
    Environment and Connection created
    Result Set:
    7369 SMITH CLERK 7902 17-DEC-80 800 0 20
    7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
    7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
    7566 JONES MANAGER 7839 02-APR-81 2975 0 20
    7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
    7698 BLAKE MANAGER 7839 01-MAY-81 2850 0 30
    7782 CLARK MANAGER 7839 09-JUN-81 2450 0 10
    7788 SCOTT ANALYST 7566 19-APR-87 3000 0 20
    7839 KING PRESIDENT 0 17-NOV-81 5000 0 10
    7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
    7876 ADAMS CLERK 7788 23-MAY-87 1100 0 20
    7900 JAMES CLERK 7698 03-DEC-81 950 0 30
    7902 FORD ANALYST 7566 03-DEC-81 3000 0 20
    7934 MILLER CLERK 7782 23-JAN-82 2300 0 10
    Environment and Connection terminated
    ./mysample
    Aborted
    ./select.pl
    DBI connect('lot','scott',...) failed: ORA-12545: Connect failed because target host or object does not exist (DBD ERROR: OCIServerAttach) at ./select.pl line 6
    Here is the sqlnet.log:
    Fatal NI connect error 12545, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXXXX)(PORT=1521))(LOAD_BALANC
    VERSION INFORMATION:
    TNS for Linux: Version 10.1.0.2.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 10.1.0.2.0 - Production
    Time: 15-NOV-2004 10:30:22
    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
    Anyone knows what went wrong?
    thanks,
    qicheng

    I have same problem :-( When I try to connect from client station, but when Im connecting from one of nodes it is OK :-(
    Ales

  • Oracle RAC 10g -  Remote Listener

    Hi DBAs,
    In Oracle 10g RAC env, I see the remote listerner as well as local listerner. Can anyone throw some light what is the use of Remote Listener. Can we use only Local Listener.
    Thanks
    -Samar-

    If you configured the dedicated server mode using the DBCA Connection Mode tab on the Initialization Parameters page, then DBCA automatically configures the LOCAL_LISTENER parameter when the listener uses a nondefault address port.
    If you configured the dedicated server mode by setting the REMOTE_LISTENER initialization parameter, then you must also configure the instance-specific LOCAL_LISTENER initialization parameter.
    For example, to configure the LOCAL_LISTENER parameter, add the following entry to the initialization parameter file, where listener_sid is resolved to a listener address through either a tnsnames.ora file or through the Oracle Names Server:
    sid.local_listener=listener_sid
    The following entry should be in your tnsnames.ora file:
    listener_sid=(address=(protocol=tcp)(host=node1-vip)(port=1522))
    http://download.oracle.com/docs/cd/B19306_01/install.102/b14205/undrstnd.htm#sthref1068

  • 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-12535 error but TNSPing Works and listener logs connection

    We recently migrated our firewall and then started seeing this problem for users outside of our own subnet. However, although the user gets this error when launching the application, the workstation is able to TNSPing the server successfully and listener.log does log the connection.
    I was hoping someone might have some ideas or suggestions as to what might be causing the error despite the apparent connectivity to the database.
    Thanks in advance.

    Thanks so much for the suggestions.
    1. telnet <host> 1521 connects
    2. sqlplus <username>/<pwd>@<instance> returns the ORA-12535 error
    Finally, the sqlnet.log on the client side doesn't log anything when launching the application so I have no information as to what exactly is occurring at that point. However, the sqlplus command above logged the following:
    VERSION INFORMATION:
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 9.2.0.1.0 - Production
    Time: 26-JAN-2007 08:43:41
    Tracing not turned on.
    Tns error struct:
    nr err code: 0
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Operation timed out
    nt secondary err code: 60
    nt OS err code: 0
    I've been doing more research on this -- please note that I'm not an Oracle dba so I am just getting familiar with lots of things -- and have learned that user connect requests come in through 1521 but are then randomly redirected to other ports. Given the new firewall, I'm wondering if it's an issue that the random ports being selected aren't open for the users outside of our subnet. Does this sound like a plausible explanation? If so, how do administrators generally handle this -- by opening the necessary ports on the firewall? Is there some other standard approach?
    Again, thanks so much for any assistance you can provide.

  • 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-12505 error after setup tnsnames and listener properly.

    Hello.
    I'm having a very common issue. I can't connect using tnsnames on Windows 2003 server.
    Facts.
    1 - Tnsnames.ora file is properly set.
    2 - Listener.ora file is properly set.
    3 - tnsping works with no issues.
    4 - Windows service is up and running.
    However, I'm getting this error.
    C:\Documents and Settings\sabreadm>sqlplus lps/first1@lm3dprd1
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 24 12:32:26 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12505: TNS:listener does not currently know of SID given in connect
    descriptor
    Enter user-name:
    ERROR:
    ORA-01017: invalid username/password; logon denied
    listener.ora file content
    # listener.ora Network Configuration File: D:\Apps\oracle\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    TRACE_LEVEL_LISTENER = USER
    TRACE_DIRECTORY_LISTENER = D:\Apps\oracle\NETWORK\ADMIN
    LOG_FILE_LISTENER = listener.log
    LOG_DIRECTORY_LISTENER = D:\Apps\oracle\NETWORK\ADMIN
    TRACE_FILE_LISTENER = listener.trc
    MAX_REG_CONNECTIONS_LISTENER = 3000
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.58.44)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = lm3dtst1)
    (ORACLE_HOME = D:\Apps\oracle)
    (SID_DESC =
    (SID_NAME = lm3dprd1)
    (ORACLE_HOME = D:\Apps\oracle)
    tnsnames.ora file content.
    # tnsnames.ora Network Configuration File: D:\Apps\oracle\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    lm3dtst1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (Host = 192.168.58.44)
    (Port = 1521)
    (CONNECT_DATA =
    (SID = lm3dtst1
    (GLOBAL_NAME = lm3dtst1)
    lm3dprd1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (Host = 192.168.58.44)
    (Port = 1521)
    (CONNECT_DATA =
    (SID = lm3dprd1
    (GLOBAL_NAME = lm3dprd1)
    Any advice will be highly appreciated.
    Thanks.
    Alex.

    Alex,
    Next time when you post code or output or any configuration, enclose them between \ tags to preserve formatting
       Your code or output \h4.  Anyway, modify your tnsnames.ora file on your client machine and add this lm3dprd1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.58.44)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = dedicated)
    (SERVICE_NAME = lm3dprd1)
    (INSTANCE_NAME=lm3dprd1)
    Regards
    OrionNet                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Oracle 10gr2 rac, ora-12545 error when configured in shared server mode

    Hi i have fresh installation on two node rac on linux, with oracle 10gr2. It is running successfully, when i configure it in shared server mode and try to connect from client it gives error ora_12545:
    I have referred the oracle metalink notes and configured the local_listener as well as the remote_listener,
    still it is giving the error. I am able to tnsping all the entries on tnsnames.ora,
    i m also able to ping the hostnames,
    It connects most of the times succeessfully but some times it gives the error.
    how to solve this problem,
    please help me

    Basically this error means you misspelled the hostname or typed a wrong IP Address.
    Oracle Error :: TNS-12545+
    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.
    I suggest you to check the dispatcher instance parameter.
    ~ Madrid
    http://hrivera99.blogspot.com

  • Ora 600 error when cloning a remote pdb

    I have two container database cdb2 (Oracle 12.1.0.2) and cdb1 (Oracle 12.1.0.1). I am creating  a PDB in cdb2 which connects to to a PDB in cdb1 using
    database link.
    I am using following instructions:
    ORACLE-BASE - Multitenant : Clone a Remote PDB or Non-CDB in Oracle Database 12c (12.1
    1  CREATE PLUGGABLE DATABASE PDB4REMOTE from PDB4@clone_link
      2  FILE_NAME_CONVERT= ('/u01/app/oracle/oradata/cdb1/pdb4',
      3* '/u03/app/oracle/oradata/cdb2/pdb4remote')
    SQL> /
    CREATE PLUGGABLE DATABASE PDB4REMOTE from PDB4@clone_link
    ERROR at line 1:
    ORA-17627: ORA-00600: internal error code, arguments: [ksrpcsexec_1], [158],
    [20], [], [], [], [], [], [], [], [], []
    ORA-17627: ORA-00600: internal error code, arguments: [ksrpcsexec_1], [158],
    [20], [], [], [], [], [], [], [], [], []

    user12021554 wrote:
    ERROR at line 1:
    ORA-17627: ORA-00600: internal error code, arguments: [ksrpcsexec_1], [158],
    [20], [], [], [], [], [], [], [], [], []
    ORA-00600 exceptions should be reported Oracle. Open an SR and provide the particulars of the problem to support.

  • ORA-00933 error when selecting from remote DB

    Hi to all.
    Consider the following:
    SELECT col1, col2 FROM Table1@remoteOK.
    SELECT col1, col2 FROM Table1@remote LEFT JOIN Table2@remote ON (...)OK.
    INSERT INTO Local_Table (a, b)SELECT col1, col2 FROM Table1@remote
    OK.
    INSERT INTO Local_Table (a, b)SELECT col1, col2 FROM Table1@remote LEFT JOIN Table2@remote ON (...)
    ORA-00933: SQL command not properly ended.
    Is this some kind of restriction or is this a bug? Any workaround?
    Any advice will be appreciated.
    Best regards, beroetz

    Yes but this is a regular operation and the INSERT is the only opportunity.
    BTW, look at what else I have just found:
    INSERT INTO Local_Table (a, b)SELECT col1, col2 FROM DUAL INNER JOIN Table1@remote ON (1=1) LEFT JOIN Table2@remote ON (...)
    OK.

  • Random Occurrence of ORA-12545

    Hi,
    We are having trouble connecting to an Oracle 10g database. We receive an ORA-12545 error at what seems like random intervals.
    We are trying to connect from 2 different places. 1) Using a DBLink in a Sql Client tool called AquaData and 2) On an Informatica server using an Informatica provided ODBC connection .
    A) Below are the details in the TNSName.ORA file used by Aqua Data and Informatica:
    PROD_SERVICE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = IP_XXX_1)(PORT = YYY))
    (ADDRESS = (PROTOCOL = TCP)(HOST = IP_XXX_2)(PORT = YYY))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = PROD_SERVICE)
    Where the XXX's are IP address for two different servers and YYY are port numbers.
    B) The prod service goes down for 30 minutes, every 90 minutes. However, the server and the listener port are "UP" all the time.
    C) We are able to ping, tnsping, telnet from the Informatica server to the oracle server as well as from the Client machine. We are able to telnet and tnsping when the Oracle service is down. (In the 30 minute window), from the Client machine. We have not tried this yet from the Informatica server.
    Details/ Observations about Place 1 (Sql Client/ Aqua Data):
    1. We have created an DB Link connection to the database causing issues and used that to query from our factory database in Aqua Data.
    2. Few times (very random) we have encountered "ORA-12545" error when we run a query.
    3. We have observed that when we run a query in the 30 minute window (when the database service is down), we get ORA-01033 or ORA-12545 error randomly.
    Details/ Observations about Place 2 (Informatica Server):
    1. We have made the same TNS name entry in Informatica server and we have created a ODBC connection, exactly in the same way we configured the connection for SQL Client.
    2. When the server is UP, and we kick off the jobs, we get the ORA-12545 error 80% of the time.
    We have tried to correlate the occurrence of the error with the number of parallel connections/ different times during the 90minute window, but we were unable to find any conclusive relationship.
    Can someone please help us understand the error and resolve the issue?
    Thanks!!

    From the error docs, an ora-12545 is "Connect failed because target host or object does not exist".
    Don't know how that can be made any more plain, the client software is not communicating with the specified host. Verify that the IP addresses are correct.
    Three bits of information are required for a client to connect with a database- host, the listener port number, and the ORACLE_SID or instance SERVICE_NAME. Looks like RAC with load balancing so you'll be needing the service name.
    The load balance part could be misleading, even with client "try an address in random order" check box enabled, it could very well be always trying the first entry of the ADDRESS_LIST stanza.
    So its possible the "random" part is when one of the nodes is down. Or could be another cause, a large batch or some other kind of job blocking or some other pinch point is getting scratched.
    Start with trying one client using just one of the IP address, another client specifying just the other. A "random" problem can be impossible to pinpoint.
    Examine the symptoms, list possible problems, then test and discover the cause.

Maybe you are looking for