From derby-user-return-13812-apmail-db-derby-user-archive=db.apache.org@db.apache.org Tue Aug 2 17:44:07 2011 Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0480265EB for ; Tue, 2 Aug 2011 17:44:07 +0000 (UTC) Received: (qmail 26794 invoked by uid 500); 2 Aug 2011 17:44:06 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 26747 invoked by uid 500); 2 Aug 2011 17:44:06 -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 26740 invoked by uid 99); 2 Aug 2011 17:44:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 17:44:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [201.116.131.108] (HELO SCJNSMTP1.scjn.gob.mx) (201.116.131.108) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 17:43:59 +0000 Received: from pjfmailpscas1.PJF.gob.mx (192.168.240.48) by SCJNSMTP1.scjn.gob.mx (192.168.240.240) with Microsoft SMTP Server (TLS) id 8.2.255.0; Tue, 2 Aug 2011 12:41:52 -0500 Received: from pjfmail01.PJF.gob.mx (172.16.13.251) by pjfmailpscas1.PJF.gob.mx (172.16.12.244) with Microsoft SMTP Server id 8.2.254.0; Tue, 2 Aug 2011 12:41:27 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CC513B.67DBA4D9" Subject: Is there a way to make tmp files point to the user's tmp dir? Date: Tue, 2 Aug 2011 12:41:27 -0500 Message-ID: <848A0B08679D3E4F94614A0F8E3B0C2D961B08@PJFMAIL01> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Is there a way to make tmp files point to the user's tmp dir? Thread-Index: AcxRO2ed6PsBUZbKQr6luz4JLqkx1w== From: Carlos de Luna Saenz To: ------_=_NextPart_001_01CC513B.67DBA4D9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I want the variable of derby.storage.tempDirectory (for a embedded = application) to pint to a user tmp file, but I found this variable is = static... I understand that means It has to be written in the = =BFservice.property file on de DB directory? And how I can add the = "environment variable" there? Thanks in advance for your time and response derby.storage.tempDirectory Function=20 Defines the location on disk for temporary file space needed by Derby = for performing large sorts and deferred deletes and updates. (Temporary = files are automatically deleted after use, and are removed when the = database restarts after a crash.) The temporary directory named by this = property will be created if it does not exist, but will not be deleted = when the system shuts down. The path name specified by this property = must have file separators that are appropriate to the current operating = system. This property allows databases located on read-only media to write = temporary files to a writable location. If this property is not set, = databases located on read-only media might get an error like the = following: ERROR XSDF1: Exception during creation of file = c:\databases\db\tmp\T887256591756.tmp for container ERROR XJ001: Java exception: 'a:\databases\db\tmp\T887256591756.tmp: java.io.IOException'. This property moves the temporary directories for all databases being = used by the Derby system. Derby makes temporary directories for each = database under the directory referenced by this property. For example, = if the property is set as follows: derby.storage.tempDirectory=3DC:/Temp/dbtemp =20 =20 ------_=_NextPart_001_01CC513B.67DBA4D9 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

I want the variable of derby.storage.tempDirectory (for a = embedded application) to pint to a user tmp file, but I found this = variable is static… I understand that means It has to be written = in the =BFservice.property file on de DB directory? And how I can add = the “environment variable” there?

Thanks in advance=A0 for your time = and response

derby.storage.tempDirectory

Function =

Defines the location on disk for temporary file space = needed by Derby for performing large sorts and deferred deletes and = updates. (Temporary files are automatically deleted after use, and are = removed when the database restarts after a crash.) The temporary = directory named by this property will be created if it does not exist, = but will not be deleted when the system shuts down. The path name = specified by this property must have file separators that are = appropriate to the current operating system.

This property allows databases located on read-only = media to write temporary files to a writable location. If this property = is not set, databases located on read-only media might get an error like = the following:

ERROR = XSDF1: Exception during creation of file=A0 = c:\databases\db\tmp\T887256591756.tmp

for = container

ERROR XJ001: Java = exception:

'a:\databases\db\tmp\T887256591756.tmp: = java.io.IOException'.

This property moves the temporary directories for all = databases being used by the Derby system. Derby makes temporary = directories for each database under the directory referenced by this = property. For example, if the property is set as = follows:

derby.storage.tempDirectory=3DC:/Temp/dbtemp

 

 

------_=_NextPart_001_01CC513B.67DBA4D9--