public void alterDatabase(String dbName, Database db)
      throws HiveException {
    try {
      getMSC().alterDatabase(dbName, db);
    } catch (MetaException e) {
      throw new HiveException("Unable to alter database " + dbName + ". " + e.getMessage(), e);
    } catch (NoSuchObjectException e) {
      throw new HiveException("Database " + dbName + " does not exists.", e);
    } catch (TException e) {
      throw new HiveException("Unable to alter database " + dbName + ". " + e.getMessage(), e);
    }
  }
Rename a old partition to new partition

@param tbl
         existing table
@param oldPartSpec
         spec of old partition
@param newPart
         new partition
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java