Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 304D2F9DA for ; Tue, 7 May 2013 14:36:27 +0000 (UTC) Received: (qmail 75919 invoked by uid 500); 7 May 2013 14:36:27 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 75890 invoked by uid 500); 7 May 2013 14:36:27 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 75882 invoked by uid 99); 7 May 2013 14:36:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 14:36:26 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [65.55.88.11] (HELO tx2outboundpool.messaging.microsoft.com) (65.55.88.11) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 14:36:19 +0000 Received: from mail239-tx2-R.bigfish.com (10.9.14.228) by TX2EHSOBE009.bigfish.com (10.9.40.29) with Microsoft SMTP Server id 14.1.225.23; Tue, 7 May 2013 14:35:36 +0000 Received: from mail239-tx2 (localhost [127.0.0.1]) by mail239-tx2-R.bigfish.com (Postfix) with ESMTP id 6003A4C0142 for ; Tue, 7 May 2013 14:35:36 +0000 (UTC) X-Forefront-Antispam-Report: CIP:74.62.37.82;KIP:(null);UIP:(null);IPV:NLI;H:CPHUB1.canoga.com;RD:rrcs-74-62-37-82.west.biz.rr.com;EFVD:NLI X-SpamScore: 0 X-BigFish: VPS0(zzc85fhd799hzz1f42h1fc6h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ahzz17326ah18c673h8275bh8275dhz2dh2a8h668h839hd25hf0ah1288h12a5h12bdh137ah1441h14ddh1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h1b0ah1bceh1d0ch1d2eh1d3fh1155h) Received: from mail239-tx2 (localhost.localdomain [127.0.0.1]) by mail239-tx2 (MessageSwitch) id 1367937333312518_26758; Tue, 7 May 2013 14:35:33 +0000 (UTC) Received: from TX2EHSMHS033.bigfish.com (unknown [10.9.14.227]) by mail239-tx2.bigfish.com (Postfix) with ESMTP id 3B7D740042 for ; Tue, 7 May 2013 14:35:33 +0000 (UTC) Received: from CPHUB1.canoga.com (74.62.37.82) by TX2EHSMHS033.bigfish.com (10.9.99.133) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 7 May 2013 14:35:30 +0000 Received: from CPHUB2.canoga.com (172.16.1.94) by CPHUB1.canoga.com (172.16.1.93) with Microsoft SMTP Server (TLS) id 8.2.213.0; Tue, 7 May 2013 07:34:55 -0700 Received: from vserver1.canoga.com ([169.254.2.35]) by CPHUB2.canoga.com ([172.16.1.94]) with mapi; Tue, 7 May 2013 07:34:55 -0700 From: "Bergquist, Brett" To: "derby-dev@db.apache.org" Date: Tue, 7 May 2013 07:35:26 -0700 Subject: Does the XPLAIN feature work in Derby 10.9.1.0 Thread-Topic: Does the XPLAIN feature work in Derby 10.9.1.0 Thread-Index: Ac5LMB0xsx4XHWbnTLmG9kQM4EmkaA== Message-ID: <97EB699F861AD841B5908C7CA9C956560269AC2C1731@VSERVER1.canoga.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US X-TM-AS-Product-Ver: SMEX-10.2.0.3176-7.000.1014-19848.005 X-TM-AS-Result: No--17.133400-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No Content-Type: multipart/alternative; boundary="_000_97EB699F861AD841B5908C7CA9C956560269AC2C1731VSERVER1can_" MIME-Version: 1.0 X-OriginatorOrg: canoga.com X-Virus-Checked: Checked by ClamAV on apache.org --_000_97EB699F861AD841B5908C7CA9C956560269AC2C1731VSERVER1can_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am running Derby 10.9.1.0 and am trying to figure out a performance prob= lem with query taking too long. I don't actually want to run the query so= from the documentation, I try: call syscs_util.syscs_set_runtimestatistics(1); call syscs_util.syscs_set_xplain_schema('STATS'); call syscs_util.syscs_set_xplain_mode(1); --- my query here call syscs_util.syscs_set_runtimestatistics(0); call syscs_util.syscs_set_xplain_schema(''); call syscs_util.syscs_set_xplain_mode(0); When it runs my query, I get: ERROR XCL16: ResultSet not open. Operation 'getMetaData' not permitted. Ver= ify that autocommit is OFF. I try the following with IJ just to see: call syscs_util.syscs_set_runtimestatistics(1); call syscs_util.syscs_set_xplain_schema('STATS'); call syscs_util.syscs_set_xplain_mode(1); select sql_text from syscs_diag.transaction_table where status !=3D 'IDLE'; call syscs_util.syscs_set_runtimestatistics(0); call syscs_util.syscs_set_xplain_schema(''); call syscs_util.syscs_set_xplain_mode(0); And still get the same error. Could someone try this on their system and = see if it works. It would be most appreciated. Brett --_000_97EB699F861AD841B5908C7CA9C956560269AC2C1731VSERVER1can_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am running Der= by 10.9.1.0 and am trying to figure out a  performance problem with qu= ery taking too long.   I don’t actually want to run the que= ry so from the documentation, I try:

 

call syscs_util.syscs_set_runtimesta= tistics(1);

call syscs_util.syscs_set_xp= lain_schema('STATS');

call syscs_util.sy= scs_set_xplain_mode(1);

--- my query her= e

call syscs_util.syscs_set_runtimestati= stics(0);

call syscs_util.syscs_set_xpla= in_schema('');

call syscs_util.syscs_set= _xplain_mode(0);

 

When it runs my query, I get:

 

ERROR XCL16: ResultSet not open. Operation 'getMetaData' not permitted. = Verify that autocommit is OFF.

&nbs= p;

I try the following with IJ just to see:

 

call syscs_util.syscs_set_runtimestatistics(1);

call syscs_util.syscs_set_xplain_schema('STATS');

call syscs_util.syscs_set_xplain_mode(1);

=

select sql_text from syscs_diag.transaction_table wher= e status !=3D 'IDLE';

call syscs_util.sy= scs_set_runtimestatistics(0);

call syscs= _util.syscs_set_xplain_schema('');

call = syscs_util.syscs_set_xplain_mode(0);

 

And still get the same error. &= nbsp; Could someone try this on their system and see if it works.  It = would be most appreciated.

 

Brett

= --_000_97EB699F861AD841B5908C7CA9C956560269AC2C1731VSERVER1can_--