Skip to main content

ALTER SCHEMA OWNER

  • May 15, 2013
  • 3 replies
  • 9 views

Pietro_La_Torre
Forum|alt.badge.img+2
Hi everyone! I have a user talend_dwh which is owner of schema replica. I want to drop this user and let the user dbadmin be its new owner, without losing the schema and its content. The problem is: I cannot drop the user without dropping also the schema and the istruction: ALTER SCHEMA replica OWNER TO dbadmin; is not supported. Could anyone tell me how to solve this problem? thanks

3 replies

Forum|alt.badge.img+2
  • Participating Frequently
  • May 16, 2013
You could do: alter table t1 set schema new_replica; for each table tn in the replica schema, and then drop schema replica. It's a bit cumbersome, but this sounds like a one-time operation, so maybe that's OK.

Pietro_La_Torre
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • May 16, 2013
that worked! thanks!

Jim_Knicely
Forum|alt.badge.img+2
  • Participating Frequently
  • August 12, 2018