EBS R12 修改 apps 密码[Z]

注意:
修改密码时应保证所有用户已退出, 最好是关闭应用实例。不用关闭数据库。在修改密码之前一定要改备下数据库中的FND_ORACLE_USERID和FND_USER表。
FNDCPASS工具会自动把APPS用户的密码和APPLSYS用户的密码和APPLSYS用户的密码同步设置成一样的。
在修改完APPLSYS和APPS用户的密码后, 需要重新启动并发管理器。
在修改完APPLSYS和APPS用户的密码后,要求将已经处在登录状态的用户完全退出, 然后重新登录。
修改APPS用户的密码不支持直接在数据库中使用ALTER USER 命令。
在任何情况下,都不能直接使用操纵数据库的密码去直接修改APPS用户密码。
一定要用FNDCPASS去修改APPS密码, 在ORACLE 12.1.2中可以用AFPASSWD命令。
在修改密码过程中,要仔细,反复确认FNDCPASS日志,如果在FNDCPASS日志中发现了任何错误信息,在没弄清楚错误原因之前不要手动去运行AUTOCONFIG命令。
在修改用户密码过程中,如果出现ERP系统不能登录的问题, 不要再随便运行AUTOCONFIG命讼。

密码修改失败以后修复办法:

[sql] view plaincopy
 
  1. truncate table fnd_user;  
  2. truncate table fnd_oracle_userid;  
  3. insert into fnd_user select * from 前面的备份表;  
  4. insert into fnd_oracle_userid select * from ......;  
  5. commit;  


修改案例:
1. 停止实例:

