Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 45118 invoked from network); 29 Nov 2005 22:17:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Nov 2005 22:17:41 -0000 Received: (qmail 34081 invoked by uid 500); 29 Nov 2005 22:17:40 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 33895 invoked by uid 500); 29 Nov 2005 22:17:39 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 33884 invoked by uid 99); 29 Nov 2005 22:17:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2005 14:17:39 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [65.195.181.50] (HELO webRack01.Segel.com) (65.195.181.50) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2005 14:19:09 -0800 Received: from dbrack01.segel.com (ns2.segel.com [65.195.181.55]) by webRack01.Segel.com (Postfix) with ESMTP id 63182240CD for ; Tue, 29 Nov 2005 17:22:49 -0600 (CST) From: Michael Segel Reply-To: msegel@segel.com Organization: MSCC To: "Derby Discussion" Subject: Re: Unable to create temporary table when using a readonly database Date: Tue, 29 Nov 2005 16:17:26 -0600 User-Agent: KMail/1.8.2 References: <20051129181708.21336.qmail@web31902.mail.mud.yahoo.com> <200511291549.57500.msegel@segel.com> <438CCFE7.3030500@Sourcery.Org> In-Reply-To: <438CCFE7.3030500@Sourcery.Org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511291617.26478.msegel@segel.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Tuesday 29 November 2005 16:02, Satheesh Bandaram wrote: > Michael Segel wrote: > > > > <>Eeewwww, apply the KISS rule. Where are the temp tables actually created? > In memory only? In /tmp? Or in some place where the JVM dictates? Or cwd? > (Current Working Directory). > > If you had clicked on the second link I had, you would know the answer! > > > For the read-only database, set the property derby.storage.tempDirectory to > a writable location. Derby needs to write to temporary files for large > sorts required by such SQL statements as ORDER BY, UNION, DISTINCT, and > GROUP BY. For more information about this property, see Tuning Derby. > derby.storage.tempDirectory=c:/temp/mytemp What? Me read the manual? ;-) Now that would take the fun out of it. Again, that would allow Derby to function. Why would you want to set up a read-only database where the app/user would also create temp tables? Kinda like letting people smoke in a non-smoking restaurant. ;-) I really do think the better solution would be to create permissions and then allow the person to grant or revoke the permissions. But then again, that would be a major change...