BIEE 11g的rpd通過em部署,在部署的時候需要我們輸入密碼。然後biee就將這個密碼加密存儲到credentials store中。
鑑於此,我們可以考慮從credentials store中獲取遺失的密碼。
第一步 獲取rpd部署之後的名稱
credentials store在哪裏?如下圖所示:
可以看到 鍵值爲最近版本的rpd,選中任意一個鍵值點擊編輯,能查看到具體的信息,不過密碼是星號看不見(當然可以考慮使用 專門的軟件,例如 星號密碼查看器 之類的 大家可以去搜索一下)
記住上面的名稱,例如repository.SampleAppLite, 下面我們就以它爲例查看當時部署時的密碼。
第二步 使用WLST查看密碼
登錄BIEE服務器 執行如下命令,啓動wlst
$FMW/oracle_common/common/bin/wlst.sh
注:FMW爲中間件安裝目錄
然後連接到Admin Server
wls:/offline> connect("weblogic","xxxx","localhost:7001")
Connecting to t3://localhost:8003 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'bifoundation_domain'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
wls:/bifoundation_domain/serverConfig>
wls:/bifoundation_domain/serverConfig>
注:需要提供用戶名(weblogic)和密碼(xxxx)以及主機和端口(端口是訪問console或者em所用的端口,通常默認是7001)
然後執行如下命令查看密碼:
wls:/bifoundation_domain/serverConfig> listCred("oracle.bi.enterprise","repository.SampleAppLite")
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
For more help, use help(domainRuntime)
[Name : system, Description : null, expiry Date : null]
PASSWORD:Admin123
可以看到當時的密碼是Admin123
注:請根據自己的實際情況將repository.SampleAppLite替換成需要查看的rpd的名稱,具體請在em的credentials store中獲取名稱(參考第一步)。
對於12c請參見如下
http://weblogicscripting.blogspot.com/2016/02/how-to-retrieve-oamkeystore-password-in.html