[sql] view plaincopy
 
  1. [ebsapp@gd1ebs132 ~]$ /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adstpall.sh apps/apps  
  2.   
  3. You are running adstpall.sh version 120.10.12010000.4  
  4.   
  5. The logfile for this session is located at /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adstpall.log  
  6. Executing service control script:  
  7. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/jtffmctl.sh stop  
  8. script returned:  
  9. ****************************************************  
  10.   
  11. You are running jtffmctl.sh version 120.3  
  12.   
  13. Shutting down Fulfillment Server for PROD on port 9307 ...  
  14.   
  15. jtffmctl.sh: exiting with status 0  
  16.   
  17.   
  18. .end std out.  
  19.   
  20. .end err out.  
  21.   
  22. ****************************************************  
  23.   
  24.   
  25. Executing service control script:  
  26. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adcmctl.sh stop  
  27. script returned:  
  28. ****************************************************  
  29.   
  30. You are running adcmctl.sh version 120.17.12010000.5  
  31.   
  32. Shutting down concurrent managers for PROD ...  
  33. ORACLE Password:  
  34. Submitted request 403157 for CONCURRENT FND SHUTDOWN   
  35.   
  36.   
  37. adcmctl.sh: exiting with status 0  
  38.   
  39.   
  40. adcmctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adcmctl.txt for more information ...    
  41.   
  42.   
  43. .end std out.  
  44.   
  45. .end err out.  
  46.   
  47. ****************************************************  
  48.   
  49.   
  50. Executing service control script:  
  51. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adoafmctl.sh stop  
  52. script returned:  
  53. ****************************************************  
  54.   
  55. You are running adoafmctl.sh version 120.8  
  56.   
  57. Stopping OPMN managed OAFM OC4J instance ...  
  58.   
  59. adoafmctl.sh: exiting with status 0  
  60.   
  61. adoafmctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adoafmctl.txt for more information ...    
  62.   
  63.   
  64. .end std out.  
  65.   
  66. .end err out.  
  67.   
  68. ****************************************************  
  69.   
  70.   
  71. Executing service control script:  
  72. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adformsctl.sh stop  
  73. script returned:  
  74. ****************************************************  
  75.   
  76. You are running adformsctl.sh  version 120.16.12010000.3  
  77.   
  78. Stopping OPMN managed FORMS OC4J instance  ...  
  79.   
  80. adformsctl.sh: exiting with status 0  
  81.   
  82. adformsctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adformsctl.txt for more information ...    
  83.   
  84.   
  85. .end std out.  
  86.   
  87. .end err out.  
  88.   
  89. ****************************************************  
  90.   
  91.   
  92. Executing service control script:  
  93. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adoacorectl.sh stop  
  94. script returned:  
  95. ****************************************************  
  96.   
  97. You are running adoacorectl.sh version 120.13  
  98.   
  99. Stopping OPMN managed OACORE OC4J instance ...  
  100.   
  101. adoacorectl.sh: exiting with status 0  
  102.   
  103. adoacorectl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adoacorectl.txt for more information ...    
  104.   
  105.   
  106. .end std out.  
  107.   
  108. .end err out.  
  109.   
  110. ****************************************************  
  111.   
  112.   
  113. Executing service control script:  
  114. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adapcctl.sh stop  
  115. script returned:  
  116. ****************************************************  
  117.   
  118. You are running adapcctl.sh version 120.7.12010000.2  
  119.   
  120. Stopping OPMN managed Oracle HTTP Server (OHS) instance ...  
  121. opmnctl: stopping opmn managed processes...  
  122.   
  123. adapcctl.sh: exiting with status 0  
  124.   
  125. adapcctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adapcctl.txt for more information ...    
  126.   
  127.   
  128. .end std out.  
  129.   
  130. .end err out.  
  131.   
  132. ****************************************************  
  133.   
  134.   
  135. Executing service control script:  
  136. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adalnctl.sh stop  
  137. script returned:  
  138. ****************************************************  
  139.   
  140. adalnctl.sh version 120.3  
  141.   
  142. Shutting down listener process APPS_PROD.  
  143.   
  144. adalnctl.sh: exiting with status 0  
  145.   
  146.   
  147. adalnctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adalnctl.txt for more information ...    
  148.   
  149.   
  150. .end std out.  
  151.   
  152. .end err out.  
  153.   
  154. ****************************************************  
  155.   
  156.   
  157. Executing service control script:  
  158. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adopmnctl.sh stop  
  159. script returned:  
  160. ****************************************************  
  161.   
  162. You are running adopmnctl.sh version 120.6.12010000.5  
  163.   
  164. Stopping Oracle Process Manager (OPMN)  and the managed processes ...  
  165. opmnctl: stopping opmn and all managed processes...  
  166.   
  167. adopmnctl.sh: exiting with status 0  
  168.   
  169. adopmnctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adopmnctl.txt for more information ...    
  170.   
  171.   
  172. .end std out.  
  173.   
  174. .end err out.  
  175.   
  176. ****************************************************  
  177.   
  178.   
  179. All enabled services on this node are stopped.  
  180.   
  181. adstpall.sh:Exiting with status 0  
  182.   
  183. adstpall.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adstpall.log for more information ...    


2. 进入数据库备份相关表:

[sql] view plaincopy
 
  1. SQL> conn apps/apps  
  2. Connected.  
  3. SQL> create table fnd_user_bak as select * from fnd_user;  
  4.   
  5. Table created.  
  6.   
  7. SQL> create table fnd_oracle_userid_bak as select * from fnd_oracle_userid;  
  8.   
  9. Table created.  


3. 修改密码:

[sql] view plaincopy
 
  1. [ebsapp@gd1ebs132 ~]$ FNDCPASS apps/apps 0 Y system/manager SYSTEM APPLSYS vipshop   
  2. Log filename : L403158.log  
  3.   
  4.   
  5. Report filename : O403158.out  


查看日志:

[sql] view plaincopy
 
  1. [ebsapp@gd1ebs132 ~]$ more L403158.log  
  2. +---------------------------------------------------------------------------+  
  3. Application Object Library: Version : 12.0.0  
  4.   
  5. Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.  
  6.   
  7.  module:   
  8. +---------------------------------------------------------------------------+  
  9.   
  10. Current system time is 13-JUN-2013 11:15:15  
  11.   
  12. +---------------------------------------------------------------------------+  
  13.   
  14. Working...  
  15.   
  16.   
  17. +---------------------------------------------------------------------------+  
  18. Concurrent request completed successfully  
  19. Current system time is 13-JUN-2013 11:15:15  
  20.   
  21. +---------------------------------------------------------------------------+  
  22. 修改正常。  


