目录
- 前言
- 准备
- 修改步骤
- 1.关闭应用层
- 2.FNDCPASS 修改密码
- 3. 运行 autoconfig
- 4.单独启动 webLogic 服务
- 5.登录weblogic,更新apps密码
- 6.启动应用层
- 7.验证
- 结尾
前言
本文的目的是修改 apps 密码,主要参考官方文档 metalink 1674462.1
,请注意本文只针对特定版本,不过从官网上看,适配的是所有 R12,建议先在测试环境操作验证。
背景:
- EBS版本: R12.2.7
- apps密码:apps
- weblogic密码:manager0
目的:修改 apps密码为 apps123
准备
在正式处理前,有几件事需要提前注意下:
(1)登录 weblogic 控制台,并确认当前正常情况下,服务器的状态情况,后面在所有步骤都已完成后,我们需要检查weblogic各个服务器的状态是否正常,目的是改之前的状态一致。
也关注下目前拥有的数据源,我这里有两个 EBSDataSource
,OAEADatasource
,后面在修改密码后,我们需要对现有的数据源验证数据库连接是否正常。
PS: 一般来说,weblogic 控制台的登录网址是 <host>:<port>/console
启用的 port
可以通过以下脚本获取:
[applsit@hserpsit ~]$ cat $CONTEXT_FILE | grep s_wls_adminport<wls_adminport oa_var="s_wls_adminport" oa_type="PORT" base="7001" step="1" range="-1" label="WLS Admin Server Port">7011</wls_adminport>
本例中为 7011
(2)关于修改后的密码,比如下面我使用的复杂密码 cvx@zS2*dH
,提示错误 Oracle error 922: has been detected in alterpassword2
,经我验证,发现特殊字符只能使用 _
,一旦有别的就会提示错误,当然不同的EBS版本可能会有差异,建议如果是在改正式环境,先提前在测试区验证好新密码是否可用。
[applsit@hserpsit ~]$ FNDCPASS apps/apps 0 Y system/manager SYSTEM APPLSYS cvx@zS2*dH
Log filename : L6243684.logReport filename : O6243684.out
[applsit@hserpsit ~]$ cat L6243684.log
+---------------------------------------------------------------------------+
Application Object Library: Version : 12.2Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.FNDCPASS:
+---------------------------------------------------------------------------+Current system time is 26-JAN-2024 12:32:15+---------------------------------------------------------------------------+ArgumentsFNDCPASS system/***** SYSTEM APPLSYS *****
+----------------------------------------------------------------------------+
Working...
APP-FND-02704: Unable to alter user APPLSYS to change password.
Oracle error 922: has been detected in alterpassword2.+---------------------------------------------------------------------------+
Concurrent request completed
Current system time is 26-JAN-2024 12:32:16+---------------------------------------------------------------------------+
修改步骤
1.关闭应用层
我们先将应用层整个关闭:
$ADMIN_SCRIPTS_HOME/adstpall.sh apps/apps
2.FNDCPASS 修改密码
- 语法
FNDCPASS <logon> 0 Y <SYSTEM username>/<SYSTEM password> SYSTEM APPLSYS <new_password>
- 本例如下,另外需要注意的是,在修改
APPLSYS
密码后,APPS
和APPS_NE
也会同步修改,保持一致;在执行完毕后,会有提示日志文件名称,请务必查看确认执行是否成功。
[applsit@hserpsit ~]$ FNDCPASS apps/apps 0 Y system/manager SYSTEM APPLSYS apps123
Log filename : L6243325.logReport filename : O6243325.out
[applsit@hserpsit ~]$ cat L6243325.log
+---------------------------------------------------------------------------+
Application Object Library: Version : 12.2Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.FNDCPASS:
+---------------------------------------------------------------------------+Current system time is 25-JAN-2024 17:19:12+---------------------------------------------------------------------------+ArgumentsFNDCPASS system/***** SYSTEM APPLSYS *****
+----------------------------------------------------------------------------+
Working...FNDCPASS completed successfully.+---------------------------------------------------------------------------+
Concurrent request completed successfully
Current system time is 25-JAN-2024 17:19:13+---------------------------------------------------------------------------+
3. 运行 autoconfig
用 apps 的新密码 apps123 执行脚本,此步需要稍等几分钟。
[applsit@hserpsit ~]$ $ADMIN_SCRIPTS_HOME/adautocfg.sh
Enter the APPS user password:The log file for this session is located at: /u01/sit/app/fs2/inst/apps/SIT_hserpsit/admin/log/01251723/adconfig.logAutoConfig is configuring the Applications environment...AutoConfig will consider the custom templates if present.Using CONFIG_HOME location : /u01/sit/app/fs2/inst/apps/SIT_hserpsitClasspath : /u01/sit/app/fs2/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/eb sAppsborgManifest.jar:/u01/sit/app/fs2/EBSapps/comn/java/classesUsing Context file : /u01/sit/app/fs2/inst/apps/SIT_hserpsit/appl/admin/SIT_hserpsit.xmlContext Value Management will now update the Context fileUpdating Context file...COMPLETEDAttempting upload of Context file and templates to database...COMPLETEDConfiguring templates from all of the product tops...Configuring AD_TOP........COMPLETEDConfiguring FND_TOP.......COMPLETEDConfiguring ICX_TOP.......COMPLETEDConfiguring MSC_TOP.......COMPLETEDConfiguring IEO_TOP.......COMPLETEDConfiguring BIS_TOP.......COMPLETEDConfiguring CZ_TOP........COMPLETEDConfiguring SHT_TOP.......COMPLETEDConfiguring AMS_TOP.......COMPLETEDConfiguring CCT_TOP.......COMPLETEDConfiguring WSH_TOP.......COMPLETEDConfiguring CLN_TOP.......COMPLETEDConfiguring OKE_TOP.......COMPLETEDConfiguring OKL_TOP.......COMPLETEDConfiguring OKS_TOP.......COMPLETEDConfiguring CSF_TOP.......COMPLETEDConfiguring IBY_TOP.......COMPLETEDConfiguring JTF_TOP.......COMPLETEDConfiguring MWA_TOP.......COMPLETEDConfiguring CN_TOP........COMPLETEDConfiguring CSI_TOP.......COMPLETEDConfiguring WIP_TOP.......COMPLETEDConfiguring CSE_TOP.......COMPLETEDConfiguring EAM_TOP.......COMPLETEDConfiguring GMF_TOP.......COMPLETEDConfiguring PON_TOP.......COMPLETEDConfiguring FTE_TOP.......COMPLETEDConfiguring ONT_TOP.......COMPLETEDConfiguring AR_TOP........COMPLETEDConfiguring AHL_TOP.......COMPLETEDConfiguring IES_TOP.......COMPLETEDConfiguring OZF_TOP.......COMPLETEDConfiguring CSD_TOP.......COMPLETEDConfiguring IGC_TOP.......COMPLETEDAutoConfig completed successfully.
4.单独启动 webLogic 服务
在启动全部应用层前,我们先单独启动 webLogic
服务,因为我们需要将更新的密码也同步更新到 weblogic
中的数据源里(不要启动应用层别的服务)
[applsit@hserpsit ~]$ $ADMIN_SCRIPTS_HOME/adadminsrvctl.sh startYou are running adadminsrvctl.sh version 120.10.12020000.10Enter the WebLogic Admin password:
Enter the APPS Schema password:
Starting WLS Admin Server...
Refer /u01/sit/app/fs2/inst/apps/SIT_hserpsit/logs/appl/admin/log/adadminsrvctl.txt for detailsAdminServer logs are located at /u01/sit/app/fs2/FMW_Home/user_projects/domains/EBS_domain_SIT/servers/AdminServer/logsadadminsrvctl.sh: exiting with status 0adadminsrvctl.sh: check the logfile /u01/sit/app/fs2/inst/apps/SIT_hserpsit/logs/appl/admin/log/adadminsrvctl.txt for more information ...
5.登录weblogic,更新apps密码
首先点击 锁定并编辑
,进入修改状态,定位到 服务 - 数据源
,如下,本例中包括有2个数据源 EBSDataSource
,OAEADatasource
我们以 EBSDataSource
为例,OAEADatasource
或者你有更多其他数据源,操作都是一样的
(1)单击名称 EBSDataSource
,进入详细界面,切换至 连接池
标签页下,修改密码后,点击保存
(2)相同方式继续修改其他数据源,然后点击 激活更改
。
6.启动应用层
用新密码启动应用层
$ADMIN_SCRIPTS_HOME/adstrtal.sh apps/apps123
因为我们已经单独启动了 weblogic
,所以你会看到提示 The AdminServer is already running
,这是正常的。
7.验证
(1)再次登录 weblogic 控制台,打开 服务 - 数据源
,打开 监视
标签页,点击数据源名称。
(2)打开 测试
标签页,选择数据源后,点击 测试数据源
如果一切正常,会有成功提示。
(3)将所有的数据源下的服务器测试成功后,打开 环境 - 服务器
,请确认服务器状态是否与变更密码前的状态一致。
如果有异常状态的服务,则可以单独重启,比如若 oafm_server1
状态异常,可以用脚本进行重启:
# 停止 oafm_server1 服务
$ADMIN_SCRIPTS_HOME/admanagedsrvctl.sh stop oafm_server1
# 开始 oafm_server1 服务
$ADMIN_SCRIPTS_HOME/admanagedsrvctl.sh start oafm_server1
(4)最后登录 EBS,检查打开form界面,或者提交请求是否正常,如果请求未能正常运行,则检查并发管理器,重启即可。
PS:关于并发重启的更多了解,可以查看文章 EBS 并发整理
cd $ADMIN_SCRIPTS_HOME
# 关闭并发管理器
adcmctl.sh stop apps/apps
# 检查是否还有遗留进程,一般需要等几分钟,进程慢慢会关闭,如果有遗留 kill -9 <pid>,手工杀进程
ps -ef | grep FNDLIBR
# 启动并发管理器,可以等几分钟 ps -ef | grep FNDLIBR,一般进程又会再次生成
adcmctl.sh start apps/apps
# 查看并发管理器状态
adcmctl.sh status apps/apps
(5)如果涉及SOA接口的,也调用下看看是否正常。
结尾
至此,关于EBS R12的修改apps密码的相关步骤已全部完成。