Oracle SQL Developer issue when using VPN (Cisco)

All,
We've got a somewhat obscure issue with SQL Developer connectivity to our databases from a remote employee's laptop.
The database is hosted inside our firewall and when the employee tries to connect to the database he receives the following error:
+"Error Encountered: An error was encountered performing the requested operation: The network adaptor could not establish the connection. Vendor Code 20"+
I believe I may have seen the following error at one point as well...
Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
Note: He gets this error when logged into our VPN & while he can connect via SQL*Plus to that same database. He gets the error regardless if he uses the tnsnames entry option in SQL Developer or if he is using the "Basic" connection type.
What's interesting is that if he disconnects from the VPN, turns off his wireless connectivity and then hard-wires into our network he can connect, no issue.
The strangest part for me is that while he can not connect to the database via SQL Developer, he can connect via SQL*Plus. He can ping the source IP address fine, he can tnsping the database no problem, he can connect via SQL*Plus, he just can't connect via SQL*Developer. Since SQL*Plus and tnsping are working, I know he can access the db server via port 1521, so I don't think it's a port issue.
Another strange thing: When he connects to our network via an "old" VPN (open VPN) he has no issues.
His machine is Windoz 64 bit (HP laptop) and he's using the latest version of SQL Developer and a newer JVM.
Also interesting: I also have a Windoz 64 bit laptop (Lenovo) and I do not have the same issues as he does. I however am running an older version of SQL Developer and probably an older JVM.
I dug around a bit, seems like perhaps this has something to do with IPv6? No idea what to do next except have my network guy look at firewall logs to try to capture where the connectivity is being dropped.
Any thoughts or suggestions would be appreciated. I've tried all kinds of things (giving him my tnsnames.ora and sqlnet.ora file, manually editing those files, tried IP addresses instead of host names, tried host names with the .doman.org extensions, etc.).
Again, any suggestions would be appreciated and thank you very much.
Rich
Edited by: rmurnane on Oct 23, 2012 10:58 AM

Since SQLPlus is installed and works fine you could try to set
Tools -> Preferences -> Database -> Advanced -> Use OCI/Thick driverThis should enable SQLDeveloper to use the same oracle client SQLPlus is using to connect to the database.
Mind that by setting this option you need to have an 11g client (or instant client) installed that matches the ojdbc6.jar version used by SQLDeveloper, so if you are using an older client this may not be a usable solution.