4. 以新密码启动应用。

[sql] view plaincopy
 
    1. [ebsdb@gd1ebs131 ~]$ sqlplus apps/apps  
    2.   
    3. SQL*Plus: Release 11.2.0.3.0 Production on Thu Jun 13 11:11:54 2013  
    4.   
    5. Copyright (c) 1982, 2011, Oracle.  All rights reserved.  
    6.   
    7. ERROR:  
    8. ORA-01017: invalid username/password; logon denied  
    9.   
    10.   
    11. Enter user-name: ^C  
    12. [ebsdb@gd1ebs131 ~]$ sqlplus apps/vipshop   
    13.   
    14. SQL*Plus: Release 11.2.0.3.0 Production on Thu Jun 13 11:12:06 2013  
    15.   
    16. Copyright (c) 1982, 2011, Oracle.  All rights reserved.  
    17.   
    18.   
    19. Connected to:  
    20. Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production  
    21. With the Partitioning, OLAP, Data Mining and Real Application Testing options  
    22.   
    23. SQL>   
    24.   
    25.   
    26. [ebsapp@gd1ebs132 ~]$ /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adstrtal.sh apps/vipshop  
    27.   
    28. You are running adstrtal.sh version 120.15.12010000.3  
    29.   
    30. The logfile for this session is located at /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adstrtal.log  
    31. Executing service control script:  
    32. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adopmnctl.sh start  
    33. script returned:  
    34. ****************************************************  
    35.   
    36. You are running adopmnctl.sh version 120.6.12010000.5  
    37.   
    38. Starting Oracle Process Manager (OPMN) ...  
    39. opmnctl: opmn started.  
    40.   
    41. adopmnctl.sh: exiting with status 0  
    42.   
    43. adopmnctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adopmnctl.txt for more information ...    
    44.   
    45.   
    46. .end std out.  
    47.   
    48. .end err out.  
    49.   
    50. ****************************************************  
    51.   
    52.   
    53. Executing service control script:  
    54. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adalnctl.sh start  
    55. script returned:  
    56. ****************************************************  
    57.   
    58. adalnctl.sh version 120.3  
    59.   
    60. Checking for FNDFS executable.  
    61. Starting listener process APPS_PROD.  
    62.   
    63. adalnctl.sh: exiting with status 0  
    64.   
    65.   
    66. adalnctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adalnctl.txt for more information ...    
    67.   
    68.   
    69. .end std out.  
    70.   
    71. .end err out.  
    72.   
    73. ****************************************************  
    74.   
    75.   
    76. Executing service control script:  
    77. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adapcctl.sh start  
    78. script returned:  
    79. ****************************************************  
    80.   
    81. You are running adapcctl.sh version 120.7.12010000.2  
    82.   
    83. Starting OPMN managed Oracle HTTP Server (OHS) instance ...  
    84. opmnctl: opmn is already running.  
    85. opmnctl: starting opmn managed processes...  
    86.   
    87. adapcctl.sh: exiting with status 0  
    88.   
    89. adapcctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adapcctl.txt for more information ...    
    90.   
    91.   
    92. .end std out.  
    93.   
    94. .end err out.  
    95.   
    96. ****************************************************  
    97.   
    98.   
    99. Executing service control script:  
    100. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adoacorectl.sh start  
    101. script returned:  
    102. ****************************************************  
    103.   
    104. You are running adoacorectl.sh version 120.13  
    105.   
    106. Starting OPMN managed OACORE OC4J instance  ...  
    107.   
    108. adoacorectl.sh: exiting with status 0  
    109.   
    110. adoacorectl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adoacorectl.txt for more information ...    
    111.   
    112.   
    113. .end std out.  
    114.   
    115. .end err out.  
    116.   
    117. ****************************************************  
    118.   
    119.   
    120. Executing service control script:  
    121. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adformsctl.sh start  
    122. script returned:  
    123. ****************************************************  
    124.   
    125. You are running adformsctl.sh  version 120.16.12010000.3  
    126.   
    127. Starting OPMN managed FORMS OC4J instance  ...  
    128. Calling txkChkFormsDeployment.pl to check whether latest FORMSAPP.EAR is deployed...  
    129. Program : /u01/PROD/PROD/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl started @ Thu Jun 13 11:18:14 2013  
    130.   
    131. *** Log File = /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jun_13_11_18_14_2013/txkChkFormsDeployment_Thu_Jun_13_11_18_14_2013.log   
    132.   
    133. File "/u01/PROD/PROD/apps/tech_st/10.1.3/j2ee/forms/applications/forms/formsweb/WEB-INF/lib/frmsrv.jar" exists. Proceeding to check the size...  
    134.   
    135. =============================================  
    136. *** Latest formsapp.ear has been deployed ***  
    137. =============================================  
    138.   
    139.   
    140. Program : /u01/PROD/PROD/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl completed @ Thu Jun 13 11:18:14 2013  
    141.   
    142. Perl script txkChkFormsDeployment.pl got executed successfully  
    143.   
    144.    
    145.   
    146. adformsctl.sh: exiting with status 0  
    147.   
    148. adformsctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adformsctl.txt for more information ...    
    149.   
    150.   
    151. .end std out.  
    152. *** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS  
    153. *** Log File = /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jun_13_11_18_14_2013/txkChkFormsDeployment_Thu_Jun_13_11_18_14_2013.log   
    154.   
    155. .end err out.  
    156.   
    157. ****************************************************  
    158.   
    159.   
    160. Executing service control script:  
    161. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adoafmctl.sh start  
    162. script returned:  
    163. ****************************************************  
    164.   
    165. You are running adoafmctl.sh version 120.8  
    166.   
    167. Starting OPMN managed OAFM OC4J instance  ...  
    168.   
    169. adoafmctl.sh: exiting with status 0  
    170.   
    171. adoafmctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adoafmctl.txt for more information ...    
    172.   
    173.   
    174. .end std out.  
    175.   
    176. .end err out.  
    177.   
    178. ****************************************************  
    179.   
    180.   
    181. Executing service control script:  
    182. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/adcmctl.sh start  
    183. script returned:  
    184. ****************************************************  
    185.   
    186. You are running adcmctl.sh version 120.17.12010000.5  
    187.   
    188. Starting concurrent manager for PROD ...  
    189. Starting PROD_0613@PROD Internal Concurrent Manager  
    190. Default printer is noprint  
    191.   
    192. adcmctl.sh: exiting with status 0  
    193.   
    194.   
    195. adcmctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adcmctl.txt for more information ...    
    196.   
    197.   
    198. .end std out.  
    199.   
    200. .end err out.  
    201.   
    202. ****************************************************  
    203.   
    204.   
    205. Executing service control script:  
    206. /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/scripts/jtffmctl.sh start  
    207. script returned:  
    208. ****************************************************  
    209.   
    210. You are running jtffmctl.sh version 120.3  
    211.   
    212. Validating Fulfillment patch level via /u01/PROD/PROD/apps/apps_st/comn/java/classes  
    213. Fulfillment patch level validated.  
    214. Starting Fulfillment Server for PROD on port 9307 ...  
    215.   
    216. jtffmctl.sh: exiting with status 0  
    217.   
    218.   
    219. .end std out.  
    220.   
    221. .end err out.  
    222.   
    223. ****************************************************  
    224.   
    225.   
    226. All enabled services for this node are started.  
    227.   
    228. adstrtal.sh: Exiting with status 0  
    229.   
    230. adstrtal.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/logs/appl/admin/log/adstrtal.log for more information ...    
原文地址:https://www.cnblogs.com/huak/p/3718650.html