Thanks so much for the explanation.  I think I'll just turn off the Oracle plugin in the mean time or downgrade back to 2.6 until 2.7.

Thanks again.


On Dec 3, 2007 4:29 PM, Robert Manning <> wrote:
On Dec 3, 2007 3:28 PM, Thomas Han <> wrote:
> Hi,
> I'm on the latest 2.6.1.  When I upgraded to this at end of Oct.  My DBA
> told me that he started seeing objects in the DB
> What is this and is there a way to disable this so my Squirrel client won't
> create this?  I've been using Squirrel for years and have never been told by
> the DBA about these objects, so I'm just thinking if this is v2.6.1.
> related.

It is a function that the Oracle plugin creates and uses to position
the cursor at the statement token where a syntax error occurred.  It
has the following definition and is created when an Oracle session is
connected while the Oracle plugin is loaded.

create or replace function
 (query IN varchar2)
return number authid current_user
    l_theCursor     integer default dbms_sql.open_cursor;
    l_status        integer;
        dbms_sql.parse(  l_theCursor, query, dbms_sql.native );
                when others then l_status := dbms_sql.last_error_position;
        dbms_sql.close_cursor( l_theCursor );
        return l_status;

Oracle doesn't provide this information via the JDBC driver so it's
not possible to do this without using a function (at least, I couldn't
think of a way).  Unfortunately for you, there is no other way to
disable it's creation other than to disable the Oracle plugin.  It
hadn't occurred to me that user functions were off-limits in some
cases.  I'll make a note to make this configurable in 2.6.3 and 2.7.