OBIEE 12c的架构和OBIEE 11g不一样,多了一个domain和instance的概念,
具体部署后的一个domain对应一个物理目录:如$ORACLE_HOME/user_projects/domains/bitest04
里面可以包含多个instance,但是目前版本好像就支持一个,默认名字就是ssi:
一个instance包括如下的metadata: repository data, presentation catalog, security policy等。
OBIEE 12c架构可以参考这个图:
OBIEE 12c针对instance提供了新的备份和恢复工具,可以把整个instance实例打成一个BAR的包,这个BAR包就可以用于恢复环境,这对运维工作提供了很大帮助。
以下是BAR文件包含的内容说明:
A BAR file contains the following BI application module artifacts:
Data model metadata for the Oracle BI Server. This metadata is xml-based but functionally equivalent to a .RPD file.
Presentation Services catalog metadata for a service instance.
Security policy metadata containing application role and application role memberships plus permission and permission set grants for a service instance.
A manifest file declaring the dependencies for the BAR file.
weblogic提供了如下命令来操作domian下的instance:
listBIServiceInstances
getBIServiceInstance
scaleOutBIServiceInstance
exportServiceInstance
importServiceInstance
refreshServiceInstance
refreshDomainServiceInstances
resetServiceInstance
命令的具体内容见Oracle文档 http://docs.oracle.com/middleware/1221/biee/BIESG/configrepos.htm#BIESG9316
这里主要介绍一下导入导出的命令:
--启动wlst
$ORACLE_HOME/oracle_common/common/bin/wlst.sh
--进入wlst命令行后,列出所有instance
listBIServiceInstances('$ORACLE_HOME/user_projects/domains/bitest04')
结果一般如下
INFO: Service Instance retrieved from the environment is
ServiceInstance :
[description = Default BI Service Instance
key = ssi
path = service_instances/ssi/metadata
]
[BIServiceInstance [key=ssi, description=Default BI Service Instance, systemComponents=[obis1]]]
--确认实例存在后
--导出命令:
exportServiceInstance('$ORACLE_HOME/user_projects/domains/bitest04','ssi', '/workdir', '/backupdir')
--导入命令:
importServiceInstance('$ORACLE_HOME/user_projects/domains/bitest04','ssi','/backupdir/ssi.bar')
--执行完后退出
exit()