Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 88386 invoked from network); 5 Jun 2007 18:05:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jun 2007 18:05:32 -0000 Received: (qmail 4936 invoked by uid 500); 5 Jun 2007 18:05:35 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 4904 invoked by uid 500); 5 Jun 2007 18:05:35 -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 4895 invoked by uid 99); 5 Jun 2007 18:05:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2007 11:05:34 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.18.1.36] (HELO gmp-ea-fw-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2007 11:05:30 -0700 Received: from d1-emea-09.sun.com (d1-emea-09.sun.com [192.18.2.119]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l55I56Ue026289 for ; Tue, 5 Jun 2007 18:05:06 GMT Received: from conversion-daemon.d1-emea-09.sun.com by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JJ600G01CUAFR00@d1-emea-09.sun.com> (original mail from Dag.Wanvik@Sun.COM) for derby-dev@db.apache.org; Tue, 05 Jun 2007 19:05:06 +0100 (BST) Received: from khepri05.norway.sun.com ([129.159.112.194]) by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JJ6007E9CWH4C10@d1-emea-09.sun.com> for derby-dev@db.apache.org; Tue, 05 Jun 2007 19:05:06 +0100 (BST) Date: Tue, 05 Jun 2007 20:05:05 +0200 From: Dag.Wanvik@Sun.COM (Dag H. Wanvik) Subject: Re: Can't upgrade from 10.1 to 10.3 In-reply-to: <4664D52D.9020909@gmail.com> Sender: Dag.Wanvik@Sun.COM To: derby-dev@db.apache.org Message-id: MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <4660BEFC.9090606@gmail.com> <4664D52D.9020909@gmail.com> User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.0.50 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org Thanks for trying this out, Stan! I really appreciate it. Stanley Bradbury writes: > ======== SNIP ======= > > Making APP a valid user did not work for me either. Prior to version > 10.2 I am not aware of there being a DBO but I understand the system > tables were owned by DBA so I created such a user and it appears to > have worked but since there is no schema called DBA any SQL causes > errors. Is there anyway for an end-user to tell whom the code expects > the DBO to be? Not sure, I guess select AUTHORIZATIONID from sys.sysschemas where schemaname = 'SYS'; would not be permissible unless necessary permissions were granted? > > C:\Stan\L3\10.3\DBO>java org.apache.derby.tools.ij > ij version 10.3 > ij> connect 'jdbc:derby:noUserDB;upgrade=true;user=DBA;password=DBA'; > ij> select columnnumber, columnname from sys.syscolumns where > referenceid in (select tableid from sys.systables where ta > blename = 'SYSTABLES') order by columnnumber; > ERROR 42Y07: Schema 'DBA' does not exist I tried to recreate this, but I could not. Can you show me exactly how you did this? Please also see my reply to Dan's mail; I did some more experiments. Thanks, Dag > ij> set schema app; > 0 rows inserted/updated/deleted > ij> select columnnumber, columnname from sys.syscolumns where > referenceid in (select tableid from sys.systables where tablename = > SYSTABLES') order by columnnumber; > COLUMNNUMB&|COLUMNNAME > > ------------------------------------------------------------------------------------------------------------------------ > -------------------- > 1 |TABLEID > > 2 |TABLENAME > > 3 |TABLETYPE > > 4 |SCHEMAID > > 5 |LOCKGRANULARITY > > > 5 rows selected > ij> exit; > > > > %%% Attempts w/APP %%%%%%%%%%% > ij version 10.3 > ij> connect 'jdbc:derby:tstDB;upgrade=true;user=APP;password=APP'; > ERROR 08004: User 'APP' cannot hard upgrade database 'tstDB'. Only the > database owner can perform this operation. > > > > -- Dag H. Wanvik Sun Microsystems, Database Technology Group (DBTG) Haakon VII gt. 7b, N-7485 Trondheim, Norway Tel: x43496/+47 73842196, Fax: +47 73842101