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