@Override
  protected void doAlteration(Database database, Map<String, String> params) {
    database.setOwnerName(desc.getOwnerPrincipal().getName());
    database.setOwnerType(desc.getOwnerPrincipal().getType());
  }
Operation process of altering a database's owner.
ql/src/java/org/apache/hadoop/hive/ql/ddl/database/alter/owner/AlterDatabaseSetOwnerOperation.java