🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.database
Article #394

Re: Database Pilot issues analyze statement

#394
From: Paul Nichols [TeamB]
Date: Thu, 20 Oct 2005 03:22
47 lines
2807 bytes
Tim Truman wrote:

> 
>>Hint: Try Squirrel. Does it exhibit the same behavior?
>>http://squirrel-sql.sourceforge.net/
> 
> Yes. When the metadata indexes tab is selected.
> 
> Scary.
> 
> But I would guess the code could be modified to eliminate this behavior.
> 
> > It would seem the only way to quickly solve the issue is to provide a
> single user account for each developer and grant in the objects they need
> access to. Keeping access to production schemas off limits. I am perplexed
> however as to why these tools issue commands that affect the operation
> behavior of the database. ANALYZE is a well documented command affecting
> the operation of the CBO.
> 
> In any event, thank you Paul (TeamB) for taking interest in my issue and
> providing assitance. It is appreciated.
> 
Tim,

You may get the developers (or you) to try using the Oracle drivers for your
connections, rather than the java.sql drivers and use the Oracle Drivers.

For instance, try typecasting the Connection.getMetaData() with

OracleDatabaseMetaData dmd =
(OracleDatabaseMetaData)connection.getMetaData();

Check through the dmd instance of OracleDatabaseMetaData. See if it will
return the ANALYSE option. If so, you can probably change this value using
the API. 

I am willing to wager that most tools are using the Connection classes
getMetaData() from the java.sql package, which probably uses only default
settings and does not allow overrides to these methods or accessor methods
(sets) for database vendor specifics (such as those in Oracle). However,
the Oracle drivers may allow for this directly. Since I am not at work, and
I do not have Oracle at home, I cannot test my theory. I will do so this
week (when I get some time) and let you know what I find, if you do not
beat me to it :)

Good luck (to both of us).
 
Technical Details
Message-ID: <4355b79f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <434d2add$1@newsgroups.borland.com> <434de09f$1@newsgroups.borland.com> <434ec516$1@newsgroups.borland.com> <43502088$1@newsgroups.borland.com> <43550460$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,9271f20c522d59c5
X-Google-Attributes: gid1073da,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <4355b79f@newsgroups.borland.com>
From: "Paul Nichols [TeamB]" <paul@comp.net>
Subject: Re: Database Pilot issues analyze statement
Newsgroups: borland.public.jbuilder.database
Date: Wed, 19 Oct 2005 22:22:14 -0500
References: <434d2add$1@newsgroups.borland.com> <434de09f$1@newsgroups.borland.com> <434ec516$1@newsgroups.borland.com> <43502088$1@newsgroups.borland.com> <43550460$1@newsgroups.borland.com>
Lines: 48
User-Agent: KNode/0.9.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
NNTP-Posting-Host: 71.8.84.183
X-Trace: newsgroups.borland.com 1129691039 71.8.84.183 (18 Oct 2005 20:03:59 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail