You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ACTUAL RESULT
The following error message is displayed when the Metadata script is extracted using ISQL:
Statement failed, SQLSTATE = 28000
no permission for read-write access to database C:\PROGRAM FILES\FIREBIRD\FIREBIRD_3_0\SECURITY3.FDB
-IProvider::attachDatabase failed when working with CREATE DATABASE grants
EXPECTED RESULTS
No error message should be displayed when the Metadata script is extracted using ISQL
STEPS TO REPRODUCE THE ISSUE
- Install the Firebird 3.0.4 without define a SYSDBA password
- Setup the SYSDBA password after the installation using the following command:
ALTER CURRENT USER SET PASSWORD 'SYSDBAPWD' USING PLUGIN LEGACY_USERMANAGER;
- Create a Firebird 3.0.4 database using the SYSDBA user and than add some tables on it
- Restart the Firebird 3.0.4 using the followong command:
net stop FirebirdServerDefaultInstance
net start FirebirdServerDefaultInstance
- Try to extract the Metadata script using the following command:
"%ProgramFiles%\Firebird\Firebird_3_0\isql.exe" -user SYSDBA -password SYSDBAPWD -extract -output "FB30_DDL.SQL" "<Path or alias to database>"
The text was updated successfully, but these errors were encountered:
You are using embedded database access. For embedded access to work all involved database files should have enough access rights from OS point of view. There can be 2 ways to fix an issue:
- ask your sysadmin to grant you RW access to security database;
- access database via local server (for example add xnet:// prefix in the beginning of database name).
Thank you very much for your bug debug. I just tested your suggestions and I confirmed that they all work perfectly.
I just updated our databases metadata extract scripts according to your suggestions.
Now I have only the bug CORE6147 blocking the migration of my company (Motorola) databases to Firebird 3.0.x. Could you please take a look at it when you have time?
Submitted by: @luronumen
Attachments:
ERROR.png
ACTUAL RESULT
The following error message is displayed when the Metadata script is extracted using ISQL:
Statement failed, SQLSTATE = 28000
no permission for read-write access to database C:\PROGRAM FILES\FIREBIRD\FIREBIRD_3_0\SECURITY3.FDB
-IProvider::attachDatabase failed when working with CREATE DATABASE grants
EXPECTED RESULTS
No error message should be displayed when the Metadata script is extracted using ISQL
STEPS TO REPRODUCE THE ISSUE
- Install the Firebird 3.0.4 without define a SYSDBA password
- Setup the SYSDBA password after the installation using the following command:
ALTER CURRENT USER SET PASSWORD 'SYSDBAPWD' USING PLUGIN LEGACY_USERMANAGER;
- Create a Firebird 3.0.4 database using the SYSDBA user and than add some tables on it
- Restart the Firebird 3.0.4 using the followong command:
net stop FirebirdServerDefaultInstance
net start FirebirdServerDefaultInstance
- Try to extract the Metadata script using the following command:
"%ProgramFiles%\Firebird\Firebird_3_0\isql.exe" -user SYSDBA -password SYSDBAPWD -extract -output "FB30_DDL.SQL" "<Path or alias to database>"
The text was updated successfully, but these errors were encountered: