OO4O - Unable to make connection, ORA - 12170: TNS: Connect timeout occured

Hi,
I am trying to connect to the Database server from Vista client using code written in VB 6.0, The oracle client installed in Vista is 10.2g
I am using the below code to connect to the oracle database. I tried increasing the INBOUND_CONNECT_TIMEOUT parameter in the SQLNet.ora file, but didn't work.
Set gvobjOraSession = CreateObject(gvOraSession)
Set gvobjOraDatabase = gvobjOraSession.OpenDatabase(gvOraDBName, gvOraDefaultUser & "/" & gvOraDefaultPassword, vOraMode)
Thanks for the help in advance
Anand

Are you able to connect using the same information with sqlplus from the same client machine? 12170 is usually a basic client config issue rather than something specific to OO4O.
Greg

Similar Messages

  • Handling the ORA-12170: TNS:Connect timeout in a procedure

    Post moved to:
    Handling the ORA-12170: TNS:Connect timeout in a procedure
    Edited by: John_75 on Jun 28, 2010 9:33 AM

    http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/troublestng.htm#i440403
    will give you
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/troublestng.htm#CEGEDBIE

  • ORA-12170:TNS:Connect timeout occurred

    Hi, I am no longer able to log into SQL Plus. I get the error message above. I think the problem comes from my comtputer being renamed. Can someone help me?
    Thanks.

    ORA-12170:TNS:Connect timeout occurred
    Cause: The server shut down because connection establishment or communication with a client failed to complete within the allotted time interval. This may be a result of network or system delays; or this may indicate that a malicious client is trying to cause a Denial of Service attack on the server.
    Action: If the error occurred because of a slow network or system, reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT, SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values. If a malicious client is suspected, use the address in sqlnet.log to identify the source and restrict access. Note that logged addresses may not be reliable as they can be forged (e.g. in TCP/IP).
    1. Check whether database is up and running.
    2. tnsping <databasename> and see whether you are able to ping the database in command prompt.
    3. Check tnsnames are configured properly.
    4. check DNS entry in your host file.
    Regards,
    Syed

  • Logging in Oeacle SQL*Plus (ORA-12170: TNS: Connect timeout occured)  ...

    I installed recently Oracle 10g. When I try to log in, with the account and password setup[ earlier, I get the message "ORA-12170: TNS: Connect timeout occured". Do I need to specify a Host String" at Log On? Should I un-install and re-install the software again? Thank you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    /* Error:     ORA-12170 (ORA-12170)
    Text:     TNS:Connect timeout occurred
    Cause:     The server shut down because connection establishment with a
         client failed to complete within the allotted time interval. This
         may be a result of network/system delays; or this may indicate
         that a malicious client is trying to cause a Denial of Service
         attack on the server.
    Action:     If the error occurred because of a slow network/system,
         reconfigure the SQLNET.INBOUND_CONNECT_TIMEOUT parameter in
         sqlnet.ora to a larger value. If a malicious client is suspected,
         use the address in sqlnet.log to identify the source and restrict
         access. Note that logged addresses may not be reliable as they can
         be forged (e.g. in TCP/IP).
    Could also be a firewall issue.
    Werner

  • ORA-12170:TNS connect timeout occured.

    HI, i am getting this error when trying to connect, sqlplus, form builder in devsuite.10.1.0
    can anyone help, plz........................
    ORA-12170:TNS connect timeout occured.
    with regards,
    AJAZ.

    In $ORAHOME/network/admin on the machine where you have Forms Builder installed, there is a file called tnsnames.ora
    This file maps the 'tns name' which you are probably using in your connect string, to a specific TCP/IP port (and 'service identifier') on the database host.
    A TNS connect timeout could occur because:
    a) a firewall is preventing communcation between your machine and the database host/port in your tns definition
    b) the TNS 'listener' on the database host at that port is hung
    For my money, I'd be investigating (a) first.
    It's worth investing time in learning about TNS. It will save you a lot of hassle.
    regards,
    David.
    (Please mark this post as 'helpful' if it put you on the right track ... thanks!).

  • How to solve this error :12170 TNS connection to timeout occured- req

    Hi
    I have 2 databases.They are source db and target db .i have created the database link source to target.The users report that when they try to connect the database source from target database using the database link they are getting the error
    ORA-12170: TNS: CONNECTION TO TIMEOUT OCCURED
    Note : Indpendently can be log on source database, target database from out of source db, But source db could'nt directly logon.
    so how can i solve the error
    pls reply urgently....
    regs
    RENGA

    ORA-12170: TNS: CONNECTION TO TIMEOUT OCCUREDWhen was last time this worked?
    What changed?
    What OS name & version involved on each system?
    12170, 00000, "TNS:Connect timeout occurred"
    // *Cause:  The server shut down because connection establishment or
    // communication with a client failed to complete within the allotted time
    // interval. This may be a result of network or system delays; or this may
    // indicate that a malicious client is trying to cause a Denial of Service
    // attack on the server.
    // *Action: If the error occurred because of a slow network or system,
    // reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT,
    // SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values.
    // If a malicious client is suspected, use the address in sqlnet.log to
    // identify the source and restrict access. Note that logged addresses may
    // not be reliable as they can be forged (e.g. in TCP/IP).Edited by: sb92075 on Oct 20, 2010 6:53 AM

  • ORA-12537 TNS Connection closed after OAS 4.0.8.1 Installation

    finally I was able to install and start OAS
    on RH 6.1, but now I can not start Ora8i (with all patches) on my system. When I start svrmgrl, will get ora-12537 TNS Connection lost error.
    Can someone please help!
    Thanks

    They said in the install doc that you can't use the same ORACLE_HOME for 8i and OAS 4.0.8...

  • ORA-12564: TNS:connection refused

    C# code:
    private Oracle.DataAccess.Client.OracleConnection objConn;
    objConn.ConnectionString = "User Id=tst;Data Source=CZETEST;Password=1234;"
    objConn.Open();
    tnsnames.ora
    CZETEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = XXX.NET)(PORT = 1621))
    (CONNECT_DATA =
    (SERVICE_NAME = XXX.CZ)
    I'm trying to connect to an Oracle 10g server.
    objConn.Open(); always ends with "ORA-12564: TNS:connection refused"
    I've even tried to let the connection build by ODT connection wizzard ('Test connection' button displays 'Connection was successfull', but when the code is run the result is unfortunately the same :(
    Anybody knows where the problem should be?

    This is often a malformed tnsnames.ora. Is what you posted a snippet, because it looks to me that you a closing ) too many. You can turn on tracing which should help you find the problem. It's odd that odt says the connection works, though.

  • Ora 12170  tns delai

    dear all ,
    I have a problem connecting my client to a the ORCL database on a small lan in my lab, first i get a timeout ORA-12170, after that i figured out that i am using a firewall , so i deactivated it , so it works fine.
    my question is how could i keep my firewall on and achieve the connection, since i am working in a TCP/IP environment using windows OS:
    -which port do i have to open?
    -if the port changes dynamically how could i deal with that ?
    thanks in advance.

    for 1st point
    - Open "Net Manager" --> Local --> Listener --> Select the listener_name
    then "Add Address" with different ports.
    after adding address your listener.ora will start showing like that
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = host_IP)(PORT = 1521))
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = host_IP)(PORT = 1522))
      )- Then Stop & Stop the listener using lsnrctl.
    for 3rd point
    you have to define new variable USE_SHARED_SOCKET = True in
    My computer property --> Advance --> Environment Variables --> system variables
    Regards
    Singh

  • Ora - 12537  tns connection closed

    hai folks,
    when i am connecting to database from toad software it throwhn error like this.
    in which files i will update regarding tnsnames.ora file.
    Regards
    dba

    You need to register the hosts which you want to give SQL*Plus/TOAD access as nodes.
    From OAM, navigate to Site Map > Administration > System Configuration > Hosts > Register.
    You may also comment "tcp.validnode_checking = yes" but this will allow any client to be able to connect to the Database.
    For more details, please refer to Note: 291897.1 - 11.5.10 New Features : Managed SQL*Net Access from Hosts
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=291897.1

  • Unable to connect SQL State=S1000 [Oracle][ODBC][Ora]ORA-12170:

    Hi all,
    I have an Windows XP OS with SP3.
    I have installed the Oracle 11g server.
    On trying to connect to the ODBC connection, i get the following error message:
    Unable to connect SQL State=S1000 [Oracle][ODBC][Ora]ORA-12170: TNS: Connect timeout occured
    On trying the tnsping,
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 09-OCT-2
    011 13:11:05
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    E:\app\Gautam\product\11.1.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.
    5.207)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl))
    TNS-12535: TNS:operation timed out
    On trying to connect with SQL Developer, i get the following error:
    Status: Failure - Test failed: Io Exception: The Network Adapter could not establish the connection
    However i am able to connect to the same using SQL Plus
    Another issue that occurs is that the Oracle Enterprise Manager shows the following error after a while:
    Agent Connection to Instance
    Status Failed
    Details ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
    The following services are all up during this point of time:
    OracleDBConsoleorcl
    OracleOraDb11g_home1TNSListener
    OracleServiceORCL
    Any help in this regard will be very useful as this is hindering the progress of my work.
    Thanks in advance for the help.
    - Gautam

    841683 wrote:
    Hi,
    I did try and delete my listener.ora and then create a new one..
    That did not solve my issue..
    What are the steps for configuring the listener again.
    Thanks for the response..
    - Gautamno listener.ora file is required.
    just do as below
    lsnrctl start

  • ORA-12170 and TNS-12535

    Hi everyone
    My servers are in a separate location and we are accessing our databases from my office.
    The developers say that they couldn't access one particular db from their machine.
    The errors they receive when they try to connect using some tool is:
    TNS-12535 TNS:operation timed outWhen I request them to TNSPing or when they access from Sql Plus(instant client), this is the error they receive:
    ORA-12170: TNS:Connect timeout occurredOne of the developers are using Oracle XE and he too faces the same scenario.
    So, where should I trace this problem from.
    We all could ping to the machine where the Oracle resides.
    Please advice.
    Thanks in advance.

    I have done a trace on the client side and here is the output:
    --- TRACE CONFIGURATION INFORMATION FOLLOWS ---
    New trace stream is C:\temp\sqlnettrace_3860_1.trc
    New trace level is 16
    --- TRACE CONFIGURATION INFORMATION ENDS ---
    --- PARAMETER SOURCE INFORMATION FOLLOWS ---
    Attempted load of system pfile source C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Parameter source loaded successfully
    Attempted load of local pfile source C:\Program Files\Gyrasoft\SQL Samurai For Oracle\sqlnet.ora
    Parameter source was not loaded
    -> PARAMETER TABLE LOAD RESULTS FOLLOW <-
    Successful parameter table load
    -> PARAMETER TABLE HAS THE FOLLOWING CONTENTS <-
       TRACE_UNIQUE_CLIENT = ON
       TRACE_DIRECTORY_CLIENT = C:\temp
       SQLNET.AUTHENTICATION_SERVICES = (NTS)
       TRACE_TIMESTAMP_CLIENT = ON
       TRACE_LEVEL_CLIENT = 16
       TRACE_FILE_CLIENT = SQLNetTrace
    --- PARAMETER SOURCE INFORMATION ENDS ---
    --- LOG CONFIGURATION INFORMATION FOLLOWS ---
    Log stream will be "C:\Program Files\Gyrasoft\SQL Samurai For Oracle\sqlnet.log"
    Log stream validation not requested
    --- LOG CONFIGURATION INFORMATION ENDS ---
    nlstdipi: entry
    nlstdipi: exit
    nigini: entry
    nigini: Count in the NL global area is now 1
    nigini: Count in NI global area now: 1
    nrigbi: entry
    nrigbni: entry
    nrigbni: Unable to get data from navigation file tnsnav.ora
    nrigbni: exit
    nrigbi: exit
    nigini: exit
    niqname: Hst is already an NVstring.
    niqname: Inserting CID.
    niotns: entry
    snsbitini_ts: entry
    snsbitini_ts: normal exit
    snsbitini_ts: entry
    snsbitini_ts: normal exit
    niotns: Not trying to enable dead connection detection.
    niotns: Calling address: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.x.xx)(PORT=1521)))(CONNECT_DATA=
    (SERVER=DEDICATED)(SERVICE_NAME=test)(CID=(PROGRAM=C:\Program Files\Gyrasoft\SQL Samurai For Oracle\SQLSamuraiForOracle.exe)(HOST=Machine1)(USER=11111))))
    nscall: entry
    nsmal: entry
    nsmal: 212 bytes at 0x98e50b0
    nsmal: normal exit
    nscall: connecting...
    nladini: entry
    nladini: exit
    nladget: entry
    nladget: exit
    nsc2addr: entry
    nsc2addr: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.x.xx)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)
    (SERVICE_NAME=test)(CID=(PROGRAM=C:\Program Files\Gyrasoft\SQL Samurai For Oracle\SQLSamuraiForOracle.exe)(HOST=Machine1)(USER=11111))))
    nttbnd2addr: entry
    snlinGetAddrInfo: entry
    snlinGetAddrInfo: exit
    nttbnd2addr: using host IP address: xxx.xxx.x.xx
    snlinFreeAddrInfo: entry
    snlinFreeAddrInfo: exit
    nttbnd2addr: exit
    nsc2addr: normal exit
    nsopen: entry
    nsmal: entry
    nsmal: 736 bytes at 0x98e6380
    nsmal: normal exit
    nsopenmplx: entry
    nsmal: entry
    nsmal: 1644 bytes at 0x98e7fc0
    nsmal: normal exit
    snsbitini_ts: entry
    snsbitini_ts: normal exit
    nsiorini: entry
    nsbal: entry
    nsbgetfl: entry
    nsbgetfl: normal exit
    nsmal: entry
    nsmal: 84 bytes at 0x98e5218
    nsmal: normal exit
    nsbal: normal exit
    nsiorini: exit (0)
    nscpxget: entry
    snsbitts_ts: entry
    snsbitts_ts: acquired the bit
    snsbitts_ts: normal exit
    snsbitcl_ts: entry
    snsbitcl_ts: normal exit
    nscpxget: normal exit
    nsopenalloc_nsntx: nlhthput on mplx_ht_nsgbu:ctx=98e6380, nsntx=98e7fc0
    nsopenmplx: normal exit
    nsopen: opening transport...
    nttcon: entry
    nttcon: toc = 1
    nttcnp: entry
    nttcnp: creating a socket.
    nttcnp: exit
    nttcni: entry
    nttcni: trying to connect to socket 900.
    ntt2err: entry
    ntt2err: soc 900 error - operation=1, ntresnt[0]=505, ntresnt[1]=60, ntresnt[2]=0
    ntt2err: exit
    nttcni: exit
    nttcon: exit
    nserror: entry
    nserror: nsres: id=0, op=65, ns=12535, ns2=12560; nt[0]=505, nt[1]=60, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
    nsopen: unable to open transport
    snsbitts_ts: entry
    snsbitts_ts: acquired the bit
    snsbitts_ts: normal exit
    snsbitcl_ts: entry
    snsbitcl_ts: normal exit
    nsiocancel: entry
    nsiofrrg: entry
    nsbfr: entry
    nsbaddfl: entry
    nsbaddfl: normal exit
    nsbfr: normal exit
    nsiofrrg: exit
    nsiocancel: exit
    nsopenfree_nsntx: nlhthdel from mplx_ht_nsgbu, ctx=98e6380 nsntx=98e7fc0
    nsiocancel: entry
    nsiofrrg: entry
    nsiofrrg: exit
    nsiocancel: exit
    snsbittrm_ts: entry
    snsbittrm_ts: normal exit
    snsbitts_ts: entry
    snsbitts_ts: acquired the bit
    snsbitts_ts: normal exit
    snsbitcl_ts: entry
    snsbitcl_ts: normal exit
    nsmfr: entry
    nsmfr: 1644 bytes at 0x98e7fc0
    nsmfr: normal exit
    nsmfr: entry
    nsmfr: 736 bytes at 0x98e6380
    nsmfr: normal exit
    nsopen: error exit
    nsclose: entry
    nsclose: normal exit
    nladget: entry
    nladget: exit
    nsmfr: entry
    nsmfr: 212 bytes at 0x98e50b0
    nsmfr: normal exit
    nladtrm: entry
    nladtrm: exit
    nscall: error exit
    nioqper:  error from nscall
    nioqper:    ns main err code: 12535
    nioqper:    ns (2)  err code: 12560
    nioqper:    nt main err code: 505
    nioqper:    nt (2)  err code: 60
    nioqper:    nt OS   err code: 0
    niomapnserror: entry
    niqme: entry
    niqme: reporting NS-12535 error as ORA-12535
    niqme: exit
    niomapnserror: exit
    niotns: Couldn't connect, returning 12170
    nioqer: entry
    nioqer:  incoming err = 12170
    nioqce: entryCould someone please throw some light on this?

  • I see the error: ORA-12170 when I make Net Manager on Oracle DTB Client

    Dear all,
    I installed Oracle Database 10 g on Server, then I installed Oracle Database Client 10 g on another PC. I tested the connection database from client PC by making Net Manager on Oracle Database Client. And I see the error ORA - 12170.
    Can you help me?
    I want to connect database on Server to practice add Portlet by SQL/PLUS.
    Thanks.

    Oracle says...
    ORA-12170: TNS:Connect timeout occurred
    Cause: The server shut down because connection establishment or communication with a client failed to complete within the allotted time interval. This may be a result of network or system delays; or this may indicate that a malicious client is trying to cause a Denial of Service attack on the server.
    Action: If the error occurred because of a slow network or system, reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT, SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values. If a malicious client is suspected, use the address in sqlnet.log to identify the source and restrict access. Note that logged addresses may not be reliable as they can be forged (e.g. in TCP/IP).
    Also check the following...
    1) Listener status on the server.
    2) Check listener.log file present in X:\oracle\product\10.2.0\db_1\NETWORK\log folder to grab any error.
    3) Check the result of tnsping from the client.
    4) try to login by sqlplus username/password@tnsname and see what happens.

  • TNS:connection timeout error

    Hi,
    I have installed oracle 10g in my system.
    the tnsnames.ora file contails the following:
    TEST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = test)
    and sqlnet.ora file contains :
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    when i'm trying to login from SQLPLUS as:
    sqlplus sys/<password>@<sid> as sysdba
    it's showing the error as "ORA-12170 :TNS: connect timeout occured"
    C:\Documents and Settings\Administrator>sqlplus sys/<password>@<sid> as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Sep 10 09:47:56 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12170: TNS:Connect timeout occurred
    Enter user-name: sys as sysdba
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>
    But i coudnot connect to Enterprise manager and through Toad because it tells as "TNS:connect timeout occured".
    From enterprise manager it shows the instance,listener are down.
    trying to start up the instance shows as "not connected to oracle".
    Could you please help me for this.
    Thanks,
    Souvik

    user10223265 wrote:
    This may help
    http://www.errorkey.com/search/Index.aspx?q=TNS-12541
    Is this the best you have to offer? I see you keep on posting "+answers+" using this URL. Well, if this is all you have to offer it is pretty pathetic. Please do not bother as there are many here that will actually make an effort to assist the person with the problem. We do not want you to sprain a finger or break a nail looking up the errorkey URL for yet another error code.
    Re: why handling ora-01722 with pl/sql not works ???

  • Ora-2049 vs ora-12170

    We have a 3 node RAC on AIX and have several dbms_jobs running that read and write to a single remote database. Occasionally, but not often, we encounter ORA-2049 timeout: distributed transaction waiting for lock with only one of the jobs. It's the same job/package each time the error occurs.
    To troubleshoot, we migrated this environment to a 2 node RAC (less capable hardware) and now we are getting ORA-12170 TNS:Connect timeout occured on several of the jobs. The error is frequent at times and infrequent to non-existent at other times. ORA-2049 is extremely infrequent as compared to the ORA-12170 error.
    All DBs are running 10gR2.
    The DBA says this is a result of the use of db links and synonyms but my first thought is that these seem to be two different errors. We use a mixture of both public and private db links as well as public and private synonyms to access the remote database. The jobs also use dynamic SQL to execute DML and in some cases triggers to access the remote db. Is our use of links/synonyms/triggers the source of the problem or is there another configuration issue we should be looking at?
    Does anyone know of a good reference for the use of synonyms, db links, and triggers with respect to do's and don'ts?
    Any insight is greatly appreciated.
    Thanks!
    Edited by: user10394376 on Feb 23, 2010 12:12 PM

    Yup, simplified as in changed. But still exactly the same tables and columns, just realised I was doing an unnecessary join. When I changed the predicates it worked.

Maybe you are looking for