安装和升级 > 安装和配置指南 - 更新现有安装 > 更新现有安装 > 更新后操作 > 在更新后配置数据库应用程序用户
  
在更新后配置数据库应用程序用户
如果使用数据库应用程序用户配置 Windchill 安装,且要添加会导致架构更改的新 Windchill 功能或组件,则必须执行以下步骤:
1. 使用数据库安装用户配置 Windchill
停止 Windchill 服务器。
在 Windchill shell 中执行以下语句来更新 Windchill 数据库特性,以反映 Windchill 数据库安装用户:
xconfmanager -s wt.pom.dbUser=< WINDCHILL_INSTALL_USERNAME > -t "db/db.properties" -p

xconfmanager -s wt.pom.dbPassword=<WINDCHILL_INSTALL_PASSWORD> -t "db/db.properties" -p
启动 Windchill 服务器。
2. 将新功能或组件添加到 Windchill 安装。
3. 仅适用于 Oracle 数据库:将访问权限授予新创建的数据库对象:
使用 Sqlplus,以数据库管理员用户身份登录到数据库,然后执行脚本 <WT_HOME>/db/sql/update_wc_app_role_privs.sql 以将权限授予新架构对象。
4. 当出现提示时,请输入以下值:
Windchill 安装数据库用户名:<WINDCHILL_INSTALL_USERNAME>
Windchill 应用程序数据库角色名:<WINDCHILL_APP_DATABASE_ROLE>
5. 使用数据库应用程序用户配置 Windchill:
停止 Windchill 服务器。
在 Windchill shell 中执行以下语句来更新 Windchill 数据库特性,以反映 Windchill 数据库安装用户:
xconfmanager -s wt.pom.dbUser=< WINDCHILL_APP_USER_NAME> -t "db/db.properties" -p
xconfmanager -s wt.pom.dbPassword=<WINDCHILL_APP_USER_PASSWORD> -t "db/db.properties" -p
启动 Windchill 服务器。