Help Center > > Developer Guide> SQL Reference> SQL Syntax> REASSIGN OWNED


Updated at:May 15, 2019 GMT+08:00


REASSIGN OWNED changes the owner of a database.

REASSIGN OWNED requires that the system change owners of all the database objects owned by old_roles to new_role.


  • REASSIGN OWNED is often executed before deleting a rule.
  • You must have the permissions on the original and target roles to execute it.


REASSIGN OWNED BY old_role [, ...] TO new_role;

Parameter Description

  • old_role

    Specifies the role name of the old owner.

  • new_role

    Specifies the role name of the new owner.



Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel