原文鏈接:weblogic數據源遷移更改
假設某種情況下,weblogic應用domain要遷移,需要重新配置數據源,但是該應用涉及的數據源很多,一一配置起來相當,這個可以選擇拷貝
C:\bea923\user_projects\domains\ISP-Reporters_domain\config\jdbc 下的XML文件,並且修改 C:\bea923\user_projects\domains\ISP-Reporters_domain\config 下的 config.xml文件。
<jdbc-system-resource>
<name>DS_OPENCMS</name>
<target></target>
<descriptor-file-name>jdbc/DS_OPENCMS-5407-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>ODS_60</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/ODS_60-9269-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>DS_PORTAL_SQL</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/DS_PORTAL_SQL-4987-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
,重啓服務後,會發現JDBC 數據源那裏已經配置好了數據源,但是不能正常運行。。
究其原因,會發現weblogic的密碼 是實行 加密處理的,所以不能通過簡單 拷貝就可以實現 密碼的設置,在這裏我們可以 修改 數據源xml文件中的
<password-encrypted>123</password-encrypted>
將加密過的密碼 修改成明文密碼 ,重啓後就成功 應用該數據源了。