Subject | Re: [firebird-support] Changing the creator/owner of tables |
---|---|
Author | Thomas Steinmaurer |
Post date | 2007-01-05T18:33:03Z |
Hi Max,
should be able to handle this. You need to make sure, that each owner is
present as a user in the user database, because FBOM will loop through
all owners and you need to connect with each owner at a given time.
If I restore the database as user2
Then user2 is the owner of the database and the owner of the system tables.
and
or will it get
FBOM allows you to migrate a database with 1..n owner to one particular
owner which owns both the database and the objects included in the database.
--
HTH,
Thomas Steinmaurer
LogManager Series - Logging/Auditing Suites supporting
InterBase, Firebird, Advantage Database, MS SQL Server and
NexusDB V2
Upscene Productions
http://www.upscene.com
> FBOwnerMigrator looks like it will probably help me out with my ownerFBOwnerMigrator is able to handle that.
> problems, but I'm not 100% sure of this. The database in question is
> currently owned by sysdba. The system tables in the database are owned
> by sysdba, but the other objects are either owned by user1 or user2. I
> would like the database to be owned by user2 and all the objects within
> it to have their creator set to user2.
> There are a few complications here. Firstly, I think FBOwnerMigratorNope. There can be several different owners in your database. FBOM
> assumes that one user is both the database owner and the creator of the
> objects within that database.
should be able to handle this. You need to make sure, that each owner is
present as a user in the user database, because FBOM will loop through
all owners and you need to connect with each owner at a given time.
If I restore the database as user2
Then user2 is the owner of the database and the owner of the system tables.
and
> then tell FBOwnerMigrator to migrate from user1 to user2, will this endYes.
> up with all objects being owned by user2 (as desired)
or will it get
> confused by the fact that the system tables are owned by sysdba and thatYes.
> some objects are already owned by user2?
>
> Secondly, the user1 account that owns some of the objects has actually
> been deleted. Will it be sufficient for me to simply create another
> account with the same name and a known password?
FBOM allows you to migrate a database with 1..n owner to one particular
owner which owns both the database and the objects included in the database.
--
HTH,
Thomas Steinmaurer
LogManager Series - Logging/Auditing Suites supporting
InterBase, Firebird, Advantage Database, MS SQL Server and
NexusDB V2
Upscene Productions
http://www.upscene.com