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 78EC4108B9 for ; Tue, 13 Aug 2013 17:30:44 +0000 (UTC) Received: (qmail 56236 invoked by uid 500); 13 Aug 2013 17:30:44 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 55838 invoked by uid 500); 13 Aug 2013 17:30:40 -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 55817 invoked by uid 99); 13 Aug 2013 17:30:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 17:30:39 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [216.39.63.234] (HELO nm26-vm8.access.bullet.mail.gq1.yahoo.com) (216.39.63.234) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 17:30:33 +0000 Received: from [216.39.60.165] by nm26.access.bullet.mail.gq1.yahoo.com with NNFMP; 13 Aug 2013 17:29:52 -0000 Received: from [67.195.22.113] by tm1.access.bullet.mail.gq1.yahoo.com with NNFMP; 13 Aug 2013 17:29:52 -0000 Received: from [127.0.0.1] by smtp115.sbc.mail.gq1.yahoo.com with NNFMP; 13 Aug 2013 17:29:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1376414992; bh=FPAhoPz/2uR72G687eHuJ8ZezBZPAECU7i+WQ4pqA8g=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type; b=NSJQh3jGCX/vAtxYVePirqz80Eyjf715acHtf32SVoNCZnO4aD0LBx8JUgf7ywTldH8XSBPfyLTbDzKQ1UOkpWvFLjhr51dYR04cxTSmHBQ5x53v1KFL3SmCpfaDnc9ZR1/O6i0jD7f7F2KrHODRIj6iUfom0WrIbjQPWN1YzUg= X-Yahoo-Newman-Id: 639772.16776.bm@smtp115.sbc.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: N_jJWxgVM1mzFa9ere1uz9DpsDRfdFDReEgGc.YKZXkjre_ 3JQBoFyYCWsi2uf3iH95GicHuHOn_.g.ft8cHKLBwZu7oqmPDkUgNwwDdmRC .QCnIbJRXjMx5klpuF5G8natryvW4u4PbHYQY18wS1JFzHgF_ZKBXBdDYSiZ ZO2VZZkUEEXOkGZ2txUP3EwiTRFOHgtCdWBjooAHwb.TTTVZ0tzlYkoxA5rr D5xa6se7KbzV17O86Fpr0gBLSDqUt80.EKQeji1GYNzLY_QjEdOoXFVkNWOC zc7HisdXCPgl6AGcR8KMWCuGCxinbO6z9yCgpEqFc816yAU4ShqMeGDPaEr8 PO_.Vqds6NBJ9wjcYYGuKUEXyklQwfwIBNBgKGb0t4zjfb9IiyrzRyp2B0vL .4w43nmKUD1VZ985hOc4ki2HDxNoOgCDLrF7qJolBN1hvukMuqDP51J5clHE KBUeAFwJ91TWLwDCZit52jSh40UH9wplpSN3A2A6fBOWfpgdLbhgYE0Plgou PQdPlhscy5TtPbmeZXkfbe0NBnG6zRtlW2YbQxQSIgyDT5OCu04_XViASWdk xXCoz8Tavs2215NfT1eLtqxtxEv2tOKv6UD2jNuul28A6WfebJpKErmfCmeI c1v.z9yFBiOMzNsNTcOYjQqZIE9FU_2V6zK.pzo9.QybD7xnM1d.riZxiPyQ eIaVkY2Ql X-Yahoo-SMTP: fBd8VESswBBwVkX.d9lIdXduzED_6kJxUAzIjM21tL._95FbORG0yg-- X-Rocket-Received: from [192.168.1.71] (kmarsdenderby@108.231.78.45 with plain) by smtp115.sbc.mail.gq1.yahoo.com with SMTP; 13 Aug 2013 10:29:52 -0700 PDT Message-ID: <520A6D0F.1040307@sbcglobal.net> Date: Tue, 13 Aug 2013 10:29:51 -0700 From: Katherine Marsden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Derby Discussion Subject: Re: Strange situation References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------020008020003020406050206" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------020008020003020406050206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit On 8/13/2013 7:37 AM, Carlos de Luna Saenz wrote: > > We have a stange behavour in a database that is "imported" from a SQL > Server DB. > > On Windows Derby shows all records fine, but when used as "read only" > (root admin owned with 755) on Mac there is a table that shows as > empty (0 records) when the same DB in Windows has 1310 records. > > for accessing the DB we are using the Emmbeded driver... > > We found that the first time the DB is used on Mac or windows there > are some files changes (if 777 is set as permissions) and then the > records are shown, but the installation program is not seting (and we > don't want) those priviledges to the derby files... > > Any idea on WHY this is happenning? we are looking how to get files > that works with the install but we would like to know what do we have > to be aware to prevent this "data lose" when copying the DB. > > Greetings > My guess is that you did not shutdown the database before deploying read only. See this information for preparing a database for read-only use: http://db.apache.org/derby/docs/10.10/devguide/tdevdeploy26887.html > *Ing. Carlos de Luna S�enz *| Direcci�n de Sistematizaci�n de Tesis - > Director de �rea | > > Direcci�n General de Tecnolog�as de la Informaci�n | *Suprema Corte de > Justicia de la Naci�n* > > T. +52.55. 4113-1000 ext. 1174 | C: cluna@scjn.gob.mx > > --------------020008020003020406050206 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 8/13/2013 7:37 AM, Carlos de Luna Saenz wrote:

We have a stange behavour in a database that is "imported" from a SQL Server DB.

On Windows Derby shows all records fine, but when used as "read only" (root admin owned with 755) on Mac there is a table that shows as empty (0 records) when the same DB in Windows has 1310 records.

for accessing the DB we are using the Emmbeded driver…

We found that the first time the DB is used on Mac or windows there are some files changes (if 777 is set as permissions) and then the records are shown, but the installation program is not seting (and we don't want) those priviledges to the derby files…

Any idea on WHY this is happenning? we are looking how to get files that works with the install but we would like to know what do we have to be aware to prevent this "data lose" when copying the DB.

Greetings

 

My guess is that you did not shutdown the database before deploying read only.  See this information for preparing a database for read-only use:
http://db.apache.org/derby/docs/10.10/devguide/tdevdeploy26887.html

 

Ing. Carlos de Luna Sáenz | Dirección de Sistematización de Tesis - Director de Área |

Dirección General de Tecnologías de la Información | Suprema Corte de Justicia de la Nación

T. +52.55. 4113-1000 ext. 1174 | C: cluna@scjn.gob.mx

 

 


--------------020008020003020406050206--