You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by John Baker <Jo...@Sun.COM> on 2007/08/23 03:12:17 UTC
Use of AUTHORIZATION
I'm using version 10.2.2
I want database vir to use schema, vir
CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(
'derby.user.vir', 'vir');
CREATE SCHEMA vir AUTHORIZATION vir;
when I pass this url, jdbc://localhost:1527/vir;create=true
the result is
Error code -1, SQL state XCL47: Use of 'AUTHORIZATION' requires database
to be upgraded from version 10.1 to version 10.2 or later.
Any ideas?
If I don't set AUTHORIZATION then it appears that system schemas are
only available for database vir
Thanks,
John
Re: Use of AUTHORIZATION
Posted by jwbaker <Jo...@Sun.COM>.
Looks like I solved it.
Before I kept getting the "SQL state XCL47: Use of 'AUTHORIZATION' requires
database
to be upgraded from version 10.1 to version 10.2 or later" error
CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(
'derby.user.vir', 'vir');
CREATE SCHEMA vir authorization vir;
John
jwbaker wrote:
>
>
> thanks for the quick reply
>
> I guess I wasn't clear
>
> I want to create a user, schema and authorization id using SQL
> so that when the user creates the database (using the JDBC url) this
> user can access the schema.
>
> If I just create a user and schema, without any privileges then
> the authorizationid is set to DBA and the user created cannot access
> the schema created
>
> Thanks
> John
>
>
> Bryan Pendleton wrote:
>>
>>> Error code -1, SQL state XCL47: Use of 'AUTHORIZATION' requires database
>>> to be upgraded from version 10.1 to version 10.2 or later.
>>
>> The GRANT/REVOKE family of features were introduced in Derby 10.2.
>>
>> To upgrade your 10.1-version database to 10.2, pass upgrade=true
>> on your connection URL when connecting to the database.
>>
>> Make a backup of the database first, as a precautionary measure.
>>
>> Here's some nice info on the upgrade process:
>> http://davidvancouvering.blogspot.com/2007/08/how-to-upgrade-derbyjava-db-database.html
>>
>> thanks,
>>
>> bryan
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Use-of-AUTHORIZATION-tf4314905.html#a12286482
Sent from the Apache Derby Users mailing list archive at Nabble.com.
Re: Use of AUTHORIZATION
Posted by jwbaker <Jo...@Sun.COM>.
thanks for the quick reply
I guess I wasn't clear
I want to create a user, schema and authorization id using SQL
so that when the user creates the database (using the JDBC url) this
user can access the schema.
If I just create a user and schema, without any privileges then
the authorizationid is set to DBA and the user created cannot access
the schema created
Thanks
John
Bryan Pendleton wrote:
>
>> Error code -1, SQL state XCL47: Use of 'AUTHORIZATION' requires database
>> to be upgraded from version 10.1 to version 10.2 or later.
>
> The GRANT/REVOKE family of features were introduced in Derby 10.2.
>
> To upgrade your 10.1-version database to 10.2, pass upgrade=true
> on your connection URL when connecting to the database.
>
> Make a backup of the database first, as a precautionary measure.
>
> Here's some nice info on the upgrade process:
> http://davidvancouvering.blogspot.com/2007/08/how-to-upgrade-derbyjava-db-database.html
>
> thanks,
>
> bryan
>
>
>
--
View this message in context: http://www.nabble.com/Use-of-AUTHORIZATION-tf4314905.html#a12286355
Sent from the Apache Derby Users mailing list archive at Nabble.com.
Re: Use of AUTHORIZATION
Posted by Bryan Pendleton <bp...@amberpoint.com>.
> Error code -1, SQL state XCL47: Use of 'AUTHORIZATION' requires database
> to be upgraded from version 10.1 to version 10.2 or later.
The GRANT/REVOKE family of features were introduced in Derby 10.2.
To upgrade your 10.1-version database to 10.2, pass upgrade=true
on your connection URL when connecting to the database.
Make a backup of the database first, as a precautionary measure.
Here's some nice info on the upgrade process:
http://davidvancouvering.blogspot.com/2007/08/how-to-upgrade-derbyjava-db-database.html
thanks,
bryan