Similar Messages

  • Oracle sql developer issue...

    Hi,
    I am using "Oracle Sql Developer" to access the database.I am not able to see any existing table when click on "Tables" in the object browser.But i am able to query the table.
    Can some one tell me how can make oracle sql developer tool to show the objects.
    Thanks.

    Hi,
    Did you create the table after creating a connection? If yes, you can probably try a disconnect (right click on the connection and choose) and then connect again (or click on the refresh icon). A
    By the way, there is a dedicated forum for [SQL Developer|http://forums.oracle.com/forums/forum.jspa?forumID=260] . You might want to post this question there, if it hasn't resolved by the steps I gave.
    -Arun

  • Oracle SQL Developer to be used in laptop

    Hi all,
    I have downloaded oracle sql developer for my Windows 7 laptop. I am able to make SQL queries but unable to run any PL SQL block. I am unable to create any connection and gettinf an error 'IO Error: The Network Adaptor could not establish the connection.'
    I do not have oracle installed in my local system. I just want to write a few blocks and use it for my personal purpose. But for packages, procedures etc it is not allowing me use any connection.
    I want a simple application for my personal use only which will help me to learn the basics.
    Please guide me regarding that.

    883365 wrote:
    Hi all,
    I have downloaded oracle sql developer for my Windows 7 laptop. I am able to make SQL queries but unable to run any PL SQL block. I am unable to create any connection and gettinf an error 'IO Error: The Network Adaptor could not establish the connection.'
    I do not have oracle installed in my local system. I just want to write a few blocks and use it for my personal purpose.
    But for packages, procedures etc it is not allowing me use any connection.
    I want a simple application for my personal use only which will help me to learn the basics.
    Please guide me regarding that.Download 10 XE (or the 11 beta) and use that.
    Paul...

  • Oracle SQL Developer for personal use?

    Hello,
    I would like to use Oracle to test out my SQL commands, however I do not have a connection set up (at home). Is there a way I can create databases and tables without setting up a connection to a database. If that isn't possible, is there a tutorial avaliable somewhere to set up a connection on a local machine. Operating system is Mac OSX, however I do have Windows 7 64-bit available as well. Thanks in advance for your help/sugguestions.

    user13462562 wrote:
    Hello,
    I would like to use Oracle to test out my SQL commands, however I do not have a connection set up (at home). Is there a way I can create databases and tables without setting up a connection to a database. If that isn't possible, is there a tutorial avaliable somewhere to set up a connection on a local machine. Operating system is Mac OSX, however I do have Windows 7 64-bit available as well. Thanks in advance for your help/sugguestions.Welcome to Forums.
    Without making a connection to the db, there isn't any chances that you can issue the sql statements. So you must have to have a connection with either an existing db or make a new db and get connected to it. The another way , to run sql statements, is to just connect using plain black window (terminal) using o/s authentication . This won't need any tns settings at all but you won't get that good looking GUI interface of Sql Developer as well. That's my preferred way to work with db but you may have a different preference still you can give it a try if you want to.
    The setup is pretty straightforward. You need to pass the information of your host with the appropriate user name and password and it would be done. Once you start doing it, keep the thread updated with your efforts so that we can guide you in case you would face troubles.
    HTH
    Aman....

  • PL/SQL speed issues when using a variable

    I have a very strange issue that is causing problems.
    I am running Golden connecting to a 11g database.
    I created a procedure to insert records into a table based on a query. The source query includes variables that I have populated prior to the insert statement. The problem is that if I use the variable for one very specific where statement, the statement goes from running in less than 1 second, to running in 15 minutes. It gets even more strange though. Not only does a 2nd variable not cause any problems, the exact same variable in the same statement works fine.
    This procedure takes 15 minutes to run.
    declare
        v_start_period date;
        v_end_period date;
    begin
        select add_months(trunc(sysdate,'mm'), -1), trunc(sysdate,'mm')
        into v_start_period, v_end_period
        from dual;
        insert into RESULTS_TABLE
                (first_audit_date, last_audit_date,
                data_column1, data_column2, data_column3)
            select
                a.first_audit_date, a.last_audit_date,
                b.data_column1, b.data_column2, b.data_column3
            from
                SOURCE_TABLE_1 b,
                (select marker_id, min(action_time) as first_audit_date, max(action_time) as last_audit_date
                    from SOURCE_TABLE_2
                    where action_time >= v_start_period and action_time < v_end_period
                    group by marker_id) a
            where b.marker_id = a.marker_id
                and exists (select 1 from SOURCE_TABLE_2
                    where marker_id = b.marker_id
                    and action_time >= v_start_period and action_time < v_end_period
                    and action_type = 'XYZ');
        commit;
    end;This procedure runs in less than 1 second, yet returns the exact same results.
    declare
        v_start_period date;
        v_end_period date;
    begin
        select add_months(trunc(sysdate,'mm'), -1), trunc(sysdate,'mm')
        into v_start_period, v_end_period
        from dual;
        insert into RESULTS_TABLE
                (first_audit_date, last_audit_date,
                data_column1, data_column2, data_column3)
            select
                a.first_audit_date, a.last_audit_date,
                b.data_column1, b.data_column2, b.data_column3
            from
                SOURCE_TABLE_1 b,
                (select marker_id, min(action_time) as first_audit_date, max(action_time) as last_audit_date
                    from SOURCE_TABLE_2
                    where action_time >= v_start_period and action_time < trunc(sysdate,'mm')
                    group by marker_id) a
            where b.marker_id = a.marker_id
                and exists (select 1 from SOURCE_TABLE_2
                    where marker_id = b.marker_id
                    and action_time >= v_start_period and action_time < v_end_period
                    and action_type = 'XYZ');
        commit;
    end;The only difference between the two is where I replace the first v_end_period variable with trunc(sysdate,'mm').
    I've been googling for possible solutions and keep running into something called "parameter sniffing". It appears to be a SQL Server issue though, as I cannot find solutions for Oracle. I tried nesting the insert statement inside it's own procedure with new variables populated by the old variables, but nothing changed.
    Edited by: user_7000017 on Jan 8, 2013 9:45 AM
    Edited by: user_7000017 on Jan 8, 2013 9:52 AM Put the code in code tags.

    You are not describing procedures. You are listing anonymous PL/SQL blocks.
    As for the code - this approach to assigning PL/SQL variables are highly questionable. As the functions are native PL/SQL functions too, there is no need to parse and execute a SQL cursor, do context switching, in order to assign values to PL/SQL variables.
    This is wrong:
    select
        add_months(trunc(sysdate,'mm'), -1), trunc(sysdate,'mm')
        into v_start_period, v_end_period
    from dual;This is correct:
    v_start_period := add_months(trunc(sysdate,'mm'), -1);
    v_end_period := trunc(sysdate,'mm');Just as you would not use +"select 1 into plVariable from dual;+", instead of a standard variable assignment statement like +"plVariable := 1;"+.
    As for the performance/execution difference. Does not make sense. I suggest simplifying the code in order to isolate the problem. For example, take that in-line SQL (aliased as a in the main SQL) and create a testcase where it uses the function, versus a PL/SQL bind variable with the same data type and value as that returned by the function. Examine and compare the execution plans.
    Increase complexity (if no error) and repeat. Until the error is isolated.
    The 1st step in any troubleshooting, is IDENTIFYING the problem. Without knowing what the problem is, how can one fix it?

  • Problems when starting with oracle SQL developer

    Hello,
    I am very much new with oracle SQL developer. I use oracle 10g and have a database named 'pallabDB' with username: xxxxxx and paswd:yyyyyy. I have installed oracle SQL developer.But i am unable to start up.What i should do? If any body replies it will be a great help.Thanks in advance.

    But i am unable to
    start up.How to understand this sentence without confusion?
    Can you explain exactly what is your problem at start up of SQL Developer?

  • Oracle sql developer and access db

    Hi All,
    I have connection to oracle and Access dbs’ on my oracle sql developer.
    When i try to create a database link from oracle db to access db i have to add Host Name.
    Connection details to access looks like this :
    @jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\ list.mdb;DriverID=22;READONLY=false}
    I tried different variants, but it doesn’t work.
    Is this possible to create database link to access db, and if yes, what i have to add for a host name and what is the syntaxes for cross table ?
    Thank you

    Good documentation here... http://www.orafaq.com/node/60
    TimS

  • Table API Extension for Oracle SQL Developer

    I just created small project [Table API Generator for Oracle|http://code.google.com/p/tapig/].
    Idea is to only maintain tables and generate table API (TAPI) packages for data manipulation.
    Generated:
    - insert, update, delete, querying procedures
    - documentation based on table columns comments
    Do you think it will be useful to have custom Table API Generator as extension for Oracle SQL Developer?

    Never used them myself and quite legacy, but I'm sure there's still a lot of people using them and the basic idea is quite nice.
    This would also qualify perfectly as a User Defined XML Extension for sqldev; little work but big results. Even if you were the only one using it, it would still pay off.
    Have fun,
    K.

  • Oracle SQL developer configuration file

    Greetings experts,
    I'm a newbie in a Java and Database world trying to understand configuration file in Oracle SQL developer. It uses command like AddVMOption. I'm guessing this is a Java language related command. Is this true? If yes, what does it do?
    Regards,
    Valerie

    This is a java virtual machine argument

  • Oracle SQL Developer Screen hangs up

    I am facing an unusual problem in Oracle SQL Developer. When I try to compile a store procedure it hangs up the Oracle SQL Developer Screen and I can't do any activity, except to kill the SQL developer instance and start again.
    But when i start he instance and try to compile it, i again get the same error.
    Anybody faced such problem? I am new to oracle.
    For one or two instance I waited for 5 to 10 min and got this error
    ORA-04021 timeout occurred while waiting to lock object
    But I am the only person working on this instance of Oracle

    That would indicate some other session is currently running the proc. Check out Tools - Monitor Sessions, or the Enterprise Manager. If necessary, you can kill the locking session from both.
    Hope that helps,
    K.

  • How to hide system tables when using the Oracle SQL Developer?

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? I didnt find a way to create a separate database using the Oracle Sql Developer. I see all the tables together, and would like to differentiate between different databases.
    Can anyone explain to me how to do these things?
    Thanks,

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? Your posting is not clear,again tell something more on tables tree,what u want to achieve with it.
    How to hide system tables when using the Oracle SQL Developer? if u connected with sys, system or user with dba role then u have a privilege to see these tables,so revoke the privilege/role from ur user to view this tables if ur connected other then sys,system,
    I didnt find a way to create a separate database using the Oracle Sql Developer. DBCA is a tool for creating the new database.
    Kuljeet

  • Issue during migrating from Sybase to Oracle using Oracle SQL Developer

    I am using SQL Developer v 3.2.20.09 to migrate from Sybase to Oracle Pl/SQL 12c
    While migrating the stored procedure the following block did not convert. I got NULL instead of object_id:
    Sybase Block:
    IF OBJECT_ID(‘dbo.CheckEst’) IS NOT NULL
    BEGIN
    DROP PROCEDURE dbo.CheckEst
    IF OBJECT_ID(‘dbo.CheckEst’) IS NOT NULL
    PRINT ‘<<>>’
    ELSE
    PRINT ‘<<>>’
    END
    Oracle Block after conversion:
    BEGIN
    IF NULL/*TODO:OBJECT_ID(‘dbo.CheckEst’)*/ IS NOT NULL THEN
    BEGIN
    DROP PROCEDURE CheckEst;
    IF NULL/*TODO:OBJECT_ID(‘dbo.CheckEst’)*/ IS NOT NULL THEN
    DBMS_OUTPUT.PUT_LINE(‘<<>>’);
    ELSE
    DBMS_OUTPUT.PUT_LINE(‘<<>>’);
    END IF;
    END;
    END IF;
    END;
    Lines 1 & 4 got converted to NULL. I have many places where such code is written.
    Is there any quick way to overcome such an issue? or what needs to be done in such case?

    Hi,
      You are using an older version of SQL*Developer.  Could you download the latest 4.0.2 version available from here -
    Oracle SQL Developer
    and check if you still have the problem ?
    Regards,
    Mike

  • Accessing MySQL InnoDB tables via JDBC using Oracle SQL Developer

    I had posted a problem in the Oracle SQL Developer forum with how that application (v1.1) accesses MySQL InnoDB tables and someone replied that the "[data migration] team created the integration with MySQL", so I am posting here in hopes of learning more about the problem.
    Here's a summary:
    When I use Oracle SQL Developer to query MySQL InnoDB tables, I need to issue a "commit" before I do each query to ensure that I am getting current results. Otherwise, it appears to be using a snapshot as-of the last commit. Is this a problem with SQL Developer, or a JDBC configuration, or MySQL problem even?
    The full details are here:
    Re: MySQL InnoDB tables

    Hi,
    I've posted a response to your original thread.
    Regards,
    Dermot.

  • Unable to connect to Oracle Database using Oracle Sql developer 2.1.1.64

    Hi Everyone,
    I am searching for some help regarding my problem with Oracle connectivity. I have installed Oracle 11g release 2 on my Windows XP Professional Laptop. For a few days after installation i could connect to the Oracle database with the SYSTEM account using Oracle SQL developer ( installed on the same Laptop) but now i am unable to do so.It gives me this annoying message:
    An error was encountered performing the required operation  Got a minus one from read call .Vendor code 0
    However i am able to connect using Sql Plus by supplying the username SYSTEM and the corresponding password.
    My TNSNAMES .ora file is as follows:
    ORACLE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORACLE)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    My Listener.ora file is as follows:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:D:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (GLOBAL_DBNAME = Oracle)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (SID_NAME = Oracle)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    ADR_BASE_LISTENER = D:\app
    My Sqlnet.ora file is as follows:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    I am new to Oracle and so i need someone in this forum who can help me resolve this problem. Also i even tried connecting to the database using Toad 10.5.0.41. It give me the following error:
    ORA 12537 : TNS Connection closed
    Thanks for your patience and help in advance.
    ---Prashant

    Hello Irian and Sue,
    I can connect to the Oracle database using SQL Plus. Now when i TNSPING ORACLE from command line i get the following message :
    Used parameter files:
    D:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost
    *)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE)))*
    TNS-12537: TNS:connection closed
    Thanks for your response to my initial post.Do u have any other methods to resolve this?

  • How to create a counter using Oracle SQL Developer?

    Is there any way to create a counter using Oracle SQL Developer to create the below scenario. Meaning it will recorded down the name of user and ID and time and the date they login.
    Library portal home statistics shows how many users (outside and within the campus) visit the library portal.
    Page Access statistics is recorded on an hourly basis. Users may select the statistics by
    yearly (statistics displayed by all months in the selected year)
    monthly (statistics displayed by all days in the selected month)
    daily (statistics displayed by all hours in the selected day)

    I'm giving here one basic post - hope this will solve your problem --
    SQL>
    SQL>
    SQL> create table audit_info
      2   (
      3     usr        varchar2(50),
      4     log_time   timestamp(6)
      5    );
    Table created.
    SQL>
    SQL>
    SQL>  create table err_log
      2     (
      3       log_cd      varchar2(20),
      4       log_desc    varchar2(500)
      5     );
    Table created.
    SQL>
    SQL>
    SQL>   create or replace procedure ins_err(errcd   in  varchar2,
      2                                        errnm   in  varchar2)
      3    is
      4      pragma autonomous_transaction;
      5    begin
      6      insert into err_log values(errcd,errnm);
      7      commit;
      8    end;
      9  /
    Procedure created.
    SQL>
    SQL>
    SQL>   create or replace procedure ins_aud(ud   in varchar2,
      2                                        unm  in varchar2)
      3    is
      4      pragma autonomous_transaction;
      5    begin
      6      insert into audit_info values(ud,unm);
      7      commit;
      8    exception
      9      when others then
    10        ins_err(sqlcode,sqlerrm);
    11    end;
    12  /
    Procedure created.
    SQL>
    SQL>
    SQL>
    SQL> create or replace trigger log_odsuser1
      2   after logon on odsuser1.schema
      3   begin
      4     ins_aud('ODSUSER1',sysdate);
      5   exception
      6     when others then
      7       ins_err(sqlcode,sqlerrm);
      8   end;
      9  /
    Trigger created.
    SQL>
    SQL*Plus: Release 9.2.0.1.0 - Production on Tue Jun 12 12:21:09 2007
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    SQL>
    SQL>
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL>
    SQL> select * from audit_info;
    USR
    LOG_TIME
    ODSUSER1
    12-JUN-07 12.00.00.00000000 AMHope this will solve your purpose.
    Regards.
    Satyaki De.

Maybe you are looking for

  • Running Java/J2EE application On SAP Netweaver

    Hi All, I am a java/J2ee professional who is relatively new to SAP Netweaver studio. I have developed an application which consists of Core java,JSP and Servlets. Can anybody suggest me as to how to deploy this application on SAP Netweaver and how to

  • Equium M50-216 - need info about display connection

    I've had no problems with the system before, but about a week ago I started experiencing display problems. Basically, the display occasionally freezes or behaves strangely - blanking, interference etc. This is related to moving the screen - fiddling

  • CSS scrolling window for thumbnails

    Hello, I'm in the process of designing my first CSS portfolio site. I have a lot of thumbnails and frankly they look a mess because there are so many. Therefore I want to contain them within some kind of simple scrolling window. My question: Is this

  • Is this normal? "There are currently no approval tasks assigned to you."

    Our site owners encounter the following situation:  - We are using sites based on "Publishing site with workflow" template.  - We have used Owners (Permission Level=Full Control) for site managers  and Visitors (Permission Level=Read) for everyone on

  • XE install hangs on service creation

    I'm trying to install the latest version of XE on a windows XP box. I've had a version on this machine aleady that I've removed. Every time I do the install it just hangs on the service creation and starting step. I previously had a working version t