修改OC4J的密码

1,找到system-jazn-data.xml文件:

(UNIX)ORACLE_HOME/j2ee/home/config/system-jazn-data.xml
(Windows)ORACLE_HOME\j2ee\home\config\system-jazn-data.xml

 

2,定位到如下配置部分

 

<user>
  <name>oc4jadmin</name>
  <display-name>OC4J Administrator</display-name> 
  <description>OC4J Administrator</description> 
  <credentials>{903}4L50lHJWIFGwLgHXTub7eYK9e0AnWLUH</credentials> 
</user> 
 


 

3,修改<credentials>!mynewpassword123</credentials>

   补充:务必在新的明文密码前加上感叹号哦

 

4,在修改密码前要将缓存的密码删除掉,否则改完后,仍然会发现密码被还原了。

删除一下文件夹下的文件。

(UNIX) :

ORACLE_HOME/j2ee/oc4jinstance/persistence/ascontrol/ascontrol/securestore/
(Windows):

ORACLE_HOME\j2ee\oc4jinstance\persistence\ascontrol\ascontrol\securestore/

 

5,密码有如下限制:

The password for the oc4jadmin user should conform to following guidelines:

  • Must contain at least five characters, but not more than 30 characters.
  • Must begin with an alphabetic character. It cannot begin with a number, the underscore (_), the dollar sign ($), or the number sign (#).
  • At least one of the characters must be a number.
  • Can contain only the following characters; numbers, letters, and the following special characters: US dollar sign ($), number sign (#), or underscore (_).
  • Cannot contain any Oracle reserved words, such as VARCHAR.

你可能感兴趣的:(oracle,windows,xml,unix)