Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: SQUIRREL_GET_ERROR_OFFSET?: msg#00014

db.squirrel-sql.users

Subject: Re: SQUIRREL_GET_ERROR_OFFSET?

On Dec 3, 2007 3:28 PM, Thomas Han <thomashan@xxxxxxxxx> 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
> "SQUIRREL_GET_ERROR_OFFSET".
>
> 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
is
l_theCursor integer default dbms_sql.open_cursor;
l_status integer;
begin
begin
dbms_sql.parse( l_theCursor, query, dbms_sql.native );
exception
when others then l_status := dbms_sql.last_error_position;
end;
dbms_sql.close_cursor( l_theCursor );
return l_status;
end;

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.

Rob

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation