on 2015 Dec 22 10:53 PM
Hi,
Can we change owner of a schema to other user? Can you throw some light on this ?
Regards,
Chandra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I believe it is not possible. I look for this but did not find anything.
At that time schema creator was always schema owner. With recent revisions you can create schema and set other user as owner but cannot change it later:
CREATE SCHEMA <schema_name> [OWNED BY <user_name>]
Regards,
Cristiano
You're right Chandra, schema ownership cannot be changed.
However, it's possible to export a schema, drop it from the database, recreate the schema owned by the target user and import the objects back into the database.
One important aspect to be careful of with this is that EXPORT/IMPORT don't care for the privileges assigned to the objects. So, after the import all privilege assignments need to be re-done manually for the affected objects.
User | Count |
---|---|
70 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.